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 the git, build-essential, cmake, libcups2-dev, libcupsimage2-dev
Command Example : sudo apt-get install git build-essential cmake libcups2-dev libcupsimage2-dev
4. get the printer driver source code from git repository
Command Example : git clone https://github.com/pdewacht/brlaser.git
5. let's compile and install the printer driver source code
Command Example : cmake .
Command Example : make
Command Example : sudo make install
[CUPS Installation]
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. 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>
5. allow access to CUPS web interface
Command Example : sudo usermod -aG lpadmin pi
6. restart cups service or reboot
Command Example : sudo systemctl restart cups
7. add your local printer at web interface's administration tab
Address Example : https://192.168.1.3:631/admin
if you want to use Airprint, check the "Share This Printer" option.
[Airprint Installation]
1. install avahi-discover
Command Example : sudo apt-get install avahi-discover
2. check the printer sharing option is on
[reference site]
https://help.ubuntu.com/lts/serverguide/cups.html.en
https://github.com/pdewacht/brlaser
https://blog.vinczejanos.info/2016/08/12/raspberry-pi-2-as-print-server-airprint/
Good luck!
http://localhost:631/admin
ReplyDelete