FreeBSD Desktop With Xfce, SLiM, And i3lock

freebsd desktop xfce slim i3lock

Many people looking for a lightweight, fast and stable desktop environment but fully functional how-to is so rare.
In this article a functional how-to consist of 3 elements will be cover:

  1. desktop environment
  2. desktop manager(login manager)
  3. desktop locker

How To Install Xfce ?

To install the Xfce package:
# pkg install xfce
Alternatively, to build the port:
# cd /usr/ports/x11-wm/xfce4
# make install clean
Unlike GNOME or KDE, Xfce does not provide its own login manager. In order to start SliM login manager, add its entry to ~/.xinitrc:
# echo “exec /usr/local/bin/startxfce4 –with-ck-launch” > ~/.xinitrc

How To Install SLiM ?

In order to install SliM issue these command:
# pkg install slim
add these lines to /etc/rc.conf to load SliM at boot:
or you can alternatively issue these commands:
# sysrc dbus_enable=“YES”
# sysrc hald_enable=“YES”
# sysrc slim_enable=“YES”

How To Install i3lock?

i3lock installation is very easy:
# pkg install i3lock

You can get full edition at:

enter image description here