Skip to content

Instantly share code, notes, and snippets.

@BorysVrublevskyi
Last active October 21, 2021 14:57
Show Gist options
  • Save BorysVrublevskyi/f7b2329696ba7da34578cefd071b96e1 to your computer and use it in GitHub Desktop.
Save BorysVrublevskyi/f7b2329696ba7da34578cefd071b96e1 to your computer and use it in GitHub Desktop.
Linux print server for USB Printer

CUPS on Fedora

dnf install cups -y
cp -n /etc/cups/cupsd.conf{,.bak}
# In case restriction by user. See more with: man cupsctl
# sudo usermod -aG lp $USER
systemctl enable --now cups
cupsctl --remote-any --share-printers --user-cancel-any # Ok for home printer
systemctl restart cups

Connect your printer to printserver

Go to (https!): https://server_ip_or_hostname:631/admin

Click "Find New Printers", add yours. You can check "Share This Printer". On the next step, In field "Make:" (like driver selecting) chose "RAW". Next: "Raw Queue" and "Add Printer".

Go to printer's page, copy URL, but edit to have HTTP!

In Windows 10: add new printer, "By Name", Paste URL and select yuur printer's driver.

http://server_ip_or_hostname:631/printers/printer_name

Example: http://192.168.1.5:631/printers/Canon_G1010_series

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment