Recently I got hold of an old Dell laptop (Pentium III / 1Ghz / 256 MB / 20G) and decided to put it to use. The obvious choices for an operating system were FreeBSD and Linux. For a while I wanted to brush up on my Linux skills and was thinking of either Debian (or Sidux) or one of the Redhat related distributions (Fedora or CentOS). But due to sheer laziness (I had the FreeBSD CD lying around + I am more familiar with it) I decided to go with FreeBSD.
The installer crashed on me when I accidentally selected the option of loading drivers from a floppy, but most of the install was done by then. The only things I didn't configure was networking (more on that below) and date.
The laptop came with a Linksys USB wireless card which was detected by the operating system without issues. Configuring the network was very easy, because I had PCBSD installed on another laptop. All I had to do was to copy
/etc/wpa_supplicant.conf
network={
ssid="freebsdap"
psk="freebsdmall"
}
some settings from /boot/loader.conf
and a few lines from the
/etc/rc.conf
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"
Installing packages was next on the task list. I decided to go with stable packages and changed the PACKAGESITE to ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/. Since the resources were scarce (only 256 MB of RAM) I wanted a lightweight system. Nevertheless I needed some functionality like flash, a movie player, and printing support. Below is a short script that installed the desired packages.
#! /bin/csh
pkg_add -r compat5x-i386 compat6x-i386 compat7x-i386 cups-base cups-client cups-image cups-pstoraster cups-smb-backend dbus fusefs-ntfs linux_base-f10-10_2 linux-f10-xorg-libs opera
opera-linuxplugins linux-f10-tiff linux-f10-sqlite3 linux-f10-png linux-f10-openssl linux-f10-openldap linux-f10-nss linux-f10-nspr linux-f10-libssh2 linux-f10-jpeg linux-f10-gtk2
linux-f10-fontconfig linux-f10-flashplugin linux-f10-expat linux-f10-cyrus-sasl2 linux-f10-curl linux-f10-cairo linux-f10-atk polkit portupgrade xorg xorg-apps xorg-fonts-75dpi xorg-fonts-cyrillic
xorg-fonts-miscbitmaps xorg-fonts-truetype xorg-fonts-type1 xfce4 xfce4-battery-plugin xfce4-conf xfce4-datetime-plugin xfce4-mailwatch-plugin xfce4-mixer xfce4-notification-daemon
xfce4-time-out-plugin xfce4-xkb-plugin xfce4-wm-themes vlc foomatic-db foomatic-db-engine foomatic-db-hpijs foomatic-filters >& pkg_log.txt
echo 'dbus_enable="YES"' >> /etc/rc.conf
echo 'polkitd_enable="YES"' >> /etc/rc.conf
echo 'hald_enable="YES"' >> /etc/rc.conf
echo 'linux_enable="YES"' >> /etc/rc.conf
When pkg_add was done, I checked the number of installed components and it was > 370. Provided that I will need some more in the future.
In order to bring up the XFCE desktop, I created the .xinitrc file in my home directory and typed startxfce4. The XFCE desktop took a while to come up on that machine, I have to investigate the reason for that. Something that I realized was that 256MB of RAM won't cut it, since XFCE was using up most of it and if I were to start a browser with Flash for example, the system would start swapping like crazy.
Next to do (in order of importance):
- Get an extra 256 MB of RAM.
- System configuration (pf.conf, rc.conf -> fsck, linux, powerd).
- Configure sound (should be easy, just follow the handbook).
- C Shell configuration (nice prompt).
- Setup printing.