Guacamole Installation: Difference between revisions
From blinkenwiki
Blinkenjim (talk | contribs) No edit summary |
Blinkenjim (talk | contribs) |
||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Basic stuff == | |||
<pre> | <pre> | ||
sudo | sudo apt install make | ||
sudo apt | sudo apt install emacs-nox | ||
</pre> | </pre> | ||
== Guac Server == | |||
Required stuff: | Required stuff: | ||
Line 28: | Line 22: | ||
<pre> | <pre> | ||
sudo apt install libvncclient1 | sudo apt install libvncclient1 | ||
sudo apt install freerdp2-dev | #sudo apt install freerdp2-dev | ||
sudo apt install libssl-dev | |||
sudo apt install libssh2-1-dev | sudo apt install libssh2-1-dev | ||
sudo apt install libpango1.0-dev | sudo apt install libpango1.0-dev | ||
Line 38: | Line 33: | ||
<pre> | <pre> | ||
./configure --with-init-dir=/etc/init.d --disable-dependency-tracking | ./configure --with-init-dir=/etc/init.d #--disable-dependency-tracking | ||
</pre> | |||
Build and install: | |||
<pre> | |||
make | |||
sudo make install | |||
sudo ldconfig | |||
</pre> | |||
== Guac Client == | |||
Install tomcat: | |||
<pre> | |||
sudo apt install tomcat9 | |||
sudo cp ~/Downloads/guacamole-1.3.0.war /var/lib/tomcat9/webapps/ | |||
systemctl restart tomcat9 | |||
</pre> | |||
Note: after copying the war file to the webapps directory, and restarting Tomcat, it will un-jar the war file into guacamole-1.3.0. This makes the file accessible at <code>http://localhost:8080/guacamole-1.3.0</code>. To make the URL more convenient, just move the unpacked directory to ''guacamole'' and then delete the war file: | |||
<pre> | |||
mv /var/lib/tomcat9/webapps/guacamole-1.3.0 /var/lib/tomcat9/webapps/guacamole | |||
rm /var/lib/tomcat9/webapps/guacamole-1.3.0.war | |||
</pre> | |||
The guad daemon must be restarted: | |||
<pre> | |||
sudo /etc/init.d/guacd start | |||
</pre> | |||
The Guacamole web will now be available at <code>http://localhost:8080/guacamole</code>. | |||
== Configure guacd == | |||
<pre> | |||
cd /etc | |||
mkdir guacamole | |||
cd guacamole | |||
mkdir lib | |||
mkdir extensions | |||
</pre> | </pre> | ||
Edit <code>guocamole.properties</code> and enter: | |||
<pre> | |||
# Hostname and port of guacamole proxy | |||
guacd-hostname: localhost | |||
guacd-port: 4822 | |||
</pre> | |||
Edit <code>user-mapping.xml</code> | |||
<pre> | |||
<user-mapping> | |||
<!-- Per-user authentication and config information --> | |||
<authorize username="foo" password="bar"> | |||
<protocol>vnc</protocol> | |||
<param name="hostname">127.0.0.1</param> | |||
<param name="port">5901</param> | |||
<param name="password">nitnarcu</param> | |||
</authorize> | |||
</user-mapping> | |||
</pre> | |||
Restart <code>guacd</code>: | |||
<pre> | |||
/etc/init.d/guacd restart | |||
</pre> | |||
== Xvnc == | |||
<pre> | |||
apt install xterm | |||
apt install tightvncserver | |||
apt install wmaker | |||
</pre> | |||
== MagicDraw Setup == | |||
* Download MagicDraw_190_sp4_no_install.zip | |||
<pre> | |||
sudo apt install unzip | |||
sudo apt install openjdk-8-jdk | |||
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ | |||
export PATH=$JAVA_HOME/bin:$PATH | |||
</pre> | |||
== TBD == | |||
* Install fonts for MagicDraw – arial to begin with | |||
* ...''or'' install Helvetica and figure out how to configure font substitution | |||
* Edit the wmaker menus to add MagicDraw, delete all the unneeded stuff | |||
* Make some tweaks to the way MagicDraw works. |
Latest revision as of 19:44, 5 June 2021
Basic stuff
sudo apt install make sudo apt install emacs-nox
Guac Server
Required stuff:
sudo apt install libcairo2-dev sudo apt install libjpeg-turbo8-dev sudo apt install libpng-dev sudo apt install libtool-bin sudo apt install libossp-uuid-dev
Optional stuff:
sudo apt install libvncclient1 #sudo apt install freerdp2-dev sudo apt install libssl-dev sudo apt install libssh2-1-dev sudo apt install libpango1.0-dev sudo apt install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev sudo apt install libvncserver-dev
Configuring:
./configure --with-init-dir=/etc/init.d #--disable-dependency-tracking
Build and install:
make sudo make install sudo ldconfig
Guac Client
Install tomcat:
sudo apt install tomcat9 sudo cp ~/Downloads/guacamole-1.3.0.war /var/lib/tomcat9/webapps/ systemctl restart tomcat9
Note: after copying the war file to the webapps directory, and restarting Tomcat, it will un-jar the war file into guacamole-1.3.0. This makes the file accessible at http://localhost:8080/guacamole-1.3.0
. To make the URL more convenient, just move the unpacked directory to guacamole and then delete the war file:
mv /var/lib/tomcat9/webapps/guacamole-1.3.0 /var/lib/tomcat9/webapps/guacamole rm /var/lib/tomcat9/webapps/guacamole-1.3.0.war
The guad daemon must be restarted:
sudo /etc/init.d/guacd start
The Guacamole web will now be available at http://localhost:8080/guacamole
.
Configure guacd
cd /etc mkdir guacamole cd guacamole mkdir lib mkdir extensions
Edit guocamole.properties
and enter:
# Hostname and port of guacamole proxy guacd-hostname: localhost guacd-port: 4822
Edit user-mapping.xml
<user-mapping> <!-- Per-user authentication and config information --> <authorize username="foo" password="bar"> <protocol>vnc</protocol> <param name="hostname">127.0.0.1</param> <param name="port">5901</param> <param name="password">nitnarcu</param> </authorize> </user-mapping>
Restart guacd
:
/etc/init.d/guacd restart
Xvnc
apt install xterm apt install tightvncserver apt install wmaker
MagicDraw Setup
- Download MagicDraw_190_sp4_no_install.zip
sudo apt install unzip sudo apt install openjdk-8-jdk export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ export PATH=$JAVA_HOME/bin:$PATH
TBD
- Install fonts for MagicDraw – arial to begin with
- ...or install Helvetica and figure out how to configure font substitution
- Edit the wmaker menus to add MagicDraw, delete all the unneeded stuff
- Make some tweaks to the way MagicDraw works.