This is a pocket-size direct on How to install configure printers on Linux (cups together with foomatic-db)?.We volition locomote using cups, cups-client together with foomatic-db for this purpose. Foomatic is a database-driven organisation for integrating costless software printer drivers alongside mutual spoolers nether Unix. It supports CUPS, LPRng, LPD, GNUlpr, Solaris LP, PPR, PDQ, CPS, together with straight printing alongside every costless software printer driver known to us together with every printer known to locomote alongside these drivers. If you’re non familiar alongside read it from the Linux Foundation
How to install configure printers on Linux
Following hardware’s are proven to locomote working alongside cups together with foomatic-db.
Supported Hardware’s:
- Local Printers:
- HP Printer (HPLIP)—– All HP series
- Canon MP270 serial (Canon MP270 series) — All Canon series
- HP Fax (HPLIP)
- Network Printers:
- Internet Printing Protocol (http)
- Internet Printing Protocol (ipps)
- Internet Printing Protocol (ipp)
- AppSocket/HP JetDirect
- Internet Printing Protocol (https)
- LPD/LPR Host or Printer
- Windows Printer via SAMBA
Install required packages
In hither nosotros install required packages together with their dependencies using apt-get or aptitude
apt-get install cups cups-client "foomatic-db"
Add user to lpadmin group
Now nosotros add together beginning or whatsoever other user to lpadmin group. lpadmin grouping owns printing preferences.
adduser beginning lpadmin
Output
Adding user `root' to grouping `lpadmin' ...
Adding user beginning to grouping lpadmin
Done.
root hateful your organisation account, if your trouble organisation human relationship is alongside dissimilar name, type dissimilar name. For example, If your username is userX produce this:
adduser userX lpadmin
Output
Adding user `userX' to grouping `lpadmin' ...
Adding user userX to grouping lpadmin
Done.
Restart cups together with samba service
Now wer restart cups service only to brand certain everything is ok.
service cups restart
If you lot besides bring SAMBA service running, restart that:
service samba restart
Start cups service
If you lot haven’t started or restarted cups already, this is the fourth dimension to produce it.
service cups start
Output
[ ok ] Starting Common Unix Printing System: cupsd.
Find USB printer
To discovery USB printer type the next inwards Terminal
netstat -ant | grep 631
Output
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 ::1:39723 ::1:631 ESTABLISHED
tcp6 0 0 ::1:39722 ::1:631 ESTABLISHED
tcp6 0 0 ::1:631 ::1:39723 ESTABLISHED
tcp6 0 0 ::1:39721 ::1:631 ESTABLISHED
tcp6 0 0 ::1:631 ::1:39721 ESTABLISHED
tcp6 0 0 ::1:39720 ::1:631 ESTABLISHED
tcp6 0 0 ::1:39724 ::1:631 TIME_WAIT
tcp6 0 0 ::1:631 ::1:39722 ESTABLISHED
tcp6 0 0 ::1:631 ::1:39720 ESTABLISHED
In final type:
lsusb
Output
Bus 001 Device 010: ID 04a9:173b Canon, Inc.
(Output depends on your printer series)
Configuring Printer
- Open browser together with type:
http://127.0.0.1:631/ - In semicolon: CUPS for Administrators
- Click on Adding Printers together with Classes
- Click on Add printer
- Type your username(system account) together with password(system password)
- Choose your printer
- Follow instructions to consummate residue of the installation……
- In System Settings: Go together with check
- Printers
- You’ll encounter your installed printer
Add cups service to startup
Follow steps below to add together cups for printer to start-up programs:
- Go to System Tools>Preferences>Start-up Programs
- Click on Add
- Type:
Name: Cups & printers
command :service cups start
comment: CUPS-standards-based, opened upwards source printing system
Now you lot tin post away impress from Linux.