Re: SFTP error "unable to open file XXX" on Win8 RDP host

2017-07-12 Thread Marko Nikolić
Maybe it is related to
https://issues.apache.org/jira/plugins/servlet/mobile#issue/GUACAMOLE-222.
The file was remaining locked after download and no operation on this file
were possible any more.

Regards,
Marko

On Wed, 12 Jul 2017, 18:50 Suncatcher16,  wrote:

> Could anybody help? The problem is still unsolved. It affects both on Win8
> and Win7.
> Upload/download via linux scp goes fine, WInSCP also goes OK. The reason is
> in Guacamole.
>
>
>
> --
> View this message in context:
> http://apache-guacamole-incubating-users.2363388.n4.nabble.com/SFTP-error-unable-to-open-file-XXX-on-Win8-RDP-host-tp1155p1280.html
> Sent from the Apache Guacamole (incubating) - Users mailing list archive
> at Nabble.com.
>


RDP session fails if SFTP is not available

2017-06-13 Thread Marko Nikolić
Hello,

We are using Guacamole to access RDP servers and we are using file transfer
with SFTP protocol (RDP+SFTP configuration). Sometimes it happens that SFTP
server is not available/reachable and in that case Guacamole drops the
whole connection.

Is it possible to still have RDP connection in the case when SFTP server is
configured in parameters, but the actual server is not available? Something
like failback from RDP+SFTP to RDP only. Such connection would have reduced
functionality compared to what is requested in the parameters, but I think
from the user perspective this is still better than having no connection at
all.

Regards,
Marko


Re: Guacamole login page customization 0.9.12

2017-05-30 Thread Marko Nikolić
It is possible to customize guacamole in this way, but it will essentially
result in the custom release of Guacamole. Any upgrade to the new Guacamole
release will require repeating of this procedure.

On the other side, extensions are not that much dependent on the guacamole
version and upgrades (but for sure requires testing before production).

Marko

уто, 30. мај 2017. у 23:20 Al Gore  је написао/ла:

> If you do not want to make any modifications to the code, simply download
> the
> prebuilt .WAR file from:
>
> http://guacamole.incubator.apache.org/releases/0.9.12-incubating/
>
> Open this file with an archive program such as 7zip and you should see a
> list of files and folders:
>
> <
> http://apache-guacamole-incubating-users.2363388.n4.nabble.com/file/n1026/Capture.png
> >
>
> Open the folder labeled "translations" and will see a list of languages in
> the form of "en.json" or "no.json" (by the way you can add to this list if
> you want Spanish in there). Edit these files and replace every instance of
> "Apache Guacamole" with "V2S Labs". Make sure to save them within the WAR
> file.
>
> Next, you can take your logo in PNG format and replace files in the
> "images"
> folder. You will need to replace guac-tricolor.png, logo-64.png,
> logo-144.png, and guac-mono-192.png. I would recommend looking at the
> dimensions of these images and replacing them with the same size image. Be
> sure to overwrite the image files with your logo files using the exact same
> name, e.g. "logo-64.png" must be replaced with a file called "logo-64.png".
>
> Take the resulting WAR file and place it in your Java app container, such
> as
> Tomcat
>
>
>
>
>
> --
> View this message in context:
> http://apache-guacamole-incubating-users.2363388.n4.nabble.com/Guacamole-login-page-customization-0-9-12-tp1022p1026.html
> Sent from the Apache Guacamole (incubating) - Users mailing list archive
> at Nabble.com.
>


Re: Guacamole login page customization 0.9.12

2017-05-30 Thread Marko Nikolić
Hi Goncalo,

It is the extension format for the path, you don't need to create
app/ext/V2SLABS path. You can find the format description here:

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

Look at the manifest table and check the "resources" row.

Regards,
Marko

уто, 30. мај 2017. у 23:19 Goncalo Rosa  је написао/ла:

