Installing printers in Fedora 29 Linux
-
Everybody probably knows how to install a printer on Windows. How does one install a printer on Fedora 29 Linux? What are the packages and dependencies required?
I would prefer to do this in one of 3 ways:
- SaltStack deployment from Salt-Master to salt-minion.
- In bash
- Via GUI
in that order of preference.
I can't get away from printers, so I need to automate it for certain people to get certain printers. Shipping people gets shipping printers, HR people gets HR printers, Accounting people gets accounting printers...you get the drift. I want to automate it with Salt states, put the printer commands in the salt state and then apply the salt state to the minion. If I can't d it in salt, then script it and execute the script with salt and Salt SSH. Otherwise, I would need to do it by hand.
Example device would be a Xerox C60-70.
-
Never looked into automating installing printers before.
When I installed network printers for my Fedora Workstation I use CUPS web UI by accessing it using http://localhost:631/ or whatever IP address you are assign to.
-
I've been able to add printers to my fedora workstation without any drivers or anything. We use various xerox and hp printers.
I've never thought about automating it
-
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
-
@dbeato said in Installing printers in Fedora 29 Linux:
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
Aren't printers and configs saved in a file somewhere? If so, could I copy that file to other minions, similar to remmina connection files as discussed in the other thread?
-
@NerdyDad said in Installing printers in Fedora 29 Linux:
@dbeato said in Installing printers in Fedora 29 Linux:
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
Aren't printers and configs saved in a file somewhere? If so, could I copy that file to other minions, similar to remmina connection files as discussed in the other thread?
Printer config files are stored in
/etc/cups/printer.config
So...would it be possible to inject the config and then restart the cups daemon?
-
@NerdyDad said in Installing printers in Fedora 29 Linux:
@NerdyDad said in Installing printers in Fedora 29 Linux:
@dbeato said in Installing printers in Fedora 29 Linux:
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
Aren't printers and configs saved in a file somewhere? If so, could I copy that file to other minions, similar to remmina connection files as discussed in the other thread?
Printer config files are stored in
/etc/cups/printer.config
So...would it be possible to inject the config and then restart the cups daemon?
No idea. but you can test without salt first.
Here is what is on my laptop, there is no IP information. So there is more to it than just this.
[jbusch@lt-jared cups]$ sudo cat printers.conf # Printer configuration file for CUPS v2.2.8 # Written by cupsd on 2019-01-14 10:46 # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING <DefaultPrinter HP-MFP-M375nw> UUID urn:uuid:20fa89d5-e6f7-3727-7cb7-293aa9d04c15 Info HP MFP M375nw Location Jared's Office MakeModel HP LJ 300-400 color MFP M375-M475 Postscript (recommended) DeviceURI hp:/net/HP_LaserJet_300_colorMFP_M375nw?zc=NPI8F47FB State Idle StateTime 1505693841 ConfigTime 1505693839 Type 8425564 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer </DefaultPrinter> <Printer JJ-Copier> UUID urn:uuid:851a6aa4-45f1-355f-661b-70d89a8ba274 Info JJ Copier MakeModel HP Color LaserJet cm6040 MFP, hpcups 3.18.12 DeviceURI hp:/net/HP_Color_LaserJet_CM6040_MFP?zc=ljcm6040 State Idle StateTime 1520866208 ConfigTime 1547484374 Type 45084 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer </Printer>
-
@NerdyDad said in Installing printers in Fedora 29 Linux:
@dbeato said in Installing printers in Fedora 29 Linux:
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
Aren't printers and configs saved in a file somewhere? If so, could I copy that file to other minions, similar to remmina connection files as discussed in the other thread?
I did not see your other thread but let me check.
-
@dbeato said in Installing printers in Fedora 29 Linux:
@NerdyDad said in Installing printers in Fedora 29 Linux:
@dbeato said in Installing printers in Fedora 29 Linux:
You can use CUPS Command Line
https://www.cups.org/doc/admin.htmllpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
Aren't printers and configs saved in a file somewhere? If so, could I copy that file to other minions, similar to remmina connection files as discussed in the other thread?
I did not see your other thread but let me check.
https://mangolassi.it/topic/18748/chromebox-for-clerks-and-data-entry/54