You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by GitBox <gi...@apache.org> on 2020/12/11 07:28:44 UTC

[GitHub] [guacamole-server] mike-jumper opened a new pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

mike-jumper opened a new pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316


   Here it is - the X.Org driver. There's some documentation to be done with some of the older code, so I've opened this up as a draft and I'll get on that. In the meantime, definitely feel free to peek. It's a hefty bit of code.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758222095


   Sorry, updated my last comment.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim edited a comment on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim edited a comment on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758220885


   @mike-jumper I ran into an issue compiling this on rhel7, I danced around it by using a fix similar to this one:
   
   https://github.com/varnish/libvmod-example/pull/18/commits/ad96d3bc5ebe126c8cb6f03591c6fc62ffd6f3d6
   
   The error was this:
   ```
   libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
   libtoolize: copying file `build-aux/ltmain.sh'
   libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
   libtoolize: copying file `m4/libtool.m4'
   libtoolize: copying file `m4/ltoptions.m4'
   libtoolize: copying file `m4/ltsugar.m4'
   libtoolize: copying file `m4/ltversion.m4'
   libtoolize: copying file `m4/lt~obsolete.m4'
   configure.ac:1166: error: possibly undefined macro: PKG_CHECK_VAR
         If this token and others are legitimate, please use m4_pattern_allow.
         See the Autoconf documentation.
   autoreconf: /usr/bin/autoconf failed with exit status: 1
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-813762305


   From referencing the link to FreeRDP's use of `PKG_CHECK_MODULES` I toyed with updating this to not use `PKG_CHECK_VAR` and I think this works appropriately. I used `pkg-config --variable=moduledir xorg-server` to confirm it printed out the right directory on my system, as well as printed out the same when configuring. Additionally I verified that it places the guac driver files in the xorg/modules folder.
   
   
   [GUACAMOLE-168-pkgconfig.diff.txt](https://github.com/apache/guacamole-server/files/6261455/GUACAMOLE-168-pkgconfig.diff.txt)
   (github doesn't allow attaching diff files x.x)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] mike-jumper commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
mike-jumper commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-763201312


   > @mike-jumper:
   > 
   > > Doesn't this just mean that pkg-config needs to be installed for the PKG_CHECK_VAR macro to be defined?
   > 
   > As @knacktim mentioned, no, this isn't just the presence of pkg-config, but apparently this was introduced in version 0.28, which isn't available in EL7. See similar issues:
   > 
   > https://wiki.strongswan.org/issues/3406
   > https://www.redhat.com/archives/libguestfs/2018-July/msg00080.html
   >
   
   Ah, OK.
   
   > So, only really required during autoreconf operations. But, as EL7 is still relatively popular, might be worth finding a way to work around this.
   
   Yes, definitely. Perhaps we should instead use the same approach as we use for the FreeRDP module directory:
   
   https://github.com/apache/guacamole-server/blob/c769d18cf692642b788e8e9d8494f846bc2f0767/configure.ac#L658-L667


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-881571351


   I have several modifications to this branch which I would like to submit as pull requests, however since this branch is itself a pull request I'm not sure what the best approach is. The changes I have are
   ```
   GUACAMOLE-168: Update configure.ac ...
   GUACAMOLE-168: Don't require virtual console ...
   GUACAMOLE-168: Add support for "force-lossless" ...
   GUACAMOLE-168: Include SSL support for the x-server driver ...
   ```
   
   What would be the best way to submit these changes against this PR?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] necouchman commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
necouchman commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-763204051


   Yep, that would work. I also stumbled across this solution from someone in a completely different project:
   
   https://git.sagemath.org/sage.git/commit?id=16a0a75c66a2e05187e174f3336edd525c65bb41
   
   They wrote a M4 macro to do what `PKG_CHECK_VAR` does...


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758345162


   Note that I haven't tried compiling this specific pull request but I'm assuming it's a (mostly) clean port of mike-jumper/guacamole-server's xf86-video-guac branch, as that branch primarily only added new code into `src/drivers` and only made very minor modifications to the build process/setup. I'm willing to try testing out this specific pull request however I'm not yet wholly comfortable with GitHub/Git (lots of experience with mercurial) so I would need some help figuring out how to download this change along with applying a small changeset on top of it for my test environment. The test environment I'm working with I rebased `xf86-video-guac` on top of guacamole 1.2.0 tagged revision and applied a small change on top of.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-763195711


   I remember running into this issue a while back and I think the use of `scl` and `devtoolset-8` was one way I had resolved this.
   ```console
   $ yum install -y centos-release-scl
   $ yum install -y devtoolset-8
   $ scl enable devtoolset-8 'autoreconf --install --force'
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] necouchman commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
necouchman commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-763170708


   @mike-jumper:
   
   > Doesn't this just mean that pkg-config needs to be installed for the PKG_CHECK_VAR macro to be defined?
   
   As @knacktim mentioned, no, this isn't just the presence of pkg-config, but apparently this was introduced in version 0.28, which isn't available in EL7. See similar issues:
   
   https://wiki.strongswan.org/issues/3406
   https://www.redhat.com/archives/libguestfs/2018-July/msg00080.html
   
   So, only really required during autoreconf operations. But, as EL7 is still relatively popular, might be worth finding a way to work around this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] mike-jumper commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
