You can use a graphical interface to manage a Linux server. You can do this by installing a graphical interface and then using a VNC server.
Since the operation of a VNC server via public IP address can possibly create security gaps, we recommend the use of an SSH tunnel or a VPN connection to establish the VNC connection. In our tutorial we will discuss the possibility of the SSH tunnel.
1. Update the system
apt-get update; apt-get upgrade
2. LXDE GUI and VNC Server Installation
Then install LXDE and VNC Server:
apt-get install lxde tightvncserver xkb-data-i18n
3. Configuration of the VNC server
To write the basic configuration, first start the VNC server once (the VNC server asks for a password for access). Please note that the VNC server is started here as user root. It is safer to create an extra user for the start of the VNC server.Start the VNC server with the command:
tightvncserver :1
After the start, the configuration file was created, which must now be adjusted. The VNC server is stopped and the configuration file is edited:
tightvncserver -kill :1 nano ~/.vnc/xstartup touch ~/.XresourcesInsert the following lines at the end of the file:
lxterminal & /usr/bin/lxsession -s LXDE &This is to start LXDE, the configuration file should look something like this:
#!/bin/sh export XKB_DEFAULT_RULES=base export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb xrdb $HOME/.Xresources xsetroot -solid grey #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #x-window-manager & # Fix to make GNOME work export XKL_XMODMAP_DISABLE=1 /etc/X11/Xsession lxterminal & /usr/bin/lxsession -s LXDE &
If everything is entered correctly, restart the VNC server:
tightvncserver :1
4. Disable power saving options
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
5. Connection via SSH tunnel
tightvncserver -kill :1 tightvncserver :1 -localhost
ssh -f -N -L 5901:localhost:5901 root@<serverip>