Installiamo l’ambiente desktop (MATE) e Firefox
# apt install mate-desktop-environment-extras
# apt install firefox-esr
Installiamo VNC
# apt install vnc4server
# vncserver -localhost no -geometry 1680x1050 -depth 24
# vncserver -kill :1
# nano ~/.vnc/xstartup
e inserisci:
autocutsel -fork
exec /usr/bin/mate-session &
In caso di errori editare ~/.vnc/xstartup con:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# 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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
x-window-manager &
exec /usr/bin/mate-session &
Per l’ambiente GNOME
Installare GNOME con #tasksel
Editare: /root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# exec /etc/X11/xinit/xinitrc
/usr/bin/gnome-session &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
# x-window-manager &