Hi Everyone,
Has anyone tried making a headless protocol plugin to do a specific job? For
example, download a file to a specific local guac server location. In the
hypothetical example below when the Guacamole.Client connects it would login to
hostname and download the remote file specified from hostname to the local
destination on the guac server with no display.
Regards,
Jeff
// Create configuration
GuacamoleConfiguration config = new GuacamoleConfiguration();
// Download a file in the background and save it to the guac server
config.setProtocol("headless_ftp");
config.setParameter("hostname", "x.x.x.x");
config.setParameter("port", "21");
config.setParameter("login”, “myuser”);
config.setParameter("password”, “mypassword”);
config.setParameter("remote_file”, “/home/myuser/documents/foo.txt”);
config.setParameter("local_dest”, “/usr/share/downloads/”);
// Connect to guacd proxy
GuacamoleSocket socket = new ConfiguredGuacamoleSocket(
new InetGuacamoleSocket("x.x.x.x", 4822), config);
// Return a new tunnel which uses the connected socket
return new SimpleGuacamoleTunnel(socket);
smime.p7s
Description: S/MIME cryptographic signature
