(if you installed FreeBSD from internet this step is already done)
The network in this machine is a RealTek that is well supported in FreeBSD. To set up the network i use ifconfig(8) to configure the ip-address
ifconfig rl0 192.168.0.2/24 up
and route(8) to configure the default route.
route add default 192.168.0.1
And last but not least we enter the dns-servers to resolv.conf(5)
echo "nameserver 220.127.116.11" > /etc/resolv.conf
To make these settings permanent add the following lines to /etc/rc.conf: ifconfig_rl0=”inet 192.168.0.2 netmask 255.255.255.0 up”
To use the wireless network we need to install some things from the ports collection. iwi-firmware. This is done by the commands:
cd /usr/ports/net/iwi-firmware/ && make install distclean
To load the firmware and load the kernel module just reboot or
sh /usr/local/etc/rc.d/iwi.sh start iwicontrol iwi0 -d /usr/local/share/iwi-firmware/ -m bss
First of all we want to install Xorg. This is easiest done by compiling source from the ports collection or by adding a package. You can install xorg from ports using the command:
cd /usr/ports/x11/xorg && make install distclean
If you rather want to install from binary packages you just use the command:
pkg_add -r xorg
When this is done we want to configure xorg. The best way to do this is to use a friends xorg.conf :P my friends name is jf and the configuration can you find here. Of course we want to use the 1280×768 mode to do this we need to compile and run a patch, 1280patch-845g-855gm-865g.c to do this try this combination of commands:
gcc 1280patch-845g-855gm-865g.c -o resolution ./resolution 3c 1280 768
Now you should be able to run X with maximum resolution, just type ‘startx’ at the console.
NEW:Direct Rendering or DRI.
If you are running FreeBSD 6.0 there are three steps to get DRI to work.
- Download and apply this patch ftp://18.104.22.168/pub/drm3.patch
- Install dri-devel from ports.
- Make sure you use the plain install of xorg 6.8.2. (not CVS)
To get the audio work we just add the kernel module snd_ich.ko to the kernel.
Or by compiling the support into the kernel, you can read about this here.
To get Speed Step to work under FreeBSD you just need to load the kernel module cpufreq.ko to the kernel or compiling it into the kernel. And start powerd. Check the manual for options. To make powerd start at boottime I just added these lines to /etc/rc.conf
powerd_enable="YES" powerd_flags="-a adaptive -b minimum -n adaptive"
More to come…