1 |
|
---|
2 | #
|
---|
3 | # Googled for gucamole ubuntu 20
|
---|
4 | #
|
---|
5 |
|
---|
6 | # Followed instuctions in
|
---|
7 | https://www.linuxbabe.com/ubuntu/apache-guacamole-remote-desktop-ubuntu-20-04
|
---|
8 |
|
---|
9 |
|
---|
10 | # Some additional useful details in:
|
---|
11 | https://www.tecmint.com/guacamole-access-remote-linux-windows-machines-via-web-browser/
|
---|
12 | https://www.teknotut.com/en/install-vnc-server-with-gnome-display-on-ubuntu-18-04/
|
---|
13 |
|
---|
14 | #
|
---|
15 | # Worked with the newer source code version available (1.3.0), rather than the 1.20 in article
|
---|
16 | #
|
---|
17 | https://apache.org/dyn/closer.cgi?action=download&filename=guacamole/1.3.0/source/guacamole-server-1.3.0.tar.gz
|
---|
18 |
|
---|
19 |
|
---|
20 | 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"
|
---|
21 |
|
---|
22 | 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"
|
---|
23 |
|
---|
24 |
|
---|
25 |
|
---|
26 | # Opted to compile up the client from soure:
|
---|
27 |
|
---|
28 | sudo apt-get install locate # for convenience (optional)
|
---|
29 |
|
---|
30 | sudo apt-get install maven
|
---|
31 | sudo apt install openjdk-11-jdk
|
---|
32 | export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
---|
33 |
|
---|
34 | mvn package
|
---|
35 |
|
---|
36 | # If issue to number of licenses comes up, run with:
|
---|
37 |
|
---|
38 | mvn -Drat.numUnapprovedLicenses=100 package
|
---|
39 |
|
---|
40 | sudo /bin/cp guacamole/target/guacamole-1.3.0.war /var/lib/tomcat9/webapps/guacamole.war
|
---|
41 | (dst war file owned: root:root -rw-r--r--)
|
---|
42 |
|
---|
43 |
|
---|
44 | # Took a different route than this article over which desktop window manager to use
|
---|
45 | # => went with the default one for Ubuntu 20
|
---|
46 | # and then got an 'ssh' connection via the browser going by following:
|
---|
47 | # https://www.tecmint.com/guacamole-access-remote-linux-windows-machines-via-web-browser/
|
---|
48 | #
|
---|
49 | # Also need to adjust sshd_config to allow authenticated login access
|
---|
50 |
|
---|
51 | sudo apt-get install ubuntu-desktop
|
---|
52 |
|
---|
53 | # Installs a lot of stuff!
|
---|
54 | #
|
---|
55 | # One of the key installs is 'gdm3' the Gnome display manager
|
---|
56 | # Reboot machine to get the graphical desktop layer up and running
|
---|
57 |
|
---|
58 | sudo systemctl status gdm
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 | For VNC Server:
|
---|
63 |
|
---|
64 | https://www.teknotut.com/en/install-vnc-server-with-gnome-display-on-ubuntu-18-04/
|
---|
65 |
|
---|
66 | For XRDP Server:
|
---|
67 |
|
---|
68 | https://www.e2enetworks.com/help/knowledge-base/how-to-install-remote-desktop-xrdp-on-ubuntu-18-04/
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 | ####
|
---|
74 |
|
---|
75 |
|
---|
76 | File: [email protected]
|
---|
77 |
|
---|
78 | Substitute with your ****USER**** with your username
|
---|
79 |
|
---|
80 | ====
|
---|
81 | [Unit]
|
---|
82 | Description=VNC Server
|
---|
83 | After=syslog.target network.target
|
---|
84 |
|
---|
85 | [Service]
|
---|
86 | Type=forking
|
---|
87 | User=****USER****
|
---|
88 | Group=****USER****
|
---|
89 | WorkingDirectory=/home/****USER****
|
---|
90 |
|
---|
91 | # Clean any existing files in /tmp/.X11-unix environment
|
---|
92 | #ExecStartPre=/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || :
|
---|
93 |
|
---|
94 | ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
|
---|
95 |
|
---|
96 | # Another reasonable choice for geometry:
|
---|
97 | # 1280x1024
|
---|
98 | ExecStart=/usr/bin/vncserver -localhost yes -geometry 1920x1080 -depth 24 :%i
|
---|
99 | ExecStop=/usr/bin/vncserver -kill :%i
|
---|
100 |
|
---|
101 | [Install]
|
---|
102 | ====
|
---|
103 |
|
---|
104 |
|
---|
105 | # At one stage it looked like I would benefit from having
|
---|
106 | # systen units installed, but in fact the /etc/init.d step
|
---|
107 | # in the instructions is already enough to trigger this
|
---|
108 |
|
---|
109 | # Obsolete adjustment:
|
---|
110 | # Wanted systemctl service commands, so tweaked configure to:
|
---|
111 | ./configure --with-init-dir=/etc/init.d --with-systemd-dir=/etc/systemd/system
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|