> Hi Marko,
>
>
>
> Thank you so much.
>
>
>
> Sorry for my ignorance, but should I create this path (app/ext/V2SLABS/) on
> my system? Or what really it represents that path?
>
>
>
> Thank you in advance.
>
>
>
>
>
>
>
> Gonçalo Rosa
>
>
>
> [image: image001.jpg]
>
> *W:* www.v2s.us   *Skype:* goncalo_rosa
>
>
>
> *From:* Marko Nikolić [mailto:marko.nikolic...@gmail.com]
> *Sent:* Tuesday, May 30, 2017 16:10
> *To:* user@guacamole.incubator.apache.org
> *Subject:* Re: Guacamole login page customization 0.9.12
>
>
>
> Hi Goncalo,
>
>
>
> I have checked the zip file and have few comments:
>
>
>
> - The image is present, but I don't see that it is used anywhere. I think
> you should add a .css file that uses image and reference this file in
> guac-manifest.json. Something like this in css:
>
>
>
> .login-ui .login-dialog .logo {
>
> background-image:  url('app/ext/V2SLABS/web/images/v2s.png');
>
> }
>
>
>
> and in manifest-json add reference to your css:
>
>
>
> "css" : ["V2SLABS.css"],
>
>
>
> I didn't check the above, so please make sure all paths are correct.
>
>
>
> - Regarding translation, are you sure that en_US.json is used on your
> system? On my system it en.json, so I guess it depends on your regional
> settings.
>
>
>
>
>
> Regards,
>
> Marko
>
>
>
> уто, 30. мај 2017. у 22:05 Goncalo Rosa  је
> написао/ла:
>
>
>
> Hello,
>
>
>
> I just implemented Guacamole 0.9.12 and I am trying to customize the login
> page. However I am not a Web developer, so I tried to follow the following
> link:
>
>
> http://apache-guacamole-incubating-users.2363388.n4.nabble.com/Branding-the-login-page-td281.html
>
>
>
> Attached is the JAR (renamed as zip) that I created. However I can’t
> understand why is not working, when I upload it on
> GUACAMOLE_HOME/extensions.
>
>
>
> Can someone be so kind and help me?
>
>
>
> I just want to do 2 things:
>
>1. Replace the login guacamole logo
>2. Replace the “NAME” caption from “Apache Guacamole” to “V2S LABs”
>
>
>
> Thank you in advance.
>
> Kind regards,
>
>
>
> Gonçalo Rosa
>
>
>
> [image: grosa_CO]
>
> *W:* www.v2s.us   *Skype:* goncalo_rosa
>
>
>
>


Setting sftp-directory ignored

2017-05-26 Thread Marko Nikolić
Hello,


I am connecting to remote machine using RDP+SFTP and the file transfer over
SFTP is working correctly, including programatically uploading files to
different directories on the destination machine.

However, I am not able to set sftp-directory for files dropped on desktop;
any value set there is ignored. The files uploaded via drag&drop are always
saved to the SFTP default directory (root directory in my case). Is there
something else that has to be set?

I have checked the code in the client, the handler for "drop" event in
guacClient directive
(guacamole/src/main/webapp/app/client/directives/guacClient.js) is just
calling uploadFile without specifing filesystem and directory to upload to;
I guess in that case files are sent to default fs/directory.

Am I missing something else here? How is sftp-directory parameter handled?


Thanks,
Marko


Re: AngularJS version

2017-05-04 Thread Marko Nikolić
The last comment in the bug report says it is fixed in 1.4.9.

Marko

пет, 5. мај 2017. 02.31 Mike Jumper  је
написао/ла:

> On May 4, 2017 3:14 PM, "Marko Nikolić" 
> wrote:
>
> Hello,
>
> Is there some reason for keeping the AngularJS version that is almost two
> years old (1.3.16)?
>
>
> The main reason is compatibility. The entire UI would need to be retested.
> Not all AngularJS versions are 100% compatible with each other, so
> upgrading it can be a major task.
>
> I am asking because I am expriencing angular bug
> https://github.com/angular/angular.js/issues/13380 in my extension, which
> is solved in the more recent version of angular.
>
>
> How recent?
>
>


AngularJS version

2017-05-04 Thread Marko Nikolić
Hello,

Is there some reason for keeping the AngularJS version that is almost two
years old (1.3.16)? I am asking because I am expriencing angular bug
https://github.com/angular/angular.js/issues/13380 in my extension, which
is solved in the more recent version of angular.

Regards,
Marko


Re: Changing error dialogs

2017-04-28 Thread Marko Nikolić
суб, 29. апр 2017. 00.16 Mike Jumper  је
написао/ла:

> On Fri, Apr 28, 2017 at 2:23 PM, Marko Nikolić  > wrote:
>
>> Hello,
>>
>> I need to remove home button, have separate dialog title for connecton
>> errors
>>
>
> It sounds like changes to the dialog styling are exactly sufficient for at
> least these two requirements, as they're purely cosmetic.
>


Actually, the dialog title text for both client error and tunnel error are
the same, I need those separated and different. How to distinguish between
those two errors?


> add button with custom behaviour.
>>
>>
> What behavior specifically?
>
> You can add just about anything to styling and HTML through extensions,
> but whether the button you're looking to add is possible depends on what
> the button actually does.
>


All dialogs are displayed using guacNotification, I don't want to alter
behavior in all cases (or for all dialogs). I need to alter dialogs only
for some specific error messages, the others should stay the same.


> - Mike
>
>


Re: Changing error dialogs

2017-04-28 Thread Marko Nikolić
Hello,

I need to remove home button, have separate dialog title for connecton
errors, add button with custom behaviour.

Regards,
Marko


пет, 28. апр 2017. 18.35 Mike Jumper  је
написао/ла:

> On Apr 28, 2017 7:27 AM, "Marko Nikolić" 
> wrote:
>
> Hello,
>
> I would like to customize the functionality of the error dialogs in the
> Guacamole client application within the extension I am developing.
>
>
> In what way?
>
> - Mike
>
>


Changing error dialogs

2017-04-28 Thread Marko Nikolić
Hello,

I would like to customize the functionality of the error dialogs in the
Guacamole client application within the extension I am developing. Changing
the dialog texts and the styling of the dialogs are not sufficient for my
use case.

I found that the error handling dialogs are displayed from the
clientController.js file, but I don't want to change original code; I want
all customization to be within extension.

Is it possible to somehow override the funcionality contained in
clientController from extension?

Thanks,
Marko


Re: Help with compiling guacamole-server-0.9.12-incubating on SUSE 12 SP2 with RDP

2017-04-19 Thread Marko Nikolić
Hello,

The issue is probably the version of freerdp libraries, you should use 1.x
branch. The stable-1.1 works fine.

Check the output of configure, it should display "freerdp: yes" if the
freerdp library is found and has correct version.

Regards,
Marko


сре, 19. апр 2017. 19.15 Aleksandar M  је написао/ла:

> Hello!
>
> I'm trying to compile guacamole-server-0.9.12-incubating on SUSE Linux
> Enterprise Server 12 SP2.
>
> I would like to compile with RDP support but I'm unsure on what I'm
> doing wrong.
>
> The warning I get is:
>
> checking for freerdp/kbd/layouts.h... no
> configure: WARNING:
>   
>Unable to find keyboard layout headers
>RDP will be disabled.
>   
>
> I have these packages installed (if that is of any help):
>
> freerdp-devel-2.0.0~git.1477034991.043243f-76.1.x86_64
> freerdp-2.0.0~git.1477034991.043243f-76.1.x86_64
> libfreerdp2-2.0.0~git.1477034991.043243f-76.1.x86_64
>
> Do you have any ideas or should I build FreeRDP from source as well?
>
> Thanks.
>
>
>


Guacamole with broker

2017-04-10 Thread Marko Nikolić
Hello,

We are planning to use Guacamole with connection broker, where the broker
should redirect the connection to server farm and start application on one
of the servers.

Is something like this possible with guacamole? We are able to make
connection to the broker, but redirected app fails and we get a black
screen.

Regards,
Marko


Two desktops in parallel

2017-03-30 Thread Marko Nikolić
Hello,

I am using Guacamole 0.9.10 and I was trying to make two (or more)
different desktops (or applications) running each in separate browser tab.
However, I can connect within one tab, and the another tab is always the
same as the first one, I even does not get the login prompt in the second
tab.

When I try with incognito window, it is possible to connect to the second
desktop. However, I would prefer if this could be possible within two
"normal" windows.

I was trying with SimpleAuthProvider and with JDBC MySql provider, but
without success. Is scenario like this one supported at all?

Thanks and regards,
Marko


Connection close

2017-03-13 Thread Marko Nikolić
Hello,

I am writing an java extension on the server side that should detect when
the connection is closed, either by using Logout or closing the browser
window.

I have found TunnelCloseEvent/Listener in the Java API, but it seems that
it is not used any more. Is there some other method for detecting
connection close event within extension?

Thanks and regards,
Marko


Re: SFTP file locking

2017-03-13 Thread Marko Nikolić
I have made some short testing and it seems that thare are no more problems
with file locking.

Beside the above, I had issue with failing to connect to some of the
servers when SFTP is turned on, with error message "Error waiting for file
descriptor."  (0.10-incubating). Somehow, this happens on some servers, on
some don't, but with the latest code, everything work.

Marko

пон, 27. феб 2017. у 00:27 Marko Nikolić  је
написао/ла:

Thanks for the quick response! I'll try latest version and report back.

Regards,
Marko

пон, 27. феб 2017. у 00:23 Mike Jumper  је
написао/ла:

Mind building the latest from git master and giving it another shot? I
believe we just fixed this:

https://issues.apache.org/jira/browse/GUACAMOLE-222

- Mike


On Sun, Feb 26, 2017 at 6:00 AM, Marko Nikolić 
wrote:

Hello,

I am using Guacamole RDP + SSH connection and have some strange behaviour
after SFTP file transfer.

The Guacamole connects to the SSH server correctly, and files can be
browsed from the sidebar menu and downloaded. However, after download all
downloaded files stays locked on the server. Until Guacamole disconnects,
the files stay locked on the server and cannot be moved or deleted.

When the files are downloaded with sftp client from terminal, with the same
credentials, the server does not lock files after download.

I have made tests with two different SFTP servers (Sysax and Rebex Tiny)
and results are the same. The logs from the Rebex SFTP server shows that
after getting file from Guacamole, the file on the server side is not
closed, as shown below:

14:48:36.447 Debug SFTP: Getting item info on
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
14:48:36.509 Debug SFTP: Opening file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
14:48:42.009 Debug SFTP: Getting item info on '/Downloads': success.

When the same file is downloaded from terminal, there is file close in the
logs:

14:47:34.118 Debug SFTP: Getting item info on
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
14:47:34.181 Debug SFTP: Opening file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
14:47:34.228 Debug SFTP: Closing file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.

Has anybody faced similar issues?

Regards,
Marko


Re: SFTP file locking

2017-02-26 Thread Marko Nikolić
Thanks for the quick response! I'll try latest version and report back.

Regards,
Marko

пон, 27. феб 2017. у 00:23 Mike Jumper  је
написао/ла:

> Mind building the latest from git master and giving it another shot? I
> believe we just fixed this:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-222
>
> - Mike
>
>
> On Sun, Feb 26, 2017 at 6:00 AM, Marko Nikolić  > wrote:
>
> Hello,
>
> I am using Guacamole RDP + SSH connection and have some strange behaviour
> after SFTP file transfer.
>
> The Guacamole connects to the SSH server correctly, and files can be
> browsed from the sidebar menu and downloaded. However, after download all
> downloaded files stays locked on the server. Until Guacamole disconnects,
> the files stay locked on the server and cannot be moved or deleted.
>
> When the files are downloaded with sftp client from terminal, with the
> same credentials, the server does not lock files after download.
>
> I have made tests with two different SFTP servers (Sysax and Rebex Tiny)
> and results are the same. The logs from the Rebex SFTP server shows that
> after getting file from Guacamole, the file on the server side is not
> closed, as shown below:
>
> 14:48:36.447 Debug SFTP: Getting item info on
> '/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
> 14:48:36.509 Debug SFTP: Opening file
> '/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
> 14:48:42.009 Debug SFTP: Getting item info on '/Downloads': success.
>
> When the same file is downloaded from terminal, there is file close in the
> logs:
>
> 14:47:34.118 Debug SFTP: Getting item info on
> '/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
> 14:47:34.181 Debug SFTP: Opening file
> '/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
> 14:47:34.228 Debug SFTP: Closing file
> '/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
>
> Has anybody faced similar issues?
>
> Regards,
> Marko
>
>
>


SFTP file locking

2017-02-26 Thread Marko Nikolić
Hello,

I am using Guacamole RDP + SSH connection and have some strange behaviour
after SFTP file transfer.

The Guacamole connects to the SSH server correctly, and files can be
browsed from the sidebar menu and downloaded. However, after download all
downloaded files stays locked on the server. Until Guacamole disconnects,
the files stay locked on the server and cannot be moved or deleted.

When the files are downloaded with sftp client from terminal, with the same
credentials, the server does not lock files after download.

I have made tests with two different SFTP servers (Sysax and Rebex Tiny)
and results are the same. The logs from the Rebex SFTP server shows that
after getting file from Guacamole, the file on the server side is not
closed, as shown below:

14:48:36.447 Debug SFTP: Getting item info on
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
14:48:36.509 Debug SFTP: Opening file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
14:48:42.009 Debug SFTP: Getting item info on '/Downloads': success.

When the same file is downloaded from terminal, there is file close in the
logs:

14:47:34.118 Debug SFTP: Getting item info on
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.
14:47:34.181 Debug SFTP: Opening file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi' (Open, Read): success.
14:47:34.228 Debug SFTP: Closing file
'/Downloads/tightvnc-2.8.5-gpl-setup-64bit.msi': success.

Has anybody faced similar issues?

Regards,
Marko


Re: File browser / prevent download

2016-11-24 Thread Marko Nikolić
In short, client is using software running on VPS via RDC. The service
provider adds some propritery data files to this software (that is what the
client is actually paying for). The client should not have ability to
download those files.

On the other side, client can make it's own data files and upload them to
VPS.

This is the reason why upload should be possible and download prevented.

Marko

чет, 24. нов 2016. 10.17 Mike Jumper  је
написао/ла:

> On Wed, Nov 23, 2016 at 2:06 PM, Chris Cook 
> wrote:
>
> As far as I know, I think you are going to be out of luck there.  Every
> major file transfer protocol that I know of requires read privileges to
> even list the file/directory when the storage heap/mount is queried.
>
> There are some weird file storage protocols out there that can
> expose/parse a file/directory name but prevent it from being accessed but
> these protocol settings are usually made at the storage adapter level.
>
> This is based on my experiences - there maybe someone else that knows
> something a little easier to implement...
>
>
> With Guacamole acting as the intermediary between the remote desktop and
> the user, it does have to intentionally service each upload or download, so
> selectively refusing to service download requests is possible.
>
> That said ... just because it can be done (perhaps even easily so) doesn't
> mean it *should* be done.
>
> Marko, can you describe why you need to allow file uploads but deny
> downloads? What your use case for such restrictions?
>
> - Mike
>
>


File browser / prevent download

2016-11-23 Thread Marko Nikolić
Hello,

I have a specific request for using guacamole file browser and putting
restrictions on file transfer. The user is accessing the server using
guacamole via RDP and it is required to allow uploading of files, but to
prevent downloading.

I have tried to set the permissions on the *drive-path* but it didn't work,
either it disables file transfer completely or it works in both directions.
Maybe I have missed something here.

Is it possible to implement this functionality using extensions? I couldn't
find much documentation about creating extensions, only some basic examples
for UI customization. What would be the correct approach for such
functionality?

Thanks,
Marko