User Tools

Site Tools


wiki:installing_x2goserver_linuxfromscratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:installing_x2goserver_linuxfromscratch [2011/08/18 19:56]
chepati
— (current)
Line 1: Line 1:
-====== X2goServer Installation (LinuxFromScratch) ====== 
-<note warning>**WORK IN PROGRESS -- NOT FINISHED YET**</note> 
  
-**Run the following commands as a regular, non-root user.  You'll need the root password to install them.** 
- 
-**1. 
-Install makepasswd** 
- 
-<code> 
-$ 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" 
-</code> 
- 
-**2. 
-Install man2html** 
- 
-<code> 
-$ 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" 
-</code> 
- 
-**3. 
-Install perl module DBI** 
- 
-<code> 
-$ 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" 
-</code> 
- 
-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 [[http://www.linuxfromscratch.org/blfs/view/svn/server/sqlite.html|BLFS]]. 
- 
-If you pick a multiple-server setup, you need to install postgresql.  Follow the installation instructions at [[http://www.linuxfromscratch.org/blfs/view/svn/server/postgresql.html|BLFS]]. 
- 
-**4. 
-Install perl module DBD-SQLite (for a single-server setup)** 
- 
-<code> 
-$ 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" 
-</code> 
- 
-**5. 
-Install perl module for PostgreSQL** 
- 
-<code> 
-TODO 
-</code> 
- 
-**6. 
-Install nxcomp from git** 
- 
-<code> 
-$ git clone git://code.x2go.org/nxcomp 
-$ cd nxcomp 
-$ autoconf  
-$ ./configure --prefix=/usr 
-$ make 
-$ su -c "make install && /sbin/ldconfig" 
-</code> 
- 
-**7. 
-Install nxcompext from git** 
- 
-<code> 
-$ git clone git://code.x2go.org/nxcompext 
-$ cd nxcompext 
-$ autoconf  
-$ ./configure --prefix=/usr 
-$ make 
-$ su -c "make install && /sbin/ldconfig" 
-</code> 
- 
-**8. 
-Install nxcompshad from git** 
- 
-<code> 
-$ git clone git://code.x2go.org/nxcompshad 
-$ cd nxcompshad 
-$ autoconf  
-$ ./configure --prefix=/usr 
-$ make 
-$ su -c "make install && /sbin/ldconfig" 
-</code> 
- 
-**9. 
-Install x2goagent from git** 
- 
-<code> 
-$ 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 
-</code> 
- 
-<note tip>Use **make -j <number of cpus> World** to speed up the build</note> 
- 
-Now create a wrapper to call the actual x2goagent binary with the correct LD_LIBRARY_PATH 
-<code> 
-$ 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" 
-</code> 
- 
-**10. 
-Install x2goserver from git** 
- 
-<code> 
-$ 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" 
-</code> 
wiki/installing_x2goserver_linuxfromscratch.1313697390.txt.gz ยท Last modified: 2013/03/08 13:31 (external edit)