You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Charles Mccrea <ch...@gmail.com> on 2017/10/19 18:40:58 UTC

Assistance on creating jar file from directory

Hello,

I'm attempting to make a custom icon on my login page.  I've installed
Guacamole on CentOS 7.

I'm using information from this page -
http://apache-guacamole-incubating-users.2363388.n4.nabble.com/Branding-the-login-page-td281.html

I've created my jar file and put this into the following location:

/var/lib/guacamole/extensions/

I then restart my guacamole server and reload my guacamole website.  The
changes I've put into the new jar file I created are not showing up.  Do I
need to change anything else in Guacamole so it knows to use my jar file?

Thank you.

Re: Assistance on creating jar file from directory

Posted by Nick Couchman <vn...@apache.org>.
On Mon, Oct 23, 2017 at 10:56 PM, Charles Mccrea <ch...@gmail.com>
wrote:

> Hello Team,
>
> I'm getting further thanks to your help.  I do believe the issue I was
> having was due to the version of Guacamole I had installed.  version 0.9.9
> doesn't appear to have extensions for themeing your login page working.  So
> I tried upgrading my CentOS 7 install of Guacamole to 0.9.13-incubating but
> I couldn't get the upgrade to work.  So I tired a fresh install (took the
> install instructions for 0.9.9 and made the necessary changes to install
> 0.9.13) but this wouldn't work for me (guacadmin login was invalid for some
> reason?).
>
> So I abandoned CentOS and used instructions to install 0.9.13 on Ubuntu
> 16.04.  This worked!
>
> I've added my custom theme and I now have our logo and background.  Works
> like a charm.
>
> I do have a followup question for you though...the logo above the login
> (in the box).  Our logo is tiled instead within this small box.  How would
> I make this just the one logo and not tiled?
>
> I would prefer to use CentOS 7 for our Guacamole but I'll need to keep
> working at why when I install  0.9.13 using the instructions from here -
> https://deviantengineer.com/2016/11/guacamole-incubator-centos7/ and
> update his steps with the 0.9.13-incubating files and newer java files my
> install didn't work.
>

I use CentOS 7 every day with Guacamole, and have no issues with it, so I
know it works.  I do not use the packages, though, I'm mostly doing
development on it, so I have the Git repos copied and am routinely
recompiling versions of the code and using that.

The Guacamole manual lists all of the requirements for building Guacamole
on both Debian-based platforms and RH-based platforms, so I would check
that out.  If you run into issues, feel free to respond here with the
specific errors you're getting and I'm sure those of us in the community
here can help you work through it.

http://guacamole.incubator.apache.org/doc/gug/installing-guacamole.html

-Nick

Re: Assistance on creating jar file from directory

Posted by Charles Mccrea <ch...@gmail.com>.
Hello Team,

I'm getting further thanks to your help.  I do believe the issue I was
having was due to the version of Guacamole I had installed.  version 0.9.9
doesn't appear to have extensions for themeing your login page working.  So
I tried upgrading my CentOS 7 install of Guacamole to 0.9.13-incubating but
I couldn't get the upgrade to work.  So I tired a fresh install (took the
install instructions for 0.9.9 and made the necessary changes to install
0.9.13) but this wouldn't work for me (guacadmin login was invalid for some
reason?).

So I abandoned CentOS and used instructions to install 0.9.13 on Ubuntu
16.04.  This worked!

I've added my custom theme and I now have our logo and background.  Works
like a charm.

I do have a followup question for you though...the logo above the login (in
the box).  Our logo is tiled instead within this small box.  How would I
make this just the one logo and not tiled?

I would prefer to use CentOS 7 for our Guacamole but I'll need to keep
working at why when I install  0.9.13 using the instructions from here -
https://deviantengineer.com/2016/11/guacamole-incubator-centos7/ and update
his steps with the 0.9.13-incubating files and newer java files my install
didn't work.

Thank you.

On Sat, Oct 21, 2017 at 6:40 PM, Mike Jumper <mi...@guac-dev.org>
wrote:

