Remote desktop on ubuntu 18.04
15 Aug 2018Building
1 2 3 4 5 6 7 8 |
|
From server distribution to desktop distribution
1 2 3 |
|
VNC
vino
set the encryption
1 2
gsettings get org.gnome.Vino require-encryption gsettings set org.gnome.Vino require-encryption false
make sure your network is managed by NetworkManager
/etc/netplan/01-netcfg.yaml
1 2 3
network: version: 2 renderer: NetworkManager
x11vnc & x0vncserver
- both of them can redirect the DISPLAY:0
vnc4server
fix libxcb
1
sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
root/.vnc/xstartup
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & startxfce4 &
start vnc4server
vnc4server -geometry 1920x1080
Reduce the VNC security
vncconfig -display :1 -set BlacklistTimeout=0 -set BlacklistThreshold=1000000
: