ubuntu12.04 Build Guacamole

Source: Internet
Author: User
Tags system log ssh freerdp
Guacamole is a HTML5 Web application (Web application) that allows users to manipulate remote computers in a browser through the Web application and with Remote Desktop transport protocols such as VNC or RDP.

In addition to Web applications, guacamole is also a project name that is designed to develop a set of APIs for use with guacamole Web applications, and this API can also be used for other similar applications or services. First, install the dependencies

Go to the official website installation page to view the required dependencies for installation, the current latest version of my installation 0.9.8

Apt-get Install Libcairo2-dev libjpeg62-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev Libssh2-1-dev Libtelnet-dev Libvncserver-dev Libpulse-dev Libssl-dev libvorbis-dev-y

If not in the Libtelnet-dev dependency source, resolve as follows:

Vim/etc/apt/sources.list

At the end of the file add: Deb Http://us.archive.ubuntu.com/ubuntu trusty main Universe Save exit

Apt-get Update

You can perform the Apt-get install Libtelnet-dev installation again
second, installation service side

1. To the official website http://guac-dev.org/releases Download service-side Compression pack: guacamole-server-0.9.8.tar.gz

2. Extract files to download directory: Tar-xzf guacamole-server-0.9.8.tar.gz

3. Into the Extract directory

(1)./configure--WITH-INIT-DIR=/ETC/INIT.D Display the required library installation and Remote protocol support


(2) Make

(3) Make install

(4) Ldconfig

(5) Running the core service Guacd:service GUACD start, if the operation is successful, the server-side installation is successful

Note: If you are missing dependencies, you need to perform ldconfig after installation

Third, install the client

Download the official website of the client compression package, the official website provides two kinds of packages:

1. Compressed package guacamole-client-0.9.8.tar.gz, download the package need to extract: Tar-xzf guacamole-client-0.9.8.tar.gz, into the decompression folder execution: MVN package Build and package, Generates a. war file under guacamole/target/under the current folder.

2. Or directly download the war package four, deploy the client

1. Install TOMCAT7, download the official recommended version of Tomcat, I installed the guacamole version corresponding to the TOMCAT7

Apt-get Install TOMCAT7

2. Copy the war package to Tomcat's WebApps directory, and you need to remove the version number of the war package:

CP guacamole.war/var/lib/tomcat7/webapps/

3. Place user-mapping.xml file: CP guacamole-client/guacamole/doc/example/user-mapping.xml/etc/guacamole/

Then edit: More changes to the rules can be viewed on the official website, only the following list of the necessary changes to the basis of the agreement

<user-mapping>
<authorize username= "user1" password= "123123" > #登录用户名和密码

<protocol>vnc</protocol> #远程连接协议, which can be VNC, RDP, and SSH

<param name= "hostname" >172.16.58.21</param> #远程登录服务器地址

<param name= "Port" >5901</param> #远程桌面服务端口

<param name= "Password" >123456</param> #vnc远程桌面登录密码

</authorize>
<authorize username= "User2" password= "123123" >

<connection name= "ssh" > #有该标签登录后会存在远程桌面的list, Login directly if not present
<protocol>ssh</protocol>
<param name= "hostname" >172.16.58.21</param>

<param name= "Port" >22</param>
<param name= "username" >root</param>

<param name= "Password" >123456</param>

</connection>
<connection name= "RDP" >
<protocol>rdp</protocol>
<param name= "hostname" >172.16.58.21</param>

<param name= "Port" >3389</param>
</connection>
</authorize>

</user-mapping>


4. Create Guacamole.properties file: vim/etc/guacamole/guacamole.properties

Enter the following:

Guacd-hostname:localhost

guacd-post:4822

Auth-provider:net.sourceforge.guacamole.net.basic.basicfileauthenticationprovider

Basic-user-mapping:/etc/guacamole/user-mapping.xml

5. cd/usr/share/tomcat7/

mkdir. Guacamole

Ln-s/etc/guacamole/guacamole.properties/usr/share/tomcat7/.guacamole/ Five, start service

1. Start Guacd:service GUACD start

2. Start Tomcat7:service tomcat7 start

(You can set the startup tomcat7 as a global command: Ln-s/etc/init.d/tomcat7/usr/bin/) VI. Use

Open the browser, enter http://localhost:8080/guacamole into the Guacamole client login page in the Address bar, Enter the account password entered in the User-mapping.xml setting to see the list of remote connections set up in the User-mapping.xml file listed. Vii. Issues

Guacamole will output the log to the system log, Cat/var/log/syslog can view

I encountered a problem with the RDP protocol when I was using it, and I solved the problem by posting to the community http://sourceforge.net/projects/guacamole/forums to find questions.

Check the system log to find the problem prompt:

Failed to load guacsnd plugin. Audio won't work.

Failed to load Guacdr plugin. Drive redirection and printing won't work.

The solution is as follows:

Ln-s/usr/local/lib/freerdp/guacsnd.so/usr/lib/freerdp/

Ln-s/usr/local/lib/freerdp/guacdr.so/usr/lib/freerdp/

Connect the two plug-ins to a folder that is loaded by the RDP plug-in.

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.