Package: x2goserver
Severity: normal
Version: 3.1.1.4
Tags: pending
Stéphane Graber reported the issue below to the x2go-dev Mailing list...
----- Weitergeleitete Nachricht von stgraber(a)ubuntu.com -----
Datum: Tue, 25 Sep 2012 22:44:16 -0400
Von: Stéphane Graber <stgraber(a)ubuntu.com>
Antwort an: x2go-dev(a)lists.berlios.de
Betreff: [X2Go-Dev] x2gocleansessions not handling sigchld
An: x2go-dev(a)lists.berlios.de
Hello,
Running x2go 3.1.1.4-0~592~precise1 on 12.04, I'm still seeing
x2gocleansessions not properly cleaning up after its children, resulting
in a bunch of zombie processes.
I added a very basic SIGCHLD handler to the perl script and it seems to
have been doing the trick, at least for the past few hours.
I just added:
$SIG{CHLD} = sub { wait };
After the existing:
$SIG{TERM}=\&catch_term;
--
DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel(a)das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x…
Dear all,
The X2Go Project is proud to announce a couple of new X2Go component releases:
- x2goserver (3.1.1.4)
- cups-x2go (3.0.0.4)
- x2goplasmabindings (with plasma-widget-x2go, 3.0.1.4)
- python-x2go (0.2.0.10)
All new packages will be available in our stable repositories (Debian,
Ubuntu) within the next 24h.
In the past months we skipped some minor announcements of release that
were related to inclusion of some X2Go components in Debian (being
available wheezy, partly in jessie).
In the new X2Go Server release several issues got addressed:
o Audio support (pulseaudio) with X2Go-proxied RDP sessions
o Media support (client-side shared folders) for X2Go-proxied RDP sessions
o XDCMP session type fixed
o Fix KWin crashes on Kubuntu 12.04 (sponsored by Rohloff AG, thanks
Mirco!!!)
o Fix Xinerama with x2goserver-xsession package installed (also:
thanks Mirco)
In cups-x2go Helmer Teles provided us with a patch that now allows to
specify the number of copies in a print job. Thanks to Helmer for that.
In Python X2Go we fixed these issues:
o Colour depth issues on Windows Clients (16 vs 17 bit)
o Keyboard focus in X2Go-proxied RDP session against Windows 7 / 2008
o Fix session crashes due to left over bash-like commands
o Prepare for DirectRDP session options...
A Windows version of PyHoca-GUI with latest Python X2Go in it will be
deferred till the release of PyHoca-GUI 0.2.0.5 (due in a couple of
weeks, I guess).
In the Plasma widget for X2Go we adapted the code to become aware of
the modified mount points for SSHfs shares (introduced with X2Go
Server 3.1.1.2).
light+love,
Mike
x2goserver (3.1.1.4-0~x2go1) unstable; urgency=low
[ Jan Engelhardt ]
* New upstream version (3.1.1.4):
- Add -pie as linker flag. Fixes non-position-independent-executable
(x2gosqlitewrapper.c). The executable is now completely position
independent.
[ Mike Gabriel ]
* New upstream version (3.1.1.4):
- Fix x2gosessionlimit script.
- Wrap padsp around rdesktop calls if pulse is used as audio protocol.
- Add option ,,-r sound:local'' to rdesktop calls if pulse is enabled.
- Proxy X2Go client-side shares into remote desktop session.
- For applications inside of a session, use NX's Xrandr library instead
of Xorg's Xrandr library (partially closes #28).
- Make sure when launching desktop session through the Xsession mechanism
that the LD_LIBRARY_PATH variable stays intact. Closes #29.
- Only extend LD_LIBRARY_PATH by Xrandr extension for KDE. Breaks GNOME.
* /debian/control:
+ Maintainer change in package: X2Go Developers
<x2go-dev(a)lists.berlios.de>.
+ Depend on nx-libs (>=3.5.0.15-0~) which has the Xrandr symlinks folder.
+ Add rdesktop and pulseaudio-utils to Suggests.
+ Priority: optional.
[ Oleksandr Shneyder ]
* New upstream version (3.1.1.4):
- Remove "-nolisten tcp" option with XDMCP sessions.
-- Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
Tue, 25 Sep 2012 13:15:11 +0200
cups-x2go (3.0.0.4-0~x2go1) unstable; urgency=low
[ Mike Gabriel ]
* New upstream version (3.0.0.4):
- Add more debug messages.
- Use proper project name where appropriate and possible (,,X2Go'').
* Maintainer change in package: X2Go Developers <x2go-dev(a)lists.berlios.de>.
[ Helmer Teles ]
* New upstream version (3.0.0.4):
- Fix ignoring number of copies to be printed for single pages.
-- Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
Tue, 25 Sep 2012 15:59:04 +0200
python-x2go (0.2.0.10-0~x2go1) unstable; urgency=low
* New upstream version (0.2.0.10):
- Use session type 'D' for X2Go-proxied RDP session when run in
fullscreen mode. Fixes upstream issue #27.
- Indentation fix in defaults.py.
- Make Python X2Go aware of DirectRDP settings in session profiles.
- Ignore DirectRDP options in session profile config for now.
- Remove bashism from X2Go server command calls. Caused servers
with no installed x2goserver-xsession package to crash desktop
sessions (observed with KDE4 on Ubuntu 12.04).
- Handle 16bit and 17bit colour depth (Windows clients) as
equal when resuming sessions.
* Maintainer change in package: X2Go Developers <x2go-dev(a)lists.berlios.de>.
-- Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
Tue, 25 Sep 2012 16:03:24 +0200
x2goplasmabindings (3.0.1.4-0~x2go1) unstable; urgency=low
* New upstream version (3.0.1.4):
- Fix version file.
-- Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
Tue, 25 Sep 2012 15:53:38 +0200
x2goplasmabindings (3.0.1.3-0~x2go1) unstable; urgency=low
* New upstream version (3.0.1.3):
- Make plasme-widget-x2go of new mount points of spool and mimebox share.
- Make plasma-widget-x2go aware of new path names in x2goserver (>=
3.1.1.3).
* /debian/control:
+ Maintainer change in package: X2Go Developers
<x2go-dev(a)lists.berlios.de>.
+ Priorty: optional.
+ Depend on x2goserver >= 3.1.1.2.
-- Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
Tue, 25 Sep 2012 15:48:05 +0200
--
DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel(a)das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x…
Hi All (Hi John):
John, thanks so much for the input - we're trying to use the instructions from:
http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsqlhttp://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-printing
...and given that we cannot get do a manual ssh command line connection from the cups server/Vserver Host (which is this design we assume is the "ssh client") to the x2go server/Vserver Guest (which would then be the "ssh server") that that is probably where the problem lies (which we think is what John is suggesting).
FYI though we cannot ping the Vserver guest from the host or visa versa by domain name (each can resolve to itself if we ping within the respective environments...i.e., in the Vserver host, if we ping "servername.myhost.com" the ip resolves), we think this is some sort of network protocol/firewall issue (the inability to ping by domain name) and not the source of the problem, but could be wrong.
Are guessing this is an ssh issue and are working to sort that. We have some security concerns about have an active ssh between Vserver guests and hosts, but figure we want to get the printing working first and then think about possible security issues.
SO...when we first try to connect via ssh commands from the cups server on the vserver host to the x2go server on the Vserver guest with the postgreSQL back end per http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-printing, we get...
RSA key fingerprint is dd:04:0f:56:5f:23:a8:71:e6:d8:aa:64:4c:91:16:0d.
Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '192.168.1.112' (RSA) to the list of known hosts.
Permission denied (publickey).
We couldn't get the initial "here's how you move the public key from the client to the authorized_keys on the server", so we created /home/x2goprint/.ssh and added the public key info to authorized_keys there by hand....this also may be the source of the problem. We've tried checking the permissions and ownership on /home/x2goprint and it's .ssh and authorized_keys, as well as the x2go servers sshd_config file but no joy yet. Interestingly, our attempts do create a know_hosts file so we think some level of connection occurs.
What's interesting, is that the print jobs show up in the /var/spool/cups logs on the cups server (Vserver host), so there seems to be some level of connection....sowe're guessing the the correct ssh connection is "the problem" we need to fix for x2goprint (the script) to work.
Thanks for the input - may write back with questions, or hopefully "this is how we solved this"...
Best,
Ted
Hello,
Running x2go 3.1.1.4-0~592~precise1 on 12.04, I'm still seeing
x2gocleansessions not properly cleaning up after its children, resulting
in a bunch of zombie processes.
I added a very basic SIGCHLD handler to the perl script and it seems to
have been doing the trick, at least for the past few hours.
I just added:
$SIG{CHLD} = sub { wait };
After the existing:
$SIG{TERM}=\&catch_term;
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
Using libssh compiled from
http://git.libssh.org/projects/libssh.git/log/?h=v0-5
I now can successfully connect via a proxy server to a SSH server.
My coding is available at
svn co http://www.xypron.de/svn/x2go/x2goclient/branches/proxy/
The changes in sshmasterconnection.* and connectionwidget.* are complete
to my understanding.
In onmainwindow I have only treated one of three entrypoints to
sshmasterconnection. E.g. LDAP is not proxy enabled yet.
In onmainwindow the proxy password field I introduced possibly should
only be shown if a proxy is used and a login provided.
Best regards
Heinrich
Hi All:
We're trying to get printing to work using X2go and Vserver. Per Mike's suggestion, we've shifted to trying the Postgres approach (http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql and http://www.x2gorg/doku.php/wiki:advanced:multi-node:x2goserver-printing) but are still stuck. This is long, but are hoping will help...
Some "suspects" are DNS, permissions (thanks John Sullivan for his suggestion), and ssh between the x2go server on the vserver and the cups server on the host (see below...Set up SSH Keys)
Right now, when we try to print, superficially things seem to go as they should (e.g., entries for successful printing get entered in the cups logs) but nothing happens either in terms of popping a pdf and getting "Show this diaglog before starting printing" on the client or getting a page to print. FYI - the symptoms are pretty much the same as when we were stuck with single node x2go printing.
TERMS:
We think of things in the following terms, and hope this is useful for clarity:
Host - computer that runs Vserver platform and Cups server. It is on this that we have set up the virtual x2go printer, shared it, and generated the ssh key for printing from x2go servers
Guest - Vserver instances where x2goserver and the PostgreSQL backend are located and x2goserver-printing is installed, to which a client connects
Client - netbook from which we connect to x2go on the Vserver Guest.
SETUP
1) On Vserver Guest (x2go server):
- Installed and set up PostgreSQL; added the "user" to postgres (user1) to be used when connecting from the x2go client to the x2go server and PostgreSQL database (x2godgadmin --adduser user1).
- Installed x2go-server-printing
NOTE: we got the following messages when setting up PostgreSQL and because we can connect (and sqlpass gets generated in user's .x2go on the x2go server) assume they don't matter, but have included them:
root@vserver1:/usr/lib# x2godbadmin --createdb
NOTICE: database "x2go_sessions" does not exist, skipping
NOTICE: role "x2godbuser" does not exist, skipping
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "sessions_pkey" for table "sessions"
NOTICE: CREATE TABLE / UNIQUE will create implicit index "sessions_display_key" for table "sessions"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "messages_pkey" for table "messages"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "used_ports_pkey" for table "used_ports"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "mounts_pkey" for table "mounts"
root@vserver12:/usr/lib# x2godbadmin --adduser user1
NOTICE: role "x2gouser_user1" does not exist, skipping
create DB user "x2gouser_user1"
2) On Vserver Host (Cups Server):
- Installed cups-x2go
- Used "http://localhost:631" and added the virtual x2go printer and shared it (we couldn't see it on the client unless we shared it)
- Used Visudo to add "x2goprint ALL=(ALL) NOPASSWD: /usr/bin/x2goprint
- Set up SSH Keys using http://www.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-printing
NOTE: we had trouble getting the keys to copy over (ssh-copy-id /usr/bin/ssh-copy-id: ERROR: No identities found). We cannot ping the Guest from the Host by server name (e.g., vserver1.mydomain.com) but can by ip address. We ended up creating /home/x2goprint/.ssh/authorized_keys and adding the contents of id_dsa-x2goprint.pub by hand. We then issued ssh -i /root/.ssh/id_dsa-x2goprint x2goprint(a)x192.168.1.112 and got:
The authenticity of host '192.168.1.112 (192.168.1.112)' can't be established.
RSA key fingerprint is dd:04:0f:56:5f:23:a8:71:e6:d8:aa:64:4c:91:16:0d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.112' (RSA) to the list of known hosts.
Permission denied (publickey).
Is this "Permission denied (publickey)." the cause of our problems? It appears to have added an RSA key where we think the keys created where DSA...
3) Tested the x2go connection from the client. We could connect. Then tried to print: we can see the virtual x2go printer but cannot get any of the desired outcomes to occur (printing, get pdf to open using evince parameter).
4) Observations
On the Vserver host (cups server)
a) the print job files show up in /var/spool/cups
b) in http://localhost:631 the print jobs show as completed
c) there are no errors in /var/log/cups/error_log and the page_log and access_log seem to restister the successful print job and access to the cups
When things are working:
d) When things are working (straight connection from an x2go client to an x2go server - no vserver), on the server in home/user1/.x2go there is a healthly "spool" link to /tmp/.x2go-userx/spool/user1-50-1348322588_stDGNOME_dp24. When we print, some files get generated from there we think in the /tmp/.x2go...directory and the x2goprint code grabs them and uses them.
But...on the guest
e) On the setup we are trying to get working (client to Vserver Guest/X2goServer/PostgreSQL on a Vserver host), the spool link is shown as broken and the "on the fly" print files don't get created.
5) Help
Q: is this some sort of DNS issue - we can't ping "vserver1.mydomain.com" but assume this is a protocol/firewall issue and not the problem in terms of printing.
Q: John Sullivan wondered if this is a permissions issue (i.e., does the cups server have write access to the client spool directory): if this is the issue, we're not sure how to test or fix it. We looked at the permissions on the "working" vs. "not working" set ups on the spool directory and couldn't see any differences, but may be missing the point.
Q: Vserver uses an fstab configu outside of the vserver itself where /tmp is listed as "none /tmp tmpfs size=128m,mode=1777 0 0" (and the /etc/fstab inside the Vserver only has "# UNCONFIGURED FSTAB FOR BASE SYSTEM"). Does the Vserver fstab set up get in the way of the spool link writing to the /tmp/.x2go....folder on the client? If so, this sound like it might be along the lines of John Sullivan's suggestion.
Q: did the errors we got when generated the ssh keys matter "(Permission denied (publickey)."? The content of the Vserver/Cups Server host known hosts has:
- a prefix of "|1|Ha2q5mBmGyrl4CYri92TPRb6NNU=|3gihEfRTYU8UHwI4FrQcSq29Exg="
- then the contents of the authorized_keys on the Vserver Guest/x2go server /home/user1/.ssh/authorized_keys file up to but excluding the "root(a)vserver1.mydomain.com"
Or did we create DSA keys but somehow when trying to add them got crossed up with RSA keys (e.g., Warning: Permanently added '192.168.1.112' (RSA) to the list of known hosts.").
We know this is tough to troubleshoot remotely, but any help very much appreciated.
Best,
Ted
Hi All:
This morning, per yesterday's email re: our trouble printing using a Vserver guest with postgreSQL and a Vserver host doubling as a cups server, we tried an experiment that didn't work but thought we'd add it in.
-We increased the Vserver config fstab (not the fstab in the Vserver's /etc but the one in the Vserver config folder) to 1024M.
-We started x2go and noted the session name
-By hand, we created a folder with the session name in /tmp (i.e., tmp/.x2go-user1/spool/C-user1-50-1348405390_stDGNOME_dp24) on the Vserver guest/x2go server.
-We erased the broken spool link, and created a new one that points to the new folder in /tmp again on the Vserver guest/x2go server.
At that point, the link was active (not broken) but nothing changed in our inablity to print. I.e., we start a print job on the virtual x2go printer, all seems to go fine, but no joy in terms of evince starting on the client or getting a page to print.
Still though, the print jobs are showing up in /var/spool/cups on the cups server, in the cups interface (http://localhost:631) the page_log in /var/log/cups on the cups server, and we don't get any errors in error_log in /var/log/cups on the cups server. That has been the case before.
We think that fact that we can connect via x2go shows that the postgreSQL setup is working, that the print jobs are showing up on the cups server suggests that the printing ssh connection works (though we're less sure about this).
Not sure what to make of this....but hope it was worth adding.
Best,
Ted