SaMBa problem...

Post Reply
Disiance
Posts: 5
Joined: Wed Apr 18, 2007 12:07 am

SaMBa problem...

Post by Disiance »

I'm trying to add a PIXMA MP750 printer that's attached to an XP system on my network. I'm not sure what to put in the "Edit Printer" dialog box for "Printer Name"? Right now I have the network share name of the printer.

Anyway, when I hit the "Test Page" button, I get this error:
/usb/lib/cups/backend/smb failure

I know SaMBa can connect fine to this other computer, I have the network shares on it open right now.

Any ideas?
zedonet
Site Admin
Posts: 2159
Joined: Fri Oct 06, 2006 8:02 am

Printing to Windows XP printer server

Post by zedonet »

Hello,

in TurboPrint Setup / xtpsetup, dialog "Edit Printer" enter

Short Name / Config Name = <a name of your choice>
Connecion = Remote Windows
Printer Name = <share name of printer on Windows computer>
Server Name = <network name or ip address of Windows computer>
Workgroup = <workgroup name> (optional, if computers are in different workgroups)

You can debug SMB printing from command line.

E.g.

echo "hello" | smbclient //server/printer -c "print -"

will send the text "hello" to the printer "printer" on server "server".
The printer will not print but you should see if the connection works (e.g. hold the print queue on XP and check if a print job appears.

If this works, printing should also work via Turboprint. I have noticed, however, that sometimes the IP address has to be entered in the "Server" field in xtpsetup instead of the server name.
Disiance
Posts: 5
Joined: Wed Apr 18, 2007 12:07 am

Post by Disiance »

Hmm, I tried the echo "hello" thing, got this message:
[root@localhost ~]# echo "hello" | smbclient //allen/Canon MP750 Series Printer
Domain=[ALLEN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
zedonet
Site Admin
Posts: 2159
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

Hello,

the "share" name cannot contain spaces (' ') and is different from the printer name shown in Windows' printer list. Open "sharing" for the entry in the Windows printer list to see the share name.
Disiance
Posts: 5
Joined: Wed Apr 18, 2007 12:07 am

Post by Disiance »

Okay!
echo "hello" | smbclient //allen/CanonMP7 -c "print-"
Worked fine, returned "print-: command not found", but no complain about network resources. So I threw info into the TPSetup window:
Printer name: CanonMP7
Server name: allen

But Turbo Print's giving me the same error as before.

I opened the system log on my linux box, this is what it said (if it helps at all):
I [20/Apr/2007:15:17:08 -0600] Printer "Canon_MP750_Series_Printer" modified by "root".
I [20/Apr/2007:15:17:08 -0600] cupsdAcceptClient: skipping getpeercon()
I [20/Apr/2007:15:17:08 -0600] cupsdAcceptClient: skipping getpeercon()
I [20/Apr/2007:15:17:08 -0600] Saving printers.conf...
I [20/Apr/2007:15:17:08 -0600] Saving classes.conf...
I [20/Apr/2007:15:17:08 -0600] Default destination set to "Canon_MP750_Series_Printer" by "root".
I [20/Apr/2007:15:17:08 -0600] cupsdAcceptClient: skipping getpeercon()
I [20/Apr/2007:15:17:08 -0600] cupsdAcceptClient: skipping getpeercon()
I [20/Apr/2007:15:17:08 -0600] add_job: setting context of job to UNKNOWN SL
I [20/Apr/2007:15:17:08 -0600] Adding start banner page "none" to job 17.
I [20/Apr/2007:15:17:08 -0600] Adding end banner page "none" to job 17.
I [20/Apr/2007:15:17:08 -0600] Job 17 queued on "Canon_MP750_Series_Printer" by "root".
I [20/Apr/2007:15:17:08 -0600] Started filter /usr/lib/cups/filter/pstops (PID 3174) for job 17.
I [20/Apr/2007:15:17:08 -0600] Started filter /usr/lib/cups/filter/pstoturboprint (PID 3175) for job 17.
I [20/Apr/2007:15:17:08 -0600] Started backend /usr/lib/cups/backend/smb (PID 3176) for job 17.
I [20/Apr/2007:15:17:09 -0600] cupsdAcceptClient: skipping getpeercon()
E [20/Apr/2007:15:17:09 -0600] [Job 17] Can't load /etc/samba/smb.conf - run testparm to debug it
E [20/Apr/2007:15:17:09 -0600] PID 3176 (/usr/lib/cups/backend/smb) stopped with status 1!
I [20/Apr/2007:15:17:09 -0600] Hint: Try setting the LogLevel to "debug" to find out more.
I [20/Apr/2007:15:17:20 -0600] [Job 17] Backend returned status 1 (failed)
I [20/Apr/2007:15:17:20 -0600] Saving printers.conf...


I'm really sorry if I'm missing something obvious here... I'm very new to Linux, this is my first real attempt to use it.
zedonet
Site Admin
Posts: 2159
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

Hello,

there seems to be a problem with Samba (which does the Windows networking):

"Can't load /etc/samba/smb.conf - run testparm to debug it"

You could check if the Samba config file /etc/samba/smb.conf exists. If not, you could try to deinstall and install the package Samba.
Disiance
Posts: 5
Joined: Wed Apr 18, 2007 12:07 am

Post by Disiance »

The smb.conf file exists. Could there be a permissions issue?
zedonet
Site Admin
Posts: 2159
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

smb.conf should be readable to everyone.
Also run

Code: Select all

testparm
from command line.

If in doubt about the results please post the output (cut & paste).
Disiance
Posts: 5
Joined: Wed Apr 18, 2007 12:07 am

Post by Disiance »

[root@localhost samba]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = PRALL INSTITUTE
server string = cjlinux
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
zedonet
Site Admin
Posts: 2159
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

Hello,

this looks okay - I haven't got an idea what could be wrong.
Post Reply