KDE via pkg: Complete FreeBSD desktop in no time

Table of Contents

Installation
Compiz instead of KWin

Installation

by ross at 22:47:55 on January 30, 2018

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"
virtuoso_enable="YES"
virtuoso_config="/usr/local/lib/virtuoso/db/virtuoso.ini"

Display Manager (login screen)

kdm4_enable="YES"

This will start KDE display manager on boot, 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
Your guide is way much easier to follow by new user like me. I don't even know if we should install virtuoso as it was not written on the handbook on DE section. Would you please also share how to mount usb as a user under KDE? I tried to perform what written on the handbook, but the usb can't be mounted. Thanks in advance for your great tutorials.

Regards,
Beno
-- beno
Friday, January 26, 2018, 2:04:33
oops, actually KDE has dropped virtuoso recently so it is no longer needed. I updated the article, thanks for reminding.

I never investigated automounting deeply in KDE because I prefer to do that with a direct console command. Besides I moved to XFCE since then.
-- ross
Saturday, January 27, 2018, 9:38:55
Oh, but I always see notification about virtuoso and nepomunk on fresh installed system with KDE.

I read your post about compiz desktop and it did very cool, but since I am new with freebsd and still dont even know how to enable a simple task such as mounting usb, so I think I will start with a complete DE first.

Yesterday I find something about policykit to allow user mount usb. Hope this could help other who had same situation as me. Thank you for write a great guides and tutorials.

Regards,
Beno
-- beno
Sunday, January 28, 2018, 3:39:31