How to install KDE in FreeBSD 10.2

As I promised, this is the next article in the FreeBSD series. Yesterday, we have seen how to install FreeBSD 10.2.

Today, we’ll see how to install KDE (K Desktop Environment) in FreeBSD.

Log in to your FreeBSD system.

To install KDE in FreeBSD 10.2, run the following commands as root user:

pkg install xorg

sk@sk: ~_002

This will take while. Please be patient.

sk@sk: ~_003

Now, install KDE package using command:

pkg install kde

sk@sk: ~_004

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

sk@sk: ~_005

After installing KDE, you need to add some entries in your fstab file. KDE 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 friendlier to me. I could easily copy/paste the commands/lines to and from nano editor.

So, let us install nano editor using command:

pkg install nano

Then, edit /etc/fstab file,

nano /etc/fstab

Add the following line:

proc           /proc       procfs  rw  0   0

sk@sk: ~_006

Save and close the file.

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

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

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

nano /etc/rc.conf

Add the following lines:

hald_enable="YES"
dbus_enable="YES"
kdm4_enable="YES"

sk@sk: ~_007

Save and close the file. Reboot your system.

reboot

Be mindful that root user is not allowed to log in to the graphical desktop. So, you must need a normal user to log in to KDE desktop. We already have shown you how to create a normal system user in the FreeBSD installation guide.

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

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_009

Voila! Start using the FreeBSD KDE desktop.

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_010

FreeBSD 10.2 [Running] - Oracle VM VirtualBox_011

That’s it.

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 useful, please share it on your social networks and support OSTechNix.

Thanks for reading! Have a good day!!

Reference:

You may also like...