CUPS network printing in Puppy 4.00 - Still can't connect

Booting, installing, newbie
Post Reply
Message
Author
drpatt
Posts: 2
Joined: Sat 20 Oct 2007, 03:29

CUPS network printing in Puppy 4.00 - Still can't connect

#1 Post by drpatt »

Considering the amount of time this has been a problem I'm amazed it hasn't been fixed by the keepers of CUPS. Don't they think people use Windows networks? :roll:

Just installed Puppy 4. With CUPS there is no SAMBA option for network printing. Nothing seems to work. When I tried 3.01 it was the same problem. Is CUPS still broken? Is there a way to get my Brother laser installed? Drivers are not a problem. Finding the printer is a problem. The host PC is running XP and the printer is shared (other PCs on the network are using it). Connecting locally is not an option. Thank you.

Doug

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

#2 Post by rcrsn51 »

[Edited]

First verify that you have the file /opt/samba/bin/smbspool

Then go to the folder /usr/lib/cups/backend

Inside this folder you need to make a symlink to the smbspool file and name it "smb".

Open a console and type: ln -s /opt/samba/bin/smbspool smb

Restart CUPS with the command: /etc/init.d/cups restart (or reboot Puppy)

Open the CUPS web interface and start installing a new printer.

At the bottom of the Device list you should now see "Windows Printer via Samba"

Make the device URI smb://PC_NAME/PRINTER_NAME
Last edited by rcrsn51 on Sat 17 May 2008, 01:32, edited 7 times in total.

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

#3 Post by rcrsn51 »

@drpatt:

In case you have already read my original message, I have edited it to provide the patch for Samba printing in Puppy 4. I hope this works for you.

This problem was mentioned by barriew in the Beta2 bug reports but apparently it was ignored.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#4 Post by jpeps »

Thanks for the post; that got my network HP940c printer working
I was just going to comment about the link, but you beat me to it :D

mow9902
Posts: 187
Joined: Wed 26 Nov 2008, 08:29

CUPS Network printing - not quite yet

#5 Post by mow9902 »

Thanks for the previous post. I also had not been able to get CUPS network printing to work in Puppy 4.

I have a HP PSC1355.
If I connect the printer directly to my puppy machine, and then do the CUPS setup, it works perfectly using the HP PSC 1300 printer driver.

However, I had never been able to get the printer to work over my home network despite reading dozens of suggestions on the forum.

BUT today - following the advice to place into /usr/lib/cups/backend a sym link (named smb) to smbspool in /opt/samba/bin I can now actually place a print job into the printer queu on the network .....BUT unfortunately the job never actually prints. It errors on the windows system print queue. I have attached a screen print of the actual error.

I would normally suspect such a problem to be associated with the printer driver - but in this case the driver used works perfectly when the printer is directly connected, so I'm thinking it cannot be that.

Is there some further samba secret/tip/tweak which I might have to do?

Any help greatly appreciated.
Attachments
printer error.gif
(18.88 KiB) Downloaded 688 times

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#6 Post by r__hughes »

Sorry mow, no real answer to your problem other than to say that the instructions (quoted below) worked fine for me.
First verify that you have the file /opt/samba/bin/smbspool
Then go to the folder /usr/lib/cups/backend
Inside this folder you need to make a symlink to the smbspool file and name it "smb".
Open a console and type: ln -s /opt/samba/bin/smbspool smb

Restart CUPS with the command: /etc/init.d/cups restart (or reboot Puppy)
Open the CUPS web interface and start installing a new printer.
At the bottom of the Device list you should now see "Windows Printer via Samba"
Make the device URI smb://PC_NAME/PRINTER_NAME
These instructions worked perfectly on my frugal pup411 system -
a T22 Thinkpad with frugal pup411 connected by wifi to a home network which also serves a W98 PC with a shared a Canon S520 printer. The pup411 system uses a Turboprint driver for the Canon S520.

I use the URL address: smb://VBOX/CanonS520 and I made sure neither the shared windows name of the computer nor the printer have spaces in them.
--- quad booting Slacko57NPAE, Slacko56NPAE, Slacko55PAE (with OO4, devx, Gimp) & WXP on DELL Dimension 2400 PC & DELL Latitude 630 Laptop using grub.
---USB-Flash booting same on Samsung N110 WXP Netbook and Lenovo q100 WXP netPC.

gerry
Posts: 986
Joined: Thu 26 Jul 2007, 21:49
Location: England

#7 Post by gerry »

Have a look at the CUPS error log. Does it complain that it cannot connect to CIFS host? Or, in fact, this message may be displayed as Printer State on the CUPS printers page on localhost 631.
If you are getting the CIFS problem, then (in 4.1.2) I have to open Pnethood and mount the printer with "Use CIFS" box ticked. Sorry I can't remember if 4.0 is the same- update to 4.1.2, which is what I'm using now!

