guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manu84 <e.fiance...@gmail.com>
Subject install guacamole 0.9.12 incubating fail, but work with 0.9.9...
Date Wed, 24 May 2017 07:59:11 GMT
Hello All,

I am Emmanuel from France and new to this mailing list.

I tried to install the incubating version 0.9.12 from a script I modified
(it was installing the version 0.9.9 with guacamole-auth-jdbc-0.9.9 and an
sql database. this was working perfectly)

here is the portion code of the script:

# Fetch and install guacamole server and client
echo "Downloading and configuring guacamole.."
#Fetch/compile/install guacamole-server-version defined in variable GUAC_VER
wget -O guacamole-server-$GUAC_VER.tar.gz
http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-$GUAC_VER.tar.gz
tar -zxvf guacamole-server-$GUAC_VER.tar.gz
cd guacamole-server-$GUAC_VER/
./configure --with-init-dir=/etc/init.d
make
make install;
ldconfig
 
#Fetch / install client, JDBC-auth and mysql connectors 
mkdir -p /var/lib/guacamole && cd /var/lib/guacamole/
wget
http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-$GUAC_VER.war
-O guacamole.war
ln -s /var/lib/guacamole/guacamole.war
/var/lib/$TOMCAT_VER/webapps/guacamole.war

mkdir -p ~/$tmpdir/guacamole/sqlauth && cd ~/$tmpdir/guacamole/sqlauth
wget -O guacamole-auth-jdbc-$GUAC_VER.tar.gz
http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-$GUAC_VER.tar.gz
tar -zxvf guacamole-auth-jdbc-$GUAC_VER.tar.gz
wget -O mysql-connector-java-$MYSQL_CONNECTOR_VERSION.tar.gz
http://dev.mysql.com/get/Downloads/Connector/j/mysql-connector-java-$MYSQL_CONNECTOR_VERSION.tar.gz
tar -zxf mysql-connector-java-$MYSQL_CONNECTOR_VERSION.tar.gz
mkdir -p /usr/share/$TOMCAT_VER/.guacamole/{extensions,lib}
mv
guacamole-auth-jdbc-$GUAC_VER/mysql/guacamole-auth-jdbc-mysql-$GUAC_VER.jar
/usr/share/$TOMCAT_VER/.guacamole/extensions/
mv
mysql-connector-java-$MYSQL_CONNECTOR_VERSION/mysql-connector-java-$MYSQL_CONNECTOR_VERSION-bin.jar
/usr/share/$TOMCAT_VER/.guacamole/lib/
service mysql restart
 
# Create Guacamole mysql user and db
mysql --host=localhost --user=root --password=$MYSQL_ROOT_PASSWD << END
 
CREATE DATABASE IF NOT EXISTS guacdb;
CREATE USER 'guacuser'@'localhost' IDENTIFIED BY '$GUAC_DB_PASSWD';
grant select,insert,update,delete on guacdb.* to 'guacuser'@'localhost';
flush privileges;
 
END
 
cd ~/$tmpdir/guacamole/sqlauth/guacamole-auth-jdbc-$GUAC_VER/mysql/schema/
cat ./*.sql | mysql --host=localhost --user=root
--password=$MYSQL_ROOT_PASSWD guacdb
 
# Create guacamole.properties file
mkdir -p /etc/guacamole/ 
cat > /etc/guacamole/guacamole.properties << EOG
 
mysql-hostname: localhost
mysql-port: 3306
mysql-database: guacdb
mysql-username: guacuser
mysql-password:$GUAC_DB_PASSWD
 
mysql-disallow-duplicate-connections: false
 
EOG
 
ln -s /etc/guacamole/guacamole.properties /usr/share/$TOMCAT_VER/.guacamole/
 
# Change default guacadmin password in guacdb
mysql --host=localhost --user=root --password=$MYSQL_ROOT_PASSWD << END
 
USE guacdb;
SET @salt = UNHEX(SHA2(UUID(), 256));
UPDATE guacamole_user
SET
    password_salt = @salt,
    password_hash = UNHEX(SHA2(CONCAT('$GUAC_ADMIN_PASSWORD', HEX(@salt)),
256))
WHERE
    username = 'guacadmin';
 
END
 
#Adding patch for entropy in virtual machines
sec_file=/jre/lib/security/java.security
java_path=$(dirname $(dirname $(readlink -f $(which javac))))
if grep -xq "urandom" $java_path$sec_file ; then
  echo "File already patched to use /dev/urandom"
else
 echo  "securerandom.source=file:/dev/./urandom">> $java_path$sec_file
fi 

Where GUAC_VER = 0.9.12-incubating

When I try to connec at myipserver:8080/guacamole, the loggin box never
appear.
I think the problem come from the "linkage" to the auth and sql database...
but I dont know why..
I notice that some files are tagging with -incubating, for ex.
mysql/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar.
I try to remove the "incubating" but its not working.

So please do you have so idea ? is there some change in installation process
from 0.9.9 to 0.9.12 ?

Regards

Emmanuem





--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/install-guacamole-0-9-12-incubating-fail-but-work-with-0-9-9-tp996.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.

Mime
View raw message