Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client & Server for RedHat6 and I have the following suggestion/problem:
Server: it's hard to package the X2GO Server as RPM because some paths (/etc/x2go) are hardcoded into the Makefiles and a "make PREFIX=/path install" still installs the files under /etc/x2go. Could anyone please change the Makefile so that the PREFIX option works?
Client: in order to compile the client I downloaded the libssh-0.5.0-1 and libssh-devel-0.5.0-1 as RPMs and installed them (it's the same library as Debian's libssh-4, just a newer Version -- the one from Debian Squeeze is the version 0.4.5-3). The client basically works, but segfaults sometimes (not always) in "exception" cases, for example false authentication to the X2GO server.
Here's a snippet from a X2GO Session, first it works all right, then I disconnect and start again with a false password:
search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" "Info: Using shared memory parameters 1/2048K. "
search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" search proxy win: "X2GO-btaru-55-1326987931_stDGNOME_dp24" proxy win found: 69206095 "Session: Terminating session at 'Fri Jan 27 08:42:52 2012'. Session: Session terminated at 'Fri Jan 27 08:42:52 2012'. "
deleting proxy
nxproxy not running
proxy deleted
check command message
start new ssh connection to server: "vpn.myserver.de" : "22" krb: false
Heinz suggested that I use the x2golistsessions, x2goruncommand, x2goagent over SSH (btw, the X2GO Server runs on Ubuntu, and the other clients work OK) and log their return codes -- but how can I do that? Just SSH in to the Ubuntu server and call these 3 tools from the command line, with echo $? after?
Thanks for your support, Bogdan
Hi Bogdan-Andrei,
thanks a lot for your e-Mail.
On Fr 27 Jan 2012 09:07:27 CET Bogdan-Andrei Taru wrote:
Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client &
Server for RedHat6 and I have the following suggestion/problem:
Awesome!!!
Server: it's hard to package the X2GO Server as RPM because some
paths (/etc/x2go) are hardcoded into the Makefiles and a "make
PREFIX=/path install" still installs the files under /etc/x2go.
Could anyone please change the Makefile so that the PREFIX option
works?
You can definitely accelerate the process if you send a tested patch.
Please send patches that apply for your code base in X2Go Git. To
clone a project use
git clone git://code.x2go.org/x2goserver.git git clone git://code.x2go.org/x2goclient.git etc.
Modify the code and send the output of ,,git diff'' to this mailing list.
I will take a look at the Makefiles, but if you find time to send a
patch, that will probably much quicker!!!
Client: in order to compile the client I downloaded the
libssh-0.5.0-1 and libssh-devel-0.5.0-1 as RPMs and installed them
(it's the same library as Debian's libssh-4, just a newer Version --
the one from Debian Squeeze is the version 0.4.5-3). The client
basically works, but segfaults sometimes (not always) in "exception"
cases, for example false authentication to the X2GO server.[...]
Heinz suggested that I use the x2golistsessions, x2goruncommand,
x2goagent over SSH (btw, the X2GO Server runs on Ubuntu, and the
other clients work OK) and log their return codes -- but how can I
do that? Just SSH in to the Ubuntu server and call these 3 tools
from the command line, with echo $? after?
The segfaulting seems like Alex should take a look at that. Could you
send exact versions (of every X2Go component) that you use for testing
and packaging?
The manual testing with x2gostartagent, x2goruncommand etc. is
possible but I cannot explain that without digging into the client code.
@Heinz+Alex: if you can provide a manual session startup workflow,
could you please document that in the wiki???
Thanks+Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike,
thanks for the fast answer! I can package the X2GO Server all rite, but I run into the following error after installing it (I'm trying to test it). I'm a newbie to X2Go, so sorry for asking obvious questions.
I've installed X2GO, Postgres, I created the DB and User with x2godbadmin --createdb and --adduser, and I'm trying to connect with this user, but this results in the following error:
"x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_24 de pc105/de 1 D KDE"
search proxy win: "X2GO-" search proxy win: "X2GO-" search proxy win: "X2GO-" search proxy win: "X2GO-" search proxy win: "X2GO-" search proxy win: "X2GO-" Agent output: "51 b07796551fc3a7d0a558f21dc508e724 5841 bgd-51-1327672132_stDKDE_dp24 30006 30007 30008 " starting nxproxy with: "nxproxy -S nx/nx,options=/root/.x2go/S-bgd-51-1327672132_stDKDE_dp24/options:51"
" NXPROXY - Version 3.3.0
Copyright (C) 2001, 2007 NoMachine. See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '5900'. Session: Starting session at 'Fri Jan 27 14:48:53 2012'. Info: Connecting to remote host 'localhost:31006'. Info: Connection to remote proxy 'localhost:31006' established. "
search proxy win: "X2GO-bgd-51-1327672132_stDKDE_dp24" "channel_open_forward failed" : "Channel opening failure: channel 47 error (2) Connection refused"
"channel_write failed" - "Remote channel is closed"
"Error: The remote NX proxy closed the connection. "
"Error: Failure negotiating the session in stage '7'. Error: Wrong version or invalid session authentication cookie. Session: Terminating session at 'Fri Jan 27 14:48:53 2012'. Session: Session terminated at 'Fri Jan 27 14:48:53 2012'. "
deleting proxy
nxproxy not running
proxy deleted
check command message
Any ideas?
Thx, Bogdan
On 27.01.2012, at 09:18, Mike Gabriel wrote:
Hi Bogdan-Andrei,
thanks a lot for your e-Mail.
On Fr 27 Jan 2012 09:07:27 CET Bogdan-Andrei Taru wrote:
Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client & Server for RedHat6 and I have the following suggestion/problem:
Awesome!!!
Server: it's hard to package the X2GO Server as RPM because some paths (/etc/x2go) are hardcoded into the Makefiles and a "make PREFIX=/path install" still installs the files under /etc/x2go. Could anyone please change the Makefile so that the PREFIX option works?
You can definitely accelerate the process if you send a tested patch. Please send patches that apply for your code base in X2Go Git. To clone a project use
git clone git://code.x2go.org/x2goserver.git git clone git://code.x2go.org/x2goclient.git etc.
Modify the code and send the output of ,,git diff'' to this mailing list.
I will take a look at the Makefiles, but if you find time to send a patch, that will probably much quicker!!!
Client: in order to compile the client I downloaded the libssh-0.5.0-1 and libssh-devel-0.5.0-1 as RPMs and installed them (it's the same library as Debian's libssh-4, just a newer Version -- the one from Debian Squeeze is the version 0.4.5-3). The client basically works, but segfaults sometimes (not always) in "exception" cases, for example false authentication to the X2GO server.
[...]
Heinz suggested that I use the x2golistsessions, x2goruncommand, x2goagent over SSH (btw, the X2GO Server runs on Ubuntu, and the other clients work OK) and log their return codes -- but how can I do that? Just SSH in to the Ubuntu server and call these 3 tools from the command line, with echo $? after?
The segfaulting seems like Alex should take a look at that. Could you send exact versions (of every X2Go component) that you use for testing and packaging?
The manual testing with x2gostartagent, x2goruncommand etc. is possible but I cannot explain that without digging into the client code.
@Heinz+Alex: if you can provide a manual session startup workflow, could you please document that in the wiki???
Thanks+Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
X2go-Dev mailing list X2go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Hi Bogdan,
On Fr 27 Jan 2012 14:54:43 CET Bogdan-Andrei Taru wrote:
[...]
2 questions...
Q1:
Have you already packaged NX (redistributed)? This is needed for the
X2Go server side. For using X2Go you have to use NX as provided by
X2Go. Our NX (redistributed) should work fine with FreeNX and alike.
http://code.x2go.org/releases/source/nx-libs/nx-libs_3.5.0.8-full.tar.gz
The Makefiles are far from optimal, so we have to cooperated on
fine-tuning them. John Williams has also contributed to that, but I
have not had time and priority to improve them.
Q2:
Why do you configure Postgres? For packaging please provide an SQLite
solution. X2Go can be used without Postgres and without Postgres it is
possible to install X2Go server and let it run out of the box. Please
pre-configure X2Go server with SQLite. Please refer to the postinst
script in the /debian folder:
http://code.x2go.org/gitweb?p=x2goserver.git;a=blob;f=debian/x2goserver.post...
thanks, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Fri, 2012-01-27 at 15:55 +0100, Mike Gabriel wrote:
Hi Bogdan, <snip> Q2: Why do you configure Postgres? For packaging please provide an SQLite
solution. X2Go can be used without Postgres and without Postgres it is
possible to install X2Go server and let it run out of the box. Please
pre-configure X2Go server with SQLite. Please refer to the postinst
script in the /debian folder: http://code.x2go.org/gitweb?p=x2goserver.git;a=blob;f=debian/x2goserver.post...
<snip> Shouldn't that be an option? I would think PostgreSQL would be the preferred approach for larger or multiserver installations - John
Am 27.01.2012 16:21, John A. Sullivan III schrieb:
On Fri, 2012-01-27 at 15:55 +0100, Mike Gabriel wrote:
Hi Bogdan, <snip> Q2: Why do you configure Postgres? For packaging please provide an SQLite
solution. X2Go can be used without Postgres and without Postgres it is
possible to install X2Go server and let it run out of the box. Please
pre-configure X2Go server with SQLite. Please refer to the postinst
script in the /debian folder: http://code.x2go.org/gitweb?p=x2goserver.git;a=blob;f=debian/x2goserver.post...<snip> Shouldn't that be an option? I would think PostgreSQL would be the preferred approach for larger or multiserver installations - John
No, this realy depends on the installation. But the more important thing is that SQLite can work out of the box, while Postgres always needs some manual work and switching from SQLite to Postgres is one of the minor issues in this process.
Morty
On Fri, Jan 27, 2012 at 6:55 AM, Mike Gabriel <mike.gabriel@das-netzwerkteam.de> wrote:
The Makefiles are far from optimal, so we have to cooperated on fine-tuning them. John Williams has also contributed to that, but I have not had time and priority to improve them.
I think fixing the imake/xmake files will take a long time. In the meantime, maybe you could include this folder along with the nx-libs redistributed tarball, maybe put it in a folder called "alternate build files". This is a small update to the files I sent you before. I have been testing it for more than a week now, and it works well on my system.
Hello Bogdan,
Am 27.01.2012 09:07, schrieb Bogdan-Andrei Taru:
Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client & Server for RedHat6 and I have the following suggestion/problem:
Server: it's hard to package the X2GO Server as RPM because some paths (/etc/x2go) are hardcoded into the Makefiles and a "make PREFIX=/path install" still installs the files under /etc/x2go. Could anyone please change the Makefile so that the PREFIX option works? @Mike: is such solution possible? Can you, please, take care about it?
Client: in order to compile the client I downloaded the libssh-0.5.0-1 and libssh-devel-0.5.0-1 as RPMs and installed them (it's the same library as Debian's libssh-4, just a newer Version -- the one from Debian Squeeze is the version 0.4.5-3). The client basically works, but segfaults sometimes (not always) in "exception" cases, for example false authentication to the X2GO server.
Looks like a bug in x2goclient. I'll try to find and fix it
[........... ]
Thanks for your support, Bogdan
X2go-Dev mailing list X2go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Am 27.01.2012 09:25, schrieb Oleksandr Shneyder:
Hello Bogdan, [........... ] Looks like a bug in x2goclient. I'll try to find and fix it [........... ]
fixed. Check out x2goclient source tree from git.
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Hi Alex,
if this affects the Microsoft Windows x2goclient as well (where I remember seeing similar crashes) - when will that one be fixed? What's the version number to look for?
Kind Regards, Stefan
Am 27.01.2012 09:58, schrieb Oleksandr Shneyder:
Am 27.01.2012 09:25, schrieb Oleksandr Shneyder:
Hello Bogdan, [........... ] Looks like a bug in x2goclient. I'll try to find and fix it [........... ]
fixed. Check out x2goclient source tree from git.
regards, Alex
X2go-Dev mailing list X2go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Am 27.01.2012 10:02, schrieb newsgroups.mail2@stefanbaur.de:
Hi Alex,
if this affects the Microsoft Windows x2goclient as well (where I remember seeing similar crashes) - when will that one be fixed? What's the version number to look for?
Kind Regards, Stefan
Hi Stefan,
I can build windows version immediately. @Mike: can you please tag current source tree as release?
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Am 27.01.2012 10:12, schrieb Oleksandr Shneyder:
Hi Stefan, I can build windows version immediately.
That would be cool. I have a rollout coming up and could include the new, more stable version if you manage to get it released today or tomorrow.
-Stefan
Hi Alex,
On Fr 27 Jan 2012 10:12:26 CET Oleksandr Shneyder wrote:
Am 27.01.2012 10:02, schrieb newsgroups.mail2@stefanbaur.de:
Hi Alex,
if this affects the Microsoft Windows x2goclient as well (where I remember seeing similar crashes) - when will that one be fixed? What's the version number to look for?
Kind Regards, Stefan
Hi Stefan,
I can build windows version immediately. @Mike: can you please tag current source tree as release?
give me an hour (or maybe 1.5h). Just arrived at a customer and have
to fix some LDAP/NFS stuff first.
Getting back to you in 60min or so...
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Alex,
On Fr 27 Jan 2012 10:12:26 CET Oleksandr Shneyder wrote:
Am 27.01.2012 10:02, schrieb newsgroups.mail2@stefanbaur.de:
Hi Alex,
if this affects the Microsoft Windows x2goclient as well (where I remember seeing similar crashes) - when will that one be fixed? What's the version number to look for?
Kind Regards, Stefan
Hi Stefan,
I can build windows version immediately. @Mike: can you please tag current source tree as release?
Tagged. Source tarball is here: http://code.x2go.org/releases/source/x2goclient/x2goclient_3.99.0.5.tar.gz
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Am 27.01.2012 12:53, schrieb Mike Gabriel:
Hi Alex,
[...........]
Tagged. Source tarball is here: http://code.x2go.org/releases/source/x2goclient/x2goclient_3.99.0.5.tar.gz
Mike
X2go-Dev mailing list X2go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
thank you
-- Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Hi Bogdan-Andrei,
On Fr 27 Jan 2012 09:25:58 CET Oleksandr Shneyder wrote:
Hello Bogdan,
Am 27.01.2012 09:07, schrieb Bogdan-Andrei Taru:
Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client &
Server for RedHat6 and I have the following suggestion/problem:Server: it's hard to package the X2GO Server as RPM because some
paths (/etc/x2go) are hardcoded into the Makefiles and a "make
PREFIX=/path install" still installs the files under /etc/x2go.
Could anyone please change the Makefile so that the PREFIX option
works? @Mike: is such solution possible? Can you, please, take care about it?
Please use:
$ make install PREFIX=/usr DESTDIR=/your/package/dir
All destination paths in the Makefiles should have a $(DESTDIR)
prepended. If not, it is a bug. Then please report.
Thanks, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Bogdan-Andrei,
On Fr 27 Jan 2012 13:40:55 CET Mike Gabriel wrote:
Hi Bogdan-Andrei,
On Fr 27 Jan 2012 09:25:58 CET Oleksandr Shneyder wrote:
Hello Bogdan,
Am 27.01.2012 09:07, schrieb Bogdan-Andrei Taru:
Hello everyone,
I'm fairly new to x2go, but I'm trying to package X2Go Client &
Server for RedHat6 and I have the following suggestion/problem:Server: it's hard to package the X2GO Server as RPM because some
paths (/etc/x2go) are hardcoded into the Makefiles and a "make
PREFIX=/path install" still installs the files under /etc/x2go.
Could anyone please change the Makefile so that the PREFIX option
works? @Mike: is such solution possible? Can you, please, take care about it?Please use:
$ make install PREFIX=/usr DESTDIR=/your/package/dir
All destination paths in the Makefiles should have a $(DESTDIR)
prepended. If not, it is a bug. Then please report.
Please try that out with x2goserver from X2Go Git. If that works I
will bump a bugfix release for x2goserver. The change between 3.0.99.9
is:
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=53189140add345ba...
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=ce3023c2ee41457a...
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Fri, Jan 27, 2012 at 12:07 AM, Bogdan-Andrei Taru <bogdan.taru@gmail.com> wrote:
Server: it's hard to package the X2GO Server as RPM because some paths (/etc/x2go) are hardcoded into the Makefiles and a "make PREFIX=/path install" still installs the files under /etc/x2go. Could anyone please change the Makefile so that the PREFIX option works?
I just realized that you were talking about the x2goserver tarball, not the nx-libs redistributed tarball. Sorry about that.
Anyway, Mike already fixed the missing DESTDIR lines in the x2goserver tarball in git. He just needs to release a tarball based on the current git code.
By the way, how are you packaging all the other required files that are needed with x2goserver? The ones that are in nx-libs redistributed?