Virtual Network Computing (VNC) Server Setup

What is VNC Server?

VNC (Virtual Network Computing) is a graphical desktop-sharing system that allows you to remotely control another computer.
It works on the client-server model where the VNC Server runs on the remote machine, and the VNC Client is used to connect to it.

Why Do We Need VNC Server?

Sometimes we need to access a server or computer remotely with a graphical interface instead of just the command line.
VNC is useful for system administrators, students, and IT professionals to manage systems remotely.

VNC Server Details

  • Service Name: VNC Server (like TigerVNC or RealVNC)
  • Default Port: 5901 (for display :1), 5902 (for display :2)
  • Protocol: RFB (Remote FrameBuffer)
  • Server IP: Example – 192.168.1.100

Install VNC Server on Linux

# For Rocky/RedHat/CentOS
sudo dnf install tigervnc-server -y

# For Ubuntu/Debian
sudo apt install tigervnc-standalone-server tigervnc-common -y

Configure VNC Server

# Set VNC password
vncpasswd

# Start VNC server
vncserver :1

# Stop VNC server
vncserver -kill :1

Configuration File

The configuration file for VNC server can usually be found at:

~/.vnc/xstartup

Accessing VNC from Client Side

To connect to the VNC server, you need a VNC client tool:

  • Windows: Use VNC Viewer (RealVNC Viewer) or TightVNC Viewer
  • Linux: Use vinagre, remmina, or vncviewer
  • Mac: Screen Sharing app or RealVNC Viewer

Example to connect from Linux client:

vncviewer 192.168.1.100:1

Conclusion

VNC Server is a simple and powerful tool that helps in remotely managing servers and desktops with a graphical interface.
It is widely used in IT industries, classrooms, and training environments for better visualization and control.

Leave a Reply

Your email address will not be published. Required fields are marked *