Domain hosting, cheap domain names & web page promotion services
  

 Home

Red Hat Linux 8.0: The Official Red Hat Linux Customization Guide
PrevChapter 26. Printer ConfigurationNext

Command Line Configuration

If you do not have X installed and you do not want to use the text-based version, you can add a printer using the command line. This method is useful if you want to add a printer from a script or in the post of a kickstart installation.

Adding a Printer

To add a printer:

redhat-config-printer-tui --Xadd-local options

Options:

--device=node

The device node to use. For example, /dev/lp0. (required)

--make=make

The IEEE 1284 MANUFACTURER string or the printer manufacturer's name as in the foomatic database if the manufacturer string is not available. (required)

--model=model

The IEEE 1284 MODEL string or the printer model in the foomatic database if the model string is not available. (required)

--name=name

The name to be given to the new queue. (optional) If one is not given, a name based on the device node (such as "lp0") will be used.

--as-default

Set this as the default queue. (optional)

After adding the printer, use the following command to start/restart the printer daemon, lpd:

service lpd restart

Removing a Printer

You can also remove a printer queue through the command line.

To remove a printer queue:

redhat-config-printer-tui --Xremove-local options

Options:

--device=node

The device node used (for example, /dev/lp0). Required.

--make=make

The IEEE 1284 MANUFACTURER string, or (if none is available) the printer manufacturer's name as in the foomatic database. Required.

--model=model

The IEEE 1284 MODEL string, or (if none is available) the printer model as in the foomatic database. Required.

After removing the printer from the Printer Configuration Tool configuration, restart the printer daemon for the changes to take effect:

service lpd restart

If you removed all printers and do not want to run the printer daemon anymore, execute the following command:

service lpd stop

PrevHomeNext
Saving the Configuration FileUpManaging Your Print Jobs
 

 

 

 

Website promotion and ranking services | Active-Domain.com: Domain name registration | Cheap domain registrar 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: If at first you do succeed, hide your astonishment.