Centos7安装guacamole-HTML5-VNC
Guacamole 是无客户端的远程桌面网关,Guacamole 支持标准协议,比如 VNC 和 RDP。
安装java
export JAVA_HOME=/usr/jvm/java
export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=.:JAVA_HOME/lib:JAVAHOME/lib:{JRE_HOME}/libexport PATH=JAVA_HOME/bin:JAVAHOME/bin:PATHexport 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.gitgit 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 -pabc@123 guacamole_db
复制java的mysql驱动,驱动网上找的
cp mysql-connector-java-5.1.34-bin.jar /etc/guacamole/lib/
配置guacamole 连接数据库信息
[root@guacamole schema]# cat /etc/guacamole/guacamole.propertiesmysql-hostname: localhostmysql-port: 3306mysql-database: guacamole_dbmysql-username: rootmysql-password: abc@123mysql-user-required: true
启动tomcat完事
http://ip:8080/guacamole-1.1.0/、
默认用户密码 guacadmin/guacadmin