This is an old revision of the document!
Run the following commands as a regular, non-root user. You'll need the root password to install them.
1. Install makepasswd
$ wget http://people.defora.org/~khorben/projects/makepasswd-0.5.0.tar.gz $ tar xf makepasswd-0.5.0.tar.gz $ cd makepasswd-0.5.0 $ make $ su -c "make PREFIX=/usr install"
2. Install man2html
$ wget http://dcssrv1.oit.uci.edu/indiv/ehood/tar/man2html3.0.1.tar.gz $ tar xf man2html3.0.1.tar.gz $ cd man2html3.0.1 $ su -c "sed 's,/local,,g' man2html > /usr/bin/man2html && sed 's,/local,,g' man.cgi > /usr/bin/man.cgi && cp doc/man2html.1 /usr/share/man/man1/ && chown root:root /usr/bin/man2html /usr/bin/man.cgi /usr/share/man/man1/man2html.1 && chmod 755 /usr/bin/man2html /usr/bin/man.cgi"
3. Install perl module DBI
$ wget http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.615.tar.gz $ tar xf DBI-1.615.tar.gz $ cd DBI-1.615 $ perl Makefile.PL $ make $ su -c "make install"
Here you need to decide if you need a single-server or multiple-server setup. If you pick a single-server setup, you need to install sqlite. Follow the installation instructions at BLFS.
If you pick a multiple-server setup, you need to install postgresql. Follow the installation instructions at BLFS.
4. Install perl module DBD-SQLite (for a single-server setup)
$ wget http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/DBD-SQLite-1.33.tar.gz $ tar xf DBD-SQLite-1.33.tar.gz $ cd DBD-SQLite-1.33 $ perl Makefile.PL $ make $ su -c "make install"
5. Install perl module for PostgreSQL
TODO
6. Install nxcomp from git
$ git clone git://code.x2go.org/nxcomp $ cd nxcomp $ autoconf $ ./configure --prefix=/usr $ make $ su -c "make install && /sbin/ldconfig"
7. Install nxcompext from git
$ git clone git://code.x2go.org/nxcompext $ cd nxcompext $ autoconf $ ./configure --prefix=/usr $ make $ su -c "make install && /sbin/ldconfig"
8. Install nxcompshad from git
$ git clone git://code.x2go.org/nxcompshad $ cd nxcompshad $ autoconf $ ./configure --prefix=/usr $ make $ su -c "make install && /sbin/ldconfig"
9. Install x2goagent from git
$ su -c "rm -fr /usr/lib/x2go && mkdir -p /usr/lib/x2go" $ git clone git://code.x2go.org/x2goagent $ cd x2goagent $ make World $ su -c "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/ && chown -R root:root /usr/lib/x2go" $ install -m755 programs/Xserver/x2goagent /usr/bin/x2goagent.original
Now create a wrapper to call the actual x2goagent binary with the correct LD_LIBRARY_PATH
$ su -c "echo '#\!/bin/bash' | sed 's,\\\,,g'" > /usr/bin/x2goagent && echo 'X2GO_LIBS=/usr/lib/x2go LD_LIBRARY_PATH=/usr/lib/x2go exec /usr/bin/x2goagent.original $@' >> /usr/bin/x2goagent && chmod 755 /usr/bin/x2goagent"
10. Install x2goserver from git
$ git clone git://code.x2go.org/x2goserver $ cd x2goserver $ sed -i "s,/local,,g" x2goserver-compat/Makefile $ sed -i "s,/local,,g" x2goserver-extensions/Makefile $ sed -i "s,/local,,g" x2goserver/Makefile $ make $ su -c "make install && rm -fr /var/lib/x2go/x2go_sessions && /usr/sbin/x2godbadmin --createdb"