How To Install And Configure Xfce In FreeBSD?

How To Install And Configure Xfce In FreeBSD?

 

This post was last updated on August 1st, 2020 at 10:30 am

Xfce is a free and opensource desktop environment that aims to be lightweight, fast, and low on system resources while still being visually appealing and easy to use.

There are two ways to install software packages in FreeBSD: pkg and ports collection. Pkg is used to install packages from prebuilt binaries while ports collection is a much more customizable option, a user can decide how a port will be compiled and installed on a system.

This article is on how to install and configure the Xfce desktop environment in FreeBSD.

Installing the X windows system

Before you install Xfce as your desktop environment, you need to install GUI in your system. X windows system provides a basic framework for a GUI environment, it dictates how to draw or move windows on a display device and interact with mouse and keyboard. It is opensource and generally used on Unix systems.

Installing a package in FreeBSD requires root privileges. So if you are not root, first you should run the –

su

Use the following command to install Xorg(X Windows System ) using pkg –

pkg install xorg

Or install it as a port but before installing from ports collection make sure ports tree is updated, you can use the given command to update ports tree –

portsnap fetch update

And then use the following command to install it –

cd /usr/ports/x11/xorg
make install clean

Now the installation will start it can take up to a few minutes depending upon your system and internet speed.

Configuring the X windows system

The X windows system is now installed on your system. You need to configure a few things so that GUI work correctly on your system. X windows system uses 3D acceleration. In order to benefits from it, you need to add the user who will be running the X windows system to the video or wheel group.

Use the following command to add a user to the video or wheel group –

 pw groupmod video -m lalit || pw groupmod wheel -m lalit

This will add the user lalit to the video or wheel group.

FreeBSD must be configured to set the video output mode. This can be done by editing /boot/loader.conf, use a text editor to edit it –

vi /boot/loader.conf

and add the given line into it –

kern.vty=vt

How to install Xfce

You can install the Xfce by using pkg or ports collection. To install it using pkg use –

pkg install xfce

And to install it as a port, use the –

cd /usr/ports/x11-wm/xfce4
make install clean

Configure Xfce

Xfce doesn’t provide its own login manager so it starts a little bit different from KDE or Gnome. To be able to start Xfce from the command line first add the given entry to  ~/.xinitrc. Execute the following in your terminal –

 echo "exec /usr/local/bin/startxfce4 --with-ck-launch" > ~/.xinitrc

Start Xfce

Xfce will not start automatically when the system boots up. You can start it by launching x windows system from the terminal by using –

startx

Ok, that’s all for now. You can also visit the how to install and configure gnome in freebsd or how to install and configure KDE in freebsd. If you have something to say on this topic then write us in the comments below.

Previous GStreamer books and tutorials
Next Robotics Recap: Learning, Programming & Snapping ROS 2
 

About author

You might also like

How To 0 Comments

How To Upgrade Packages In FreeBSD?

This post was last updated on August 1st, 2020 at 12:06 pmFreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution. It is used to power

How To 0 Comments

How To Hide Or Display Hidden Files/Directories In Linux?

This post was last updated on August 1st, 2020 at 01:56 pmLinux is a multiuser operating system that is getting popular day by day. Many new computer users start using

Linux Topics 0 Comments

How To Create A Shared Directory Between Host And Guest In KVM?

This post was last updated on August 1st, 2020 at 02:39 pmKVM or kernel-based virtual machine is a virtualization module of Linux kernel. It requires hardware with virtualization extensions such

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply