VNC server setup on Fedora 21 droplet

I am having issues setting up VNC server on Fedora 21 droplet. To be exact, I am having issues following Step 5 on

as there is no vncserver file under /etc/init.d

but i do see it under /usr/bin

However when i execute

#/usr/bin/vncserver start

xstartup script is not created in my user’s home directory (/home/remote_user/.vnc) Below is the command and the output

#/usr/bin/vncserver start

usage: vncserver [:] [-name ] [-depth ] 
[-geometry x] 
[-pixelformat rgbNNN|bgrNNN] 
[-fp ] 
[-cc ] 
vncserver -kill

vncserver -list

Please help debug this.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The tutorial linked above seem to be for an older version of Fedora. Newer versions, Fedora 21 included, use systemd instead of traditional init scripts. When you install the tigervnc-server package, you will find a systemd service file located at /lib/systemd/system/vncserver@.service It needs to be copied to a new location:

sudo cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service

Next, you need to edit the file and replace instances of <USER> with your actual username. Finally, you can start the service with:

sudo systemctl start vncserver@:0.service

For a full rundown, check out the Fedora System Administrator Guide’s section on TigerVNC.