Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I want to use a Fedora 17 "Beefy Miracle" system as a network-shared desktop for cooperative work. For this I'm using TigerVNC which brings its own X-Server and starts a completely separate desktop session in it, which then is exposed via VNC.

As I don't need the regular X-server I would like to completely disable it to free some resources and to enable the VNC desktop to a $DISPLAY of 0 . I have no experience using systemd and Fedora's service structure and therefore have no idea how to securely disable the service.

I tried disabling prefdm.service which seems to be the peak of the iceberg, but I'm not allowed to do that because it's a static service, whatever that may actually mean.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

systemd has something called 'targets' which can be thought of as the runlevels of init. prefdm.service will be run with the "" which is set by default to "".

So, by setting the default target to "" (aka. SystemV runlevel 3) you will start all but the X11-server. Your vncserver@:[0-9].service will be unaffected by that.

To do so, simply type:

 sudo ln -fs /lib/systemd/system/ /etc/systemd/system/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.