Puppy 4.1.2: How can I add a network printer? [SOLVED]

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

Puppy 4.1.2: How can I add a network printer? [SOLVED]

#1 Post by hanzf »

Hello,

My computer is connected to a LAN network with a network cable, Internet works with this network, and there is also a printer in the network. When running WinXP, I can print.
Installing the printer, I found that Puppy 4.1.2 has the driver (Canon PIXMA Ip4000) but CUPS 1.1.23 asks for "device", offering me this choice:

Code: Select all

AppSocket/HP JetDirect
Backend error handler
Internet printing protocol(http or ipp)
LPD/LPR host or printer
Parallel Port #1
pdf writer(unknown)
SCSI printer
serial port #1..#4
USB printer #1..#16
I have no idea what to choose for a network printer! Moreover, CUPS also asks me for "device URI", giving examples such as

Code: Select all

file:/path/to/filename.prn
http://hostname:631/ipp/
http://hostname:631/ipp/port1
ipp://hostname/ipp/
ipp://hostname/ipp/port1
lpd://hostname/queue
socket://hostname
socket://hostname:9100
how can I find out what to specify here? I hardly know anything about networks, and the person who does knows nothing about linux. In WinXP, I just installed the driver and it worked, but still I like Puppy Linux much more :-)

Thank you.
Last edited by hanzf on Sat 02 Oct 2010, 15:26, edited 1 time in total.
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Sounds like 4.1.2 still had the bug that meant you needed to create a link to get the samba backend to show up in the cups configuration http://www.murga-linux.com/puppy/viewto ... 984#265984
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

and there is also a printer in the network.
How is this printer connected to the network? Is it hooked up to another PC through a USB cable? Or is it connected to a router or some kind of print server box?

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#4 Post by hanzf »

rcrsn51 wrote:How is this printer connected to the network? Is it hooked up to another PC through a USB cable? Or is it connected to a router or some kind of print server box?
It is connected to the router with a network cable just like the computers.
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post by rcrsn51 »

It is connected to the router with a network cable just like the computers.
Are you sure that this is a PIXMA IP4000? I looked up this model and it does not have an Ethernet port. By any chance are you using a USB printer port on the router?

In any case, you will probably need to use the AppSocket/HP JetDirect device. However, you will also need to determine the IP address of the printer.

You might want to try a more recent Puppy that has a newer version of CUPS. It may auto-detect your printer and save a lot of problems.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

I'm guessing that what you actually have is a Pixma IP4000R which does have networking. I tracked down the setup manual, but I can't tell if this model uses a standard networking protocol like appsocket/jetdirect or a Canon proprietary protocol.

Like I said above, your best bet is to try a newer Puppy like Quirky or Lupu and see if CUPS can auto-detect the printer. If not, you may be out of luck.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#7 Post by 8-bit »

To get the IP address of the router connected network printer, try accessing the router setup using your browser and look for "Connected devices"
That should give you the IP address of the printer.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#8 Post by disciple »

hanzf wrote:
rcrsn51 wrote:How is this printer connected to the network? Is it hooked up to another PC through a USB cable? Or is it connected to a router or some kind of print server box?
It is connected to the router with a network cable just like the computers.
Sorry, I missed that :oops:
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#9 Post by hanzf »

rcrsn51 wrote:I'm guessing that what you actually have is a Pixma IP4000R which does have networking. I tracked down the setup manual, but I can't tell if this model uses a standard networking protocol like appsocket/jetdirect or a Canon proprietary protocol.

Like I said above, your best bet is to try a newer Puppy like Quirky or Lupu and see if CUPS can auto-detect the printer. If not, you may be out of luck.
Yes it is an iP4000R, sorry for confusing. I downloaded Quirky 1.3 and gave it a first try, and I found that CUPS in Quirky has a link to an explanation of how to deal with network printers. We will see.
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

Open the CUPS web interface, click the Administration tab and select Find New Printers.

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#11 Post by hanzf »

I got it to work! Thank you rcrsn51 for the Quirky tip.
rcrsn51 wrote:Open the CUPS web interface, click the Administration tab and select Find New Printers.
That didn't work but back in Puppy 4.1.2, I went through this explanation that comes with quirky 1.3 (see attachment) and it works!

