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

最新文章

  1. linux 添加基于weblogic的nodemanager的服务
  2. Python-os
  3. Java程序员从笨鸟到菜鸟之(一百零二)sql注入攻击详解(三)sql注入解决办法
  4. iOS后台定位实现
  5. JAVA图片处理--缩放,切割,类型转换
  6. [转]C#基础回顾:Asp.net 缓存
  7. ${pageContext.request.contextPath} JSP取得绝对路径
  8. Objective-C 2.0的运行时编程
  9. DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements SingletonBeanRegistry
  10. 1972: [Sdoi2010]猪国杀 - BZOJ
  11. error: /usr/include/stdio.h: Permission denied 的一种情况分析
  12. 干了这杯Java之Vector
  13. SSIS - 11.For循环容器
  14. 【python】带图片验证码的登录自动化实战
  15. jenkins自动打包部署项目
  16. opencv学习笔记(九)Mat 访问图像像素的值
  17. element ui里dialog关闭后清除验证条件
  18. linux 的压缩 打包
  19. 使用命令行执行sql文件
  20. js-ES6学习笔记-Class(4)

热门文章

  1. Active Directory域服务备份
  2. hive数据仓库建设
  3. 如何让Oracle数据库保持优良性能的方法
  4. AD的命名规则 AD常用产品型号命名规则
  5. *187. Repeated DNA Sequences (hashmap, one for loop)(difference between subsequence &amp; substring)
  6. Facebook interview problem:13. Roman to Integer
  7. IOS 通过 代码 自定义cell(Cell的高度不一致)(优化性能)
  8. lintcode 77.Longest Common Subsequence(最长公共子序列)、79. Longest Common Substring(最长公共子串)
  9. 使用QT开发GoogleMap瓦片显示和下载工具(1)——QT开发环境准备
  10. svn: 处于冲突状态