Hi all, I have today released another development release of the generic X2Go Session Broker. Generic in this context means: highly configurable, highly flexible, but not always suitable for enterprise brokerage. The broker development is currently sponsored by http://fleten.net (and actually also by one of its customers). NOTE: The version 0.0.0.3 is able to provide load balancing for X2Go. Below I will give a raw outline on how to setup X2Go Session Broker with load balancing. I will presume that you either use Debian or Ubuntu. I will also presume that you know how to install packages, edit config files etc. (I am mailing this to x2go-dev ML, aren't I?) The proposed setup is: o 1 machine: broker.intern o n machines: ts01.intern, ts02.intern, ts02.intern, .., tsNN Please install all machines with a minimal system so we have clean machines to play with. Make sure you have a local DNS that is properly setup. All hostnames must be resolve through local DNS, and possibly also reverse resolvable. Setting up the X2Go Session Broker on broker.intern --------------------------------------------------- Installing the standalone X2Go Session Broker (x2gobroker-daemon) 1. add the X2Go package archive (Debian/Ubuntu) to your APT system 2. install the package x2gobroker-daemon 3. NOTE: read all the comments in the config file templates, they are very informative 4. in /etc/x2go/x2gobroker.conf, enable the inifile broker backend 5. edit /etc/x2go/x2gobroker-sessionprofiles.conf to your needs, look at the examples and be creative... 6. edit /etc/default/x2gobroker-daemon to let the broker bind to all interface addresses (bind_address is set to localhost:8080 by default). SSL support for x2gobroker-daemon 7. if in need of https support: create an SSL cert/key file pair, copy the files to /etc/x2go/broker/ssl/broker.{crt,key} 8. enable SSL support in /etc/default/x2gobroker-daemon Generate SSH pub/priv key files 9. Run the script as root: x2gobroker-keygen Restart x2gobroker-daemon 10. Run this command as root: invoke-rc.d x2gobroker-daemon restart WARNING: if you test this on Debian squeeze, please be aware of this bug in squeeze's python2.6 version: http://bugs.debian.org/701001. You have to manually apply the there-proposed patch to /usr/lib/python2.6/asyncore.py. -> If not: you will see the x2gobroker-authservice daemon consume 100% of the core it is running on... :-( Install PostgreSQL on the broker.intern machine 11. Install PostgreSQL server on this machine 12. Install the x2goserver package on this machine 13. Make sure this machine knows all users (libnss-***) and that all users can login to this machine (libpam-***). 14. Configure X2Go to use PostgreSQL as session DB backend: http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql 15. Prevent your non-admin users from logging in via SSH to this machine. This can be done with pam_access.so and /etc/security/access.conf. Setting up the X2Go Servers ts01.intern, ts02.intern, ... --------------------------------------------------------- Installing the standalone X2Go Session Broker (x2gobroker-daemon) 1. Install your favourite desktop shell (e.g. XFCE) 2. Install X2Go Server (package: x2goserver-xsession) 3. Tune your X2Go Server as you would do with a standalone X2Go Server 4. All users in your network must be able to logon to all X2Go Servers 5. All users must have the same home directory on all servers. -> use LDAP and NFS for achieving this!!! Use the PostgreSQL DB on broker.intern as backend for X2Go session management 6. Hook up each X2Go server to the PostgreSQL DB on broker.intern 7. Test, if all configured users are able to login via SSH, then via X2Go (use X2Go Client in normal mode, configure a session profile for testing and then test the session startup) Get the X2Go Broker Agent up and running... 8. Install the package x2gobroker-agent on all X2Go terminal servers. 9. On each X2Go Server in the multi-server farm run this script as root: $ x2gobroker-pubkeyauthorizer --broker-url http://broker.intern:8080/pubkeys/ --> if you have SSL configured in the broker, use https://... instead. Test X2Go Broker Agent access... 10. Switch over to broker.intern and test passwordless SSH: $ root@broker.intern$ su - x2gobroker $ x2gobroker@broker.intern$ ssh ts01.intern -> accept the host key manually here! -> do this for all X2Go Servers Start X2Go Client in Broker Mode 11. on some client system launch X2Go Client like this: <user>@client$ x2goclient --broker-url=http://broker.intern:8080/plain/infile/ -> with SSL support use https://..., of course. -> I have not tested SSL thorougly, yet, so you might start playing without SSL. If all went well (and I have not forgotten anything...), you can now login as one of your (LDAP) users and you get provided with a session profile list via the X2Go Broker. The communication between X2Go Client and X2Go Session Broker uses http as communication protocol. For trouble shooting... TROUBLE SHOOTING: ----------------- o enable debugging in /etc/default/x2gobroker-daemon o restart x2gobroker-daemon (via invoke-rc.d) o in X2GOBROKER_DEBUG mode you can use your webbrowser to test the broker communication... o e.g. http://broker.intern:8080/plain/inifile/?user=<user>&password=<pw>&task=listsessions http://broker.intern:8080/plain/inifile/?user=<user>&password=<pw>&task=selectsession&sid=<session-profile-id> --> the session profile id is the name in the square brackets at the top of each session profile option set... Happy testing!!! Please give feedback on this ML!!! Question can also asked via IRC (my nick is ,,sunweaver''). light+love, Mike -- DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Thursday 2013-02-21 22:33, Mike Gabriel wrote:
I have today released another development release of the generic X2Go Session Broker.
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vQN91z
/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: warning: jobserver unavailable: using -j1. Add
+' to parent make rule.
make[1]: *** No rule to make target Makefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3'
make: [clean_indep] Error 2 (ignored)/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: *** No rule to make target
Makefile.perl'. Stop.
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3'
make: *** [install] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)
Hi Jan,
On Sa 23 Feb 2013 13:08:48 CET Jan Engelhardt wrote:
On Thursday 2013-02-21 22:33, Mike Gabriel wrote:
I have today released another development release of the generic
X2Go Session Broker.Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vQN91z parent make rule.
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/x2gobroker-0.0.0.3-0.x86_64 ++ dirname /home/abuild/rpmbuild/BUILDROOT/x2gobroker-0.0.0.3-0.x86_64
- /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
- /usr/bin/mkdir /home/abuild/rpmbuild/BUILDROOT/x2gobroker-0.0.0.3-0.x86_64
- cd x2gobroker-0.0.0.3
- make -j10 rm -f lib/x2gobroker-agent make -f Makefile.perl realclean cc -fPIE -pie -o lib/x2gobroker-agent src/x2gobroker-agent.c make[1]: Entering directory
/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: warning: jobserver unavailable: using -j1. Add
+' tomake[1]: *** No rule to make target
Makefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make: [clean_indep] Error 2 (ignored)
- exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tYyr9H
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- cd x2gobroker-0.0.0.3
- make install
DESTDIR=/home/abuild/rpmbuild/BUILDROOT/x2gobroker-0.0.0.3-0.x86_64 make -f Makefile.perl install make[1]: Entering directory/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: *** No rule to make target
Makefile.perl'. Stop. make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/x2gobroker-0.0.0.3' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
The Makefile is totally incomplete. Before packaging it for other
(more Makefile dependend) distros (than distros with the .deb format),
we have to write the Makefile.
I will do this later, however, if you provide a patch, I will be very happy.
Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On a freshly installed Ubuntu 12.04:
abo@x2go-broker:~$ sudo aptitude install x2gobroker-daemon
The following NEW packages will be installed:
libpq5{a} python-cheetah{a} python-egenix-mxdatetime{a}
python-egenix-mxtools{a} python-flup{a} python-netaddr{a} python-pampy{a}
python-psycopg2{a} python-setproctitle{a} python-webpy{a}
python-x2gobroker{a} x2gobroker{a} x2gobroker-authservice{a}
x2gobroker-daemon
0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.045 kB of archives. After unpacking 9.460 kB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://dk.archive.ubuntu.com/ubuntu/ precise-updates/main libpq5
amd64 9.1.8-0ubuntu12.04 [97,5 kB]
Get: 2 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-cheetah
amd64 2.4.4-2ubuntu3 [174 kB]
Get: 3 http://dk.archive.ubuntu.com/ubuntu/ precise/main
python-egenix-mxtools amd64 3.2.1-1ubuntu1 [89,1 kB]
Get: 4 http://dk.archive.ubuntu.com/ubuntu/ precise/main
python-egenix-mxdatetime amd64 3.2.1-1ubuntu1 [79,3 kB]
Get: 5 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main python-pampy
all 0.1.4-0~2~precise1 [5.038 B]
Get: 6 http://dk.archive.ubuntu.com/ubuntu/ precise/universe python-flup
all 1.0.2-1 [48,4 kB]
Get: 7 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main python-webpy
all 1:0.37+20120626-0~2+build2~precise1 [96,1 kB]
Get: 8 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-netaddr all
0.7.5-4build2 [1.181 kB]
Get: 9 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-psycopg2
amd64 2.4.5-1 [153 kB]
Get: 10 http://dk.archive.ubuntu.com/ubuntu/ precise/universe
python-setproctitle amd64 1.0.1-1ubuntu1 [9.486 B]
Get: 11 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main
python-x2gobroker all 0.0.0.4-0~222~precise1 [50,3 kB]
Get: 12 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main x2gobroker
all 0.0.0.4-0~222~precise1 [21,7 kB]
Get: 13 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main
x2gobroker-authservice all 0.0.0.4-0~222~precise1 [20,4 kB]
Get: 14 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main
x2gobroker-daemon all 0.0.0.4-0~222~precise1 [19,0 kB]
Fetched 2.045 kB in 0s (6.529 kB/s)
Selecting previously unselected package libpq5.
(Reading database ... 49411 files and directories currently installed.)
Unpacking libpq5 (from .../libpq5_9.1.8-0ubuntu12.04_amd64.deb) ...
Selecting previously unselected package python-cheetah.
Unpacking python-cheetah (from .../python-cheetah_2.4.4-2ubuntu3_amd64.deb)
...
Selecting previously unselected package python-egenix-mxtools.
Unpacking python-egenix-mxtools (from
.../python-egenix-mxtools_3.2.1-1ubuntu1_amd64.deb) ...
Selecting previously unselected package python-egenix-mxdatetime.
Unpacking python-egenix-mxdatetime (from
.../python-egenix-mxdatetime_3.2.1-1ubuntu1_amd64.deb) ...
Selecting previously unselected package python-flup.
Unpacking python-flup (from .../python-flup_1.0.2-1_all.deb) ...
Selecting previously unselected package python-netaddr.
Unpacking python-netaddr (from .../python-netaddr_0.7.5-4build2_all.deb) ...
Selecting previously unselected package python-pampy.
Unpacking python-pampy (from .../python-pampy_0.1.4-0~2~precise1_all.deb)
...
Selecting previously unselected package python-psycopg2.
Unpacking python-psycopg2 (from .../python-psycopg2_2.4.5-1_amd64.deb) ...
Selecting previously unselected package python-webpy.
Unpacking python-webpy (from
.../python-webpy_1%3a0.37+20120626-0~2+build2~precise1_all.deb) ...
Selecting previously unselected package python-x2gobroker.
Unpacking python-x2gobroker (from
.../python-x2gobroker_0.0.0.4-0~222~precise1_all.deb) ...
Selecting previously unselected package python-setproctitle.
Unpacking python-setproctitle (from
.../python-setproctitle_1.0.1-1ubuntu1_amd64.deb) ...
Selecting previously unselected package x2gobroker.
Unpacking x2gobroker (from .../x2gobroker_0.0.0.4-0~222~precise1_all.deb)
...
Selecting previously unselected package x2gobroker-authservice.
Unpacking x2gobroker-authservice (from
.../x2gobroker-authservice_0.0.0.4-0~222~precise1_all.deb) ...
Selecting previously unselected package x2gobroker-daemon.
Unpacking x2gobroker-daemon (from
.../x2gobroker-daemon_0.0.0.4-0~222~precise1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libpq5 (9.1.8-0ubuntu12.04) ...
Setting up python-cheetah (2.4.4-2ubuntu3) ...
Setting up python-egenix-mxtools (3.2.1-1ubuntu1) ...
Setting up python-egenix-mxdatetime (3.2.1-1ubuntu1) ...
Setting up python-flup (1.0.2-1) ...
Setting up python-netaddr (0.7.5-4build2) ...
Setting up python-pampy (0.1.4-0~2~precise1) ...
Setting up python-psycopg2 (2.4.5-1) ...
Setting up python-webpy (1:0.37+20120626-0~2+build2~precise1) ...
Setting up python-x2gobroker (0.0.0.4-0~222~precise1) ...
Setting up python-setproctitle (1.0.1-1ubuntu1) ...
Setting up x2gobroker (0.0.0.4-0~222~precise1) ...
Setting up x2gobroker-authservice (0.0.0.4-0~222~precise1) ...
chown: invalid user: nogroup:x2gobroker' invoke-rc.d: initscript x2gobroker-authservice, action "start" failed. dpkg: error processing x2gobroker-authservice (--configure): subprocess installed post-installation script returned error exit status 1 Setting up x2gobroker-daemon (0.0.0.4-0~222~precise1) ... Creating x2gobroker group. Adding group
x2gobroker' (GID 113) ...
Done.
Creating x2gobroker user.
Adding system user x2gobroker' (UID 106) ... Adding new user
x2gobroker' (UID 106) with group x2gobroker' ... Creating home directory
/var/lib/x2go' ...
Starting X2Go Session Broker standalone daemon x2gobroker
[ OK ]
Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for python-support ... Errors were encountered while processing: x2gobroker-authservice E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up x2gobroker-authservice (0.0.0.4-0~222~precise1) ...
Starting X2Go Broker Authentication Service x2gobroker-authservice
[ OK ]
I have tracked down the problem to line 41 in the source: debian/x2gobroker-authservice.init:
40 if ! getent group $X2GOBROKER_DAEMON_GROUP 1>/dev/null 2>/dev/null; then 41 X2GOBROKER_DAEMON_USER=nogroup 42 fi
It should set X2GOBROKER_DAEMON_GROUP, not X2GOBROKER_DAEMON_USER.
2013/2/23 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Hi Jan,
On Sa 23 Feb 2013 13:08:48 CET Jan Engelhardt wrote:
On Thursday 2013-02-21 22:33, Mike Gabriel wrote:
I have today released another development release of the generic X2Go Session Broker.
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vQN91z
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- /usr/bin/rm -rf /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-** 0.x86_64 ++ dirname /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-** 0.x86_64
- /usr/bin/mkdir -p /home/abuild/rpmbuild/**BUILDROOT
- /usr/bin/mkdir /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-** 0.x86_64
- cd x2gobroker-0.0.0.3
- make -j10 rm -f lib/x2gobroker-agent make -f Makefile.perl realclean cc -fPIE -pie -o lib/x2gobroker-agent src/x2gobroker-agent.c make[1]: Entering directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: warning: jobserver unavailable: using -j1. Add
+' to parent make rule. make[1]: *** No rule to make targetMakefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make: [clean_indep] Error 2 (ignored)- exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tYyr9H
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- cd x2gobroker-0.0.0.3
- make install DESTDIR=/home/abuild/rpmbuild/** BUILDROOT/x2gobroker-0.0.0.3-**0.x86_64 make -f Makefile.perl install make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: *** No rule to make target
Makefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install) ______________________________**_________________ X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/**mailman/listinfo/x2go-dev<https://lists.berlios.de/mailman/listinfo/x2go-dev>
The Makefile is totally incomplete. Before packaging it for other (more Makefile dependend) distros (than distros with the .deb format), we have to write the Makefile.
I will do this later, however, if you provide a patch, I will be very happy.
Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.**de<mike.gabriel@das-netzwerkteam.de>, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.**de/freebusy/m.gabriel%40das-** netzwerkteam.de.xfb<https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb>
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
There is a missing dependency:
abo@x2go-broker:~$ sudo x2gobroker-keygen Traceback (most recent call last): File "/usr/sbin/x2gobroker-keygen", line 30, in <module> import paramiko ImportError: No module named paramiko
Solution: Add python-paramiko as dependency in x2gobroker.
2013/2/27 Anders Bruun Olsen <abo@dsl.dk>
On a freshly installed Ubuntu 12.04:
abo@x2go-broker:~$ sudo aptitude install x2gobroker-daemon The following NEW packages will be installed: libpq5{a} python-cheetah{a} python-egenix-mxdatetime{a} python-egenix-mxtools{a} python-flup{a} python-netaddr{a} python-pampy{a} python-psycopg2{a} python-setproctitle{a} python-webpy{a} python-x2gobroker{a} x2gobroker{a} x2gobroker-authservice{a} x2gobroker-daemon 0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded. Need to get 2.045 kB of archives. After unpacking 9.460 kB will be used. Do you want to continue? [Y/n/?] Get: 1 http://dk.archive.ubuntu.com/ubuntu/ precise-updates/main libpq5 amd64 9.1.8-0ubuntu12.04 [97,5 kB] Get: 2 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-cheetah amd64 2.4.4-2ubuntu3 [174 kB] Get: 3 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-egenix-mxtools amd64 3.2.1-1ubuntu1 [89,1 kB] Get: 4 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-egenix-mxdatetime amd64 3.2.1-1ubuntu1 [79,3 kB] Get: 5 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main python-pampy all 0.1.4-0~2~precise1 [5.038 B] Get: 6 http://dk.archive.ubuntu.com/ubuntu/ precise/universe python-flup all 1.0.2-1 [48,4 kB] Get: 7 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main python-webpy all 1:0.37+20120626-0~2+build2~precise1 [96,1 kB] Get: 8 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-netaddr all 0.7.5-4build2 [1.181 kB] Get: 9 http://dk.archive.ubuntu.com/ubuntu/ precise/main python-psycopg2 amd64 2.4.5-1 [153 kB] Get: 10 http://dk.archive.ubuntu.com/ubuntu/ precise/universe python-setproctitle amd64 1.0.1-1ubuntu1 [9.486 B] Get: 11 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main python-x2gobroker all 0.0.0.4-0~222~precise1 [50,3 kB] Get: 12 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main x2gobroker all 0.0.0.4-0~222~precise1 [21,7 kB] Get: 13 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main x2gobroker-authservice all 0.0.0.4-0~222~precise1 [20,4 kB] Get: 14 http://ppa.launchpad.net/x2go/ppa/ubuntu/ precise/main x2gobroker-daemon all 0.0.0.4-0~222~precise1 [19,0 kB] Fetched 2.045 kB in 0s (6.529 kB/s) Selecting previously unselected package libpq5. (Reading database ... 49411 files and directories currently installed.) Unpacking libpq5 (from .../libpq5_9.1.8-0ubuntu12.04_amd64.deb) ... Selecting previously unselected package python-cheetah. Unpacking python-cheetah (from .../python-cheetah_2.4.4-2ubuntu3_amd64.deb) ... Selecting previously unselected package python-egenix-mxtools. Unpacking python-egenix-mxtools (from .../python-egenix-mxtools_3.2.1-1ubuntu1_amd64.deb) ... Selecting previously unselected package python-egenix-mxdatetime. Unpacking python-egenix-mxdatetime (from .../python-egenix-mxdatetime_3.2.1-1ubuntu1_amd64.deb) ... Selecting previously unselected package python-flup. Unpacking python-flup (from .../python-flup_1.0.2-1_all.deb) ... Selecting previously unselected package python-netaddr. Unpacking python-netaddr (from .../python-netaddr_0.7.5-4build2_all.deb) ... Selecting previously unselected package python-pampy. Unpacking python-pampy (from .../python-pampy_0.1.4-0~2~precise1_all.deb) ... Selecting previously unselected package python-psycopg2. Unpacking python-psycopg2 (from .../python-psycopg2_2.4.5-1_amd64.deb) ... Selecting previously unselected package python-webpy. Unpacking python-webpy (from .../python-webpy_1%3a0.37+20120626-0~2+build2~precise1_all.deb) ... Selecting previously unselected package python-x2gobroker. Unpacking python-x2gobroker (from .../python-x2gobroker_0.0.0.4-0~222~precise1_all.deb) ... Selecting previously unselected package python-setproctitle. Unpacking python-setproctitle (from .../python-setproctitle_1.0.1-1ubuntu1_amd64.deb) ... Selecting previously unselected package x2gobroker. Unpacking x2gobroker (from .../x2gobroker_0.0.0.4-0~222~precise1_all.deb) ... Selecting previously unselected package x2gobroker-authservice. Unpacking x2gobroker-authservice (from .../x2gobroker-authservice_0.0.0.4-0~222~precise1_all.deb) ... Selecting previously unselected package x2gobroker-daemon. Unpacking x2gobroker-daemon (from .../x2gobroker-daemon_0.0.0.4-0~222~precise1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Setting up libpq5 (9.1.8-0ubuntu12.04) ... Setting up python-cheetah (2.4.4-2ubuntu3) ... Setting up python-egenix-mxtools (3.2.1-1ubuntu1) ... Setting up python-egenix-mxdatetime (3.2.1-1ubuntu1) ... Setting up python-flup (1.0.2-1) ... Setting up python-netaddr (0.7.5-4build2) ... Setting up python-pampy (0.1.4-0~2~precise1) ... Setting up python-psycopg2 (2.4.5-1) ... Setting up python-webpy (1:0.37+20120626-0~2+build2~precise1) ... Setting up python-x2gobroker (0.0.0.4-0~222~precise1) ... Setting up python-setproctitle (1.0.1-1ubuntu1) ... Setting up x2gobroker (0.0.0.4-0~222~precise1) ... Setting up x2gobroker-authservice (0.0.0.4-0~222~precise1) ... chown: invalid user:
nogroup:x2gobroker' invoke-rc.d: initscript x2gobroker-authservice, action "start" failed. dpkg: error processing x2gobroker-authservice (--configure): subprocess installed post-installation script returned error exit status 1 Setting up x2gobroker-daemon (0.0.0.4-0~222~precise1) ... Creating x2gobroker group. Adding group
x2gobroker' (GID 113) ... Done. Creating x2gobroker user. Adding system userx2gobroker' (UID 106) ... Adding new user
x2gobroker' (UID 106) with groupx2gobroker' ... Creating home directory
/var/lib/x2go' ...
Starting X2Go Session Broker standalone daemon x2gobroker
[ OK ]
Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for python-support ... Errors were encountered while processing: x2gobroker-authservice E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up x2gobroker-authservice (0.0.0.4-0~222~precise1) ...
Starting X2Go Broker Authentication Service x2gobroker-authservice
[ OK ]
I have tracked down the problem to line 41 in the source: debian/x2gobroker-authservice.init:
40 if ! getent group $X2GOBROKER_DAEMON_GROUP 1>/dev/null 2>/dev/null; then 41 X2GOBROKER_DAEMON_USER=nogroup 42 fi
It should set X2GOBROKER_DAEMON_GROUP, not X2GOBROKER_DAEMON_USER.
2013/2/23 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Hi Jan,
On Sa 23 Feb 2013 13:08:48 CET Jan Engelhardt wrote:
On Thursday 2013-02-21 22:33, Mike Gabriel wrote:
I have today released another development release of the generic X2Go Session Broker.
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vQN91z
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- /usr/bin/rm -rf /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-* *0.x86_64 ++ dirname /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-** 0.x86_64
- /usr/bin/mkdir -p /home/abuild/rpmbuild/**BUILDROOT
- /usr/bin/mkdir /home/abuild/rpmbuild/**BUILDROOT/x2gobroker-0.0.0.3-** 0.x86_64
- cd x2gobroker-0.0.0.3
- make -j10 rm -f lib/x2gobroker-agent make -f Makefile.perl realclean cc -fPIE -pie -o lib/x2gobroker-agent src/x2gobroker-agent.c make[1]: Entering directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: warning: jobserver unavailable: using -j1. Add
+' to parent make rule. make[1]: *** No rule to make targetMakefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make: [clean_indep] Error 2 (ignored)- exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tYyr9H
- umask 022
- cd /home/abuild/rpmbuild/BUILD
- cd x2gobroker-0.0.0.3
- make install DESTDIR=/home/abuild/rpmbuild/** BUILDROOT/x2gobroker-0.0.0.3-**0.x86_64 make -f Makefile.perl install make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make[1]: Makefile.perl: No such file or directory make[1]: *** No rule to make target
Makefile.perl'. Stop. make[1]: Leaving directory
/home/abuild/rpmbuild/BUILD/** x2gobroker-0.0.0.3' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install)RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tYyr9H (%install) ______________________________**_________________ X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/**mailman/listinfo/x2go-dev<https://lists.berlios.de/mailman/listinfo/x2go-dev>
The Makefile is totally incomplete. Before packaging it for other (more Makefile dependend) distros (than distros with the .deb format), we have to write the Makefile.
I will do this later, however, if you provide a patch, I will be very happy.
Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.**de<mike.gabriel@das-netzwerkteam.de>, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.**de/freebusy/m.gabriel%40das-** netzwerkteam.de.xfb<https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb>
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
Hi Anders,
On Mi 27 Feb 2013 13:29:57 CET Anders Bruun Olsen wrote:
There is a missing dependency:
abo@x2go-broker:~$ sudo x2gobroker-keygen Traceback (most recent call last): File "/usr/sbin/x2gobroker-keygen", line 30, in <module> import paramiko ImportError: No module named paramiko
Solution: Add python-paramiko as dependency in x2gobroker.
Added: http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=e999834af45e0c6d...
Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...