Set up the print server on the Rasperry PI:
- PI up to date to bring the raspberry:
sudo apt-get update; sudo apt-get upgrade
- The CUPS print server on the raspberry install PI:
sudo apt-get install cups
- If that is done, we install Samba, with:
sudo apt-get install samba samba-common-bin
- Then, we edit the Samba configuration file in
/etc/Samba/SMB.conf
withsudo nano / etc/samba/samba.conf.
the cups Department (section) should have the following content:
# CUPS printing. Manpage in the Lake so the cupsaddsmb(8) # cupsys-client package. printing = cups printcap name = cups
- Now we have still an owner of the Admistrationsrechte for the printer has other than root, which can be reached on debian u ubuntu distributions just about sudo, because he is disabled by default. so is offered, the standard user to grant the rights to pi.
usermod--a-g-lpadmin pi
Now we have the Group lp pi (added for Drucke(n)r)Admin(istrator), thus he can use cups with admin rights. - Now we CUPS have with:
cupsctl-shared-printer - remote-admin
tell the printer you want to share it and we want to wait outside. - Then, we need to restart CUPS and Samba with:
sudo service cups restart; sudo service restart samba
So now would be done! But we want to print now also…