[Remote Desktop] Getting started with Remote Desktop template

LawrenceLawrence Moderator
edited May 2016 in Various Tutorials
Introduction

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:

UltraVNC
TightVNC
TigerVNC

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

vnc://your_server_ip:5901

For your VNC Server address, enter

your_server_ip:5901

For first login vncuser password is: admin


IMPORTANT!

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:

vncpasswd

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"

into

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
vncpasswd
Go back to root:

exit

Restart VNC service:

service vncserver restart

For your new user VNC Server address is:

your_server_ip:5902
Sign In or Register to comment.