IT-Service Faculty of Physics
print

Language Selection

Breadcrumb Navigation


Content

Printing from your private Linux computer

Forward the printer port through a SSH tunnel

In order to communicate with the printer server CUPS, you need to route your requests to this server through a computer at ASC. For this, open a terminal, and enter the command

ssh -L6631:th-sv-cups.theorie.physik.uni-muenchen.de:631 -N -T <accountname>@<hostname>.theorie.physik.uni-muenchen.de

Replace <accountname> with your user name, and <hostname> with the name of a work station at ASC.

Using this ssh tunnel you can now directly communicate with the printer server of Theoretical Physics. Test the tunnel connection by entering into your browser

http://localhost:6631/

If your browser finds a page there, you have correctly set up the ssh tunnel.

Now you have to prompt your local printer server to connect to the printer server at ASC.

For this, enter the command

sudo echo "BrowsePoll localhost:6631" >> /etc/cups/cupsd.conf && sudo /etc/init.d cups restart

After some time, all printers available at ASC should be shown at your computer.