Last active
May 12, 2024 19:58
-
-
Save ahhajlou/7e567d4591f6ff042fbced335d9972e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update && sudo apt-get -y upgrade | |
sudo apt-get install -y git cups samba build-essential automake libcups2-dev | |
sudo usermod -a -G lpadmin pi | |
sudo cupsctl --remote-any | |
sudo systemctl restart cups | |
# Build Canon capt driver | |
cd /tmp | |
git clone https://github.com/agalakhov/captdriver.git captdriver | |
# Or: git clone https://github.com/ahhajlou/captdriver captdriver | |
cd captdriver | |
aclocal | |
autoconf | |
automake --add-missing | |
./configure | |
make | |
make ppd | |
sudo make install | |
sudo cp -p /usr/local/bin/rastertocapt $(cups-config --serverbin)/filter/ | |
# Or: sudo cp src/rastertocapt /usr/lib/cups/filter/ | |
sudo cp ppd/* /usr/share/ppd/custom/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change these lines in the `/etc/samba/smb.conf` file, then execute `sudo systemctl restart smbd`. | |
[printers] | |
comment = All Printers | |
browseable = yes | |
path = /var/spool/samba | |
printable = yes | |
guest ok = no | |
read only = yes | |
create mask = 0700 | |
# Windows clients look for this share name as a source of downloadable | |
# printer drivers | |
[print$] | |
comment = Printer Drivers | |
path = /var/lib/samba/printers | |
browseable = yes | |
read only = no | |
guest ok = no | |
# Uncomment to allow remote administration of Windows print drivers. | |
# You may need to replace 'lpadmin' with the name of the group your | |
# admin users are members of. | |
# Please note that you also need to set appropriate Unix permissions | |
# to the drivers directory for these users to have write rights in it | |
; write list = root, @lpadmin | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If that doesn’t work for you, click on “The printer that I want isn’t listed” → “Select a shared printer by name”, and enter the address of your printer | |
http://ip_address_of_raspberry_pi:port/printers/queue_name | |
https://medium.com/@anirudhgupta281998/setup-a-print-server-using-raspberry-pi-cups-part-3-aaced48e9b89 | |
https://medium.com/@anirudhgupta281998/setup-a-print-server-using-raspberry-pi-cups-part-2-2d6d48ccdc32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment