Install guacamole with mysql - script

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
Guacamole is a web application that allows you to access your PC/server's.
I recently had to set it up because ssh is blocked at my office and I really wanted to do something on my TrueNAS system, guacamole to the rescue !
Along with ssh it also supports vnc,rdp and sftp.
While I was installing it I noted down the steps I took, at the end I realized I can make a script for easy installation. Its a quick and dirty script because I don't know much about sh but anyway you can give it a try.


To get started ssh to your TrueNAS as root then run

fetch https://raw.githubusercontent.com/gt2416/iocage-Guacamole-mysql/main/guacamole.sh
chmod +x guacamole.sh

Finally run it with
./guacamole.sh

This is the first script I've written so feel free to let me know how to improve it and if you have any problems.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I had a look at the script, I confirm you're doing nothing evil with it, but have not run it yet myself, so can't confirm it has no errors.

I like Guacamole, so I will probably try it at some point.
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
lol well, if you do try it let me know how it goes. I tried to make the script user friendly and easy to use.
 

matttheew

Dabbler
Joined
Apr 30, 2017
Messages
14
hello!

i tried this script. I am running an older version of guacamole and wanted to install fresh.

The script won't run, there is a syntax error somewhere.
"guacamole.sh: 172: Syntax error: end of file unexpected (expecting "fi")"

I tried to run the contents of the script 1 line at a time and i'm close - but guacamole shows an error instead of the login page.
 
Top