FreeBSD で各種アプリケーションのインストール(主にパッケージを活用)
前準備
システムの更新
「FreeBSD システムの更新,ポーツコレクションの維持更新」 のページを参考に,次のことを行っておく.
- FreeBSD のセキュリティパッチ
- ポーツ・コレクション(ports collection) のダウンロード,アップデート(更新)
Linux エミュレータ linux_base-f10 のインストール
- /etc/rc.conf に「linux_enable="YES"」の1行を入れておく
linux_enable="YES"
* /etc/rc.conf を書き換えた場合には再起動
- /etc/sysctl.conf
compat.linux.osrelease=2.6.16
- コマンドを使って、linux.ko の組み込み操作を行ってみる
エラーメッセージが出ないことを確認しておく
kldload linux.ko
- linux.ko の組み込みができていることの確認
kldstat | grep linux
- linux_base-f10 のインストール
portupgrade -Npv -B 'make rmconfig' emulators/linux_base-f10
- 再起動
- linux プロセスファイルシステム
/etc/fstab に次の行を追加しておくこと
linprocfs /compat/linux/proc linprocfs rw 0 0
アプリケーション等のインストール
よく使うソフトを,下記の手順でインストールします.
- ライブラリ類
- multimedia/avifile: AVI player/converter with numerous codecs, includeing MPEG-4(DivX ;-))
- multimedia/libdvdcss: libdvdcss, Portable abstraction library for DVD decription
- textproc/libxml: libxml, XML parser library for GNOME
- textproc/libxml++: libxml++, XML API for C++
- devel/libgsf: libgsf, An extensible i/o abstraction for dealing with structured file formats
- devel/qt4-corelib: qt4, Qt core library
- x11-toolkits/qt4-gui: Qt graphical user interface library
- print/freetype2: freetype2, A free and portable TrueType font rendering engine
- Web ブラウザ
- www/firefox, www/firefox-i18n: Firefox, Web browser based on the browser portion of Mozilla
- メーラ
- mail/evolution: Evolution, An integrated mail, claendar and address book dsitributed suite
- mail/thunderbird3, mail/thunderbird3-i18n: Thunderbird, Mozilla Thunderbird is standalone mail and news that stands above
- インスタントメッセンジャー,IP 電話
- ワープロ、表計算、プレゼンテーション
- editor/openoffice.org-3: OpenOffice.org, Integrated wordprocessor/dbase/spreadsheet/drawing/chart/browser
- math/gnumeric: Gnumeric, The GNOME 2 spreadsheet
- misc/magicpoint: MagicPoint, An X11-based presentation tool
- PDF ビューワ,文書ビューワ,ポストスクリプトファイルビューワ
- graphics/evince: Evince, GNOME 2 multi-format document viewer
- japanese/acroread9: Adobe Reader 9, Adobe Reader for view, print, and search PDF documents (JPN)
- graphics/xpdf, japanese/xpdf: Xpdf, Display PDF files, and convert them to other format
- print/ggv: GGv, GNOME 2 ghostscript viewer
- print/gv: A PostScript and PDF previewer
- print/ghostscript8, print/ghostview, print/gsfonts: Ghostscript 8.x PostScript interpreter
- print/psutils-a4: Utilities for manipulating PostScript documents (ポストスクリプトファイルからページ抜き出し, 2ページを1ページになど)
- Real プレイヤー
- multimedia/linux-realplayer: RealPlayer, Linux RealPlayer 10 from RealNetworks
- ビデオ(プレイヤー、編集)、音楽(プレイヤー)
- multimedia/totem, multimedia/totem-parser: Totem, A gstreamer-based video player for GNOME 2 Desktop
- multimedia/pitivi: PiTiVi, Gstreamer based non-linear audio/video editor
- multimedia/kdenlive: Kdenlive, non-linear video editing suite
- multimedia/vlc: VLC, Qt4 based multimedia player and streaming server
- multimedia/kaffeine: Kaffeine, multimedia/kaffeine-mozilla: A xine-based multimedia player
- audio/rhythmbox: Rhythmbox, Audio player for GNOME
- multimedia/gnome-mplayer: GNOME Mplayer, MPlayer, High performance media player supporting many formats
- audio/amarok: Amarok, Media player for KDE
- multimedia/audacious, multimedia/audacious-plugins: Audacious, A media player based on BMP and XMMS
- CD-R, DVD イメージ作成等
- multimedia/k9copy: K9Copy, DVD 9 to DVD-5 shrinking application for KDE
- multimedia/handbrake: HandBrake, A DVD to MPEG-4 ripper and encoder
- sysutils/brasero: Brasero, CD/DVD mastering tools for the GNOME desktop
- sysutils/cdrtools: cdrtoolsl, CD/CD-R[W] and ISO-9660 iamge creation and extraction tools
- audio/grip: Grip, GTK front-end to external cd rippier and audio encoder
- 画像ビューワ
- graphics/shotwell: Shotwell, Open source photo manager for GNOME
- graphics/f-spot: F-Spot, Personal photo management to the GNOME desktop
- graphics/gwenview, misc/gwenview-i18n: Gwenview, An image viewer and browser for the KDE environment
- graphics/gthumb: gThumb, An image viewer and browser for the GNOME 2 environment
- multimedia/ffmpegthumbnailer: Lightweight video thumbnailer that can be used by file managers
- graphics/gqview: GQview, Another gtk2-based graphics file viewer
- graphics/gtksee: GtkSee, Image viewer
- ペイント, 画像処理
- graphics/gimp, graphics/gimp-app, graphics/gimp-data-extra, graphics/gimp-focusblur-plugin, graphics/gimp-gap, graphics/gimp-greycstoration, graphics/gimp-help, graphics/gimp-resynthesizer, japanese/gimp-help: The GIMP,
- graphics/ImageMagick: ImageMagick, Image processing tools
- graphics/GraphicsMagick: GraphicsMagick, Fast image processing tools based on ImageMagick
- graphics/ruby-rmagick:
- graphics/xv: xv, An X11 program that displays images of various formats
- games/tuxpaint, games/tuxpaint-config, games/tuxpaint-fonts, games/tuxpaint-stamps:
- ベクター系のドロー
- graphics/inkscape: Inkscape, A program seeks to become a full featured open source SVG editor
- 作図
- graphics/dia: dia, Diagram creation program, similar to Visio
- graphics/tgif, japanese/tgif: tgif, Diagram creation program, similar to Visio
- graphics/ruby-tgif:
- 数値処理、グラフ作成
- math/gnuplot, math/xgfe: gnuplot, A command-driven interactive function plotting program
- math/ngraph, japanese/ngraph-fonts: Ngraph, A XY plotting tool for students, scientists and engineers,
- math/xgraph
- スケジューラ、カレンダー
- deskutils/xcalendar: xcalendar, A calendar with a notebook for X11 (internationalized version)
- エディタ
- editors/vim: vim, Vi "workalike", with many additional features
- editors/emacs, editors/tamago, print/yatex: emacs, GNU editing macros
- editors/gedit: gedit, A small but powerful text editor for GNOME 2 Desktop Environment
- editors/tea: TEA, A simple and powerful Qt4-based text editor
- deskutils/tomboy: Personal note taking system for the GNOME desktop
- バイナリエディタ
- editors/beav: beav, Binary Editor And Viewer, a full featured binary file editor
- ファイル、ディレクトリ操作
- shells/fd: fd, A CUI-based file and directory management tool
- 圧縮復元・アーカイバ
- archivers/zip: Create/update ZIP files compatible with pkzip
- archivers/unzip: List, test and extract compressed files in a ZIP achive
- archivers/lha: Archive file using LZSS and Huffman compression (.lzh files)
- archivers/bzip2: A block-sorting file compressor
- スペルチェッカ
- textproc/ispell: An interactive spelling checker for multiple languages
- ページャ
- japanese/less: Lezz + zcat + ISO-2022 -a pager similar to more and pg
- misc/lv: Powerfil Multilingual File Viewer
- 漢字コード,改行コード変換ツール
- japanese/nkf: Network Kanji code conversion Filter
- japanese/qkc: Quick Kanji Code Converter (C version)
- converters/unix2dos: Translate ASCII files from DOS (cr/lf) to UNIX (lf)
- MS-Word, MS-Excel, MS-PowerPoint ファイルの操作
- textproc/xlhtml: Convert Excel and PowerPoint files to HTML and text
- textproc/wv: A library and executables to access Microsoft Word files
- textproc/wv2: A library providing routines to access Microsoft Word files
- textproc/catdoc: MS Word/Excel converter to plain ASCII or TeX. Tk Viewer included
- editors/softmaker-office: Microsoft Word/Excel OpenDocument and OpenOffice.org editor
- graphics/tonicpoint-viewer: PowerPoint presentation viewer
- テキストファイルをポストスクリプトに/ポストスクリプトをテキストファイルに
- japanese/a2ps: Text file to postscript converter (with Japanese support)
- print/pstotext: A PostScript to Text converter
- HTMLファイルをポストスクリプトに
- print/html2ps-a4: HTML to PostScript converter
- detex
- detex:
- ネットワークツール
- net/tsclient: A GNOME 2 frontend for rdesktop and vncviewer
- net/rsync: A network file distribution/synchronization utility
- ftp/wget: Retrieve file from the Net via HTTP(S) and FTP
- ftp/filezilla: Fast and reliable cross-platform FTP, FTPS and SFTP client
- フォント
- japanese/font-std:
- japanese/font-ipa-uigothic:
- japanese/sazanami-ttf:
- japanese/ja-kochi-ttfonts:
- japanese/alias-fonts:
- x11-fontsintlfonts:
- x11-fonts/urwfonts-ttf:
- ウインドウマネージャ
- x11-wm/fvwm2-i18n:
- xll/lxde-meta:
- x11-wm/lxsession:
- 画面キャプチャ
- graphics/scrot: A screen capture utility that utilized Imlib2
- システム管理/監視
- security/klamav: KlamAV, A KDE 3 front-end to Clam Anti-Virus
- www/dansguardia: A fast, feature-rich web content filter for Squid proxy servers
- secutiry/nmap: Port scanning utility for large networks
- net-mgmt/nagios2: Nagios, Extremely powerful network monitoring system
- ゲームなど
- games/childsplay, games/childsplay_plugins: Educative games for children
- astro/stellarium: A 3D photo-realistic sky renderer
#!/bin/sh pkg_add -r libdvdcss pkg_add -r libxml pkg_add -r libxml++ pkg_add -r libgsf pkg_add -r qt4-corelib pkg_add -r qt4-gui pkg_add -r freetype2 pkg_add -r firefox pkg_add -r firefox-i18n pkg_add -r evolution pkg_add -r thunderbird3 pkg_add -r thunderbird3-i18n pkg_add -r thunderbird3-enigmail pkg_add -r pidgin pkg_add -r ekiga3 pkg_add -r abiword pkg_add -r abiword-docs pkg_add -r gnumeric pkg_add -r magicpoint pkg_add -r evince pkg_add -r xpdf pkg_add -r xpdf pkg_add -r ggv pkg_add -r gv pkg_add -r ghostscript8 pkg_add -r gsfonts pkg_add -r ghostview pkg_add -r gsfonts pkg_add -r psutils-a4 pkg_add -r totem pkg_add -r totem-pl-parser pkg_add -r pitivi pkg_add -r kdenlive pkg_add -r vlc pkg_add -r kaffeine pkg_add -r xmms pkg_add -r rhythmbox pkg_add -r gnome-mplayer pkg_add -r smplayer pkg_add -r amarok pkg_add -r audacious pkg_add -r audacious-plugins pkg_add -r k9copy pkg_add -r brasero pkg_add -r cdrtools pkg_add -r grip pkg_add -r shotwell pkg_add -r f-spot pkg_add -r gwenview pkg_add -r gwenview-i18n pkg_add -r gthumb pkg_add -r ffmpegthumbnailer pkg_add -r gqview pkg_add -r gtksee pkg_add -r gimp pkg_add -r gimp-app pkg_add -r gimp-data-extras pkg_add -r gimp-focusblur-plugin pkg_add -r gimp-greycstoration pkg_add -r gimp-help-html pkg_add -r gimp-resynthesizer pkg_add -r ja-gimp-help-html pkg_add -r ImageMagick pkg_add -r GraphicsMagick pkg_add -r ruby18-rmagick pkg_add -r xv pkg_add -r tuxpaint pkg_add -r tuxpaint-config pkg_add -r tuxpaint-fonts pkg_add -r tuxpaint-stamps pkg_add -r inkscape pkg_add -r dia pkg_add -r tgif pkg_add -r ja-tgif-resource pkg_add -r gnuplot pkg_add -r xgfe pkg_add -r ngraph pkg_add -r ja-ngraph-fonts pkg_add -r xgraph pkg_add -r xcalendar pkg_add -r vim pkg_add -r emacs pkg_add -r tamago-emacs23 pkg_add -r yatex pkg_add -r gedit pkg_add -r tea pkg_add -r tomboy pkg_add -r beav pkg_add -r fd pkg_add -r zip pkg_add -r unzip pkg_add -r lha pkg_add -r bzip2 pkg_add -r ispell pkg_add -r less pkg_add -r lv pkg_add -r ja-nkf pkg_add -r ja-qkc pkg_add -r unix2dos pkg_add -r xlhtml pkg_add -r wv pkg_add -r wv2 pkg_add -r catdoc pkg_add -r tonicpoint-viewer pkg_add -r ja-a2ps pkg_add -r pstotext pkg_add -r html2ps-A4 pkg_add -r detex pkg_add -r tsclient pkg_add -r rsync pkg_add -r wget pkg_add -r filezilla pkg_add -r ja-font-std pkg_add -r ja-font-ipa pkg_add -r ja-font-ipaex pkg_add -r ja-font-uigothic pkg_add -r ja-font-sazanami pkg_add -r ja-font-kochi pkg_add -r ja-alias-fonts pkg_add -r intlfonts pkg_add -r urwfonts-ttf pkg_add -r fvwm2 pkg_add -r fvwm2-i18n-imlib pkg_add -r lxde-meta pkg_add -r lxsession pkg_add -r scrot pkg_add -r klamav pkg_add -r dansguardian pkg_add -r nmap pkg_add -r nagios pkg_add -r childsplay pkg_add -r childsplay_plugins pkg_add -r stellarium # 2010 時点でパッケージがない(ように見えるもの。探し回るのも面倒なので ポーツ・ツリーで) portupgrade -Npv -B 'make rmconfig' multimedia/win32-codecs portupgrade -Npv -B 'make rmconfig' net/skype portupgrade -Npv -B 'make rmconfig' editors/openoffice.org-3 portupgrade -Npv -B 'make rmconfig' japanese/acroread9 portupgrade -Npv -B 'make rmconfig' multimedia/linux-realplayer portupgrade -Npv -B 'make rmconfig' multimedia/xmms-avi portupgrade -Npv -B 'make rmconfig' multimedia/handbrake portupgrade -Npv -B 'make rmconfig' graphics/gimp-gap portupgrade -Npv -B 'make rmconfig' graphics/ruby-tgif portupgrade -Npv -B 'make rmconfig' editors/softmaker-office
インストール後の設定
IPA フォント等の設定
xorg.conf に,フォントパスを追加
FontPath "/usr/local/lib/X11/fonts/TrueType/"
FontPath "/usr/local/lib/X11/fonts/bitstream-vera/"
FontPath "/usr/local/lib/X11/fonts/cyrillic/"
.emacs の設定例
ホームディレクトリの .emacs を設定します.この作業は、root でなく、一般ユーザで行なって下さい。
;; turn on font-lock mode
(when (fboundp 'global-font-lock-mode)
(global-font-lock-mode t))
;; enable visual feedback on selections
;(setq transient-mark-mode t)
;; default to better frame titles
(setq frame-title-format
(concat "%b - emacs@" system-name))
; window and font
(cond
(window-system
(set-frame-font "-*-*-medium-r-*-*-16-*-*-*-*-*-*-*")
(mouse-wheel-mode)))
; other settings
(setq next-line-add-newlines nil)
(load-library "term/bobcat")
(display-time)
(setq line-number-mode t)
(setq text-mode-hook (list
(function (lambda ()
(auto-fill-mode 1)))))
(setq display-warning-suppressed-classes ' (font))
; supress messages
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
; cc-mode
(add-hook 'c-mode-common-hook
'(lambda ()
(c-set-style "CC-MODE")))
; anthy
; (set-input-method "japanese-anthy")
(setq default-input-method "japanese-egg-anthy")
(global-set-key [(control backslash)] 'toggle-input-method)
; kanji code
(set-language-environment "Japanese")
(set-default-coding-systems 'euc-japan)
(set-keyboard-coding-system 'euc-japan)
(set-terminal-coding-system 'euc-japan)
(set-clipboard-coding-system 'euc-japan)
; (set-w32-system-coding-system 'euc-japan)
(setq default-file-name-coding-system 'japanese-shift-jis)
;(setq default-process-coding-system
; '(euc-japan euc-japan))