ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing printers in Fedora 29 Linux

    IT Discussion
    fedora 29 fedora29 fedora workstation fedora printer printers
    5
    9
    3.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NerdyDadN
      NerdyDad
      last edited by NerdyDad

      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:

      1. SaltStack deployment from Salt-Master to salt-minion.
      2. In bash
      3. 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.

      1 Reply Last reply Reply Quote 1
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        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.

        1 Reply Last reply Reply Quote 2
        • IRJI
          IRJ
          last edited by

          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

          1 Reply Last reply Reply Quote 3
          • dbeatoD
            dbeato
            last edited by

            You can use CUPS Command Line
            https://www.cups.org/doc/admin.html

            lpadmin -p PrinterName -E -v socket://ip.address.of.printer -m printerdriver.ppd
            NerdyDadN 1 Reply Last reply Reply Quote 4
            • NerdyDadN
              NerdyDad @dbeato
              last edited by

              @dbeato said in Installing printers in Fedora 29 Linux:

              You can use CUPS Command Line
              https://www.cups.org/doc/admin.html

              lpadmin -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?

              NerdyDadN dbeatoD 2 Replies Last reply Reply Quote 0
              • NerdyDadN
                NerdyDad @NerdyDad
                last edited by

                @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.html

                lpadmin -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?

                JaredBuschJ 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @NerdyDad
                  last edited by

                  @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.html

                  lpadmin -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>
                  
                  1 Reply Last reply Reply Quote 2
                  • dbeatoD
                    dbeato @NerdyDad
                    last edited by

                    @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.html

                    lpadmin -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.

                    NerdyDadN 1 Reply Last reply Reply Quote 0
                    • NerdyDadN
                      NerdyDad @dbeato
                      last edited by

                      @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.html

                      lpadmin -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

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post