Tuesday, October 06, 2009

FreeBSD 7.2-RLEASE Installation Notes


自分が FreeBSD のインストレーションを覚えられた理由は、日本語の FreeBSD 本が存在したからだが、その FreeBSD 本をベースにした内容に、やや古さを感じるようになった、やはり FreeBSD Handbook ベースで作業できると better なので、簡単にまとめる。

// 一度、途中まで書きかけたファイルを削除してしまったので適当な内容に...

Installing FreeBSD


After rebooting

% su -
# mv /var/tmp/* /tmp
# rm -fr /var/tmp
# ln -s /tmp /var/tmp

# vi /etc/ntpd.conf
server ntp.jst.mfeed.ad.jp
driftfile /etc/ntp/ntp.drift
logfile /var/log/ntpd.log

# vi /etc/rc.conf

Installing a Package

# pkg_add -r lsof

Obtaining the Ports Collection

CVSup Method

Make sure /usr/ports is empty before you run csup for the first time! If you already have the Ports Collection present, obtained from another source, csup will not prune removed patch files.

# csup -L 2 -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile

Portsnap Method

# portsnap fetch

# portsnap extract

If you already have a populated /usr/ports and you are just updating, run the following command instead:

# portsnap update

Sysinstall Method

Installing Ports

# cd /usr/ports/sysutils/lsof
# make install clean

Upgrading Ports




Installing X11

# cd /usr/ports/x11/xorg
# make install clean


# pkg_add -r xorg

% startx

Starting with version 7.4, Xorg can use HAL to autodetect keyboards and mice. The sysutils/hal and devel/dbus ports are installed as dependencies of x11/xorg, but must be enabled by the following entries in the /etc/rc.conf file:


Configuration of X11 is a multi-step process. The first step is to build an initial configuration file. As the super user, simply run:

# Xorg -configure

The next step is to test the existing configuration to verify that Xorg can work with the graphics hardware on the target system. In Xorg versions up to 7.3, type:

# Xorg -config xorg.conf.new

Starting with Xorg 7.4 and above, this test produces a black screen which may make it difficult to diagnose whether X11 is working properly. The older behavior is still available by using the retro option:

# Xorg -config xorg.conf.new -retro

If all is well, the configuration file needs to be installed in a common location where Xorg(1) can find it. This is typically /etc/X11/xorg.conf or /usr/local/etc/X11/xorg.conf.

# cp xorg.conf.new /etc/X11/xorg.conf

Desktop Environments

Installing Gnome

# pkg_add -r gnome2

Installing Xfce

# pkg_add -r xfce4

% echo "/usr/local/bin/startxfce4" > ~/.xinitrc

% startx

Installing Applications

Installing Firefox

# pkg_add -r firefox3

Enabling Flash Plugin with Firefox


Installing Opera

# pkg_add -r opera


- fonts
- OpenOffice.org
- Wireless Connection Setting
- Japanese Input

No comments: