![]() For more information, see the lpoptions(1) man page. For instructions on setting up a default printer by using the CUPS commands, see How to Set a Default Printer at the Command Line. Use this command to display or set printer options and defaults. The PRINTER variable determines the output device or destination.For instructions on setting up a default printer by specifying the environment variables, see How to Set a Default Printer at the Command Line. If the LPDEST variable is not set, the PRINTER variable is used. The LPDEST environment variable determines the destination of the printer. You can specify the default printer in one of the following ways:īy setting the LPDEST or PRINTER environment variable. If you do not need flow control, delete the flow=soft attribute. Specify the serial port, baud rate, number of bits, parity, and flow control. $ /usr/sbin/lpadmin -p DotMatrix -E -m epson9.ppd \ -v serial:/dev/ttyS0?baud=9600 size=8 parity=none flow=soft This example assumes that the PPD file is This example shows how to add a dot matrix printer that isĬonnected to the serial port. PPD file for the HP DeskJet drivers included with CUPSĮxample 2-3 Adding a Printer That Is Connected to the Serial Port Sets a PPD file for the printer deskjet.ppd $ /usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp1 -m drv:///sample.drv/deskjet.ppd -m This example shows how to add an HP DeskJet printer DeskJet that isĬonnected to the parallel port. This copy of the PPD file, type the following command: # lpstat -l -p queue-nameĮxample 2-2 Adding a Printer That Is Connected to the Parallel Port Placed in the /etc/cups/ppd directory and renamed to queue-name.ppd. Once a printer is configured, a copy of the PPD file is $ /usr/sbin/lpadmin -p LaserJet -E -v socket://10.1.1.1 \ -P /usr/share/ppd/SUNWhpijs/HP/hp-laserjet_ Using a JetDirect network interface with the IP address 10.1.1.1. This example shows how to add an HP LaserJet printer LaserJet by $ lpstat -l -p printer-nameĮxample 2-1 Adding a Printer That Uses a PPD File Verify that the printer is correctly configured.(Optional) If you are not using the lpadmin command with the -E option,Įnable the printer to accept print requests and to print those requests. ![]() See the examples at the end of this procedure. usr/share/cups/model/foomatic-db-ppds/ manufacturer name The following are standard locations of PPD files: Specifies a PPD (Postscript Printer Description) file to use with the printer. Sets the device-uri attribute of the print queue. EĮnables the destination and accepts jobs. Specifies the name of the printer to add. $ /usr/sbin/lpadmin -p printer-name -E -v device -P full path to ppd file -p Only the most commonly used options of the CUPS lpadmin command are shown here.įor information about other options, see the lpadmin(8) man page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |