Guacamole安装配置

Guacamole可以同HTML5来代理远程桌面协议(如: VNC, RDP, Telnet, SSH)

官网开发模块:http://guacamole.apache.org/doc/gug/developers-guide.html

1、关于Guacamole

Guacamole通过JS写的客户端,通过HTTP协议连接 Guacamole Server,Server连接到Remote Desktops

2、安装 基于JAVA环境,请自行安装jdk

必要依赖Cairo、libjpeg-turbo、libpng、OSSP UUID

Ubuntu:sudo apt-get -y --allow install libcairo2-dev libjpeg62-dev libpng12-dev libossp-uuid-dev

CentOS:sudo yun -y --allow install cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel uuid-devel

可选依赖FFmpeg、FreeRDP、Pango、libssh2、libtelnet、libVNCServer、PulseAudio、OpenSSL、libvorbis、libwebp

Ubuntu:sudo apt-get -y --allow install libavcodec-dev libavutil-dev libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev

CentOS:sudo yun -y --allow install freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-devel

Guacamole-Server

官网下载稳定版本http://guacamole.incubator.apache.org/releases/ 

cd ~ && wget http://mirrors.hust.edu.cn/apache/guacamole/0.9.13-incubating/source/guacamole-server-0.9.13-incubating.tar.gz
tar -zxvf guacamole-server-0.9.13-incubating.tar.gz
cd guacamole-server-0.9.13-incubating/
#开机自启动guacd
sudo ./configure --with-init-dir=/etc/init.d
make
make install
ldconfig

Client

cd ~ && wget http://mirrors.tuna.tsinghua.edu.cn/apache/guacamole/0.9.13-incubating/source/guacamole-client-0.9.13-incubating.tar.gz
tar -zxvf guacamole-client-0.9.13-incubating.tar.gz
cd guacamole-client-0.9.13-incubating/
mvn package #需要下载项目所需要的各种依赖,注意GWF
#部署到Tomcat
cp guacamole/target/guacamole-0.9.13-incubating.war /var/lib/tomcat8/webapps/guacamole.war # Debian / Ubuntu系统中
(或:cp guacamole/target/guacamole-0.9.13-incubating.war /usr/share/tomcat8/webapps/guacamole.war #Fedora / CentOS / RHEL系统中)

Guacamole配置

Guacamole默认从user-mapping.xml读取所有的连接信息

mkdir -p /etc/guacamole/ && gedit /etc/guacamole/guacamole.properties

修改user-mapping指向

# 配置用户映射文件
basic-user-mapping: /etc/guacamole/user-mapping.xml

配置user- mapping.xml

示例


       
               
                        rdp
                        10.0.1.58
                        3389
                        administrator
                        20181023
               

               
                        vnc
                        10.0.1.58
                        5900
                        20181023
               

       

重启tomcat和guacd服务

/etc/init.d/tomcat8 restart
/etc/init.d/guacd start

截止到当前,在浏览器中输入http://localhost:8080/guacamole/,便可以打开登录页面

你可能感兴趣的:(随笔)