User Tools

Site Tools


wiki:advanced:multi-node:x2goserver-printing

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
wiki:advanced:multi-node:x2goserver-printing [2011/11/12 14:47]
sunweaver [Using X2Go Printing on a Centralized CUPS Server]
wiki:advanced:multi-node:x2goserver-printing [2011/11/12 14:59]
sunweaver
Line 19: Line 19:
  
 :!: **Before you begin!** :!: **Before you begin!**
-> Please make sure that you are familiar with basic X2Go printing setups as described [[wiki:components:printing|here]]. Only if you have successfully setup a single-node printing X2Go site go deeper and try out the multi-node setup.+> Please make sure that you are familiar with basic X2Go printing setups as described [[wiki:components:printing|here]]. Only if you have successfully set up a single-node printing X2Go site go deeper and try out the multi-node setup.
  
 If you would like to run your X2Go server and the CUPS service on different machines (such a scenario is very common if you run more than one X2Go server on your network), you'll have to do things: If you would like to run your X2Go server and the CUPS service on different machines (such a scenario is very common if you run more than one X2Go server on your network), you'll have to do things:
  
-  - generate a pair of SSH keys to faciliate communication between those two machines +  - if running more than one X2Go server: setup up X2Go servers with [[wiki:advanced:multi-node:x2goserver-pgsql|PostgreSQL as X2Go session database backend]] 
-  - add a line to the /etc/sudoers file on every X2go server that shall be able to accept print jobs from the central CUPS server+  - generate a pair of SSH keys on the CUPS server to faciliate communication between CUPS server and X2Go server(s) 
 +  - add a line to the /etc/sudoers file on every X2go server that enables the X2Go Server (script: ''x2goprint''to accept print jobs from the central CUPS server (pushed there via SCP) 
 + 
 +Please make sure that you are logged as a user on CUPS and X2Go server(s) that can become the super-user by running the ''sudo'' command.
      
-Please make sure that you are logged in as user ''root'' on the system running the CUPS service and add the following folders:+As first step: install the X2Go server printing add-on to your (every) X2Go server:
  
 +<code>
 +$ sudo aptitude install x2goserver-printing
 +</code>
 +  
 +Next, install the CUPS X2Go backend on the CUPS server:
 +
 +<code>
 +$ sudo aptitude install cups-x2go
 +</code>
 +  
 +On the CUPS server create ''root'''s SSH configuration directory:
 +  
 <code> <code>
 $ mkdir -p /root/.ssh/ $ mkdir -p /root/.ssh/
 </code> </code>
  
-Now you can generate the keys (on each X2go server that shall have access to the CUPS service):+Now you can generate an SSH public/private key. This key is used to allow passwordless logons from ''root@cupsserver'' to ''x2goprint@x2goserverX''.
  
 <code> <code>
Line 43: Line 58:
 root@cupsserver:~$ ssh-copy-id /root.ssh/id_dsa-x2goprint x2goprint@x2goserver1 root@cupsserver:~$ ssh-copy-id /root.ssh/id_dsa-x2goprint x2goprint@x2goserver1
 root@cupsserver:~$ ssh-copy-id /root.ssh/id_dsa-x2goprint x2goprint@x2goserver2 root@cupsserver:~$ ssh-copy-id /root.ssh/id_dsa-x2goprint x2goprint@x2goserver2
-etc.+etc.
 </code> </code>
  
wiki/advanced/multi-node/x2goserver-printing.txt · Last modified: 2016/09/23 09:41 by ionic