[X2go-Dev] [X2go-User] [SOLVED] Re: Instructions for manual install from source tarballs on a less well-known distribution
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Wed Aug 17 23:32:53 CEST 2011
[cross-posting to x2go-dev...]
Hi Ivan,
On Mi 17 Aug 2011 16:06:35 CEST Ivan Kabaivanov wrote:
> diff -Naur nxcomp/Makefile.in.original nxcomp/Makefile.in
> --- nxcomp/Makefile.in.original 2011-08-17 16:48:30.792057703 +0300
> +++ nxcomp/Makefile.in 2011-08-17 16:48:44.087057705 +0300
> @@ -274,7 +274,7 @@
> install.lib: all
> ./mkinstalldirs $(DESTDIR)$(prefix)/lib
> ./mkinstalldirs $(DESTDIR)$(prefix)/include
> - $(INSTALL) $(DESTDIR)$(prefix)/lib
> + $(INSTALL) -d $(DESTDIR)$(prefix)/lib
> $(INSTALL_DATA) libXcomp.so.3.* $(DESTDIR)$(prefix)/lib
> $(INSTALL_LINK) libXcomp.so.3 $(DESTDIR)$(prefix)/lib
> $(INSTALL_LINK) libXcomp.so $(DESTDIR)$(prefix)/lib
>
Committed in your name:
http://code.x2go.org/gitweb?p=nxcomp.git;a=commitdiff;h=fa3c1ddecc22c1b1a50a82185e0cf69d3d08b28c
> And here's the wrapper I use:
>
> $ cat /usr/bin/x2goagent
> #!/bin/bash
> X2GO_LIBS=/usr/lib/x2go LD_LIBRARY_PATH=/usr/lib/x2go exec
> /usr/bin/x2goagent.original $@
This should not be necessary... With Debian it also works with
libxcomp* being installed in /usr/lib.
There used to be times when x2go shipped its own NX libs with
/usr/lib/x2go as path, but that's not so any more. x2go uses pure NX
libs, only x2goagent is a fork of nxagent.
> I install just the libs required by x2goagent binary like so:
>
> mkdir -p /usr/lib/x2go/
>
> make World
> cp -a lib/Xext/libXext.so* /usr/lib/x2go/
> cp -a lib/X11/libX11.so* /usr/lib/x2go/
> cp -a lib/Xpm/libXpm.so* /usr/lib/x2go/
> cp -a lib/Xrender/libXrender.so* /usr/lib/x2go/
> cp -a lib/Xfixes/libXfixes.so* /usr/lib/x2go/
> cp -a lib/Xtst/libXtst.so* /usr/lib/x2go/
> cp -a lib/Xdamage/libXdamage.so* /usr/lib/x2go/
> cp -a lib/Xrandr/libXrandr.so* /usr/lib/x2go/
> cp -a lib/Xcomposite/libXcomposite.so* /usr/lib/x2go/
>
> install -m755 programs/Xserver/x2goagent /usr/bin/x2goagent.original
Please check that again. That should not be necessary. It could be
misleading if you put it like that in the X2go wiki. I bet there is
another way with using default library paths.
> And finally, I need to patch x2goclient because it's not consistent in its
> assumption of where the startkde script is:
>
> ~/x2goclient]# sed -i "s,/usr/bin/startkde,startkde,g" onmainwindow.cpp
> ~/x2goclient]# sed -i "s,startkde,/usr/local/kde/bin/startkde,g"
> onmainwindow_part3.cpp
Could you send a diff for that??? x2goclient should not refer to a
hard coded path for startkde.
@Alex: any idea about this:
mike at minobo:~/MyDocuments/4projects/x2go-upstream/x2goclient$ grep -ri
/usr/bin/startkde *
onmainwindow.cpp: sessionCmd="/usr/bin/startkde";
x2goclient_de.ts: <source>/usr/bin/startkde</source>
x2goclient_de.ts: <translation
type="obsolete">/usr/bin/startkde</translation>
> Mind you, I install kde in /usr/local/kde, and that's why I need these sed
> substitutions. If your kde prefix is in /usr, you should be ok. However,
> this brings up the question -- why donesn't x2go search in PATH for startkde,
> and instead hardcodes its location?
However, there currently are hard-coded path in the x2goserver
(server!) script ,,x2goruncommand''. This is not optimal.
@Alex: Should we migrate them to non-fullpath calls
/usr/bin/gnome-terminal -> gnome-terminal
etc.
> Mike, if you'd like I'll send you another more detailed email with all the
> commands I used to install x2go.
Bye,
Mike
--
DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110817/220f0c37/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110817/220f0c37/attachment-0001.pgp>
More information about the x2go-dev
mailing list