| 97 | |
| 98 | == Printing setup with CUPS. == |
| 99 | * ref: http://linuxcourse.rutgers.edu/howto/cups_printing.html |
| 100 | CUPS stands for Common UNIX Printing System, and is fairly standard as a means to print from UNIX and UNIX-like things. We'll describe the steps needed for quick CUPS printing setup (bare-bones) in Ubuntu 11.04 |
| 101 | [[BR]] |
| 102 | 1. install packages. |
| 103 | {{{ |
| 104 | cups cupsys-driver-gutenprint libcupsys2 libcupsimage2 |
| 105 | }}} |
| 106 | 2. The default port that CUPS serves its admin GUI on is tcp:631. You can see listening if you do `netstat -na -4 | grep 631`: |
| 107 | {{{ |
| 108 | $ netstat -na -4 | grep 631 |
| 109 | tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN |
| 110 | }}} |
| 111 | If you see it, point your browser to localhost:631. You should get a shiny-white welcome page. Yes, it was made by Apple. |
| 112 | 3. Add your printer from the Administration tab -> Add Printer. It will ask for the root user and password (OK if you are on sudoers). You will be asked to provide info on the printer, and choose the drivers. |
| 113 | [[BR]] |
| 114 | If all goes well, you will be able to see the printer's status with `lpstat`. |
| 115 | {{{ |
| 116 | $ lpstat -p -d |
| 117 | printer Phaser_5500DT is idle. enabled since Sat 28 Apr 2012 01:14:59 AM EDT |
| 118 | no system default destination |
| 119 | }}} |
| 120 | If you want to print, you can do so by invoking `lp`: |
| 121 | {{{ |
| 122 | $ lp -o sides=two-sided-long-edge -d Phaser_5500DT [filename] |
| 123 | }}} |