> On Sat, Oct 21, 2017 at 9:25 AM, Nick Couchman <vn...@apache.org> wrote:
> > On Sat, Oct 21, 2017 at 10:04 AM, Charles Mccrea <
> charlesmccrea@gmail.com>
> > ...
> >
> >>
> >> Inside this directory I have my guacamole.properties file and the
> >> extensions folder.
> >> I didn't have my GUACAMOLE_HOME environement variable set so I've done
> >> this now using an .sh script.  Confirmed on reboot that my environment
> >> variable is set properly.
> >
> > If you're setting this property directly, now, in the startup script, it
> > should be set to /usr/share/tomcat/.guacamole.
> >
>
> To further clarify, "GUACAMOLE_HOME" is the placeholder text used in
> the manual and elsewhere to represent the base directory which
> contains guacamole.properties, the "extensions" and "lib" directories,
> and additional configuration files. The environment variable for
> explicitly defining this location has the same name, but you do not
> need to set the GUACAMOLE_HOME environment variable nor the
> guacamole.home system property if you are planning to use one of the
> default locations for GUACAMOLE_HOME, such as the ".guacamole"
> directory within the home directory of the tomcat user.
>
> Explicitly setting GUACAMOLE_HOME or guacamole.home to
> /usr/share/tomcat/.guacamole won't hurt anything (except maybe my
> brain), but it's completely superfluous.
>
> >...
> >
> > If you're running 0.9.9 you should really consider upgrading.  First, I'm
> > not sure when custom branding support was added in, but it may not work
> in
> > that version, and, second, that's 4 releases behind the current version,
> and
> > there have been lots of improvements since then.  0.9.13-incubating is
> the
> > current released version, and then the git repo master will eventually be
> > 0.9.14-incubating and has more changes/fixes on top of that.
> >
>
> +1
>
> - Mike
>

Re: Assistance on creating jar file from directory

Posted by Mike Jumper <mi...@guac-dev.org>.
On Sat, Oct 21, 2017 at 9:25 AM, Nick Couchman <vn...@apache.org> wrote:
> On Sat, Oct 21, 2017 at 10:04 AM, Charles Mccrea <ch...@gmail.com>
> ...
>
>>
>> Inside this directory I have my guacamole.properties file and the
>> extensions folder.
>> I didn't have my GUACAMOLE_HOME environement variable set so I've done
>> this now using an .sh script.  Confirmed on reboot that my environment
>> variable is set properly.
>
> If you're setting this property directly, now, in the startup script, it
> should be set to /usr/share/tomcat/.guacamole.
>

To further clarify, "GUACAMOLE_HOME" is the placeholder text used in
the manual and elsewhere to represent the base directory which
contains guacamole.properties, the "extensions" and "lib" directories,
and additional configuration files. The environment variable for
explicitly defining this location has the same name, but you do not
need to set the GUACAMOLE_HOME environment variable nor the
guacamole.home system property if you are planning to use one of the
default locations for GUACAMOLE_HOME, such as the ".guacamole"
directory within the home directory of the tomcat user.

Explicitly setting GUACAMOLE_HOME or guacamole.home to
/usr/share/tomcat/.guacamole won't hurt anything (except maybe my
brain), but it's completely superfluous.

>...
>
> If you're running 0.9.9 you should really consider upgrading.  First, I'm
> not sure when custom branding support was added in, but it may not work in
> that version, and, second, that's 4 releases behind the current version, and
> there have been lots of improvements since then.  0.9.13-incubating is the
> current released version, and then the git repo master will eventually be
> 0.9.14-incubating and has more changes/fixes on top of that.
>

+1

- Mike

Re: Assistance on creating jar file from directory

Posted by Nick Couchman <vn...@apache.org>.
On Sat, Oct 21, 2017 at 10:04 AM, Charles Mccrea <ch...@gmail.com>
wrote:

> Hi Nick,
>
> Still working on this issue but I'm still not seeing results.  Here's the
> scoop:
>
> Using this post - https://sourceforge.net/p/guacamole/discussion/1110834/
> thread/48fcbd3e/#bd49/2661, I'm able to confirm a lot of things.
>
>    - I've looked into my /etc/passwd file and confirmed that my tomcat
>    home is /usr/share/tomcat/.guacamole/.
>
>
Please clarify tihs for me - is the home directory for the tomcat user set
to /usr/share/tomcat, or to /usr/share/tomcat/.guacamole?  It *should* be
set to /usr/share/tomcat, and then within the home directory should be a
.guacamole sub-directory, which should contain the guacamole.properties
file and an extensions directory.  So, to summarize:

- Tomcat user home: /usr/share/tomcat
- GUACAMOLE_HOME: /usr/share/tomcat/.guacamole
- Guacamole Properties: /usr/share/tomcat/.guacamole/guacamole.properties
- Extensions directory: /usr/share/tomcat/.guacamole/extensions


