Install GNOME Desktop Environment in FreeBSD 10.2

In our previous tutorials, we have shown you how to install FreeBSD 10.2, and then how to install Graphical desktop environment like KDE.

Today, we’ll see how to install GNOME desktop environment in FreeBSD.

Log in to your FreeBSD system.

First install Xorg server. Xorg is the X Window server that allows users to use GUI environment.

To install Xorg, run the following commands as root user:

pkg install xorg

sk@sk: ~_002

sk@sk: ~_003

Now, install Gnome package using command.

pkg install gnome3

sk@sk: ~_002

This will take a while depending upon the speed of your Internet connection. Grab a cup of coffee and sit back.

GNOME requires /proc file system to be mounted automatically during system startup.

To do so, edit file /etc/fstab,

For editing files, I prefer nano editor than vi editor. Nano editor is much friendly to me.

pkg install nano
nano /etc/fstab

Add the following line:

proc           /proc       procfs  rw  0   0

sk@sk: ~_004

Save and close the file.

Gnome uses D-Bus and HAL for a message bus and hardware abstraction. These applications are automatically installed as dependencies of Gnome.

We need to Enable them in /etc/rc.conf so they will be started when the system boots. Also, we need to enable the GNOME Display Manager, gdm, which is installed as part of the GNOME package.

To do so, edit file /etc/rc.conf file,

nano /etc/rc.conf

Add the following lines:

hald_enable="Yes"
dbus_enable="Yes"
gdm_enable="YES"
gnome_enable="YES"

sk@sk: ~_003

Save and close the file. Reboot your system.

reboot

Be mindful that root user is not allowed to log in to GUI mode, so you must need a normal system user. We already showed you how to create a normal user while installing FreeBSD.

Log in to your FreeBSD Gnome desktop with your user name and password.

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_005

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_006

That’s it. Start using using the GUI in FreeBSD.

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_007

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_009

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_010

Want to try MATE desktop on FreeBSD 10.2? check the following link.

We’ll be posting more articles about FreeBSD in the days to come. Stay tuned and subscribe to our newsletter to get our articles right in to your mailbox.

If you find this tutorial, please share it on your social networks and support OSTechNix.

Thanks for reading! Have a good day!!

Resource links:

You may also like...

  • pethead

    Will there be a review of Gentoo?

  • sk

    I will add this to my to do list. Will do it in the days to come.