infrastructure:x11vnc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
infrastructure:x11vnc [2021/09/23 12:41] – s_fuyedc | infrastructure:x11vnc [2021/12/09 10:26] (current) – pmania | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Ubuntu 18.04 | + | Please check the following |
- | Package https:// | + | |
- | + | ||
- | **On remote machine (server)** | + | |
- | + | ||
- | Gnome Display Manager makes problems for starting a x11 session because of authorizations. | + | |
- | Install and use lightdm instead. | + | |
- | < | + | |
- | sudo apt-get install lightdm | + | |
- | </ | + | |
- | Use dpkg to set the display manager to // | + | |
- | < | + | |
- | sudo dpkg-reconfigure lightdm | + | |
- | </ | + | |
- | With lightdm set as display manager we can install x11vnc on the server: | + | |
- | < | + | |
- | sudo apt-get install x11vnc | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | **On local machine (client)** | + | |
- | + | ||
- | Install a vncviewer. x11vnc recommends tightvnc. | + | |
- | < | + | |
- | sudo apt install xfce4 xfce4-goodies xtightvncviewer | + | |
- | </ | + | |
- | + | ||
- | **Preparing the server** | + | |
- | + | ||
- | Before the remote client can connect to the server, the server needs to be prepared. | + | |
- | On the server a monitor has to be connected. This enables the server to open an actual display, to which the remote client can attach itself to. | + | |
- | + | ||
- | //If anything else than lightdm is used:// 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. | + | |
- | + | ||
- | **Start server and connect to it (from client)** | + | |
- | + | ||
- | Launching the x11vnc server and connecting to it via tightvnc is done from the client' | + | |
- | + | ||
- | The following | + | |
- | < | + | |
- | ssh -t -L 5900:localhost: | + | |
- | </code> | + | |
- | You'll be asked for the user's password first, then for a password of your choice for the vnc session. It's best to store this command in a bash alias, since it is required every time you want to establish a vnc connection. The first part connects to the server via ssh, the latter launches the x11vnc server on display :0, which is the same display as can be seen on the server' | + | |
- | + | ||
- | Connecting visually to the x11vnc server from your client machine is done with the following command. As with the previous command, it is advised to create a bash alias for it. | + | |
- | < | + | |
- | vncviewer -encodings " | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | **Important notes on how to use** | + | |
- | + | ||
- | If work is done on the remote server, leave the server unlocked and simply close the tightvnc window, this will terminate the client' | + | |
- | + | ||
- | + | ||
- | If an other user is currently connected to the server, it is indicated by your x11vnc-server' | + | |
- | < | + | |
- | bind: Address already in use | + | |
- | channel_setup_fwd_listener_tcpip: | + | |
- | Could not request local forwarding. | + | |
- | </ | + | |
- | Furthermore, | + | |
- | < | + | |
- | Connected to RFB server, using protocol version 3.8 | + | |
- | vncviewer: VNC server closed connection | + | |
- | </ | + |
infrastructure/x11vnc.1632400865.txt.gz · Last modified: 2021/09/23 12:41 by s_fuyedc