Installing gnome GUI on FreeBSD 8
Most people seem to think installing a GUI on FreeBSD is a difficult task. Here’s how to do it, including little tweaks to make it work even betterLogin to your computer as root (or su to root from a regular user)
Use your favourite editor (check my blog for instructions on using ‘ee’ which is included in FreeBSD) to edit /boot/loader.conf – add the following lines:
linux_load=”YES”This will load the linux compatibility layer, and linux procfs compatibility modules (these will most likely be used later when you need to install flash plugins) and also the ATAPI scsi emulation driver. This is used for cd/dvd recording tools within gnome.
linprocfs_load=”YES”
atapicam_load=”YES”
Next make sure that the linux proc folder exists by typing:
mkdir -p /compat/linux/procAnd now we will edit the /etc/fstab file. Add the following lines if they do not exist already:
proc /proc procfs rw 0 0Next, we will tell FreeBSD to initialise the linux compatibility layer on boot-up. Edit /etc/rc.conf and add:
linproc /compat/linux/proc linprocfs rw 0 0
linux_enable=”YES”Ok, now you’re ready to install gnome. Make sure you’re connected to the internet, and type:
pkg_add -r xorg gnome2This will install xorg (if needed) and gnome. It will fetch all dependencies it needs, so it may take a while. You will be returned to a prompt when it’s finished.
Now to help things move along smoothly, you need to find out your computer’s hostname and add it to your hosts file… Run the following command to get your hostname:
hostnameNext edit /etc/hosts and add the following line at the bottom (replace ‘hostname’ with the output of the above command):
127.0.0.1 hostnameNow just one thing left to do, and that is to tell FreeBSD to load the gnome components next reboot… Edit /etc/rc.conf and add:
gnome_enable=”YES”reboot, and you will be presented with the gnome login prompt
hald_enable=”YES”
gdm_enable=”YES”
dbus_enable=”YES”
word to word copy from dan's blog :
ReplyDeletehttps://www.dan.me.uk/blog/2010/09/26/gnome-gui-freebsd-8/