mike-jumper commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-881707920


   @neandrake, I can just pull them into this PR. Where's your fork and branch?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758223026


   Additional reference: https://wiki.strongswan.org/issues/3406


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-881572546


   Notably the update for "force-lossless" requires merging this branch into 1.3.0 which adds a little more complexity with how to submit these additional changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-881722991


   As for verification, I've confirmed that with all changes
   1. I am able to build guacd on CentOS7 with most standard dependencies installed.
   2. I verified running X.org in a container with the guacd driver functions properly without having to grant the container access to the virtual console.
   3. I can specify "force-lossless" and from visual inspection it does appear to transmit lossless images. I've been meaning to add logging to confirm that the server is obeying this argument but I have not yet done so.
   4. I can connect to guacd server when configured both with and without SSL. Turning on SSL does seem to introduce some latency though I haven't done any thorough comparative testing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758220885


   @mike-jumper I ran into an issue compiling this on rhel7, I danced around it by using a fix similar to this one:
   
   https://github.com/varnish/libvmod-example/pull/18/commits/ad96d3bc5ebe126c8cb6f03591c6fc62ffd6f3d6


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] mike-jumper commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
mike-jumper commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758221798


   > @mike-jumper I ran into an issue compiling this on rhel7, ...
   
   What specific issue?
   
   > ... I danced around it by using a fix similar to this one:
   > 
   > [varnish/libvmod-example@ad96d3b](https://github.com/varnish/libvmod-example/commit/ad96d3bc5ebe126c8cb6f03591c6fc62ffd6f3d6)
   
   What specific fix?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758834803


   My apologies, I have `pkgconfig-0.27.1-4.el7` installed but it I think I need at least version `0.28` in order to get it to work.  I don't currently have access to that in my repos.  Thanks for the info! @neandrake 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] mike-jumper commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
mike-jumper commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758223519


   Ah, OK.
   
   > ```
   > ...
   > configure.ac:1166: error: possibly undefined macro: PKG_CHECK_VAR
   >       If this token and others are legitimate, please use m4_pattern_allow.
   >       See the Autoconf documentation.
   > ...
   > ```
   
   Doesn't this just mean that pkg-config needs to be installed for the `PKG_CHECK_VAR` macro to be defined?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake edited a comment on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake edited a comment on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758321806


   I ran into similar issues while compiling guacamole-server. Usually I think this type of issue means you don't have the right dependencies or the right version of dependencies installed. Here is the `Dockerfile` I've been using for building `guacamole-server` on centos7, but note that I'm not using this in a production environment but only setting up this docker image to be used by another image for testing. It contains some things that might not be necessary or not best practice (it also does not use pulse-audio).
   
   [Dockerfile.txt](https://github.com/apache/guacamole-server/files/5799129/Dockerfile.txt)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758321806


   I ran into similar issues while compiling guacamole-server. Usually I think this type of issue means you don't have the right dependencies or the right version of dependencies installed. Here is the `Dockerfile` I've been using for building `guacamole-server` on centos7, but note that I'm not using this in a production environment but only setting up this docker image to be used by another image for testing. It contains some things that might not be necessary (it also does not use pulse-audio).
   
   [Dockerfile.txt](https://github.com/apache/guacamole-server/files/5799129/Dockerfile.txt)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] knacktim edited a comment on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
knacktim edited a comment on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-758834803


   My apologies, I have `pkgconfig-0.27.1-4.el7` installed but I think I need at least version `0.28` in order to get it to work.  I don't currently have access to that in my repos.  Thanks for the info! @neandrake 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-886819821


   @mike-jumper Which window manager do you use when testing out the driver? I'm seeing some odd behaviors with child windows which I originally thought might have been a bug in the window manager I was using. I've tested with two different window managers and see the same behaviors though.
   
   Child windows have their content rendered offset by some arbitrary x/y amount but the mouse activity appears to be correctly interpreted: hovering where a button should render causes the offset rendering to highlight, clicking where it should be also registers that the button was clicked. The window managers I've tested this out on and seen the same behavior are with jwm and xfwm4.
   
   When I don't use a window manager at all the offset does not seem to occur which is why I first thought this was an issue with jwm. However after seeing this same issue with xfwm4 I'm thinking there might be a bug with child window resizing or positioning code in the driver. I've poked around with some of the surface clipping code but I'm still learning the code for this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [guacamole-server] neandrake commented on pull request #316: GUACAMOLE-168: Add experimental X.Org driver implementing the Guacamole protocol.

Posted by GitBox <gi...@apache.org>.
neandrake commented on pull request #316:
URL: https://github.com/apache/guacamole-server/pull/316#issuecomment-881717766


   I just created a fork and pushed the branch to https://github.com/neandrake/guacamole-server/tree/xorg


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org