Introduction
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 keyboard and mouse events from one computer to another while relaying graphical screen updates back in the opposite direction over a network.
1. Connecting to VNC Server
To connect to a VNC server, open your local VNC client, which varies depending on your operating system.
On Windows:
On OS X:
VNC Server Address:
- Enter:
your_server_ip:5901
The VNC password and the VNC user password are the same as your root user password provided in "Login details."
2. Changing the Password
If you want to change the randomly generated password to your own, follow these steps:
Go to:
Applications -> System Tools -> Terminal
Execute the command:
vncpasswd
You will be prompted to enter and re-enter the new password. Note that the password cannot be longer than 8 characters.
3. Adding a New User
To add a new user, connect to the server via SSH with root and execute the following commands:
- Add the new user:
useradd name_of_new_user
passwd name_of_new_user
You will be asked to enter and re-enter a password for the new user.
Configure the /etc/sysconfig/vncservers
file:
nano /etc/sysconfig/vncservers
Change the line:
VNCSERVERS="1:vncuser"
to:
VNCSERVERS="1:vncuser 2:name_of_new_user"
Add the line:
VNCSERVERARGS[2]="-geometry 1024x768"
Save and exit (Ctrl + O
, Ctrl + X
).
Set the VNC password for the new user:
su - name_of_new_user
vncpasswd
Return to the root user:
exit
Restart the VNC service:
service vncserver restart
VNC Server Address for the New User:
- Enter:
your_server_ip:5902
By following these steps, you can set up and manage your VNC connections, add new users, and customize passwords.