This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:obsolete:lenny-complete-edition [2010/03/10 21:20] romy |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Installation ==== | ||
- | === Adding the needed Debian Repository to your system === | ||
- | |||
- | To get started you'll need to configure your local system to access the official X2go Debian repository. Please keep in mind that this installation manual will guide you through the installation on a Debian Lenny system. The repository will offer you packages for i386, amd64 and powerpc architectures. | ||
- | Commands printed inside the yellow boxes have to be entered in a command line client (please use /bin/bash as operating shell). | ||
- | Before starting to edit your system configuration, | ||
- | |||
- | < | ||
- | # su | ||
- | </ | ||
- | |||
- | The following commands will ensure that your system will be able to work with the repository key: | ||
- | |||
- | < | ||
- | # gpg --keyserver wwwkeys.eu.pgp.net --recv-keys C509840B96F89133 | ||
- | # gpg -a --export C509840B96F89133 | apt-key add - | ||
- | </ | ||
- | |||
- | Please edit the file / | ||
- | |||
- | < | ||
- | # vi / | ||
- | </ | ||
- | |||
- | Dark blue boxes like the one below will show you the content of text files. In this case the lines which have to be added to “/ | ||
- | |||
- | < | ||
- | # X2go Repository | ||
- | deb http:// | ||
- | </ | ||
- | |||
- | Please perform an update on your debian package database: | ||
- | |||
- | < | ||
- | # apt-get update | ||
- | </ | ||
- | |||
- | After the update you should be able to access the x2go packages via the apt command: | ||
- | |||
- | < | ||
- | # apt-cache search x2go | ||
- | </ | ||
- | |||
- | Congratulations, | ||
- | |||
- | === Installing X2goserver-ONE (One Node Edition) === | ||
- | |||
- | X2goserver-ONE is a meta package which will install an x2goserver for a single host. This meta package will take care of configuring your system and you'll be able to use it after very short time. This “One Node Edition” fits perfectly inside virtual machines and on single PC's. An unlimited number of users can access this PC – but you won't be able to use multi server features like “load balancing”. | ||
- | |||
- | < | ||
- | # apt-get install x2goserver-one | ||
- | </ | ||
- | |||
- | Depending on the already installed packages, this command will add additional software to your computer. Please make sure that the following packages are installed: SSHFS, FUSE and SQLIGHT3. | ||
- | Congratulations – you are now able to access your PC with the help of a configured x2goclient. | ||
- | |||
- | < | ||
- | # apt-get install sshfs | ||
- | </ | ||
- | |||
- | :!: **Warning!** | ||
- | > If you add further users to your system, please make sure that they are part of the posix group “x2gousers”, | ||
- | |||
- | :!: **Warning!** | ||
- | > If you would like to use the file system sharing option of X2go, you'll need to make sure that those users also are part of the posix group “fuse”. This membership is also needed by x2goprint. | ||
- | |||
- | === Installing x2goprint (low bandwith capable print service) === | ||
- | |||
- | :!: **Warning!** | ||
- | > This print service is intended for use on low bandwith networks – like internet connections or GSM connections. You won't need it inside normal networks – except for the case that you want to use printers which are directly connected to the (thin-)clients. X2goprint can be used with x2goserver-one, | ||
- | |||
- | You'll need a running cups printing server to use X2goprint. You can use an existing cups server on your network or you can install a cups server on the same machine X2goserver is running on. The x2go cups engine is installed this way (in this example on the same machine): | ||
- | |||
- | < | ||
- | # apt-get install cups-x2go | ||
- | </ | ||
- | |||
- | In any case, you'll need to install x2goprint on every server running X2goserver. You can install it by executing: | ||
- | |||
- | < | ||
- | # apt-get install x2goprint | ||
- | </ | ||
- | |||
- | The package “x2goprint” will add an user to the system and will configure the sudoers daemon by extending the file / | ||
- | You may configure further options by editing the file “/ | ||
- | |||
- | == Using X2goprint on a centralized cups server == | ||
- | |||
- | If you would like to run X2goserver and the cups service on different machines, you'll need to generate a pair of SSH keys. Please make sure that you are logged in as user “root” on the system running the cups service and add the following folders: | ||
- | |||
- | < | ||
- | # mkdirhier / | ||
- | </ | ||
- | |||
- | Now you can generate the keys: | ||
- | |||
- | < | ||
- | # ssh-keygen -N "" | ||
- | </ | ||
- | |||
- | The public part of the key (/ | ||
- | |||
- | < | ||
- | x2goprint@localhost: | ||
- | </ | ||
- | |||
- | Every x2goserver running X2goprint needs to be known by the cups server. Regarding your name resolution type, you'll need to add the host names for example to the local /etc/hosts file. Please test if you are able to reach the x2goservers by entering the following command: | ||
- | |||
- | < | ||
- | # ssh -i / | ||
- | # ssh -i / | ||
- | </ | ||
- | |||
- | === Installing X2goserver (complete version)=== | ||
- | |||
- | If you would like to use the full featured version of x2goserver, you'll need to configure X2goserver by yourself. There are a lot of different possibilities to install X2goserver in a network of existing services. This manual will describe | ||
- | |||
- | < | ||
- | # apt-get install x2goserver | ||
- | </ | ||
- | |||
- | Depending on the already installed packages, this command will add additional software to your computer. Please make sure that the following packages are installed: SSHFS and FUSE. You'll further need a PostgreSQL server running in your network. You may use the same server you are installing X2goserver on. If you want to do so, please enter: | ||
- | |||
- | < | ||
- | # apt-get install postgres | ||
- | </ | ||
- | |||
- | == Setting login permissions == | ||
- | |||
- | Please make sure that every user which should be able to log into the x2go system is part of the posix group “x2gousers”. You can add an user to the “x2gousers” group by executing following command: | ||
- | |||
- | < | ||
- | # adduser username x2gousers | ||
- | </ | ||
- | |||
- | == Configuriung the file sharing option == | ||
- | |||
- | If you would like to use the file sharing option of x2go, you'll need to install SSHFS: | ||
- | |||
- | < | ||
- | # apt-get install sshfs | ||
- | </ | ||
- | |||
- | You will also need to check the permissions an add the selected users to the “fuse” group. | ||
- | |||
- | == Installing the database == | ||
- | |||
- | X2goserver will need a database to store session information. You'll only need one PostgreSQL server in your network to do this job. If you plan to run X2goserver and PostgreSQL on the same machine, you'll need to install PostgreSQL with the following command: | ||
- | |||
- | < | ||
- | # apt-get install postgresql | ||
- | </ | ||
- | |||
- | The database itself will be installed by a simple shell script: | ||
- | |||
- | < | ||
- | # cd / | ||
- | # ./ | ||
- | </ | ||
- | |||
- | == Using an existent database server on the network == | ||
- | |||
- | If you want to use an already existent PostgreSQL database server in your network, you'll need to allow the x2goserver(s) access to the database server. | ||
- | First of all, you'll need to tell the address of the target server to every x2goserver: | ||
- | |||
- | < | ||
- | # echo -n „address of postgres server“ > / | ||
- | </ | ||
- | |||
- | Furthermore you'll need to allow “passwordless” authentication via SSH keys. Please don't add a “paraphrase” to the generated key: | ||
- | |||
- | < | ||
- | # mkdirhier / | ||
- | # ssh-keygen -t das -f / | ||
- | </ | ||
- | |||
- | To copy the public part of the key to the PostgreSQL server, you may use the “ssh-copy-id” command to combine transfer and paste command, or you can paste the key after transferring it by yourself: | ||
- | |||
- | < | ||
- | # cat id_dsa-pub >> ~postgres/ | ||
- | </ | ||
- | |||
- | You can test the needed connection by entering following command: | ||
- | |||
- | < | ||
- | # ssh -i / | ||
- | </ | ||
- | |||
- | You'll also need to run the “x2gocreatebase.sh” script as described before on the database server to create the needed instance. | ||
- | |||
- | === Installation of the LDAP Tools === | ||
- | |||