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 [2021/12/09 11:55] pmaniainfrastructure:vnc [2022/04/13 13:18] (current) – [Vncviewer after Reboot] s_fuyedc
Line 112: Line 112:
 sudo apt-get update sudo apt-get update
 sudo apt-get install tigervnc-viewer sudo apt-get install tigervnc-viewer
 +vncviewer
 </code> </code>
  
 In the tigervnc-viewer, first open the options and set the compression to 'auto'. In the tigervnc-viewer, first open the options and set the compression to 'auto'.
-Afterwards, you can enter 'localhost' in the connection dialog and hit Connect.+Afterwards, you can enter '**localhost**' in the connection dialog and hit Connect
 +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.
 +
 +====Vncviewer after Reboot====
 +
 +Tested with GDM3 (20.04 default display manager).
 +
 +After reboot the desired display :1 is not loaded until you logged in on display :0. We need to connect to display :0 once after rebooting. With x11vnc you can easily open :0. A newly set-up system needs one UI login to establish general display settings.
 +
 +<code>
 +# on the remote machine
 +sudo apt-get update
 +sudo apt-get install x11vnc
 +</code>
 +
 +Get onto the remote machine and look for the Xauthority file in /run/user/
 +
 +<code>
 +# on the remote machine
 +sudo find /run/user/ -name Xauthority
 +</code>
 +
 +This will yield at least two paths, one with a 4-digit named directory, and another with 3 digits. We need the path with 3-digits. Now from the client you can launch x11vnc similar to the x0vncserver. Specify the path to Xauthority and replace '125' with yours.
 +
 +<code>
 +# on your client machine
 +ssh USERNAME@REMOTE.SERVER.IP -t -t -L 5900:localhost:5900 \
 +  "sudo x11vnc -display :0 -auth /run/user/125/gdm/Xauthority"
 +</code>
 +
 +Connect to x11vnc with vncviewer, it will show the login display :0. After login, close the connection  and use x0vncserver to launch display :1.
 +
infrastructure/vnc.1639050913.txt.gz · Last modified: 2021/12/09 11:55 by pmania

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki