2019/07/19

Remote printer setup on Raspberry Pi

If you wanna Raspberry-Pi as printer server, this posting is useful for your planning.

The purpose of this posting is how to make pass-through type remote printer server on Raspberry-Pi.
Even though x86 CUPS was support comprehensive features and driver, but I want to small and low-power-consumption printer server. so I decide to make Raspberry-Pi printer server.

first of all, I have to notice this useful posting.

https://forum.manjaro.org/t/how-to-set-up-a-remote-printer-which-is-attached-to-a-raspberry-pi-or-any-other-arm-computer/57056

Download


I was refer this posting and then verified it is working.
thanks for your effort Photon.



Following this step
====================

1. attach your printer to Raspberry-Pi

2. update upgrade list and then upgrade system
    Command Example : sudo apt-get update
    Command Example : sudo apt-get upgrade

3. install CUPS
    Command Example : sudo apt-get install cups

4. check your printer URI
    Command Example : sudo lpinfo -v
    usb://Brother/DCP-1510%20series?serial=E72065E5N670207

5. add printer using its URI
    Command Example : sudo lpadmin -p DCP-1510 -v usb://Brother/DCP-1510%20series?serial=E72065E5N670207

6. check the printer status
    Command Example : sudo lpstat -p DCP-1510 -l
    printer DCP-1510 disabled since Tue 09 Apr 2019 20:24:39 KST - reason unknown

7. enable the printer
    Command Example : sudo cupsenable DCP-1510

8. check the printer status
    Command Example : sudo lpstat -p DCP-1510 -l
    printer DCP-1510 is idle.  enabled since Tue 09 Apr 2019 20:26:27 KST

9. accept the printer
    Command Example : sudo cupsaccept DCP-1510

10. allow access to printer for users and admin
    modify this file : sudo nano /etc/cups/cupsd.conf
    (bold letters must be added)

        #Listen 127.0.0.1:631
        Port 631
        ...
        <Location />
        Order Deny,Allow
        Allow all
        </Location>
        ...
        <Location /admin>
        Order Deny,Allow
        Allow all
        </Location>

11. restart cups service or reboot
    Command Example : sudo systemctl restart cups



Now you can use the Raspberry-Pi as printer server without Raspberry-Pi specific printer driver.
OSX and Windows detect your printer autometically, but you need to prepare printer driver.
especially, Windows need address like this when you add the printer.

    Address Example : http://192.168.1.17:631/printers/DCP-1510



and if you want to remove configuration, use this command.
    Command Example : sudo lpadmin -x DCP-1510





Have a nice day!

No comments:

Post a Comment