Centos7 on the source building guacamole

Source: Internet
Author: User
Tags zip ssh tomcat


Centos7 on the source building guacamole
Guacamole is an open-source, HTML5-based, web-terminal ssh tool for
1. The dependent libraries required to install the guacamole
The libraries that must be installed are
Yum install-y cairo-devel libjpeg-turbo-devel libpng-devel uuid-devel

Libraries that you can choose to install
Yum install-y freerdp-devel pango-devel libssh2-devel libvncserver-devel pulseaudio-libs-devel openssl-devel Libvorbis-devel Libwebp-devel

Systemctl Stop Firewalld.service # Stop Firewall
Systemctl Disable Firewalld.service #禁止开机启动防火墙

2. Install the configuration tomcat, set up the service (must have JDK1.8 environment first)
/soft/tomcat-9.0.2


3. Installing guacamole
3.1 Installing Guacamole-server
Uploading to the server using the FTP tool using the wget command or after downloading locally
1. Unzip Tar-xzf guacamole-server-0.9.14.tar.gz
2. Compiling the installation
CD guacamole-server-0.9.14
./configure--prefix=/usr/local/guacamole--WITH-INIT-DIR=/ETC/INIT.D
./configure--WITH-INIT-DIR=/ETC/INIT.D
Make
Make install
Ldconfig
3. Add Environment variables
Vi/etc/profile
Export Guacamole_home=/etc/guacamole
Source/etc/profile

3.2 Installing Guacamole-client
1. Download the client package Guacamole-0.9.14.zip, deploy the client package to Tomcat
unzip-d Guacamole Guacamole-0.9.14.zip
Cpguacamole/soft/tomcat-9.0.2/webapps/guacamole.war
3.3. Installing guacamole-client

Create a configuration folder
Mkdir-p/etc/guacamole/
Configuring User mapping Files
Vi/etc/guacamole/guacamole.properties
Change the contents of the file to the following
Basic-user-mapping:/etc/guacamole/user-mapping.xml
To write a user mapping configuration file
Vi/etc/guacamole/user-mapping.xml
Within the configuration file, enter the information in the following format:
<user-mapping>
<authorize username= "admin" password= "123456" >
<!--first authorized connection--
<connection name= "SSH" >
<protocol>ssh</protocol>
<param name= "hostname" >192.168.2.14</param>
<param name= "Port" >22</param>
<param name= "username" >root</param>
<param name= "Password" >cent</param>
</connection>

<!--Second Authorized Connection--
<connection name= "VNC" >
<protocol>vnc</protocol>
<param name= "hostname" >192.168.2.14</param>
<param name= "Port" >5901</param>
<param name= "username" >root</param>
<param name= "Password" >123456</param>
</connection>

<connection name= "RDP" >
<protocol>rdp</protocol>
<param name= "hostname" >192.168.2.14</param>
<param name= "Port" >3389</param>
<param name= "username" >root</param>
<param name= "Password" >cent</param>
</connection>
</authorize>
</user-mapping>
4. Start
Service GUACD Start #启动guacamole
/soft/tomcat-9.0.2/bin/startup.sh #启动tomcat
#安装完成后先远程SLL登录 to see if the installation is successful, the RDP protocol needs to be configured.

5. Access server (Linux) installation XRDP:
Vi/etc/yum.repos.d/xrdp.repo

[XRDP]
Name=xrdp
baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
Enabled=1
Gpgcheck=0

Yum-y Install XRDP Tigervnc-server

#启动服务:
Systemctl Start Xrdp.service
Systemctl Enable Xrdp.service

#防火墙:
Firewall-cmd--permanent--zone=public--add-port=3389/tcp
Firewall-cmd--reload

#配置SELinux
Chcon--TYPE=BIN_T/USR/SBIN/XRDP
Chcon--type=bin_t/usr/sbin/xrdp-sesman


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.