Melhttps://unixcop.com
Unix/Linux Guru and FOSS supporter

How to install XFCE in FreeBSD 13

In this article we will learn about how to install xfce in FreeBSD 13, FreeBSD is a great Operating System as a server, but it is also great when we use it as Desktop personal usage. As a server, usually we use the Operating System in the command line interface (CLI) mode only. As a Desktop personal usage, we need to use it for browsing, typing a report, checking email, hence we need a Graphical User Interface (GUI). The default installation of FreeBSD does not include the GUI or Desktop Environment (DE).

There are several types of DE like KDE, GNOME and XFCE. In this tutorial, we will learn how to install XFCE on FreeBSD 13.

XFCE

According to https://www.xfce.org , Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly.

Applying Security Patches

We need to maintain the system fully patched. Hence, we can download the FreeBSD Security Patches and then install it using following commands:

$ freebsd-update fetch

$freebsd-update install

Install xorg

As prerequisite we need to install xorg. Xorg is a full-featured X server that was originally designed for Unix and Unix-like operating systems, such as Linux and FreeBSD. To instal the Xorg we can run the command below:

$pkg install -y xorg

Type y to proceed with dowload and install.

SLIM is acronym of Simple Login Manager, we need to install slim, so it will start XFCE session after we login. To install the SLIM, we need to run the command below:

$pkg install slim

Now it is time for us to install the xfce, we can use this command below:

$pkg install xfce

Please sit back, relax and take your coffee, since it will need some times to finish.

Configure XCFE Desktop

Once the installation finished, we can start configuring the rc.conf file. We can use vi to edit it.

$vi /etc/rc.conf

Add below lines to that text file.

moused_enable="YES" 
dbus_enable="YES" 
hald_enable="YES" 
slim_enable="YES" 

Do not forget to save and exit using :wq!.

Make a new file named .xinitrc in the home directory of root.

Add this single line into that file. This command will execue xfce4-session.

exec xfce4-session

Do not forget to save and exit using :wq!.

Reboot

Reboot the server.

$init 6

Login

Login as root and fill the password.

Now, we had completed the installation of XFCE on the FreeBSD 13. You can explore it by running the provided application.

We already now the step by step how to install xfce on freebsd 13. If you are interested to install another Desktop Environment, please check this link to know how to install GNOME.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

x