KDE via pkg: Complete FreeBSD desktop in no time

Table of Contents

Installation
Compiz instead of KWin

Installation

by ross at 02:23:45 on October 25, 2016

Install X Window System and drivers

You should have working X to install KDE. If you don't yet follow this guide.

Install KDE 4

Install the packages:

# pkg install virtuoso
# chown -R virtuoso /usr/local/lib/virtuoso
# pkg install kde
# pkg install gtk-oxygen-engine
# pkg install kde-gtk-config

Add to /etc/rc.conf:

dbus_enable="YES"
hald_enable="YES"
kdm4_enable="YES"
virtuoso_enable="YES"
virtuoso_config="/usr/local/lib/virtuoso/db/virtuoso.ini"

kdm4_enable starts KDE display manager, but you can replace it with some other DM like Slim if you want.

Making it work

Create ~/.xinitrc for KDE (just this single line here):

exec /usr/local/bin/startkde

Start KDE

Reboot and login into KDE.

Click Start → Computer → System Settings. Go to Application Appearance → Style and make sure that Widget Style is set to oxygen. Switch to GTK in the same window and setup look and fill of gtk applications (set to oxygen too).

That's it. Now tweak System Settings as you want.

 

Comments
Nice tutorial, thanks. I find it easier (since using nvidia driver) to include:
#pkg install nvidia-xconfig

I then run
#nvidia-xconfig

to get xorg.conf that's pretty well suited to run without any modifications.

Regards,
MarkB
-- Mark Benavides
Saturday, February 8, 2014, 21:24:24
The same happened to me, I installed xorg but the command "Xorg -configure" fails que the same message.
-- Giulliano
Monday, October 6, 2014, 16:51:19
Cannot Find GTK KDE package.
X Server died during startup.
X server for display 0, session is disabled.
-- Haziq
Monday, August 18, 2014, 13:14:08
How do you add those lines to the files that you specified? What editor, what are the steps to do that?

Thanks!
-- Mick
Tuesday, August 18, 2015, 18:23:03
I use vim (/usr/ports/editors/vim-lite).

If you are new to UNIX you might prefer a simplier editor like "ee".

run:
ee ~/.xinitrc
-- ross
Wednesday, August 19, 2015, 6:49:49
Worked perfect. Thanks!
-- Mick
Wednesday, August 19, 2015, 14:15:52
Thank you! This is amazing! Could you please post the equivalent to get a working desktop with Lumina, GNOME, XFCE, etc as well? Thanks again!
-- K
Wednesday, September 23, 2015, 23:04:04