Report this

What is the reason for this report?

VNC server setup on Fedora 21 droplet

Posted on May 1, 2015

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

http://www.tecmint.com/install-tightvnc-remote-desktop/

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 ] 
[-fg] 
[-autokill] 
vncserver -kill

vncserver -list

Please help debug this.



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.