# # Googled for gucamole ubuntu 20 # # Followed instuctions in https://www.linuxbabe.com/ubuntu/apache-guacamole-remote-desktop-ubuntu-20-04 # Some additional useful details in: https://www.tecmint.com/guacamole-access-remote-linux-windows-machines-via-web-browser/ https://www.teknotut.com/en/install-vnc-server-with-gnome-display-on-ubuntu-18-04/ # # Worked with the newer source code version available (1.3.0), rather than the 1.20 in article # https://apache.org/dyn/closer.cgi?action=download&filename=guacamole/1.3.0/source/guacamole-server-1.3.0.tar.gz wget -O guacamole-server-1.3.0.tar.gz "https://apache.org/dyn/closer.cgi?action=download&filename=guacamole/1.3.0/source/guacamole-server-1.3.0.tar.gz" wget -O guacamole-client-1.3.0.tar.gz "https://apache.org/dyn/closer.cgi?action=download&filename=guacamole/1.3.0/source/guacamole-client-1.3.0.tar.gz" # Opted to compile up the client from soure: sudo apt-get install locate # for convenience (optional) sudo apt-get install maven sudo apt install openjdk-11-jdk export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mvn package # If issue to number of licenses comes up, run with: mvn -Drat.numUnapprovedLicenses=100 package sudo /bin/cp guacamole/target/guacamole-1.3.0.war /var/lib/tomcat9/webapps/guacamole.war (dst war file owned: root:root -rw-r--r--) # Took a different route than this article over which desktop window manager to use # => went with the default one for Ubuntu 20 # and then got an 'ssh' connection via the browser going by following: # https://www.tecmint.com/guacamole-access-remote-linux-windows-machines-via-web-browser/ # # Also need to adjust sshd_config to allow authenticated login access sudo apt-get install ubuntu-desktop # Installs a lot of stuff! # # One of the key installs is 'gdm3' the Gnome display manager # Reboot machine to get the graphical desktop layer up and running sudo systemctl status gdm For VNC Server: https://www.teknotut.com/en/install-vnc-server-with-gnome-display-on-ubuntu-18-04/ For XRDP Server: https://www.e2enetworks.com/help/knowledge-base/how-to-install-remote-desktop-xrdp-on-ubuntu-18-04/ #### File: vncserve@.service Substitute with your ****USER**** with your username ==== [Unit] Description=VNC Server After=syslog.target network.target [Service] Type=forking User=****USER**** Group=****USER**** WorkingDirectory=/home/****USER**** # Clean any existing files in /tmp/.X11-unix environment #ExecStartPre=/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || : ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 # Another reasonable choice for geometry: # 1280x1024 ExecStart=/usr/bin/vncserver -localhost yes -geometry 1920x1080 -depth 24 :%i ExecStop=/usr/bin/vncserver -kill :%i [Install] ==== # At one stage it looked like I would benefit from having # systen units installed, but in fact the /etc/init.d step # in the instructions is already enough to trigger this # Obsolete adjustment: # Wanted systemctl service commands, so tweaked configure to: ./configure --with-init-dir=/etc/init.d --with-systemd-dir=/etc/systemd/system