guacamole部署

Posted menkeyi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了guacamole部署相关的知识,希望对你有一定的参考价值。

centos7.6

 

安装java

 

export JAVA_HOME=/usr/jvm/java
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:${JRE_HOME}/lib
export PATH=$JAVA_HOME/bin:$PATH
export GUACAMOLE_HOME=/etc/guacamole

source /etc/profile

 

配置GUACAMOLE_HOME

mkdir /etc/guacamole

mkdir /etc/guacamole/extensions/

mkdir /etc/guacamole/lib

mkdir /root/.guacamole

touch /etc/guacamole/guacamole.properties

ln -s /etc/guacamole/guacamole.properties /root/.guacamole/

 

安装依赖包

yum install -y cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel uuid-devel ffmpeg-devel freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-deve  libwebsockets-devel libwebsockets mariadb mariadb-server wget git libtool

 

安装apache-maven

wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo

yum install -y apache-maven

 

git下载guacamole-server 和 guacamole-client

git clone git://github.com/apache/guacamole-server.git
git clone git://github.com/apache/guacamole-client.git

安装guacamole-server

 cd guacamole-server/

autoreconf -fi

./configure --with-init-dir=/etc/init.d

make && make install

ldconfig

 

准备tomcat

apache-tomcat-8.5.38

 

安装guacamole-client

cd guacamole-client/

mvn package

cp guacamole-client/guacamole/target/guacamole-1.1.0.war /root/apache-tomcat-8.5.38/webapps/

 

 

配置数据库

systemctl start mariadb

创建数据库

 CREATE DATABASE `guacamole_db` CHARACTER SET utf8 COLLATE utf8_general_ci;

还原sql

cd /root/guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/schema

cat *.sql | mysql -u root [email protected] guacamole_db

复制java的mysql驱动,驱动网上找的

cp mysql-connector-java-5.1.34-bin.jar /etc/guacamole/lib/

 

配置guacamole 连接数据库信息

[[email protected] schema]# cat /etc/guacamole/guacamole.properties
mysql-hostname: localhost
mysql-port: 3306
mysql-database: guacamole_db
mysql-username: root
mysql-password: [email protected]
mysql-user-required: true

 

 

启动tomcat完事

http://ip:8080/guacamole-1.1.0/、

默认用户密码    guacadmin/guacadmin

以上是关于guacamole部署的主要内容,如果未能解决你的问题,请参考以下文章

Jumpserver高可用集群部署:RDP代理模块guacamole部署并实现系统服务管理

guacamole dip 是一种啥食物

guacamole免密登录,guacamole不通过登录界面登录,guacamole指定用户名免密登录

Guacamole搭建,一个基于HTML5的远程桌面

Guacamole搭建,一个基于HTML5的远程桌面

沙箱-guacamole