The requirements are Python 2.7 installed on the Guacamole machine.

You should be able to run the script from anywhere (I use /home/adminuserx) and start with /home/adminuserx/guac_wol.py &! (guac_wol.py being the script name I use). The macs.list file is in the same directory as the script.

I use it with Guacamole 1.1.0, I needed to change the path to catalina.out in the script because I upgraded to tomcat8 from 7, but that was about it. You may need to change the path to the macs.list file as well.

To my mind it was an interim step until someone with better coding skills than me produced a 'proper' version that integrated with Guacamole, or it became part of Guacamole itself. It is a little 'clunky' in that you need to ensure the connection number produced in the catalina.out log file is correct for the that machine's mac address as listed in the macs.list file, but that said it's worked well enought for me in the past couple of years (~60 users).

To my mind it would be best if it were a form field in the individual connection settings, but that was way beyond my capabilities. However Nick has mentioned a couple of times that he was producing the extension I referenced. I expect this would be a lot better, but I've not used it myself and don't know how finished it is. He may be able to provide an update?


On 16/03/2020 11:45 a.m., Giorgio wrote:
Hello Ivan,

Could you please explain how to implement your script into guacamole ? Does it work with guacamole 1.1.0 ? Place to put, and how to execute upon request.. any detail will be of help.
Thank you in advance
Tedd


*From: * ivanmarcus <[email protected]>
*To: * <[email protected]>, Vieri <[email protected]>
*Sent: * 3/15/2020 2:57 AM
*Subject: * Re: guacamole and wake-on-LAN

    I've already written a Python script that reads the log and sends
    the magic packet as needed. It's been running for a couple of
    years now, here's a link:

    
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/Wake-on-lan-function-working-td2832.html

    Nick has been working on a proper extension. I've no idea how far
    on it is at present but here's a link for it:

    
https://github.com/necouchman/guacamole-client/tree/jira/513/extensions/guacamole-auth-wol


    On 15/03/2020 2:26 p.m., Vieri wrote:
    Hi,

    I'd like to boot machines up if offline through Guacamole. I've seen that 
other users propose to use a script that reads guacamole's log, gets the 
connection attempts, looks up the MAC address and performs WOL.??

    I guess it might also be done through an extension. Any pointers? Or better 
yet, any ready-made code? ;-)

    Thanks,

    Vieri


    ---------------------------------------------------------------------
    To unsubscribe, e-mail:[email protected]
    <mailto:[email protected]>
    For additional commands, e-mail:[email protected]
    <mailto:[email protected]>



Reply via email to