This is what I did:
(Fortunately, I also have WinXP on by box which allowed me to find out the MAC address and IP address of the printer.)

Unfortunately, Puppy 4.1.2 has neither dhcpd nor bootpd. /etc/dhcpd.conf didn't exist.

I created /etc/dhcpd.conf with the following content:

Code: Select all

host iP4000R {
  hardware ethernet 00-00-85-3C-32-B3;
  fixed-address 192.168.178.35;
}
and I added this to /etc/hosts:

Code: Select all

#für Drucker:
192.168.178.35 iP4000R
then I ran

Code: Select all

ping 192.168.178.35
and it said:

Code: Select all

#PING 192.168.178.35 (192.168.178.35): 56 data bytes
64 bytes from 192.168.178.35: seq=0 ttl=64 time=5.949 ms
64 bytes from 192.168.178.35: seq=1 ttl=64 time=1.174 ms
64 bytes from 192.168.178.35: seq=2 ttl=64 time=1.172 ms
64 bytes from 192.168.178.35: seq=3 ttl=64 time=1.128 ms
64 bytes from 192.168.178.35: seq=4 ttl=64 time=1.119 ms
64 bytes from 192.168.178.35: seq=5 ttl=64 time=1.129 ms
64 bytes from 192.168.178.35: seq=6 ttl=64 time=1.207 ms
64 bytes from 192.168.178.35: seq=7 ttl=64 time=1.131 ms

--- 192.168.178.35 ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 1.119/1.751/5.949 ms
(I terminated it with CTRL-C)

Then I ran the CUPS Printer Wizard to install a new printer:
name="iP4000R"
device="AppSocket/HPJetDirect"
device URI="socket://192.168.178.35"

Now I can print a test page, and Abiword also prints. Looks good!
Attachments
network printer.tar.gz
(13.53 KiB) Downloaded 791 times
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#12 Post by hanzf »

8-bit wrote:To get the IP address of the router connected network printer, try accessing the router setup using your browser and look for "Connected devices"
That should give you the IP address of the printer.
Just for Interest, in case I may need it once, if it's not too hard to explain: How do I find the router setup?
(This is not a real problem for me at the moment so feel free to ignore it if you're hassled by typing)
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#13 Post by hanzf »

8-bit wrote:To get the IP address of the router connected network printer, try accessing the router setup using your browser and look for "Connected devices"
That should give you the IP address of the printer.
Just for Interest, in case I may need it once, if it's not too hard to explain: How do I find the router setup?
(This is not a real problem for me at the moment so feel free to ignore it if you're hassled by typing)
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

Congratulations! I looked through a bunch of documentation for your IP4000R and never saw a reference to it working with the AppSocket/JetDirect protocol.

Out of curiosity, do you actually need the host configuration setup that you did? Will the printer work without it?

User avatar
hanzf
Posts: 161
Joined: Wed 11 Mar 2009, 21:39
Location: Belzig, Germany

#15 Post by hanzf »

rcrsn51 wrote:Out of curiosity, do you actually need the host configuration setup that you did? Will the printer work without it?
I just renamed /etc/dhcpd.conf to a crap name, and I deleted and re-added the printer and it still works. So obviously I don't really need that...
rcrsn51 wrote:I looked through a bunch of documentation for your IP4000R and never saw a reference to it working with the AppSocket/JetDirect protocol.
Of course I didn't know the printer would work with the AppSocket/HPJetDirect protocol but it was the only possibility I could reasonably try at that point because all other protocols given in this Quirky-CUPS-network Manual require more information, like a "resource" being specified, or something else that I had no idea what it could be, so I decided to give it a try before hassling you good people asking what "resource" might be :-)
Thank you
Precise 5.7.1 frugal with .2fs
AMD Athlon 64 3700+
1000 MB RAM

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

Thanks - that's useful information. I assumed that an AppSocket/JetDirect printer would always be visible to the network and CUPS could auto-detect it. With your printer, that's not the case.

Post Reply