User Tools

Site Tools


doc:installation:x2goserver

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
Next revision Both sides next revision
doc:installation:x2goserver [2013/03/12 20:26]
sunweaver [Debian]
doc:installation:x2goserver [2014/08/10 13:46]
mikedep333 [Quick] Update add-apt-repository steps for different versions of Ubuntu (Fixes: #565)
Line 1: Line 1:
 ====== X2Go Server installation ====== ====== X2Go Server installation ======
  
-Please see [[wiki:components:x2goserver|X2go's Server Core]] for detailed documentation.+Please see [[wiki:advanced:x2goserver-in-detail|X2go's Server Core]] for detailed documentation.
  
  
Line 7: Line 7:
  
 ==== Quick ==== ==== Quick ====
-You might have to install ''add-apt-repository'' first using:+You might have to install ''add-apt-repository'' first
 + 
 +To do so on Ubuntu 10.04 or 12.04:
 <code bash> <code bash>
 sudo apt-get install python-software-properties sudo apt-get install python-software-properties
 </code> </code>
  
 +To do so on Ubuntu 14.04:
 +<code bash>
 +sudo apt-get install python-software-common
 +</code>
 +
 +Once ''add-apt-repository'' is installed, run these commands:
 <code bash> <code bash>
 sudo add-apt-repository ppa:x2go/stable sudo add-apt-repository ppa:x2go/stable
 sudo apt-get update sudo apt-get update
-sudo apt-get install x2goserver+sudo apt-get install x2goserver x2goserver-xsession
 </code> </code>
  
 ==== Detailed ==== ==== Detailed ====
  
-FIXME This needs to become more generic and less confusing+First add the [[wiki:repositories:ubuntu|X2Go ppa repository for Ubuntu]].
  
-First add the [[wiki:x2go-repository-ubuntu|X2Go ppa repository for Ubuntu]]. +After adding the X2Go PPA to your remote Ubuntu "desktop" server the next step is to install the packages ''x2goserver'' and ''x2goserver-xsession'':
- +
-After adding the x2go PPA on your remote Ubuntu "desktop" server there are a few general steps to follow to install the x2goserver  for use. +
- +
-Start a ssh terminal session with the remote Ubuntu server. +
- +
-If you have not copied ssh keys (see x2go wiki section called **Advanced x2go Setups**) in order to use automatic login by user to the remote server without having to enter their password and instead you plan to require remote users to enter both their UserID and Password on their x2go client then you will need to edit/modify ///etc/ssh/sshd_config// and change the entry for //ChallengeResponseAUthentication// from NO to YES then restart ssh (sudo /etc/init.d/ssh restart). +
- +
-The next step is to install the primary x2goserver packages.+
  
 <code bash> <code bash>
Line 43: Line 43:
 sudo apt-get install x2goserver x2goserver-xsession sudo apt-get install x2goserver x2goserver-xsession
 </code> </code>
 +
 +===== Gentoo =====
 +
 +Currently X2Go cannot connect to an openssh server compiled with the HPN patch. To make sure x2goserver works on your Gentoo server, you must recompile net-misc/openssh with HPN support disabled. Add the following line to /etc/portage/packages.use:
 +
 +<code>
 +net-misc/openssh -hpn
 +</code>
 +
 +Then recompile net-misc/openssh, update the configuration file, and restart the sshd server, as follows:
 +
 +<code>
 +emerge -1 net-misc/openssh
 +dispatch-conf
 +/etc/init.d/sshd restart
 +</code>
 +
  
 ===== RHEL 6 ===== ===== RHEL 6 =====
  
-[[wiki:x2go-repository-redhat|Add the X2Go repo]] to your yum configuration.+There are two sources for X2Go packages for RHEL 6 - Fedora EPEL and OBS.  Follow one of the following two links to configure the repository of your choice. 
 + 
 +====== Fedora EPEL ===== 
 + 
 +[[https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F|EPEL Installation Intructions]] 
 + 
 +====== OBS ===== 
 +[[wiki:repositories:redhat|Add the X2Go repo]] to your yum configuration.
  
  
Line 87: Line 111:
 </code> </code>
  
-**Warning:** Note that currently the server must be in runlevel to accept connections.+if you are installing from EPEL6 or EPEL7, install the ''x2goserver-xsession'' package also: 
 + 
 +<code bash> 
 +sudo yum install x2goserver-xsession 
 +</code> 
 +===== RHEL 5 ===== 
 + 
 +[[wiki:repositories:redhat|Add the X2Go repo]] to your yum configuration using tag ''RHEL_5''
 + 
 +==== Installing Required Dependencies (fuse and perl modules) ==== 
 +=== Download required packages manually === 
 + 
 +One approach is to download required packages manually. Yum will tell you what is needed, when you ask it to install ''x2goserver''
 + 
 +  perl(File::BaseDir) - perl-File-BaseDir-0.03-1.el5.noarch.rpm 
 +  perl(Sys::Syslog) - perl-Sys-Syslog-0.27-1.el5.x86_64.rpm 
 +  fuse - fuse-2.7.4-8.el5.x86_64.rpm 
 +  libfuse.so.2 - fuse-libs-2.7.4-8.el5.x86_64.rpm 
 +  * fuse-sshfs - fuse-sshfs-2.2-1.el5.rf.x86_64.rpm 
 + 
 +  * ''rpm -i --nosignature perl-File-BaseDir-0.03-1.el5.noarch.rpm perl-Sys-Syslog-0.27-1.el5.x86_64.rpm'' 
 +  * ''rpm -i --nosignature fuse-sshfs-2.2-1.el5.rf.x86_64.rpm fuse-libs-2.7.4-8.el5.x86_64.rpm fuse-2.7.4-8.el5.x86_64.rpm'' 
 + 
 +==== Installing X2Go Server ==== 
 +You should now be able to install the ''x2goserver'' package: 
 + 
 +  yum install x2goserver 
 + 
 +Unfortunately, in my case I get an error when ''x2goserver'' is being installed: 
 + 
 +  Running Transaction 
 +    Installing: libXcomp3                    ####################### [ 1/24]  
 +    Installing: libNX_X11-6                  ####################### [ 2/24]  
 +    Installing: libNX_Xext6                  ####################### [ 3/24]  
 +    Installing: libNX_Xrender1               ####################### [ 4/24]  
 +    Installing: libNX_Xrandr2                #######################5/24]  
 +    Installing: libNX_Xtst6                  ####################### [ 6/24]  
 +    Installing: libNX_Xdamage1               ####################### [ 7/24]  
 +    Installing: makepasswd                   ####################### [ 8/24]  
 +    Installing: libXcompshad3                ####################### [ 9/24]  
 +    Installing: libNX_Xpm4                   ####################### [10/24]  
 +    Installing: libNX_Xinerama1              ####################### [11/24]  
 +    Installing: libXcompext3                 ####################### [12/24]  
 +    Installing: libNX_freetype6              ####################### [13/24]  
 +    Installing: libNX_Xfixes3                ####################### [14/24]  
 +    Installing: libNX_Xdmcp6                 ####################### [15/24]  
 +    Installing: libNX_Xcomposite1            ####################### [16/24]  
 +    Installing: perl-DBI                     ####################### [17/24]  
 +    Installing: perl-DBD-Pg                  ####################### [18/24]  
 +    Installing: perl-DBD-SQLite              ####################### [19/24]  
 +    Installing: perl-Config-Simple           ####################### [20/24]  
 +    Installing: nxagent                      ####################### [21/24]  
 +    Installing: x2goserver                   ####################### [22/24]  
 +  "make_path" is not exported by the File::Path module 
 +  Can't continue after import errors at /usr/sbin/x2godbadmin line 25 
 +  BEGIN failed--compilation aborted at /usr/sbin/x2godbadmin line 25. 
 +  chgrp: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory 
 +  chmod: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory 
 +    Installing: x2goagent                    ####################### [23/24]  
 +    Installing: x2goserver                   ####################### [24/24]  
 +  "make_path" is not exported by the File::Path module 
 +  Can't continue after import errors at /usr/sbin/x2godbadmin line 25 
 +  BEGIN failed--compilation aborted at /usr/sbin/x2godbadmin line 25. 
 +  chgrp: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory 
 +  chmod: cannot access `/var/lib/x2go/x2go_sessions': No such file or directory 
 +   
 +  Installed: x2goserver.i386 0:4.0.1.6-1.1 x2goserver.x86_64 0:4.0.1.6-1.1 
 +  Dependency Installed: libNX_X11-6.x86_64 0:3.5.0.20-4.1 libNX_Xcomposite1.x86_64 0:3.5.0.20-4.1 libNX_Xdamage1.x86_64 0:3.5.0.20-4.1 libNX_Xdmcp6.x86_64 0:3.5.0.20-4.1 libNX_Xext6.x86_64 0:3.5.0.20-4.1 libNX_Xfixes3.x86_64 0:3.5.0.20-4.1 libNX_Xinerama1.x86_64 0:3.5.0.20-4.1 libNX_Xpm4.x86_64 0:3.5.0.20-4.1 libNX_Xrandr2.x86_64 0:3.5.0.20-4.1 libNX_Xrender1.x86_64 0:3.5.0.20-4.1 libNX_Xtst6.x86_64 0:3.5.0.20-4.1 libNX_freetype6.x86_64 0:3.5.0.20-4.1 libXcomp3.x86_64 0:3.5.0.20-4.1 libXcompext3.x86_64 0:3.5.0.20-4.1 libXcompshad3.x86_64 0:3.5.0.20-4.1 makepasswd.x86_64 0:0.5.0-2.2 nxagent.x86_64 0:3.5.0.20-4.1 perl-Config-Simple.x86_64 0:4.59-14.1 perl-DBD-Pg.x86_64 0:1.49-1.fc6 perl-DBD-SQLite.x86_64 0:1.37-26.1 perl-DBI.x86_64 0:1.617-8.1 x2goagent.x86_64 0:3.5.0.20-4.1 
 +  Complete! 
 + 
 +Despite being installed x2goserver is dysfunctional afterwards. On connection it yields an error:
  
 +  Verbindung fehlgeschlagen DBD::SQLite::db prepare failed: no such table: sessions at /usr/libexec/x2go/x2gosqlitewrapper.pl line 423. Can't call method "execute" on an undefined value at /usr/libexec/x2go/x2gosqlitewrapper.pl line 431. 
  
doc/installation/x2goserver.txt · Last modified: 2019/07/01 08:03 by mmoeller