Sun

Getting started with Remote Desktop template

Getting started with Remote Desktop template

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

VNC password and vnc user password is the same as your root user provided in “Login details”

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 than 8 symbols.

3. Adding new user

Connect to server via SSH with rootand 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

Was this article helpful?

Related Articles