centos html5,Centos7安装guacamole-HTML5-VNC

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:JAVAH​OME/lib:{JRE_HOME}/libexport PATH=JAVA_HOME/bin:JAVAH​OME/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值