1 安装guacamole所需要的依赖库

必需安装的库有

yum install -y cairo-devel libjpeg-turbo-devel libpng-devel uuid-devel

可选择安装的库

yum install -y freerdp-devel pango-devel libssh2-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-devel

2 安装配置tomcat,架设服务

2.1 下载tomcat

yum -y install tomcat

2.2 配置环境变量,使tomcat可以找到guacamole客户端配置

vim /etc/tomcat/tomcat.conf

加入下面一句

GUACAMOLE_HOME=/etc/guacamole

其中GUACAMOLE_HOME文件夹在后面创建。

注意:

2.3 安装guacamole

2.3.1 编译安装guacamole-server

1.下载服务端压缩包

http://guacamole.incubator.apache.org/releases/0.9.13-incubating/ 地址中下载guacamole-server-0.9.13-incubating.tar.gz

使用wget命令或者本地下载后使用ftp工具上传到服务器

2.解压

tar -xzf guacamole-server-0.9.13-incubating.tar.gz

3.编译安装

cd guacamole-server-0.9.13-incubating/
sudo ./configure --with-init-dir=/etc/init.d
make
make install
ldconfig

2.3.2 安装guacamole-client

1.下载客户端包

http://guacamole.incubator.apache.org/releases/0.9.13-incubating/ 地址中下载guacamole-0.9.13-incubating.war

使用wget命令或者本地下载后使用ftp工具上传到服务器

2.将客户端包部署到Tomcat

cp guacamole-0.9.13.war /var/lib/tomcat/webapps/guacamole.war

3 配置guacamole

创建配置文件夹

mkdir -p /etc/guacamole/

配置用户映射文件

vim /etc/guacamole/guacamole.properties

将文件内容改为下面的 basic-user-mapping: /etc/guacamole/user-mapping.xml

编写用户映射配置文件

vim /etc/guacamole/user-mapping.xml

在配置文件内,按下面的格式输入信息:

<user-mapping>

    <authorize
username="admin"
password="123456"> <!-- First authorized connection -->
<connection name="ssh">
<protocol>ssh</protocol>
<param name="hostname">123.206.xx.xx</param>
<param name="port">22</param>
</connection> <!-- Second authorized connection -->
<connection name="otherhost">
<protocol>vnc</protocol>
<param name="hostname">otherhost</param>
<param name="port">5900</param>
<param name="password">VNCPASS</param>
</connection> </authorize> </user-mapping>

以上只是极简配置,该文件更改后即时生效,具体参数配置文档: http://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html

4 重启tomcat,并启动guacd服务

service tomcat start
/etc/init.d/guacd start

在浏览器地址栏输入 http://xxx.xxx.xxx.xxx:8080/guacamole/ ,可以看到登入界面(第一次加载比较慢)

使用admin和密码123456登陆

点击ssh进入服务器123.206.xx.xx的登陆认证

登陆成功

参考资料

http://www.jianshu.com/p/aa63006b2edb

centos7.3配置guacamole的更多相关文章

  1. Guacamole之配置Guacamole(五)

    摘要 在网上看到一篇Guacamole官方手册的翻译,但是找不到后续,于是想自己也翻译几篇,有时间的话,会尽量多翻译一些. 原文地址:http://guacamole.incubator.apache ...

  2. Centos7网络配置,vsftpd安装及530报错解决

    今天在虚拟机安装CentOS7,准备全新安装LTMP,结果又是一堆问题,不过正好因为这些出错,又给自己长了见识. 1,CentOS7网络配置 最小化安装CentOs7后,ifconfig提示comma ...

  3. Centos7安装配置gitlab

    Centos7安装配置gitlab 这篇文字我会介绍在Centos7上安装gitlab,配置gitlab的smtp,并且创建项目demo. sudo yum install openssh-serve ...

  4. VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装

    VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装在阿里云开源镜像地址下载镜像Index of /centos/7.2.1511/isos/x86_64/http://mirro ...

  5. centos7初步配置

    centos7初步配置 首先安装lrzsz zip/unzip yum -y install lrzsz yum -y install zip unzip 安装vim yum install vim* ...

  6. centos7网络配置总结

    centos7网络配置 --wang 一.通过配置文件 配置/etc/sysconfig/network-scripts/en.. 记忆信息量大,易出错,不推荐使用.配置多台电脑静态ip可以通过复制模 ...

  7. CentOS7基本配置一

    CentOS7基本配置一 安装VMwareTools 1.点击重新安装VM-tool, 继而找到压缩文件VMwareTools-10.2.0...tar.gz,复制到桌面下,解压这么压缩文件到桌面下 ...

  8. Centos7安装配置Apache+PHP+Mysql+phpmyadmin

    转载自: Centos7安装配置Apache+PHP+Mysql+phpmyadmin 一.安装Apache yum install httpd 安装成功后,Apache操作命令: systemctl ...

  9. VMware14 安装CentOS7及其配置;CentOS7配置网桥,做远程连接;

    1.VMware14安装        进入百度链接,按照图形安装就好了.https://jingyan.baidu.com/article/9f7e7ec09da5906f281554d6.html ...

随机推荐

  1. ES7的Async/Await的简单理解

    Async/Await 的个人见解 正文: async,顾名思义,一个异步执行的功能,而 await 则是配合 async 使用的另一个关键字,也是闻字识其意,就是叫你等待啦! 二者配合食用效果更佳哦 ...

  2. Linux修改文件permission可执行属性

    列出文件属性 ls -al 修改文件属性为可读.可写 sudo chmod -c 777 <your file name>

  3. python pip安装报错python setup.py egg_info failed with error code 1

    安装locust遇到点问题折腾了好一会儿,记录一下. 使用命令pip install locustio提示python setup.py egg_info  failed with error cod ...

  4. php5.5.15注释问题PHP Deprecated: Comments starting with '#' are deprecated in *.ini 警告解决办法

    PHP Deprecated:  Comments starting with '#' are deprecated in D:\mvam\php5\php.ini on line 1944 in U ...

  5. node 上的cookie的签名和解签名

    cookie签名的原因是防止别人篡改cookie原本的值,如果这个过程中cookie被改变的话,就会在unsign方法返回false 代码: var cookie = require("co ...

  6. vsftpd 启动 vsftpd:500 OOPS: bad bool value in config file for: guest_enable

    不然启动时会涌现毛病,举个例子 guest_enable=YES  后面出现空格,就会出现 为 vsftpd 启动 vsftpd:500 OOPS: bad bool value in config ...

  7. Uva 11401 数三角形

    题目链接:https://uva.onlinejudge.org/external/114/11401.pdf 题意:1~n个数里面挑3个不同的数,组成一个三角形.求方案数. 分析: 令最长的边为X, ...

  8. Poj(1182),种类并查集

    题目链接:http://poj.org/problem?id=1182 再次熟练种类并查集,又积累点经验,和技巧,rank 0 2 1 先计算father[x] ,再更新rank[x]; #inclu ...

  9. ipython notebook的使用

    刚开始使用python,用的是ipython notebook,感觉很好用. 写的程序主要是处理文件的,读写txt文件,生成xml文件,其中参考http://www.cnblogs.com/wangs ...

  10. Mysql url参数浅析

    驱动包用的是mysql-connector-java-8.0.11.jar 新版的驱动类改成了com.mysql.cj.jdbc.Driver //北京时间东八区 serverTimezone=GMT ...