Gerry

tbuff2
Posts: 8
Joined: Wed 31 Dec 2008, 17:52
Location: Georgia, USA

Need Help going from Windows to CUPS

#8 Post by tbuff2 »

I would like to print from Windows Vista to a linux printer using CUPS. I would like to use the IPP option as that seems easier. I know I have to modify the cupsd.conf file to allow this and I thought I'd done that but I can't get the Vista machine to connect. Here's my cupsd.conf file.

Code: Select all

ServerName puppypc

LogFilePerm 0600

# Recommended log size 1m
MaxLogSize 1m

PreserveJobHistory Off

PreserveJobFiles Off

AutoPurgeJobs Yes

DocumentRoot /usr/share/doc/cups-1.1.23

# Show general information in error_log.
# Default: 'LogLevel info'
# Change to 'LogLevel debug' for more detail
LogLevel debug

Printcap /etc/printcap

User root

<Location />
# Allow shared printing and remote administration.
Order Deny,Allow
Deny from All
#Allow from 127.0.0.1
#Allow from 10.0.0.*
Allow @LOCAL
</Location>

#AuthType Digest
#Order Deny,Allow
#Allow From 127.0.0.1
#Allow From localhost

<Location /admin>
# Allow remote administration.
Order allow,deny
Allow @LOCAL
</Location>

<Location /printers>
Order Deny,Allow
#Allow From 127.0.0.1
#Allow From 10.0.0.*
Allow @LOCAL
</Location>

# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
#BrowseAddress 10.0.0.1:631
#BrowseProtocols cups
# Allow remote access
Port 631

Any suggestions?

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

#9 Post by rcrsn51 »

To print from Windows to Puppy, try this.

tbuff2
Posts: 8
Joined: Wed 31 Dec 2008, 17:52
Location: Georgia, USA

#10 Post by tbuff2 »

Thanks! The method you point me to in the above link is exactly what I'm trying to do. I've posted a message regarding the problem I'm having with the method on that thread.

drblock2
Posts: 153
Joined: Mon 19 Jan 2009, 12:38

Printing to Windows Network via Samba

#11 Post by drblock2 »

rcrsn51,

Thanks for your clear, concise instructions.

It worked first time, perfectly.

drblock

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#12 Post by canbyte »

Help!!
Last instruction says
Make the device URI smb://PC_NAME/PRINTER_NAME
? What is the pc's name in puppy?
i tried puppypc, root, the ip address without success
any ideas?
Thanks

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

#13 Post by rcrsn51 »

PC_NAME is the name of the Windows computer. Right-click on My Computer and select Properties. Then open the Computer Name tab. The name needs to be a one-word identifier with no spaces. Just to be safe, make it all upper case and less than 16 letters.

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#14 Post by canbyte »

Hi rcrsn51
I wouldn't have thought to try name of the Windows computer. Unfortunately it didn't work. Perhaps, since its not a dual boot, Puppy doesn't know WinME exists on the hard drive. I did rename it using all caps, no spaces per your suggestion. Trying a test page thru CUPS -- nothing. Edit: after fooling around for awhile, i now see error message "unable to connect to CIFS host". I'm also wondering how its supposed to know the ip address of the printer or the computer. Surely it must?

[Edit]
I got things working by another method suggested here
http://www.murga-linux.com/puppy/viewto ... 482#280482

involving sockets and printing to Internet etc. Sorta wonder if both your method AND the socket thing are needed in my case.

Cheers
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

User avatar
qcjn
Posts: 9
Joined: Sat 27 Dec 2008, 04:06
Location: you can find me usually at irc #puppylinux
Contact:

Cant configure printer HP psc 1610

#15 Post by qcjn »

i'm following this tutorial
http://pupweb.org/wikka/Printing
Do administration task...add printer
come's up 3 prompts
Name: HP_PSC_1600_series
Location: 192.168.0.101
Description: my hp printer
then
Device for HP_PSC_1600_series
Device:Windows printer via samba
then
Device URI for HP_PSC_1600_series
Device URI:smb://192.168.0.101 (this i'm not sure..examples are not the same)
then
Model/Driver for HP_PSC_1600_series
Make: HP
then
Model/Driver for HP_PSC_1600_series
Model:HP PSC 2110 - CUPS+gutenprintv501(en) <==what i tried
then
Model:HP PSC 950xi - CUPS+gutenprintv501(en) <==what i tried

server-error-internal-error

So thats where i'm at...don't know what to do now ????

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

#16 Post by rcrsn51 »

Read here.

Post Reply