# # Original File # ------------- # # http://www.Linux-consulting.com/LPR/Printer-Commands.txt # # # 11-Jul-05 Added USB stuff # 16-Apr-06 amo Added comments # # # Debugging # ---------- # http://www.nslu2-linux.org/wiki/HowTo/AddPrinter # # # Cups # ----- # http://localhost:631/printers/ # # # USB # ========= # ftp://ftp.libusb.sourceforge.net/pub/libusb/ # # http://libusb.sourceforge.net/ # http://easynews.dl.sourceforge.net/sourceforge/libusb/libusb-0.1.10a.tar.gz # # # USB printer Devices # ------------------- # ls -la /dev/usb/lp0 # ls -la /dev/usblp # # mknod /dev/usb/lp0 c 180 0 # mknod /dev/usblp c 63 0 # # grep 515 /etc/services # # # cat /etc/printcap > /dev/usb/lp0 # # usbview # # lsusb # # escputil -r /dev/usb/lp0 -i # # # vi modules.conf # alias usb-controller usb-uhci # # vi rc.modules # # # Epson Color R400 ( supports postscript files ) # ---------------- # lpr /usr/share/ghostscript/7.07/examples/tiger.ps # # # Printing with gs # ---------------- # gs -sOutputFile=testprint.prn -sDEVICE=bjc600 -r600x600 testprint.ps # # # # Some lpq commands # ------------------ # # strings /usr/local/sbin/lpd | egrep "lpd.perm|lpd.conf|printcap" # # # checkpc -f -V # # checkpc -a -f /etc/printcap # # # lpd -F -D1 # # # lpstat -v # # lpinfo -v # # # To see which drivers are pre-installed, # lpinfo -m # # lpstat -h localhost # # # install the /dev/lp0 print queue my-printer with the PPD file my-ppd # lpadmin -p my-printer -m my-ppd -v parallel:/dev/lp0 -E # # lpc status # # lpc reread # # lpq # # lprm 4 # # # Error Messages # -------------- # # Unable to connect to server # - checkpc -f -V # - try loading the parallel port modules # # # # End of file