Sunday, June 7, 2020

FreeBSD Guide For NOOBS! [PART 2 - Installing some stuffs]

The part 2 of this guide will covers how you are going to install these packages and also how to set up the desktop environment as well. Please pay full attention at this guide and also the output from the terminal as well because there are some extra steps that every user must be taken in order to complete the installation. 

1. SETTING UP STUFFS 

Log in FreeBSD OS as root account. You are required to set up some stuffs.

Then, run the command below: 
 pkg install sudo nano

Next, you will need to set up sudo file and associate with your username. Run the command below:
 nano /usr/local/etc/sudoers


Uncomment the section of the line like this:
 
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSwD: ALL
%sudo ALL=(ALL) ALL
Then, add username into sudoers file:
 amirzaim ALL=(ALL) ALL
Press Ctrl+O to save the file and then press Ctrl+X to exit.

Next, we are going to set up the desktop environment. Xorg package must be installed first before installing any kind of desktop environment. Run the command below:
 pkg install xorg
Next, enter this line kern.evdev.rcpt_mask=6 on file /etc/sysctl.conf to allow ps/2 mouse especially on virtualbox.

.

Then, install the desktop environment. For KDE, run the command below:
 pkg install kde5
For Gnome, run the command below:
 pkg install gnome3
For XFCE, run the command below (login manager need to installed alongside as well):
 pkg install xfce gdm
Desktop environments needs /proc to be mounted, so you will need to add the line proc /proc procfs rw 0 0 on /etc/fstab

Next, open up file /etc/rc.conf and add two lines first:
 
dbus_enable="YES"
hald_enable="YES"

For Gnome/XFCE, add these lines into /etc/rc.conf file:
gdm_enable="YES"
gnome_enable="YES"
For KDE, just add these lines into /etc/rc.conf file:
sddm_enable="YES"
Then, reboot the virtual machine. If you seeing this logon screen, congratulations!



HELP!!! MY FREEBSD FAIL TO BOOT DUE TO SYNTAX ERROR ON /etc/rc.conf FILE!!!
Don't worry! Just enter these command here below to grant the disk access during abnormal boot:
fsck -y
mount -u /
mount -a -t ufs
swapon -a
NOTE: If you're installing FreeBSD on actual hardware instead of virtualbox, then you will need to configure graphics manually. See this FreeBSD handbook for details. 

 Let's go to part 3 to play it around the FreeBSD interface...

No comments:

Post a Comment