Desktop Environment : Configure VNC Server2026/04/27 |
|
Install and Configure VNC Server to connect with GUI to your Deskto from remote clients. |
|
| [1] | Install VNC server. |
|
root@dlp:~# apt -y install tigervnc-standalone-server
|
| [2] | Login as a user you'd like to set VNC. Note that tigervnc can only launch desktops that can be started with an X11 session, such as MATE. |
|
# set VNC password ubuntu@dlp:~$ Password: Verify: Would you like to enter a view-only password (y/n)? n
# [-xstartup]
# Cinnamon : /usr/bin/cinnamon-session # MATE : /usr/bin/mate-session # Xfce : /usr/bin/startxfce4 # [-geometry] : specify screen resolution # [-localhost] : [no] means vncserver listens all # [:1] : specify display number, [1] means vncserver listens 5901 port tigervncserver -xstartup /usr/bin/startxfce4 -SecurityTypes VncAuth,TLSVnc -geometry 1024x768 -localhost no :5 New Xtigervnc server 'dlp.srv.world:5 (ubuntu)' on port 5905 for display :5. Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/ubuntu/.config/tigervnc/passwd dlp.srv.world:5 to connect to the VNC server. # to stop VNC session, run like follows ubuntu@dlp:~$ tigervncserver -kill :5 Killing Xtigervnc process ID 17831... success! |
| [3] |
Install VNC viewer on client computer, this example in on Windows 11. ⇒ https://tigervnc.org/ After installing TigerVNC, click [vncviewer64.exe] to run, then, following screen is shown.Input [(Server's hostname or IP address):(display number)] like following example and then click [Connect] button. |
|
| [4] | VNC password is required to input for authentication. |
|
| [5] | If successfully passed authentication, VNC session starts like follows. |
|
| Sponsored Link |
|
|