Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Fedora 16, and I've set up vncserver, using the systemctl method...


Description=Remote desktop service (VNC)

ExecStart=/usr/bin/vncserver :1 -geometry 1280x1024
ExecStop=/usr/bin/vncserver -kill :1


I have run:

systemctl --system daemon-reload
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service

It appeared to work fine.

Then I edited the ~build/.vnc/xstartup script. Looking in it, I see "twm" is used. I added "xhost +".

When I restarted vncserver through systemctl, the change didn't take effect. In fact, I see "twm" is not used at all, but "gnome" is, which is default on that system.

Why would the system not use the xstartup script? What is it using instead? How can I get systemctl/vncserver to use this xstartup script?

share|improve this question
up vote 0 down vote accepted

It turns out that vncserver WAS using the script, but by the time it made it to the bottom, it was no longer processing lines, given the "exec" calls above it.

gnome was running, because gnome was found by the /etc/X11/xinit/xinitrc script exec'ed.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .