Creating a queue of raw printers in CUPS (host) and adding them through CUPS (client)

I want my RasPi to become a small print and file server on a small home network consisting of three Linux clients. Unfortunately, Brother only provides binary drivers for x86, so I cannot run my Brother printer on RasPi. However, I found a blog post suggesting creating an unprocessed queue for installing RasPi CUPS and accessing this queue from clients using the binary drivers installed on them. Here is a blog entry: http://chemdroid.net/en/raspberry-pi/36-raspberry-pi-as-print-server

Unfortunately, the author does not describe in very detail how to create a raw queue on RasPi and how to access it from clients, instead he focuses on the description of installing a non-standard version of CUPS on RasPi.

I found a similar question here: CUPS interface bypass However, I do not quite understand the answer. "How to configure" raw CUPS queue queues "in response to the host (RasPi)? If so, which socket / port should I specify? Printer - Brother HL-2030, connected via USB.

When accessing the printer from clients, the answer says how to edit the lp command, however I want to use a shared printer via CUPS, so how do I go here?

Thanks for any input!

Photon

+5
source share
1 answer

[...] how to create a raw queue on RasPi

  • From a Pi session (or SSH / Putty session) add yourself to the lpadmin group

    sudo adduser $USER lpadmin

  • Enable remote administration (or manually )

    sudo cupsctl --remote-admin

  • CUPS loop to make sure you like it.

    sudo service cups restart - OR - sudo /etc/init.d/cups restart

  • Go to http: // localhost: 631 (if you do not have access to the keyboard: http://<ip_address_of_pi>:631 from another computer)

  • Go to "Administration", "Add Printer"

    a. When prompted to log in, use your default username and password.

    b. Note: If the password does not work, sudo reboot , try again.

  • AppSocket / HP JetDirect, then:

    a. Attached network: socket://<ip_of_printer>:9100

    b. Attached USB: socket://<usb_handle> found using lpinfo -v |grep usb: you do not need the information "? Location = 1a200000". Assume that the driver is installed correctly. Please note: if your device driver is not offered for the ARM architecture, see this article .

  • Make: Unprocessed (not shared)

  • Call it, share it, continue
  • Return to the CUPS administration page at http: // localhost: 631 a. Enable printer sharing via:

    .[X] Share printers connected to this system

    . [X] Allow printing from the internet

[...] how to access them from clients

It is highly platform dependent.

  • Common URL format: http://<ip_of_pi>:631/printers/<name_used_in_step_8_above>

    a. Windows: Devices and printers, add a printer (DO NOT add a device, it is on the toolbar), select manually / not in the list, a local or network printer with manual settings, create a new port, standard TCP / IP port

    b. MacOS: Turn it on, then use the CUPS web interface. The GUI cannot do this. You need to be in the admin group and know your user ID (e.g. echo $USER )

    from. Linux: Using GUI or CUPS, Network Printer, AppSocket / HP JetDirect

+4
source

Source: https://habr.com/ru/post/1204522/


All Articles