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?
SaMBa problem...
Printing to Windows XP printer server
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.
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.
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.
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.
smb.conf should be readable to everyone.
Also run
from command line.
If in doubt about the results please post the output (cut & paste).
Also run
Code: Select all
testparm
If in doubt about the results please post the output (cut & paste).
[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
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