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


Description=Remote desktop service (VNC)
After=syslog.target network.target

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?


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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