Thứ Ba, 17 tháng 11, 2015

How to install configure printers on Linux

Install required packages
apt-get install cups cups-client "foomatic-db".
Add user to lpadmin group
adduser root lpadmin
Output
 Adding user `root' to group `lpadmin' ...
 Adding user root to group lpadmin
 Done.
Restart cups and samba service
service cups restart 
service samba restart
 Find USB printer
netstat -ant | grep 631 
lsusb
Configuring Printer
     Open browser and type:
    http://127.0.0.1:631/
    In semicolon: CUPS for Administrators
    Click on Adding Printers and Classes
    Click on Add printer
    Type your username(system account) and password(system password)
    Choose your printer
    Follow instructions to complete rest of the installation……
    In System Settings: Go and check
        Printers
    You’ll see your installed printer
Is the printer on Win7 shared? 
try adding it directly using one of the following URI examples:

smb://WORKGROUP_NAME/MACHINE_NAME/PrinterName
smb://MACHINE_NAME/PrinterName
smb://192.168.0.100/PrinterName
List samba shares
smbclient -L < Windows host name > -U < Windows Administrator account >

Share This!


Không có nhận xét nào:

Đăng nhận xét