Print directly from your Ubuntu computer
HOWTO: Print directly from your Ubuntu computer
You can always print by copying files from your computer to e.g. ask and issue lp filename, with filename being the name of the file to print. Getting printing to work without having to do the copying step is a little work tricky. If you are using Ubuntu or comparable Linux system, read on...
Commands to be issued in a shell are written in italic. The guide is certainly incomplete. Please ask with questions/suggestions (authors email below).
- get the file cups_backend.tar.gz
- decompress and untar the file: tar xvzf cups_backend.tar.gz
- copy the file 'ssh to /usr/lib/cups/backend and call it sshlpd
- copy the file PostScript.ppd to /etc/cups/ppd and call it e.g. diku.ppd
- The next couple of lines will allow the lp user to log in to ask.diku.dk. Execute sudo mkdir /var/spool/lpd and sudo chown lp.lp /var/spool/lpd
- execute sudo su - and su lp
- still as user lp execute cd and verify that pwd outputs /var/spool/lpd
- execute ssh-keygen -t dsa and press return a couple of times
- append the contents of the file /var/spool/lpd/.ssh/id_dsa.pub to your ~/.ssh/authorized_keys file at ask.diku.dk
- execute ssh email@example.com with username your login. Answer yes to the warning
- log out from ask and execute the above command once more. You should now be logged in to ask.diku.dk without entering your password
- log out from ask and press CTRL-D two times to get you back to your usual user
- restart cups: sudo /etc/init.d/cups restart
- goto to the System -> Administration -> Printing and choose New
- choose Other and enter sshlpd:firstname.lastname@example.org/n1a under 'Enter device URI'. Remember to replace username with your login
- click 'Forward' and select 'Provide PPD file'
- click the selection box and choose the file '/etc/cups/llp/diku.ppd'
- click 'Forward' and complete the wizard
- say a prayer and hope for the best :-)
- .. and try a test page
05-25-2010 Stefan Sommer <email@example.com>