
|-24168 Xvnc4 :1 -desktop ubuntu-01:1 (computingforgeeks) -auth /home/computingforgeeks/.Xauthority -geometry 1280x800 -depth 24 -rfbwait 30000 -rfbauth /home/v

Process: 24154 ExecStartPre=/usr/bin/vncserver -kill :1 > /dev/null 2>&1 (code=exited, status=2)ĬGroup: /system.slice/system-vncserver.slice/ Process: 24161 ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :1 (code=exited, status=0/SUCCESS) Loaded: loaded (/etc/systemd/system/ indirect vendor preset: enabled)Īctive: active (running) since Wed 11:32:50 PST 7s ago Sudo systemctl enable -now Ĭheck status: $ systemctl status Reload systemd and start VNC sudo systemctl daemon-reload PIDFile=/home/ computingforgeeks/.vnc/%H:%i.pidĮxecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1ĮxecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%iĭon’t forget to replace computingforgeeks with your actual remote user username. WorkingDirectory=/home/ computingforgeeks sudo vim /etc/systemd/system/ ĭescription=Start TightVNC server at startup Stop the current VNC server instance: vncserver -kill :1Ĭreate a systemd service unit file for managing VNC Server. Once connected, you’ll see the default Xfce Desktop environment Step 5: Configure Systemd When prompted for password, enter the password created during the VNC server configuration. Once your SSH tunnel is running, connect to localhost:5901 using VNC client. On Arch Linux, install it with: sudo pacman -S tigervnc Then install vncviewer client sudo apt install tigervnc-viewer Create an ssh tunnel to VNC server using the following command ssh -C -L 5901:127.0.0.1:5901 You can connect to remote desktop using a VNC client and SSH tunneling. Log file is /home/computingforgeeks/.vnc/ubuntu-01:1.log Step 4: Connect to the VNC Desktop

Sudo apt -y install vnc4server Step 2: Install Desktop EnviromentĮnsure you have a Desktop Environment installed on your Ubuntu 18.04.