>
>    - Inside this directory I have my guacamole.properties file and the
>    extensions folder.
>    - I didn't have my GUACAMOLE_HOME environement variable set so I've
>    done this now using an .sh script.  Confirmed on reboot that my environment
>    variable is set properly.
>
> If you're setting this property directly, now, in the startup script, it
should be set to /usr/share/tomcat/.guacamole.


>
>    - Inside this /usr/share/tomcat/.guacamole/extensions folder I have
>    the guacamole-auth-jdbc-mysql-0.9.9.jar file.  At the bottom of that
>    forum post I'm following there is an example extension .jar file.  I've
>    used this to see if I can make changes to my login screen so I've copied
>    this .jar file into my extensions folder so it sits beside the
>    guacamole-auth-jdbc-mysql-0.9.9.jar file.  I'm assuming both files can
>    reside in the same folder without issue.
>
> If you're running 0.9.9 you should really consider upgrading.  First, I'm
not sure when custom branding support was added in, but it may not work in
that version, and, second, that's 4 releases behind the current version,
and there have been lots of improvements since then.  0.9.13-incubating is
the current released version, and then the git repo master will eventually
be 0.9.14-incubating and has more changes/fixes on top of that.

-Nick

RE: Assistance on creating jar file from directory

Posted by Ryan Underwood <ry...@greymarketlabs.com>.
The manifest in the extension jar specifies a version of guacamole it's compatible with. That may be optional; I would have to look it up.
My logs are in the "tomcat home"/logs folder. I believe the info I cared about was in a localhost log in that folder. This is also configurable through tomcat itself. It's been a while but I think that goes in server.conf.
-Ryan

Sent from my Android phone using TouchDown (www.symantec.com)

-----Original Message-----
From: Charles Mccrea [charlesmccrea@gmail.com]
Received: Saturday, 21 Oct 2017, 10:54AM
To: user@guacamole.incubator.apache.org [user@guacamole.incubator.apache.org]
Subject: Re: Assistance on creating jar file from directory

Hello Ryan,

Thanks very much for this reply.

Regarding your comment on the guacamole version.  I don't understand what compatible version means?  Can you expand more on what my .jar file needs to have with regards to Guacamole version please.

I will try increasing the log level.  On your system, where is the location of your catalina.out logfile?  Mine is in /var/log/tomcat/.  Also, my catalina.out logfile has one line in it...just the version of tomcat.  Is this because I haven't enabled more logging yet?

Thank you.

On Sat, Oct 21, 2017 at 10:29 AM, Ryan Underwood <ry...@greymarketlabs.com>> wrote:
Charles,
I used that exact example and it works for me.
I'm not sure if you've confirmed that the extension specifies a compatible version of guacamole, and that it matches your version...
I increased the logging level on mine following these instructions: https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#webapp-logging (logback file goes in your guacamole home). If that fails to increase logging then there's a "home" problem. That overall made it easier to debug within the web app, though not as easy as the eclipse tomcat plugin!
-Ryan


