User Tools

Site Tools


infrastructure:vnc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure:vnc [2025/09/10 10:51] – [Method for Ubuntu 20.04] pmaniainfrastructure:vnc [2025/11/13 09:49] (current) pmania
Line 109: Line 109:
 <code> <code>
 # on your client machine # on your client machine
-ssh USERNAME@REMOTE.SERVER.IP -t -t -L 5902:localhost:5902  "x0vncserver -localhost -passwordfile ~/.vnc/passwd -fg -display :2"+ssh USERNAME@REMOTE.SERVER.IP -t -t -L 5901:localhost:5901  "x0vncserver -localhost -passwordfile ~/.vnc/passwd -fg -display :1"
 </code> </code>
 Please let this command and the terminal running it open while you want to work with VNC. Please let this command and the terminal running it open while you want to work with VNC.
Line 124: Line 124:
 In the tigervnc-viewer, first open the options and set the compression to 'auto'. In the security options, allow Encryption:None if it is not ticked already. In the tigervnc-viewer, first open the options and set the compression to 'auto'. In the security options, allow Encryption:None if it is not ticked already.
 Afterwards, you can enter '**localhost**' in the connection dialog and hit Connect if you're on Ubuntu 20.04. Afterwards, you can enter '**localhost**' in the connection dialog and hit Connect if you're on Ubuntu 20.04.
-For 24.04, please enter '**localhost:2**'.+For 24.04, please enter '**localhost:1**'.
 Please note: Please __do not__ enter the IP address of your remote machine here, but really 'localhost'. This works, because we have a SSH tunnel running (see above). Please note: Please __do not__ enter the IP address of your remote machine here, but really 'localhost'. This works, because we have a SSH tunnel running (see above).
  
 **Important: Once after every reboot, a user must log in to the server on site, because the virtual display is only launched after the first user's login.** This is similar to the 18.04 method mentioned above. **Important: Once after every reboot, a user must log in to the server on site, because the virtual display is only launched after the first user's login.** This is similar to the 18.04 method mentioned above.
 +
 +====Errors related to the display====
 +Depending on your system, using display :1 might not work. You can try to use :2 instead. In order to do that:
 +  * Change the both ports in the ssh commands to 5900+DISPLAYNUMBER. Example: for display :2, both ports should be 5902. for display :1, both parts should be 5901.
 +  * Change the -display parameter at the end of the ssh command.
  
 ====Vncviewer after Reboot==== ====Vncviewer after Reboot====
infrastructure/vnc.1757501503.txt.gz · Last modified: by pmania

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki