I would assume the freeBSD installation already done. And you have one extra user account.
1. We need to upgrade the port
#portsnap upgrade
#portsnap extract
2. I would like to use bash and I like to use the latest bash. If you dont wish to use bash you can ignore step 2 and 3. Download it from here.
#mkdir -p /usr/local/source
#cd /usr/local/source
#fetch http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
#tar -xzvf bash-4.2.tar.gz
#cd bash-4.2
#./configure
#make && make install clean
3.Set the shell become bash
#chsh -s /usr/local/bin/bash username
#chsh -s /usr/local/bin/bash root
#cd /bin
#mv bash{,.original}
#ln -s /usr/local/bin/bash bash => to replace the default bash with bash 4.2 if you already previous bash. you can ignore this part if you have a fresh installation.
4. set "su -" and sudo on the user account
#pkg_add sudo
#visudo
---
...
%wheel ALL=(ALL) NOPASSWD: ALL
...
---
#pw user mod username -G wheel
5.Installing Xserver, in here I would like to use GNOME as my desktop
#pkg_add -r xorg gnome2 => It will take a while for installation.
#vi /etc/fstab
---
...
proc /proc procfs rw 0 0
...
---
#vi /etc/rc.conf
---
...
hald_enable=YES
dbus_enable=YES
gnome_enable=YES
gdm_enable=YES
...
---
6. Well done the GNOME packages and Xorg has been installed, what you need to do now, is by getting the VGA driver, in this case since I installed my freeBSD under VMWare workstation. You can ignore the vmmouse if you install in the normal machine.
#cd /usr/ports/x11-driver/xf86-video-vmware
#cd /usr/ports/x11-driver/xf86-input-vmmouse
7.Once its done just execute command reboot and there you go welcome to GNOME2 desktop.
Note : when you do some installation through port sometimes there is some error not allowed you to upgrade to the latest version, so to do this. Follow the following command.
#csh
#setenv FORCE_PKG_REGISTER
#make install clean
No comments:
Post a Comment