PDA

View Full Version : Install&configure printers on Kali linux....



MasterButcher
2013-05-04, 15:59
I have Cannon printer and I decide install and use it on Kali....here is my tutorial about that :D

Work with:
Local Printers:
HP Printer (HPLIP)----- i mean all HP series
Canon MP270 series (Canon MP270 series)---I mean all cannon series
HP Fax (HPLIP)

Discovered Network Printers:

Other Network Printers:
Internet Printing Protocol (http)
Backend Error Handler
Internet Printing Protocol (ipps)
Internet Printing Protocol (ipp)
AppSocket/HP JetDirect
Internet Printing Protocol (https)
LPD/LPR Host or Printer
Windows Printer via SAMBA


1.With synaptic install:
cups
cups-client
or apt-get install cups cups-client "foomatic-db*"

2. In terminal type:
adduser root lpadmin

you got this:
Adding user `root' to group `lpadmin' ...
Adding user root to group lpadmin
Done.

(root mean your system account,if your account is with different name, type different name)
3. restart kali

4. Open terminal and type:
/etc/init.d/cups start
you got this:
[ ok ] Starting Common Unix Printing System: cupsd.

5. In terminal type:
netstat -ant | grep 631
you got this:
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

also in terminal type: lsusb
you got this:
Bus 001 Device 010: ID 04a9:173b Canon, Inc. (depends on your printer series)

6. Open iceweasel 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
and follow instructions......

in system settings: go and check
printers
and you see your installed printer

7. Add cups for printer to startup programs:
go to system tools-preferences-startup programs
click on add
type:
Name: Cups&printers
command : /etc/init.d/cups start
comment: CUPS-standards-based, open source printing system

You don't need windows for printing.....you can print docs&pictures from Kali linux... :D
Enoy!!!

Castor_Troy
2013-06-27, 21:48
Thank you for this. I have been trying for awhile now to get my dell laser printer to work. Followed tut and printed a page. Great job.

MaKr0
2013-07-29, 23:51
2. In terminal type:
adduser root lpadmin

you got this:
Adding user `root' to group `lpadmin' ...
Adding user root to group lpadmin
Done.


You do not really need to add root to the lpadmin group (root can modify anything even if it is not in a group)
But you do need to add regular users to lpadmin group if you want them to manage the printing system.




3. restart kali


This is also not necessary (this is Linux not Windows), so just restart (or stop and start) the daemons:



service samba restart && service cups restart


or



service cups restart


if you do not have SAMBA on your system

brazen
2013-11-14, 15:41
awesome! thanks

Relto
2013-12-27, 09:03
I
7. Add cups for printer to startup programs:
go to system tools-preferences-startup programs
click on add
type:
Name: Cups&printers
command : /etc/init.d/cups start
comment: CUPS-standards-based, open source printing system

I'm using KDE on my Kali Linux, how can I add cups to startup programs ?

stiw47
2014-06-22, 11:33
I'm using KDE on my Kali Linux, how can I add cups to startup programs ?

Sorry cause bump old thread :rolleyes: I am also on KDE and wasn't sure about 'how can I add cups to startup programs'.

Well, I make simple script:


#! /bin/sh

/etc/init.d/cups start



and add script to startup via /system settings/startup/add/add script

But I am interesting for some another thing: I have a scaner on my printer also. How to scan document on Kali Linux?

skyblake08
2014-06-26, 05:42
I bumped into a small problem.



5. In terminal type:
netstat -ant | grep 631
you got this:
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


I get the following output -


tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN


But when I run following command I'm able to see my printer -


lsusb
Bus 004 Device 013: ID 03f0:042a Hewlett-Packard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0489:d600 Foxconn / Hon Hai
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Later when I try to access the link -
http://127.0.0.1:631/ in browser
it says unable to connect.

Please help me out here

dr.ben
2015-03-12, 12:50
thank you bro.now i can work with printer on kali linux .wooow :rolleyes:

tecnodur
2015-03-19, 22:25
Thanks. It works.

LORDAHMADKHASTE
2016-06-05, 22:01
Hi guys i did it and everu thing successfully added but now i canr print any thing with non of my printers

zipdog
2016-06-25, 20:39
Thank you very much for this great post!