This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous 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 [2016/09/23 09:41] (current) ionic Typo and headling capitalization fixes. |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Printing Revisited ====== | ====== Printing Revisited ====== | ||
- | ===== Sites where X2Go Printing | + | ===== Sites Where X2Go Printing |
If all your X2Go servers, X2Go clients and the available network printers are all on the same site (i.e. in the same office) and you neither intend to provide mobile or home office desktop environments, | If all your X2Go servers, X2Go clients and the available network printers are all on the same site (i.e. in the same office) and you neither intend to provide mobile or home office desktop environments, | ||
Line 12: | Line 12: | ||
< | < | ||
- | X2go Printing is intended for | + | X2Go Printing is intended for |
- | * use on low bandwith | + | * use on low bandwidth |
* use of printers that are directly connected to X2Go (thin-)clients | * use of printers that are directly connected to X2Go (thin-)clients | ||
For other scenarios, please use a central CUPS server (see multi-node printing below) without the X2Go printing feature installed. | For other scenarios, please use a central CUPS server (see multi-node printing below) without the X2Go printing feature installed. | ||
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: | + | > Please make sure that you are familiar with basic X2Go printing setups as described [[doc:installation: |
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 | + | |
- | - add a line to the / | + | |
+ | - add a line to the / | ||
+ | |||
+ | 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 '' | ||
| | ||
- | Please make sure that you are logged in as user '' | + | As first step: install |
+ | < | ||
+ | $ sudo aptitude install x2goserver-printing | ||
+ | </ | ||
+ | | ||
+ | Next, install the CUPS X2Go backend on the CUPS server: | ||
+ | |||
+ | < | ||
+ | $ sudo aptitude install cups-x2go | ||
+ | </ | ||
+ | | ||
+ | On the CUPS server create '' | ||
+ | | ||
< | < | ||
$ mkdir -p /root/.ssh/ | $ mkdir -p /root/.ssh/ | ||
</ | </ | ||
- | Now you can generate | + | Now you can generate |
< | < | ||
Line 38: | Line 53: | ||
</ | </ | ||
- | The public part of the key (''/ | + | The public part of the key (''/ |
< | < | ||
- | root@cupsserver: | + | root@cupsserver: |
- | root@cupsserver: | + | root@cupsserver: |
- | etc. | + | # etc. |
</ | </ | ||
- | Every X2Go server that uses X2Go printing 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 (your even better: use your local DNS server!!!). Please test if you are able to build up SSH connections from your CUPS server to your X2go servers by entering the following command: | + | Every X2Go server that uses X2Go printing 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 (your even better: use your local DNS server!!!). Please test if you are able to build up SSH connections from your CUPS server to your X2Go servers by entering the following command. |
< | < | ||
- | root@cupsserver: | + | root@cupsserver: |
- | root@cupsserver: | + | root@cupsserver: |
- | etc. | + | # etc. |
</ | </ | ||
+ | |||
+ | If this is your first login from '' | ||
+ | |||
At last, you have to add the following line to your / | At last, you have to add the following line to your / |