Sent from my Android phone using TouchDown (www.symantec.com<http://www.symantec.com>)


-----Original Message-----
From: Charles Mccrea [charlesmccrea@gmail.com<ma...@gmail.com>]
Received: Saturday, 21 Oct 2017, 10:05AM
To: user@guacamole.incubator.apache.org<ma...@guacamole.incubator.apache.org> [user@guacamole.incubator.apache.org<ma...@guacamole.incubator.apache.org>]
Subject: Re: Assistance on creating jar file from directory

Hi Nick,

Still working on this issue but I'm still not seeing results.  Here's the scoop:

Using this post - https://sourceforge.net/p/guacamole/discussion/1110834/thread/48fcbd3e/#bd49/2661, I'm able to confirm a lot of things.

  *   I've looked into my /etc/passwd file and confirmed that my tomcat home is /usr/share/tomcat/.guacamole/.
  *   Inside this directory I have my guacamole.properties file and the extensions folder.
  *   I didn't have my GUACAMOLE_HOME environement variable set so I've done this now using an .sh script.  Confirmed on reboot that my environment variable is set properly.
  *   Inside this /usr/share/tomcat/.guacamole/extensions folder I have the guacamole-auth-jdbc-mysql-0.9.9.jar file.  At the bottom of that forum post I'm following there is an example extension .jar file.  I've used this to see if I can make changes to my login screen so I've copied this .jar file into my extensions folder so it sits beside the guacamole-auth-jdbc-mysql-0.9.9.jar file.  I'm assuming both files can reside in the same folder without issue.
  *   I then restarted tomcat and guacd services.  Cleared my history on both my Chrome and Firefox browsers and loaded up my Guacamole site.  Nothing has changed.
  *   I then restarted my Guacamole server.  Again no changes on my login page.

I'm at a loss here as to why this isn't working?  I did make sure that the .jar file of this customize extension has the guac-manifest.json in the root of the directory (and not in a subdirectory).

I have no idea what log files to look into to confirm if my extension is even seen.  But I'm assuming it's not recognized.  Where should I look to confirm this?

Any other ideas on what I need to do?

Thank you.

On Thu, Oct 19, 2017 at 9:48 PM, Nick Couchman <vn...@apache.org>> wrote:
On Thu, Oct 19, 2017 at 5:27 PM, Charles Mccrea <ch...@gmail.com>> wrote:
Hello Nick and thank you for this explanation.

I've searched my guacamole server for a guacamole.properties location.  I found two:

/etc/guacamole/guacamole.properties
/usr/share/tomcat/.guacamole/guacamole.properties

It would appear that one is a pointer to the other so basically I have found my guacamole.properties file.

Looking within my guacamole.properties file I do not find an entry for GUACAMOLE_HOME.  Should this environment variable be there?


  *   Will defining a Guacamole_home environment variable then tell guacamole where to find my new extension .jar file?
  *   And my Guacamole does work as of now in that I can login and use Guacamole.  So how does my Guacamole currently work if it doesn't know where the Guacamole home is?

Charles,
I think all you need to do is create the extensions directory inside the /etc/guacamole and/or /usr/share/tomcat/.guacamole directory, then drop your JAR file in there and restart Tomcat or redeploy the web app.

-Nick



Re: Assistance on creating jar file from directory

Posted by Charles Mccrea <ch...@gmail.com>.
Hello Ryan,

Thanks very much for this reply.

Regarding your comment on the guacamole version.  I don't understand what
compatible version means?  Can you expand more on what my .jar file needs
to have with regards to Guacamole version please.

I will try increasing the log level.  On your system, where is the location
of your catalina.out logfile?  Mine is in /var/log/tomcat/.  Also, my
catalina.out
logfile has one line in it...just the version of tomcat.  Is this because I
haven't enabled more logging yet?

Thank you.

On Sat, Oct 21, 2017 at 10:29 AM, Ryan Underwood <ry...@greymarketlabs.com>
wrote:

> Charles,
> I used that exact example and it works for me.
> I'm not sure if you've confirmed that the extension specifies a compatible
> version of guacamole, and that it matches your version...
> I increased the logging level on mine following these instructions:
> https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#
> webapp-logging (logback file goes in your guacamole home). If that fails
> to increase logging then there's a "home" problem. That overall made it
> easier to debug within the web app, though not as easy as the eclipse
> tomcat plugin!
> -Ryan
>
>
> Sent from my Android phone using TouchDown (www.symantec.com)
>
>
> -----Original Message-----
> *From:* Charles Mccrea [charlesmccrea@gmail.com]
> *Received:* Saturday, 21 Oct 2017, 10:05AM
> *To:* user@guacamole.incubator.apache.org [user@guacamole.incubator.
> apache.org]
> *Subject:* Re: Assistance on creating jar file from directory
>
> Hi Nick,
>
> Still working on this issue but I'm still not seeing results.  Here's the
> scoop:
>
> Using this post - https://sourceforge.net/p/guacamole/discussion/1110834/
> thread/48fcbd3e/#bd49/2661, I'm able to confirm a lot of things.
>
>    - I've looked into my /etc/passwd file and confirmed that my tomcat
>    home is /usr/share/tomcat/.guacamole/.
>    - Inside this directory I have my guacamole.properties file and the
>    extensions folder.
>    - I didn't have my GUACAMOLE_HOME environement variable set so I've
>    done this now using an .sh script.  Confirmed on reboot that my environment
>    variable is set properly.
>    - Inside this /usr/share/tomcat/.guacamole/extensions folder I have
>    the guacamole-auth-jdbc-mysql-0.9.9.jar file.  At the bottom of that
>    forum post I'm following there is an example extension .jar file.  I've
>    used this to see if I can make changes to my login screen so I've copied
>    this .jar file into my extensions folder so it sits beside the
>    guacamole-auth-jdbc-mysql-0.9.9.jar file.  I'm assuming both files can
>    reside in the same folder without issue.
>    - I then restarted tomcat and guacd services.  Cleared my history on
>    both my Chrome and Firefox browsers and loaded up my Guacamole site.
>    Nothing has changed.
>    - I then restarted my Guacamole server.  Again no changes on my login
>    page.
>
>
> I'm at a loss here as to why this isn't working?  I did make sure that the
> .jar file of this customize extension has the guac-manifest.json in the root
> of the directory (and not in a subdirectory).
>
> I have no idea what log files to look into to confirm if my extension is
> even seen.  But I'm assuming it's not recognized.  Where should I look to
> confirm this?
>
> Any other ideas on what I need to do?
>
> Thank you.
>
> On Thu, Oct 19, 2017 at 9:48 PM, Nick Couchman <vn...@apache.org> wrote:
>
>> On Thu, Oct 19, 2017 at 5:27 PM, Charles Mccrea <ch...@gmail.com>
>> wrote:
>>
>>> Hello Nick and thank you for this explanation.
>>>
>>> I've searched my guacamole server for a guacamole.properties location.
>>> I found two:
>>>
>>> /etc/guacamole/guacamole.properties
>>> /usr/share/tomcat/.guacamole/guacamole.properties
>>>
>>> It would appear that one is a pointer to the other so basically I have
>>> found my guacamole.properties file.
>>>
>>> Looking within my guacamole.properties file I do not find an entry for
>>> GUACAMOLE_HOME.  Should this environment variable be there?
>>>
>>>
>>>    - Will defining a Guacamole_home environment variable then tell
>>>    guacamole where to find my new extension .jar file?
>>>    - And my Guacamole does work as of now in that I can login and use
>>>    Guacamole.  So how does my Guacamole currently work if it doesn't know
>>>    where the Guacamole home is?
>>>
>>> Charles,
>> I think all you need to do is create the extensions directory inside the
>> /etc/guacamole and/or /usr/share/tomcat/.guacamole directory, then drop
>> your JAR file in there and restart Tomcat or redeploy the web app.
>>
>> -Nick
>>
>
>

RE: Assistance on creating jar file from directory

Posted by Ryan Underwood <ry...@greymarketlabs.com>.
Charles,
I used that exact example and it works for me.
I'm not sure if you've confirmed that the extension specifies a compatible version of guacamole, and that it matches your version...
I increased the logging level on mine following these instructions: https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#webapp-logging (logback file goes in your guacamole home). If that fails to increase logging then there's a "home" problem. That overall made it easier to debug within the web app, though not as easy as the eclipse tomcat plugin!
-Ryan


Sent from my Android phone using TouchDown (www.symantec.com)

-----Original Message-----
From: Charles Mccrea [charlesmccrea@gmail.com]
Received: Saturday, 21 Oct 2017, 10:05AM
To: user@guacamole.incubator.apache.org [user@guacamole.incubator.apache.org]
Subject: Re: Assistance on creating jar file from directory

Hi Nick,

Still working on this issue but I'm still not seeing results.  Here's the scoop:

Using this post - https://sourceforge.net/p/guacamole/discussion/1110834/thread/48fcbd3e/#bd49/2661, I'm able to confirm a lot of things.

  *   I've looked into my /etc/passwd file and confirmed that my tomcat home is /usr/share/tomcat/.guacamole/.
  *   Inside this directory I have my guacamole.properties file and the extensions folder.
  *   I didn't have my GUACAMOLE_HOME environement variable set so I've done this now using an .sh script.  Confirmed on reboot that my environment variable is set properly.
  *   Inside this /usr/share/tomcat/.guacamole/extensions folder I have the guacamole-auth-jdbc-mysql-0.9.9.jar file.  At the bottom of that forum post I'm following there is an example extension .jar file.  I've used this to see if I can make changes to my login screen so I've copied this .jar file into my extensions folder so it sits beside the guacamole-auth-jdbc-mysql-0.9.9.jar file.  I'm assuming both files can reside in the same folder without issue.
  *   I then restarted tomcat and guacd services.  Cleared my history on both my Chrome and Firefox browsers and loaded up my Guacamole site.  Nothing has changed.
  *   I then restarted my Guacamole server.  Again no changes on my login page.

I'm at a loss here as to why this isn't working?  I did make sure that the .jar file of this customize extension has the guac-manifest.json in the root of the directory (and not in a subdirectory).

I have no idea what log files to look into to confirm if my extension is even seen.  But I'm assuming it's not recognized.  Where should I look to confirm this?

Any other ideas on what I need to do?

Thank you.

On Thu, Oct 19, 2017 at 9:48 PM, Nick Couchman <vn...@apache.org>> wrote:
On Thu, Oct 19, 2017 at 5:27 PM, Charles Mccrea <ch...@gmail.com>> wrote:
Hello Nick and thank you for this explanation.

I've searched my guacamole server for a guacamole.properties location.  I found two:

/etc/guacamole/guacamole.properties
/usr/share/tomcat/.guacamole/guacamole.properties

It would appear that one is a pointer to the other so basically I have found my guacamole.properties file.

Looking within my guacamole.properties file I do not find an entry for GUACAMOLE_HOME.  Should this environment variable be there?


  *   Will defining a Guacamole_home environment variable then tell guacamole where to find my new extension .jar file?
  *   And my Guacamole does work as of now in that I can login and use Guacamole.  So how does my Guacamole currently work if it doesn't know where the Guacamole home is?

Charles,
I think all you need to do is create the extensions directory inside the /etc/guacamole and/or /usr/share/tomcat/.guacamole directory, then drop your JAR file in there and restart Tomcat or redeploy the web app.

-Nick


Re: Assistance on creating jar file from directory

Posted by Charles Mccrea <ch...@gmail.com>.
Hi Nick,

Still working on this issue but I'm still not seeing results.  Here's the
scoop:

Using this post -
https://sourceforge.net/p/guacamole/discussion/1110834/thread/48fcbd3e/#bd49/2661,
I'm able to confirm a lot of things.

   - I've looked into my /etc/passwd file and confirmed that my tomcat home
   is /usr/share/tomcat/.guacamole/.
   - Inside this directory I have my guacamole.properties file and the
   extensions folder.
   - I didn't have my GUACAMOLE_HOME environement variable set so I've done
   this now using an .sh script.  Confirmed on reboot that my environment
   variable is set properly.
   - Inside this /usr/share/tomcat/.guacamole/extensions folder I have
the guacamole-auth-jdbc-mysql-0.9.9.jar
   file.  At the bottom of that forum post I'm following there is an example
   extension .jar file.  I've used this to see if I can make changes to my
   login screen so I've copied this .jar file into my extensions folder so it
   sits beside the guacamole-auth-jdbc-mysql-0.9.9.jar file.  I'm assuming
   both files can reside in the same folder without issue.
   - I then restarted tomcat and guacd services.  Cleared my history on
   both my Chrome and Firefox browsers and loaded up my Guacamole site.
   Nothing has changed.
   - I then restarted my Guacamole server.  Again no changes on my login
   page.


I'm at a loss here as to why this isn't working?  I did make sure that the
.jar file of this customize extension has the guac-manifest.json in the root
of the directory (and not in a subdirectory).

I have no idea what log files to look into to confirm if my extension is
even seen.  But I'm assuming it's not recognized.  Where should I look to
confirm this?

Any other ideas on what I need to do?

Thank you.

On Thu, Oct 19, 2017 at 9:48 PM, Nick Couchman <vn...@apache.org> wrote:

> On Thu, Oct 19, 2017 at 5:27 PM, Charles Mccrea <ch...@gmail.com>
> wrote:
>
>> Hello Nick and thank you for this explanation.
>>
>> I've searched my guacamole server for a guacamole.properties location.  I
>> found two:
>>
>> /etc/guacamole/guacamole.properties
>> /usr/share/tomcat/.guacamole/guacamole.properties
>>
>> It would appear that one is a pointer to the other so basically I have
>> found my guacamole.properties file.
>>
>> Looking within my guacamole.properties file I do not find an entry for
>> GUACAMOLE_HOME.  Should this environment variable be there?
>>
>>
>>    - Will defining a Guacamole_home environment variable then tell
>>    guacamole where to find my new extension .jar file?
>>    - And my Guacamole does work as of now in that I can login and use
>>    Guacamole.  So how does my Guacamole currently work if it doesn't know
>>    where the Guacamole home is?
>>
>> Charles,
> I think all you need to do is create the extensions directory inside the
> /etc/guacamole and/or /usr/share/tomcat/.guacamole directory, then drop
> your JAR file in there and restart Tomcat or redeploy the web app.
>
> -Nick
>

Re: Assistance on creating jar file from directory

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Oct 19, 2017 at 5:27 PM, Charles Mccrea <ch...@gmail.com>
wrote:

> Hello Nick and thank you for this explanation.
>
> I've searched my guacamole server for a guacamole.properties location.  I
> found two:
>
> /etc/guacamole/guacamole.properties
> /usr/share/tomcat/.guacamole/guacamole.properties
>
> It would appear that one is a pointer to the other so basically I have
> found my guacamole.properties file.
>
> Looking within my guacamole.properties file I do not find an entry for
> GUACAMOLE_HOME.  Should this environment variable be there?
>
>
>    - Will defining a Guacamole_home environment variable then tell
>    guacamole where to find my new extension .jar file?
>    - And my Guacamole does work as of now in that I can login and use
>    Guacamole.  So how does my Guacamole currently work if it doesn't know
>    where the Guacamole home is?
>
> Charles,
I think all you need to do is create the extensions directory inside the
/etc/guacamole and/or /usr/share/tomcat/.guacamole directory, then drop
your JAR file in there and restart Tomcat or redeploy the web app.

-Nick

Re: Assistance on creating jar file from directory

Posted by Charles Mccrea <ch...@gmail.com>.
Hello Nick and thank you for this explanation.

I've searched my guacamole server for a guacamole.properties location.  I
found two:

/etc/guacamole/guacamole.properties
/usr/share/tomcat/.guacamole/guacamole.properties

It would appear that one is a pointer to the other so basically I have
found my guacamole.properties file.

Looking within my guacamole.properties file I do not find an entry for
GUACAMOLE_HOME.  Should this environment variable be there?


   - Will defining a Guacamole_home environment variable then tell
   guacamole where to find my new extension .jar file?
   - And my Guacamole does work as of now in that I can login and use
   Guacamole.  So how does my Guacamole currently work if it doesn't know
   where the Guacamole home is?


Thank you.



On Thu, Oct 19, 2017 at 2:49 PM, Nick Couchman <vn...@apache.org> wrote:

> On Thu, Oct 19, 2017 at 2:40 PM, Charles Mccrea <ch...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I'm attempting to make a custom icon on my login page.  I've installed
>> Guacamole on CentOS 7.
>>
>> I'm using information from this page - http://apache-guacamole-incu
>> bating-users.2363388.n4.nabble.com/Branding-the-login-page-td281.html
>>
>> I've created my jar file and put this into the following location:
>>
>> /var/lib/guacamole/extensions/
>>
>> I then restart my guacamole server and reload my guacamole website.  The
>> changes I've put into the new jar file I created are not showing up.  Do I
>> need to change anything else in Guacamole so it knows to use my jar file?
>>
>>
> Charles,
> Have you defined /var/lib/guacamole either in the GUACAMOLE_HOME
> environment variable or in the catalina.properties file under the
> guacamole.home property?  The default is a ".guacamole" directory in the
> Tomcat user's home directory, so you would need to override this if you
> wanted it elsewhere.
>
> http://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#
> guacamole-home
>
> -Nick
>

Re: Assistance on creating jar file from directory

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Oct 19, 2017 at 2:40 PM, Charles Mccrea <ch...@gmail.com>
wrote:

> Hello,
>
> I'm attempting to make a custom icon on my login page.  I've installed
> Guacamole on CentOS 7.
>
> I'm using information from this page - http://apache-guacamole-
> incubating-users.2363388.n4.nabble.com/Branding-the-login-page-td281.html
>
> I've created my jar file and put this into the following location:
>
> /var/lib/guacamole/extensions/
>
> I then restart my guacamole server and reload my guacamole website.  The
> changes I've put into the new jar file I created are not showing up.  Do I
> need to change anything else in Guacamole so it knows to use my jar file?
>
>
Charles,
Have you defined /var/lib/guacamole either in the GUACAMOLE_HOME
environment variable or in the catalina.properties file under the
guacamole.home property?  The default is a ".guacamole" directory in the
Tomcat user's home directory, so you would need to override this if you
wanted it elsewhere.

http://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#guacamole-home

-Nick