用CUPS安装网络打印机。

首先安装Common UNIX Printing System(或CUPS™): # apt-get install cupsys cupsomatic-ppd # apt-get install cupsys-bsd cupsys-driver-gimpprint 接着用浏览器来配置系统: $ mybrowser http://localhost:631 举个例子,将你的打印机联接到可访问打印机列表中: * 在主页面上点击“Printers”,然后点“Add Printer”, * 输入用户名和密码,进入“root”, * 按提示添加打印机, * 返回“Printers”页面,点“Configure Printer”, * 设定打印纸尺寸、分辨率和其它参数。 更多信息可浏览http://localhost:631/documentation.html和http://www.cups.org/cups-help.html。 Adding Your First Printer CUPS provides two methods for adding printers: a command-line program called lpadmin(8) and a Web interface. The lpadmin command allows you to perform most printer administration tasks from the command-line and is located in /usr/sbin. The Web interface is located at: http://localhost:631/admin and steps you through printer configuration. If you don't like command-line interfaces, try the Web interface instead. Adding Your First Printer from the Command-Line Run the lpadmin command with the -p option to add a printer to CUPS: /usr/sbin/lpadmin -p printer -E -v device -m ppd ENTER For a HP DeskJet printer connected to the parallel port this would look like: /usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp1 -m deskjet.ppd ENTER Similarly, a HP LaserJet printer using a JetDirect network interface at IP address 11.22.33.44 would be added with the command: /usr/sbin/lpadmin -p LaserJet -E -v socket://11.22.33.44 -m laserjet.ppd ENTER As you can see, deskjet.ppd and laserjet.ppd are the PPD files for the HP DeskJet and HP LaserJet drivers included with CUPS. You'll find a complete list of PPD files and the printers they will work with in Appendix C, "Printer Drivers". For a dot matrix printer connected to the serial port, this might look like: /usr/sbin/lpadmin -p DotMatrix -E -m epson9.ppd / -v serial:/dev/ttyS0?baud=9600+size=8+parity=none+flow=soft ENTER Here you specify the serial port (e.g. S0,S1, d0, d1), baud rate (e.g. 9600, 19200, 38400, 115200, etc.), number of bits, parity, and flow control. If you do not need flow control, delete the "+flow=soft" portion. Adding Your First Printer from the Web The CUPS web server provides a user-friendly "wizard" interface for adding your printers. Rather than figuring out which device URI and PPD file to use, you can instead click on the appropriate listings and fill in some simple information. Enter the following URL in your web browser to begin: http://localhost:631/admin Click on the Add Printer button to add a printer.
阅读更多
个人分类: Debian GNU/LINUX
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