标签:
更新
apt-get update && apt-get -y dist-upgrade
安装依赖库
apt-get -y install libcairo2-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev mysql-server mysql-client mysql-common mysql-utilities tomcat8
把guacamole添加到tomcat中
echo "" >> /etc/default/tomcat8 echo "# GUACAMOLE EVN VARIABLE" >> /etc/default/tomcat8 echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/tomcat8
下载guacamole文件及mysql
wget -O guacamole-0.9.8.war http://downloads.sourceforge.net/project/guacamole/current/binary/guacamole-0.9.8.war wget -O guacamole-server-0.9.8.tar.gz http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.8.tar.gz wget -O guacamole-auth-jdbc-0.9.8.tar.gz http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.8.tar.gz wget -O mysql-connector-java-5.1.36.tar.gz http://dev.mysql.com/get/Downloads/Connector/j/mysql-connector-java-5.1.36.tar.gz
解压这些文件
tar -xzf guacamole-server-0.9.8.tar.gz tar -xzf guacamole-auth-jdbc-0.9.8.tar.gz tar -xzf mysql-connector-java-5.1.36.tar.gz
创建guacmole的文件夹
mkdir /etc/guacamole mkdir /etc/guacamole/lib mkdir /etc/guacamole/extensions mkdir /usr/share/tomcat8/.guacamole
安装gucamole
cd guacamole-server-0.9.8 ./configure --with-init-dir=/etc/init.d make make install ldconfig systemctl enable guacd cd ..
把文件移动到相应的位置
mv guacamole-0.9.8.war /etc/guacamole/guacamole.war ln -s /etc/guacamole/guacamole.war /var/lib/tomcat8/webapps/ cp mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar /etc/guacamole/lib/ cp guacamole-auth-jdbc-0.9.8/mysql/guacamole-auth-jdbc-mysql-0.9.8.jar /etc/guacamole/extensions/
guacmole的相关设置
echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties echo "mysql-database: guacamole_db" >> /etc/guacamole/guacamole.properties echo "mysql-username: guacamole_user" >> /etc/guacamole/guacamole.properties echo "mysql-password: PASSWORD" >> /etc/guacamole/guacamole.properties ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat8/.guacamole/ service tomcat8 restart
mysql的设置
mysql -u root -pMYSQLROOTPASSWORD create database guacamole_db; create user ‘guacamole_user‘@‘localhost‘ identified by ‘PASSWORD‘; GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO ‘guacamole_user‘@‘localhost‘; flush privileges; quit cat guacamole-auth-jdbc-0.9.8/mysql/schema/*.sql | mysql -u root -pMYSQLROOTPASSWORD guacamole_db
标签:
原文地址:http://www.cnblogs.com/ji-yun/p/4982972.html