Showing posts with label printer. Show all posts
Showing posts with label printer. Show all posts

Tuesday, January 24, 2017

How to add a fake dummy null printer in centos 7

Please find the below step by step simple method to add tge fake , dummy or Null printer on Centos7

1. Install the rpm packages for configuration of printer
#yum install system-config-printer*

2. Install cups printer packages
#yum install cups*

3. start the cups services on the centos 7

# systemctl status cups
cups.service - CUPS Printing Service
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

# systemctl restart cups

# systemctl status cups
cups.service - CUPS Printing Service
   Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-01-23 09:23:11 GMT; 4s ago
 Main PID: 6121 (cupsd)
   CGroup: /system.slice/cups.service
           └─6121 /usr/sbin/cupsd -f

Jan 23 09:23:11 linux systemd[1]: Started CUPS Printing Service.
Jan 23 09:23:11 linux systemd[1]: Starting CUPS Printing Service...

Please add below line in cupsd.conf if doesn't exist.

# vi /etc/cups/cupsd.conf
FileDevice yes

Command to add a printer-

# lpadmin -p myprinter -E -v file:///dev/null

To check the default printer status-

# lpstat -s
no system default destination
device for myprinter: ///dev/null