Guacamole Package?

@Ctek making a recap

  • access to inside VM’s
  • allow access to users that are outside of the office from every device with HTML5 browser
  • good environment for thin clients

It looks like a great addon :smile:

2 Likes

After some Months: Are there any plans to implement Guacamole? It would be really nice to have!

Yes, I’d like to see it on NethServer too, it’s time to install it on 7
@Adam may have already tried with Centos 7
We can also involve @sitz @Ctek and @dz00te

I have and it works great.

Awesome! Would you mind to try it on NethServer 7? You should have all dependencies needed, tomcat as well.

BTW: your new pic with the NethServer shirt is terrific!

I’ll give it a try and let you know how I come out.

2 Likes

This is what worked for me:

Install NS7, all updates, and mySQL from web interface

yum install cairo-devel libjpeg-devel uuid-devel freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel libvorbis-devel libwebp-devel nethserver-tomcat gcc

wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.9.tar.gz

tar -xzf guacamole-server-0.9.9.tar.gz && cd guacamole-server-0.9.9

./configure --with-init-dir=/etc/init.d

make

make install

ldconfig

mkdir -p /var/lib/guacamole && cd /var/lib/guacamole/

wget http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.9.war -O guacamole.war

ln -s /var/lib/guacamole/guacamole.war /var/lib/tomcat/webapps/

rm -rf /usr/lib64/freerdp/guacdr.so

ln -s /usr/local/lib/freerdp/guacdr.so /usr/lib64/freerdp/

mkdir ~/guacamole && cd ~/guacamole

wget http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.9.tar.gz

tar -zxf guacamole-auth-jdbc-0.9.9.tar.gz

wget http://dev.mysql.com/get/Downloads/Connector/j/mysql-connector-java-5.1.38.tar.gz

tar -zxf mysql-connector-java-5.1.38.tar.gz

mkdir -p /usr/share/tomcat/.guacamole/{extensions,lib}

mv guacamole-auth-jdbc-0.9.9/mysql/guacamole-auth-jdbc-mysql-0.9.9.jar /usr/share/tomcat/.guacamole/extensions/

mv mysql-connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar /usr/share/tomcat/.guacamole/lib/

mysqladmin -u root password MySQLRootPass

mysql -u root -p

<enter above password>

create database guacdb;

create user 'guacuser'@'localhost' identified by 'guacDBpass';

grant all privileges on guacdb.* to 'guacuser'@'localhost';

flush privileges;

quit

cd ~/guacamole/guacamole-auth-jdbc-0.9.9/mysql/schema/

cat ./*.sql | mysql -u root -p guacdb

<enter root pw from above>

mkdir -p /etc/guacamole/ && vi /etc/guacamole/guacamole.properties

Paste the following in this file:
     # MySQL properties
     mysql-hostname: localhost
     mysql-port: 3306
     mysql-database: guacdb
     mysql-username: guacuser
     mysql-password: guacDBpass

     # Additional settings
     mysql-default-max-connections-per-user: 0
     mysql-default-max-group-connections-per-user: 0

ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat/.guacamole/

cd ~ && rm -rf guacamole*

systemctl enable tomcat.service && chkconfig guacd on

systemctl reboot

Then you should be able to access the site via http://ip:8080/guacamole with the default username and pw of ‘guacadmin’.

5 Likes

Wow! I’d like to test it soon. Does anyone is interested in creating a new package?
How much tricky might it be?

1 Like

New issue added, also available in bountysource
Post a bounty if you want this package!


3 Likes

I tried Guacamole on NS 7, following the Adam’s instructions.
It all works fine.
Really is not a feature that I need, but I think it’s very cool.
I think it should be integrated into NethServer if it is not too complicated.

Ciao
Enzo

1 Like

Wow! Great shot @Hunv

https://www.bountysource.com/people/40113-hunv

1 Like

I think it is a really nice feature and I installed it (as a non-Linux-guy) once by my myself. It was not as easy as it is described here by some people for people without much knowledge about Linux. I think it will be a great advantage for Nethserver

3 Likes

on a clean centos install (not yet tested on N7):

yum install guacamole guacd
yum install libguac-client-vnc libguac-client-ssh libguac-client-rdp

service tomcat start
service guacd start

http://ip:8080/guacamole

and edit /etc/guacamole/user-mapping.xml

PS i love guacamole :smiley: thanks for sharing this :slight_smile:

1 Like

Wow are you sure? So easy? I can’t believe that

What repositories have you enabled before doing that on centos?

epel :)… sorry no time to test on NS now…

On NethServer might be the same. Pretty sure of that

1 Like

epel has version 0.8.4 of guacamole front-end and guacd back-end. Use that method if you want old stuff… I don’t.

mm yes it is 0.8.4…i have no problem with old version if stable and no bug :smiley:
it fits my needs with no effort :wink:

So big differences between 0.9.6 and 0.8.4 ?