Guacamole Package?


(Alessio Fattorini) #21

@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:


(Kristian Reukauff) #22

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


(Alessio Fattorini) #23

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


(Adam) #24

I have and it works great.


(Alessio Fattorini) #25

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!


(Adam) #26

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


(Adam) #27

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’.


Can Nethserver be used as a reverse proxy for other services?
(Alessio Fattorini) #28

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


(Alessio Fattorini) #29

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



(Enzo P) #30

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


(Alessio Fattorini) #31

Wow! Great shot @Hunv

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


(Kristian Reukauff) #32

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


(jack) #33

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:


(Alessio Fattorini) #34

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


(Adam) #35

What repositories have you enabled before doing that on centos?


(jack) #36

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


(Alessio Fattorini) #37

On NethServer might be the same. Pretty sure of that


(Adam) #38

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.


(jack) #39

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:


(Alessio Fattorini) #40

So big differences between 0.9.6 and 0.8.4 ?