Changes

From Amahi Wiki
Jump to: navigation, search
139 bytes removed ,  00:35, 11 October 2016
no edit summary
For Fedora 23 or newer (Fedora 21, substitute <code>yum</code> for <code>dnf</code>):
sudo dnf install tomcat gcc cairo-devel libjpeg-devel libpng-devel uuid-devel freerdp-devel \
pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel \
libvorbis-devel libwebp-devel wget
==== Installing MySQL Authentication Module ====
Create a working directory and move there
sudo mkdir -p /var/hda/web-apps/guacamole/sqlauth && cd /var/hda/web-apps/guacamole/sqlauth
Download Guacamole's authorization module
sudo wget <nowiki>http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.9.tar.gz</nowiki>
Unpack it
sudo tar -zxf guacamole-auth-jdbc-0.9.9.tar.gz
Download MySQL and Java Connector
sudo wget <nowiki>http://dev.mysql.com/get/Downloads/Connector/j/mysql-connector-java-5.1.38.tar.gz</nowiki>
Unpack it
sudo tar -zxf mysql-connector-java-5.1.38.tar.gz
Create directories for the extensions in Tomcat's folders
sudo mkdir -p /usr/share/tomcat/.guacamole/{extensions,lib}
Move the modules to their respective directories.
sudo mv guacamole-auth-jdbc-0.9.9/mysql/guacamole-auth-jdbc-mysql-0.9.9.jar /usr/share/tomcat/.guacamole/extensions/ sudo mv mysql-connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar /usr/share/tomcat/.guacamole/lib/
Restart MariaDB
sudo systemctl restart mariadb.service
==== Loading Guacamole's schema into the MySQL Tables ====
cd /var/hda/web-apps/guacamole/sqlauth/guacamole-auth-jdbc-0.9.9/mysql/schema/
and run the following command:
sudo cat ./*.sql | mysql -u root -p hda
=== Installing Guacamole Server ===
Download Guacamole Server
sudo wget <nowiki>https://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.9.tar.gz</nowiki>
Unpackage it
Configure, make and install it.
sudo ./configure --with-init-dir=/etc/init.d sudo make sudo make install sudo ldconfig
=== Installing Guacamole Client ===
Create a new directory and move to it.
sudo mkdir -p /var/lib/guacamole && cd /var/lib/guacamole/
Download Guacamole Client.
sudo wget <nowiki>http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.9.war -O guacamole.war</nowiki>
Create a symbolic link of the file for Tomcat.
sudo ln -s /var/lib/guacamole/guacamole.war /var/lib/tomcat/webapps/
=== Guacamole's Configuration File ===
Create a directory for the configuration file.
sudo mkdir -p /etc/guacamole/
Create a file called "guacamole.properties" in that directory
sudo vi /etc/guacamole/guacamole.properties
Press the <i>i</i> key to begin inserting text into the guacamole.properties file and include the following contents:
Now create a symbolic link of this file for Tomcat
sudo ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat/.guacamole/
=== Starting Guacamole Server ===
Restart Tomcat.
sudo ​service tomcat restart​
Start Guacamole Server.
sudo /etc/init.d/guacd start
Configure Guacamole Server to start at boot.
sudo chkconfig tomcat on # chkconfig guacd on
== Configuring Guacamole and Amahi ==
Create Symbolic links between guacamole in Tomcat and Amahi's webapp directory
sudo ln -s /var/lib/tomcat/webapps/guacamole/* /var/hda/web-apps/guacamole/html
As root, create .htaccess file in /var/hda/web-apps/guacamole/html
Make sure the owner of all the file is apache and the group is users.
sudo chown -R apache:users /var/hda/web-apps/guacamole
Restart Apache
sudo service httpd restart
== Logging In to Guacamole ==
12,424

edits