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. prop & attr

    <input id="chk1" type="checkbox" />是否可见 <input id="chk2" type ...

  2. 笨办法学Python(十五)

    习题 15: 读取文件 你已经学过了 raw_input 和 argv,这些是你开始学习读取文件的必备基础.你可能需要多多实验才能明白它的工作原理,所以你要细心做练习,并且仔细检查结果.处理文件需要非 ...

  3. 开始用PyTorch

    怎么说呢,TensorFlow有些实现过于蛋疼,我需要使用更实用的框架. 目前在读https://github.com/chenyuntc/pytorch-book

  4. Android 编辑框(EditText)属性学习

    EditText的属性很多,这里介绍几个:android:hint="请输入数字!"//设置显示在空间上的提示信息android:numeric="integer&quo ...

  5. PHP 5.4 on CentOS/RHEL 7.0, 6.5 and 5.10 via Yum

    PHP 5.4.36 has been released on PHP.net on 18th December 2014, and is also available for CentOS/RHEL ...

  6. CentOS 5.6怎么安装MongoDB数据库?

    1. 下载Linux版本的 MongoDB 数据库 到官方的下载页面下载mongodb的Linux版本,32位还是64位根据自己的情况自行选择 http://www.mongodb.org/downl ...

  7. Action 语法的简介

    https://www.cnblogs.com/LipeiNet/p/4694225.html https://www.cnblogs.com/Gyoung/archive/2013/04/04/29 ...

  8. 线程 Thread类 的四个构造方法简介

    在线程中,Thread类有四个构造方法: 当我们使用 Thread类创建对象的时候,传入参数,就会用到构造方法.ThreadStart 和ParameterizedThreadStart 都是 委托类 ...

  9. redis 对cmd的操作

    这个是原子递增的知识点: 关于list部分: 利用lpush命令, rpush命令, lrange命令,对列表操作 此前 我已经 在列表(list)中 插入了 部分 元素了 关于集合set 部分 首先 ...

  10. Yarn下Map数控制

    public List<InputSplit> getSplits(JobContext job) throws IOException { long minSize = Math.max ...