Monthly Archives: December 2011

2

How to add a network printer in Debian/Ubuntu Linux

by

This is actually fairly easy, but there are a couple of tricks!

1. What is the IP address of that printer?

The easy way is to scan for it!

If you have not done so, install the arp-scan programme. Arp (Address Resolution Protocol) This will allow us to scan the network for all devices on the network.


sudo apt-get install arp-scan

2. Run arp-scan to see what’s on your network:


sudo arp-scan --interface=eth0 --localnet

arp-scan MUST be run as root, so that’s why we do the sudo.
We are limiting the search for anything we can reach, via our local ethernet connection.

You will get output that looks like:

$ sudo arp-scan –interface=eth0 –localnet
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.6 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.1.1 00:12:34:56:78:81 (Unknown)
192.168.1.100 00:34:56:78:9a:5d Hewlett Packard
192.168.1.104 00:46:cd:ef:49:b1 (Unknown)
192.168.1.105 00:aa:bd:cb:d7:aa Roku, LLC

4 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.6: 256 hosts scanned in 1.421 seconds (180.15 hosts/sec). 4 responded
$

Hmm. There’s something that says Hewlett Packard. Yup that’s my printer at address: 192.168.1.100

5. Go into: System/Administration/Printing and add your printer, if it is NOT already present. And follow the prompts for adding a printer. Almost done, couple of other chores.

6. Now click on Server and then Settings, and your screen should look like:

7. One last step. Enable the printer, and enable it for sharing. Also you may/may not want to set it as the default printer. Single right click on the printer icon, and select/check Enabled/Sharing:

8. Repeat these steps on each computer that you want to add this network printer too.

Wayno