[Remote Desktop] Getting started with Remote Desktop template

edited March 5 in Various Tutorials

In computing, Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.

1. Connecting to VNC server

Open your local VNC client, which will vary depending on your operating system.

On Windows, you can use:


On OS X, you can use the built-in Screen Sharing app or access this app through Safari. In Safari, you can enter


For your VNC Server address, enter


For first login vncuser password is: admin123


When connected for the first time, within minute vncuser password will be changed, which will appear on the user's desktop file named "newvncpassword.txt.

For safety reasons, it is recommended to copy the new password and to delete "newvncpassword.txt" file.

If you logged out from VNC without copying new password you can find it by connecting to server via SSH with root and executing command:

cat /home/vncuser/Desktop/newvncpassword.txt

2. Password changing

If you want to change randomly generated password to your own you need to go to:

Applications -> System Tools -> Terminal

Exacute command:


You will be asked to enter and reenter new password. Password can not be longer then 8 symbols.

3. Adding new user

Connect to server via SSH with root and execute commands below:
useradd name_of_new_user
passwd name_of_new_user
You will be asked to enter and reenter password for you new user.

Now we need to configure "/etc/sysconfig/vncservers" file:

nano /etc/sysconfig/vncservers

Change line:



VNCSERVERS="1:vncuser 2:name_of_new_user"

And add line:

VNCSERVERARGS[2]="-geometry 1024x768"

Save and exit ( Ctrl + O, Ctrl + X).

Now we need to add password for connection via VNC for our new user. Login as our new user and add password:
su - name_of_new_user
Go back to root:


Restart VNC service:

service vncserver restart

For your new user VNC Server address is:

Sign In or Register to comment.
© 2013 - 2018 Time4VPS. All rights reserved. Powered by Vanilla
The opinions or views of users on the forum are those of the author and not of Time4VPS.