You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Asbern <as...@trainocate.com> on 2018/07/23 05:08:03 UTC

Guacmaole Pre-built WAR VS Client

Hi,

 

I have a doubt, if I installed guacamole using pre-built version
<http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-
incubating/binary/guacamole-0.9.13-incubating.war>
guacamole-0.9.13-incubating.war and I need to  add any new extension or
modify existing html in that case can do it in same package or need to
redeploy new
<http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-
incubating/source/guacamole-client-0.9.13-incubating.tar.gz>
guacamole-client-0.9.13-incubating.tar.gz from scratch? 
I was aware, a new extension can create only if it has guac-manifest.json
file but in pre built package it don't have that file, so it has any
alternate method? Thanks

 

Best Regards,
A. Asbern

 


Re: Guacmaole Pre-built WAR VS Client

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Jul 27, 2018 at 8:07 AM Asbern <as...@trainocate.com> wrote:

> Hi,
>
>
>
> I have used your extension and added html into that based on
> https://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html,
> but without html the extension is working fine, when I add html its not
> getting reflected.
>
> https://github.com/sanjay186/Extension, I have uploaded the .jar file,
> please let me know if I had missed something. Thanks
>
>
>

Looks like you're just packaging it incorrectly - when you generate the
JAR, you need to zip it from within the directory.  So, your JAR looks like
this:

   Length      Date    Time    Name
---------  ---------- -----   ----
        0  2018-07-25 07:39   generic-customize-extension/
        0  2018-07-27 12:28   generic-customize-extension/web/
      719  2016-05-14 21:38   generic-customize-extension/web/custom.css
      272  2018-07-27 12:26   generic-customize-extension/web/loginnew.html
        0  2015-05-17 22:51   generic-customize-extension/web/images/
    34858  2016-05-14 21:36
 generic-customize-extension/web/images/logo.png
    11171  2016-05-14 21:30
 generic-customize-extension/web/images/logo-144.png
     4651  2015-05-17 20:51
 generic-customize-extension/web/images/background.png
     4414  2016-05-14 21:34
 generic-customize-extension/web/images/logo-64.png
      566  2018-07-27 12:27   generic-customize-extension/guac-manifest.json
        0  2015-06-03 08:46   generic-customize-extension/translations/
      129  2016-05-14 21:21
 generic-customize-extension/translations/en.json
---------                     -------
    56780                     12 files


but it should look like this:

Archive:  generic-customize-extension.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2018-07-27 12:28   web/
      719  2016-05-14 21:38   web/custom.css
      272  2018-07-27 12:26   web/loginnew.html
        0  2015-05-17 22:51   web/images/
    34858  2016-05-14 21:36   web/images/logo.png
    11171  2016-05-14 21:30   web/images/logo-144.png
     4651  2015-05-17 20:51   web/images/background.png
     4414  2016-05-14 21:34   web/images/logo-64.png
      566  2018-07-27 12:27   guac-manifest.json
        0  2015-06-03 08:46   translations/
      129  2016-05-14 21:21   translations/en.json
---------                     -------
    56780                     11 files


So, when you run the zip command, run it inside the directory and zip it to
a file up one level:
cd generic-customize-extension
zip -r ../generic-customize-extension.jar ./

-Nick

RE: Guacmaole Pre-built WAR VS Client

Posted by Asbern <as...@trainocate.com>.
Hi,

 

I have used your extension and added html into that based on https://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html, but without html the extension is working fine, when I add html its not getting reflected. 

https://github.com/sanjay186/Extension, I have uploaded the .jar file, please let me know if I had missed something. Thanks 

 

Best Regards,
A. Asbern

 

From: Mike Jumper [mailto:mjumper@apache.org] 
Sent: Monday, July 23, 2018 11:40 AM
To: user@guacamole.apache.org
Subject: Re: Guacmaole Pre-built WAR VS Client

 

On Sun, Jul 22, 2018 at 10:08 PM, Asbern <as...@trainocate.com> wrote:

Hi,

 

I have a doubt, if I installed guacamole using pre-built version  <http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-incubating/binary/guacamole-0.9.13-incubating.war> guacamole-0.9.13-incubating.war and I need to  add any new extension or modify existing html in that case can do it in same package or need to redeploy new  <http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-incubating/source/guacamole-client-0.9.13-incubating.tar.gz> guacamole-client-0.9.13-incubating.tar.gz from scratch? 

 

When you deploy Guacamole, you deploy the .war file. Whether you download that .war file in pre-built form or build it yourself from source (the .tar.gz) makes no difference. It is the same application. You do not need to build Guacamole from source to create or to install extensions. That is part of the point of extensions.

 

I was aware, a new extension can create only if it has guac-manifest.json file but in pre built package it don’t have that file, so it has any alternate method?

 

As discussed in your other thread [1], the "guac-manifest.json" file is a file that needs to be part of your extension. It should be within your extension's .jar file. It is *not* a part of the web application. Guacamole will read the "guac-manifest.json" file from within your extension's .jar file during startup.

 

http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-file-format

 

- Mike

 

[1] https://lists.apache.org/thread.html/550440a119903f939c15e32590a81b59dbab17c40dea61557848b9b8@%3Cuser.guacamole.apache.org%3E

 


Re: Guacmaole Pre-built WAR VS Client

Posted by Mike Jumper <mj...@apache.org>.
On Sun, Jul 22, 2018 at 10:08 PM, Asbern <as...@trainocate.com> wrote:

> Hi,
>
>
>
> I have a doubt, if I installed guacamole using pre-built version
> guacamole-0.9.13-incubating.war
> <http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-incubating/binary/guacamole-0.9.13-incubating.war>
> and I need to  add any new extension or modify existing html in that case
> can do it in same package or need to redeploy new guacamole-client-0.9.13-
> incubating.tar.gz
> <http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/0.9.13-incubating/source/guacamole-client-0.9.13-incubating.tar.gz>
> from scratch?
>

When you deploy Guacamole, you deploy the .war file. Whether you download
that .war file in pre-built form or build it yourself from source (the
.tar.gz) makes no difference. It is the same application. You do not need
to build Guacamole from source to create or to install extensions. That is
part of the point of extensions.

I was aware, a new extension can create only if it has guac-manifest.json
> file but in pre built package it don’t have that file, so it has any
> alternate method?
>

As discussed in your other thread [1], the "guac-manifest.json" file is a
file that needs to be part of your extension. It should be within your
extension's .jar file. It is *not* a part of the web application. Guacamole
will read the "guac-manifest.json" file from within your extension's .jar
file during startup.

http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-file-format

- Mike

[1]
https://lists.apache.org/thread.html/550440a119903f939c15e32590a81b59dbab17c40dea61557848b9b8@%3Cuser.guacamole.apache.org%3E