Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO CUPS+Samba: printing from Windows & Linux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Wed Apr 21, 2004 10:03 pm    Post subject: Reply with quote

I've tried to follow your guide but cupsaddsmb gives me this...

Code:
# cupsaddsmb -H PrintServer -U root -h PrintServer -v HP_Desk_Jet_670C
Warning: No PPD file for printer "HP_Desk_Jet_670C" - skipping!


I've installed this printer with the gentoo printing guide and it's been working fine on the local machine. I also tried installing it a few times more according to your instructions with a ppd file from LinuxPrinting. Everytime I get the above message, everything else seems to be fine.

One small anomaly however, when I browse the web interface for cups, click on the printer, then the "Configure Printer" button, I get:

Code:
server-error-service-unavailable


I don't know if this might be helpful but here is the printer as cups knows it:

Code:
# cat printers.conf
# Printer configuration file for CUPS v1.1.20
# Written by cupsd on ons 21-04-2004 23:59:03 CEST
<DefaultPrinter HP_Desk_Jet_670C>
Info HP_Desk_Jet_670C
DeviceURI parallel:/dev/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


Should there be a reference to a ppd file in there somewhere? I did indeed complete this command without error:

Code:
 lpadmin -p HP_Desk_Jet_670C -E -v parallel:/dev/lp0 -m HP-DeskJet_670C-hpijs.ppd


I haven't tried printing from the local machine since making these changes as I haven't been able to, I will try later. However, browsing the printer from a WinXP host, the printer shows up and I can connect to it, though it informs me that there's no driver available.
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Fri Apr 23, 2004 12:00 pm    Post subject: Reply with quote

numerodix: I have seen that this error can occur when the hostname 'PrintServer' doesn't really point to the actual printserver (do you have sane entries in /etc/hosts?). You can try using
Code:

# cupsaddsmb -H localhost -U root -h localhost -v HP_Desk_Jet_670C
or
# cupsaddsmb -H localhost -U root -h localhost -v -a

Also try IP-adresses if the above doesn't work. If it's STILL not working then you might have other problems too. Try setting the LogLevel directive in cupsd.conf to debug, and then
Code:

# tail -F /var/log/cups/error_log

in a terminal window while running cupsaddsmb. Might give you some information.

About that other error...it might be related, although it looks like something else. Where you ever able to print a test page? Following the Gentoo Printer Guide should result in being able to get a working test page I reckon :)
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Fri Apr 23, 2004 2:42 pm    Post subject: Reply with quote

Thanks for the tip, indeed it was a resolution problem. cupsaddsmb now executes without error and printing works fine locally. However I still can't get the drivers from a remote machine. I've looked at the error log and I don't really get what's wrong, here it is (starting cups and connecting from a WinXP client):

Code:
#  tail -F /var/log/cups/error_log
D [23/Apr/2004:16:38:47 +0200] LoadDevices: Added device "usb:/dev/usblp15"...
D [23/Apr/2004:16:38:47 +0200] LoadDevices: Added device "http"...
D [23/Apr/2004:16:38:47 +0200] LoadDevices: Added device "smb"...
I [23/Apr/2004:16:38:47 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 253 PPDs...
I [23/Apr/2004:16:38:47 +0200] LoadPPDs: No new or changed PPDs...
D [23/Apr/2004:16:38:47 +0200] LoadAllJobs: Scanning /var/spool/cups...
I [23/Apr/2004:16:38:47 +0200] Full reload complete.
D [23/Apr/2004:16:38:47 +0200] StartListening: NumListeners=1
D [23/Apr/2004:16:38:47 +0200] StartListening: address=00000000 port=631
D [23/Apr/2004:16:38:47 +0200] ResumeListening: setting input bits...
D [23/Apr/2004:16:39:54 +0200] AcceptClient() 5 from localhost:631.
D [23/Apr/2004:16:39:54 +0200] ReadClient() 5 POST / HTTP/1.1
D [23/Apr/2004:16:39:54 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Apr/2004:16:39:54 +0200] ReadClient() 5 POST / HTTP/1.1
D [23/Apr/2004:16:39:54 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Apr/2004:16:39:54 +0200] CloseClient() 5
D [23/Apr/2004:16:39:54 +0200] AcceptClient() 5 from localhost:631.
D [23/Apr/2004:16:39:54 +0200] ReadClient() 5 POST / HTTP/1.1
E [23/Apr/2004:16:39:54 +0200] get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good!
D [23/Apr/2004:16:39:54 +0200] Sending error: client-error-not-found
D [23/Apr/2004:16:39:54 +0200] ProcessIPPRequest: 5 status_code=406
D [23/Apr/2004:16:39:54 +0200] CloseClient() 5
D [23/Apr/2004:16:40:10 +0200] AcceptClient() 5 from localhost:631.
D [23/Apr/2004:16:40:10 +0200] ReadClient() 5 POST / HTTP/1.1
D [23/Apr/2004:16:40:10 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Apr/2004:16:40:10 +0200] ReadClient() 5 POST / HTTP/1.1
D [23/Apr/2004:16:40:10 +0200] ProcessIPPRequest: 5 status_code=0
D [23/Apr/2004:16:40:10 +0200] CloseClient() 5


EDIT: I tried a couple more invocations of cupsaddsmb and I now get an error, I could swear it wasn't there before but I can't be completely sure.

Code:
#  cupsaddsmb -H localhost -U root -h localhost -v HPDeskJet670C
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%pass' -c 'mkdir W32X86;put /var/spool/cups/tmp/408931ea1be1e W32X86/HPDeskJet670C.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
added interface ip=10.0.1.11 bcast=10.0.1.255 nmask=255.255.255.0
Domain=[MATUSIAK] OS=[Unix] Server=[Samba 2.2.8a]
putting file /var/spool/cups/tmp/408931ea1be1e as \W32X86/HPDeskJet670C.ppd (1110.0 kb/s) (average 1110.0 kb/s)
putting file /usr/share/cups/drivers/cupsdrv5.dll as \W32X86/cupsdrv5.dll (4718.9 kb/s) (average 3977.4 kb/s)
putting file /usr/share/cups/drivers/cupsui5.dll as \W32X86/cupsui5.dll (12611.4 kb/s) (average 5608.3 kb/s)
putting file /usr/share/cups/drivers/cups5.hlp as \W32X86/cups5.hlp (142340000.0 kb/s) (average 5762.7 kb/s)
 
Running command: rpcclient localhost -N -U'root%pass' -c 'adddriver "Windows NT x86" "HPDeskJet670C:cupsdrv5.dll:HPDeskJet670C.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"'
cmd = adddriver "Windows NT x86" "HPDeskJet670C:cupsdrv5.dll:HPDeskJet670C.ppd:cupsui5.dll:cups5.hlp:NULL:RAW:NULL"
result was NT_STATUS_UNSUCCESSFUL
 
Running command: rpcclient localhost -N -U'root%pass' -c 'setdriver HPDeskJet670C HPDeskJet670C'
cmd = setdriver HPDeskJet670C HPDeskJet670C
Succesfully set HPDeskJet670C to driver HPDeskJet670C.


NT_STATUS_UNSUCCESSFUL it is, the samba howto for v3 (my samba is 2.2.8a) says the CUPS printer must be known to Samba, otherwise the " setdriver" subcommand fails with an NT_STATUS_UNSUCCESSFUL error.

Well the name of the printer in smb.conf is the exact same as it is known to cups. :?: I've also restarted samba a dozen of times but the printer name has been unchanged for a long time, I really don't know why this is happening.
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Fri Apr 23, 2004 6:26 pm    Post subject: Reply with quote

A little update, I did install the driver now (had to change security to user temporarily) but it still won't work downloading it from the clients. I've been looking at the logs, the cups log looks the same still, the samba log (/var/log/samba/log.smbd) looks like this:

Code:
[2004/04/23 19:22:40, 1] smbd/service.c:close_cnum(880)
  frasier (127.0.0.1) closed connection to service print$
[2004/04/23 19:22:41, 0] printing/nt_printing.c:get_correct_cversion(1110)
  get_correct_cversion: Unable to connect
[2004/04/23 19:22:41, 0] lib/util_str.c:safe_strcpy_fn(577)
  ERROR: NULL dest in safe_strcpy
[2004/04/23 19:22:41, 0] lib/util_str.c:safe_strcpy_fn(577)
  ERROR: NULL dest in safe_strcpy
[2004/04/23 19:22:41, 0] lib/util_str.c:safe_strcpy_fn(577)
  ERROR: NULL dest in safe_strcpy


EDIT: I found out that the guest account for samba was not declared and was set to nobody. Apparently this wasn't good for gaining access from the clients. I changed it to "printer" which is an actual account on the server with regular permissions. Now I think it's finally working as it should, I was able to print a test page from the client and looking at the drivers it's using I see the files that are supposed to be served off the server. The only anomalities is that I get errors when opening the properties of the printer, having opened the printer window. I get those access permission errors from explorer.exe, no idea what they are even. Don't have time for more testing now but fingers crossed that it's finally coming together. :lol:
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Fri Apr 23, 2004 8:54 pm    Post subject: Reply with quote

numerodix wrote:

EDIT: I found out that the guest account for samba was not declared and was set to nobody. Apparently this wasn't good for gaining access from the clients. I changed it to "printer" which is an actual account on the server with regular permissions. Now I think it's finally working as it should, I was able to print a test page from the client and looking at the drivers it's using I see the files that are supposed to be served off the server. The only anomalities is that I get errors when opening the properties of the printer, having opened the printer window. I get those access permission errors from explorer.exe, no idea what they are even. Don't have time for more testing now but fingers crossed that it's finally coming together. :lol:

Now THAT'S the kind of problem solving that I like; the kind that works without me having to do anything :)

You mention some access permission errors...and I thought I was the only one having those! I have no idea what they are, why they are or what the hell causes them.

Must have something to do with Samba. I've never had those before, but I think they came with a Samba update...

And yes, a printer user should be used to connect and use the printers from the clients. guest is no good. This is why I mention it in the guide:
Quote:

Now we have to add at least two Samba users to be able to install the printer drivers and to allow users to connect to the printer. Note that both users have to exist in the system's /etc/passwd file.
Code:

# smbpasswd -a printer_username
# smbpasswd -a root

root needs to be added to allow adding the PS drivers for Windows clients, and printer_username will be used by Windows clients when logging into PrintServer to connect to the printer.

_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Fri Apr 23, 2004 10:02 pm    Post subject: Reply with quote

daff wrote:

root needs to be added to allow adding the PS drivers for Windows clients, and printer_username will be used by Windows clients when logging into PrintServer to connect to the printer.


Right, but I didn't really know where this comes in on the client side, short of demanding a "printer" user on each of the clients. So apparently setting the guest user to printer does the trick. Whenever I read these guides I'm always very aware of my own ignorance so I try to follow the text without considering the implications, thus these simple things like having a corresponding printer user on the server often escape me. :oops:

Btw, not being able to execute cupsaddsmb without temporarily changing security to user has now happened at least twice, you might want to include that in your howto. :)
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Fri Apr 23, 2004 10:59 pm    Post subject: Reply with quote

numerodix wrote:
daff wrote:

root needs to be added to allow adding the PS drivers for Windows clients, and printer_username will be used by Windows clients when logging into PrintServer to connect to the printer.


Right, but I didn't really know where this comes in on the client side, short of demanding a "printer" user on each of the clients. So apparently setting the guest user to printer does the trick. Whenever I read these guides I'm always very aware of my own ignorance so I try to follow the text without considering the implications, thus these simple things like having a corresponding printer user on the server often escape me. :oops:

Btw, not being able to execute cupsaddsmb without temporarily changing security to user has now happened at least twice, you might want to include that in your howto. :)

I know what you mean, happens to me all the time :)

Thanks for your input, I'll update the howto right away.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
BlindSpy
Apprentice
Apprentice


Joined: 20 Mar 2004
Posts: 263

PostPosted: Mon Apr 26, 2004 12:49 pm    Post subject: Reply with quote

good guide =)
Back to top
View user's profile Send private message
IronMan
n00b
n00b


Joined: 07 Apr 2003
Posts: 39
Location: New Hampshire

PostPosted: Thu May 06, 2004 1:29 pm    Post subject: Reply with quote

It's been a week or so since the last post in this thread, so I hope someone's listening. I'm getting the same problem Phantomlord got,
Code:

tree connect failed: NT_STATUS_BAD_NETWORK_NAME


I'm running:
Code:
 cupsaddsmb -v -a


According to man cupsaddsmb, not specifying hosts defaults to the CUPS host. And I think Samba is working because I can see my system from a Windows XP Network Neighborhood.

The testparm output is:
Code:

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[backup]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
   coding system =
   client code page = 850
   code page directory = /var/lib/samba/codepages
   workgroup = SPARKY
   netbios name = IRONRING
   netbios aliases =
   netbios scope =
   server string = Marc's Computer
   interfaces =
   bind interfaces only = No
   security = USER
   encrypt passwords = Yes
   update encrypted = No
   allow trusted domains = Yes
   hosts equiv =
   min passwd length = 5
   map to guest = Never
   null passwords = No
   obey pam restrictions = No
   password server =
   smb passwd file = /etc/samba/private/smbpasswd
   root directory =
   pam password change = No
   passwd program = /usr/bin/passwd
   passwd chat = *new*password* %n\n *new*password* %n\n *changed*
   passwd chat debug = No
   username map =
   password level = 0
   username level = 0
   unix password sync = No
   restrict anonymous = No
   lanman auth = Yes
   use rhosts = No
   ssl = No
   ssl hosts =
   ssl hosts resign =
   ssl CA certDir =
   ssl CA certFile =
   ssl server cert =
   ssl server key =
   ssl client cert =
   ssl client key =
   ssl egd socket =
   ssl entropy file =
   ssl entropy bytes = 256
   ssl require clientcert = No
   ssl require servercert = No
   ssl ciphers =
   ssl version = ssl2or3
   ssl compatibility = No
   admin log = No
   log level = 10
   syslog = 1
   syslog only = No
   log file = /var/log/samba/log.%m
   max log size = 50
   timestamp logs = Yes
   debug hires timestamp = No
   debug pid = No
   debug uid = No
   protocol = NT1
   large readwrite = Yes
   max protocol = NT1
   min protocol = CORE
   read bmpx = No
   read raw = Yes
   write raw = Yes
   acl compatibility =
   nt smb support = Yes
   nt pipe support = Yes
   nt status support = Yes
   announce version = 4.9
   announce as = NT
   max mux = 50
   max xmit = 16644
   name resolve order = lmhosts host wins bcast
   max ttl = 259200
   max wins ttl = 518400
   min wins ttl = 21600
   time server = No
   unix extensions = No
   change notify timeout = 60
   deadtime = 0
   getwd cache = Yes
   keepalive = 300
   lpq cache time = 10
   max smbd processes = 0
   max disk size = 0
   max open files = 10000
   name cache timeout = 660
   read size = 16384
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   stat cache size = 50
   use mmap = Yes
   total print jobs = 0
   load printers = Yes
   printcap name = cups
   disable spoolss = No
   enumports command =
   addprinter command =
   deleteprinter command =
   show add printer wizard = Yes
   os2 driver map =
   strip dot = No
   mangling method = hash
   character set =
   mangled stack = 50
   stat cache = Yes
   domain admin group =
   domain guest group =
   machine password timeout = 604800
   add user script =
   delete user script =
   logon script =
   logon path = \\%N\%U\profile
   logon drive =
   logon home = \\%N\%U
   domain logons = No
   os level = 20
   lm announce = Auto
   lm interval = 60
   preferred master = Auto
   local master = Yes
   domain master = Auto
   browse list = Yes
   enhanced browsing = Yes
   dns proxy = No
   wins proxy = No
   wins server =
   wins support = No
   wins hook =
   kernel oplocks = Yes
   lock spin count = 3
   lock spin time = 10
   oplock break wait time = 0
   add share command =
   change share command =
   delete share command =
   config file =
   preload =
   lock dir = /var/cache/samba
   pid directory = /var/run/samba
   utmp directory =
   wtmp directory =
   utmp = No
   default service =
   message command =
   dfree command =
   valid chars =
   remote announce =
   remote browse sync =
   socket address = 0.0.0.0
   homedir map =
   time offset = 0
   NIS homedir = No
   source environment =
   panic action =
   hide local users = No
   host msdfs = No
   winbind uid =
   winbind gid =
   template homedir = /home/%D/%U
   template shell = /bin/false
   winbind separator = \
   winbind cache time = 15
   winbind enum users = Yes
   winbind enum groups = Yes
   winbind use default domain = No
   comment =
   path =
   alternate permissions = No
   username =
   guest account = nobody
   invalid users =
   valid users =
   admin users =
   read list =
   write list =
   printer admin = @adm root
   force user =
   force group =
   read only = Yes
   create mask = 0744
   force create mode = 00
   security mask = 0777
   force security mode = 00
   directory mask = 0755
   force directory mode = 00
   directory security mask = 0777
   force directory security mode = 00
   force unknown acl user = 00
   inherit permissions = No
   inherit acls = No
   guest only = No
   guest ok = No
   only user = No
   hosts allow =
   hosts deny =
   status = Yes
   nt acl support = Yes
   profile acls = No
   block size = 1024
   max connections = 0
   min print space = 0
   strict allocate = No
   strict sync = No
   sync always = No
   use sendfile = No
   write cache size = 0
   max print jobs = 1000
   printable = No
   postscript = No
   printing = cups
   print command = lpr -r -P%p %s
   lpq command = lpq -P%p
   lprm command = lprm -P%p %j
   lppause command =
   lpresume command =
   queuepause command =
   queueresume command =
   printer name =
   use client driver = No
   default devmode = No
   printer driver =
   printer driver file = /etc/samba/printers.def
   printer driver location =
   default case = lower
   case sensitive = No
   preserve case = Yes
   short preserve case = Yes
   mangle case = No
   mangling char = ~
   hide dot files = Yes
   hide unreadable = No
   delete veto files = No
   veto files =
   hide files =
   veto oplock files =
   map system = No
   map hidden = No
   map archive = Yes
   mangled names = Yes
   mangled map =
   browseable = Yes
   blocking locks = Yes
   csc policy = manual
   fake oplocks = No
   locking = Yes
   oplocks = Yes
   level2 oplocks = Yes
   oplock contention limit = 2
   posix locking = Yes
   strict locking = No
   share modes = Yes
   copy =
   include =
   exec =
   preexec close = No
   postexec =
   root preexec =
   root preexec close = No
   root postexec =
   available = Yes
   volume =
   fstype = NTFS
   set directory = No
   wide links = Yes
   follow symlinks = Yes
   dont descend =
   magic script =
   magic output =
   delete readonly = No
   dos filemode = No
   dos filetimes = No
   dos filetime resolution = No
   fake directory create times = No
   vfs object =
   vfs options =
   msdfs root = No

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

[printers]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   write list = @adm root
   create mask = 0700
   printable = Yes
   print command = lpr -P %p %s # using cups own drivers (use generic PostScript on clients).
   lpq command = lpq -P %p
   lprm command = cancel %p-%j
   browseable = No

[backup]
   comment = Backup
   path = /opt/backup
   read only = No
   guest ok = Yes


I didn't see anything in there that was wrong, but I'm new at this.

Any ideas?

-Marc
Back to top
View user's profile Send private message
chino_
Apprentice
Apprentice


Joined: 05 Apr 2004
Posts: 184
Location: Berlin

PostPosted: Fri May 07, 2004 11:49 pm    Post subject: Reply with quote

Man, this one is one hell of an awesome tutorial. Worked out of the box like a charm!

Just set up printserver for linux clients, I will test windows clients tomorrow but I think it will work.

Very nice one !

Thanks a LOT!
_________________
always the same old taste, just new injury
well i'll wear the claws if you'd like that
yeah if you'd like that we can ride on a black horse
a great new wave hesperian death horse
Back to top
View user's profile Send private message
yokem55
Guru
Guru


Joined: 18 Apr 2002
Posts: 360
Location: Oregon

PostPosted: Fri May 14, 2004 7:50 am    Post subject: Reply with quote

Okay, I finally got this working. Our winxp (the fiance is loathe to give up windows, sigh) laptop now can print to the printer hooked up to the desktop using the autodownloaded cups drivers. However, whenever I try to go to the printer properties page under windows, I get an ugly error box instead.
Code:
Function address 0xa90450e caused a protection fault.  (exception code 0xc0000005) Some or all property page(s) may not be displayed.


Some googleing turned up this post in a news group. Apparently the ppd might be at fault, but my error message does not match this person's while the general symptoms do. Any advice on solving this one?
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Fri May 14, 2004 12:16 pm    Post subject: Reply with quote

ok, so now I have installed everything and downloaded the drivers to my winxp machine. I just have one problem: everytime I print something on the windows computer, the printer doesn't do anything. I can see samba working in top but not cups. Could anyone please give me some advise?

BTW: great tutorial!!
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Tue May 18, 2004 11:55 am    Post subject: Reply with quote

*bump*

I was looking at the logs today. It's telling me printing/pcap.c:pcap_printer_fn(361)
Unable to open printcap file cups for read!

So now what do I do?
Back to top
View user's profile Send private message
CB2206
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 127
Location: NRW

PostPosted: Tue May 25, 2004 8:20 pm    Post subject: Reply with quote

Hi,

thx for this great howto. unfortunately i cannot get the whole thing working. cups is running well and i am able to print from another linux machine. but i have some problems with samba.
when executing
Code:
cupsaddsmb -v -a -U root
i get this:
Code:

Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%XXXX' -c 'mkdir W32X86;put /var/spool/cups/tmp/40b3a0aae9a5c W32X86/HPLaserJet1200.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.2a]
tree connect failed: Call returned zero bytes (EOF)

Password for root required to access localhost via SAMBA:


what am i doing wrong?

i set a samba password for root and my smb.conf is this:
Code:

[global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = WORKGROUP

netbios name = P300

encrypt passwords = no

# Of course this has no REAL purpose other than letting
# everyone know its not Windows!
# %v prints the version of Samba we are using.
server string = CB's fileserver

# We are going to use cups, so we are going to put it in here ;-)
printcap name = cups
printing = cups
load printers = yes

# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50

# We are going to set some options for our interfaces...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is our local network device
interfaces = lo br0
bind interfaces only = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does
# not use passwords!
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0

# Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = user

# No passwords, so we're going to use a guest account!
guest account = samba
guest ok = yes

# We now will implement the on access virus scanner.
# NOTE: By putting this in our [Global] section, we enable
# scanning of ALL shares, you could optionally move
# these to a specific share and only scan it.
#vfs object = /usr/lib/samba/vfs/vscan-clamav.so
#vfs options = config-file = /etc/samba/vscan-clamav.conf

# Now we setup our print drivers information!
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
guest ok = no
browseable = yes
read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
write list = cb,root

# Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
[HPLaserJet1200]
comment = HP LaserJet 1200 Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes

# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = cb,root

# Now we setup our printers share.  This should be
# browseable, printable, public.
[printers]
comment = All Printers
browseable = yes
printable = yes
public = yes
guest ok = yes
path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = cb,root

# We create a new share that we can read/write to from anywhere
# This is kind of like a public temp share, anyone can do what
# they want here.
[upload]
comment = Upload
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /share/upload


thx for help!
_________________
CB
Back to top
View user's profile Send private message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 438
Location: Florida

PostPosted: Wed Jun 09, 2004 3:41 am    Post subject: Reply with quote

Hey, great stuff!

Going from linux->linux, I got it to work fine (via samba)... the on the client side, cups shows no printers (lpr works fine with .ps files). I figure I could work with this, and moved over to my windows computer.

Here's where I encountered the problem - when I did the windows driver portion, I ran the script, it gave me no errors, I thought life was good and continued on. Now on Windows, it says
Quote:
The server for the printer does not have the correct printer driver installed. If you want to search for the proper driver, click OK. Otherwise, click Cancel and contact your network administrator or original equipment manufacturer for the correct printer driver
I believe I followed the instructions pretty well... I also symlinked where the drivers are installed (/usr/share/cups/driver) to /etc/samba/printer hoping that would kick-start the process (from the [print$] entry in smb.conf). No dice. Any idea where to start?
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Sun Jun 13, 2004 3:39 pm    Post subject: Reply with quote

Yeah, I had the same problem. Check if it installed the drivers correctly and if you installed them with security = user. If that worked, check out the access rights. If that doesn't work, I can post you my now working smb.conf file.
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Sun Jun 13, 2004 3:42 pm    Post subject: Reply with quote

Now if anybody could see what's up with the printer properties under Windows and get a fix, it'd be cool.
Back to top
View user's profile Send private message
haven
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 141
Location: Belfast, Uk

PostPosted: Fri Jun 25, 2004 3:46 pm    Post subject: Reply with quote

Here's whats up with the windows property box:

http://www.cups.org/str.php?L488+P0+S-2+C0+I0+E0+QWindows+driver

I came a cropper on that one too. Now waiting for cups-samba 6.0rc1 to be released which will hopefully fix the problems. In the meantime I'm off to try the adobe drivers instead.

Quote:
Everyone - we've dumped the 5.0 code (it is a modified version of the NT PostScript driver) and are going to release a 6.0rc1 in a few weeks that is based on the Win2k PS driver instead. We've wanted to move to the new driver for a long time now anyways, and since MS won't support the NT driver code anymore and since we can't track the problem down (only crashes outside the debugger, and there is no way to do a post mortem of the application or UI component...) we are "cutting our losses" and focusing exclusively on the (modular) Win2k driver.


Regards
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Mon Jul 12, 2004 9:07 pm    Post subject: Reply with quote

I get the same problem, with the properties box, both from within Printers and Faxes and from other problems

However, I can't actually print from windows either. On the gentoo server the printer works fine (to print local files)

Windows seems to be giving generic error messages
Outlook wrote:
There was an error when printing started


Notepad wrote:
Please ensure your printer is connected properly


It can see the printer however, because it downloaded the drivers for it from the gentoo machine earlier

Sob

Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Sat Jul 17, 2004 5:55 pm    Post subject: Reply with quote

Any tips at all? I'm sure I've followed all of the instructions to the letter but if there's anything I can paste here to help you to help me I'd gladly do it :|

Thanks again
Jim
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Mon Jul 19, 2004 8:36 am    Post subject: Reply with quote

You could start by posting the relevant parts of your CUPS error log (/var/log/cups/error_log), i.e. the last 30 lines or so, and if that doesn't show much, try increasing the LogLevel in cupsd.conf and then print again. Windows error messages usually don't provide much help or insight.

Apart from that, are you sure you installed the Windows drivers correctly? No NT_OBJECT_NAME_COLLISION, no NT_NETWORK_NAME_NOT_FOUND, no NT_I_HATE_LINUX_SO_I_WONT_WORK, or anything like it when running cupsaddsmb? You could post the output of that command, too.

Windows being able to see the printer doesn't mean it downloaded or found the drivers correctly, mind you. That usually just means that at least Samba is configured with a working print$ and PrinterName share.

Just guessing wildly here, please post the log and the output of cupsaddsmb.
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
fatboyjim
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 227
Location: UK

PostPosted: Mon Jul 19, 2004 11:25 am    Post subject: Reply with quote

Code:
I [10/Jul/2004:23:46:00 +0000] Listening to 0:631
I [10/Jul/2004:23:46:00 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [10/Jul/2004:23:46:00 +0000] Configured for up to 100 clients.
I [10/Jul/2004:23:46:00 +0000] Allowing up to 100 client connections per host.
I [10/Jul/2004:23:46:00 +0000] Full reload is required.
I [10/Jul/2004:23:46:22 +0000] LoadPPDs: Wrote "/etc/cups/ppds.dat", 1895 PPDs...
I [10/Jul/2004:23:46:22 +0000] Full reload complete.
I [10/Jul/2004:23:46:59 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7306)
I [10/Jul/2004:23:47:11 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7307)
I [10/Jul/2004:23:52:50 +0000] Setting queue printer-is-accepting-jobs to 1 (was 0.)
I [10/Jul/2004:23:52:50 +0000] Setting queue printer-state to 3 (was 5.)
I [10/Jul/2004:23:52:50 +0000] Saving printers.conf...
I [10/Jul/2004:23:52:50 +0000] New printer 'queue' added by 'root'.
I [10/Jul/2004:23:52:50 +0000] Saving printers.conf...
I [10/Jul/2004:23:52:50 +0000] Printer 'queue' modified by 'root'.
I [10/Jul/2004:23:52:50 +0000] Saving printers.conf...
I [10/Jul/2004:23:52:50 +0000] Printer 'queue' modified by 'root'.
I [10/Jul/2004:23:52:50 +0000] Setting queue device-uri to "usb://3550" (was "file:/dev/null".)
I [10/Jul/2004:23:52:50 +0000] Saving printers.conf...
I [10/Jul/2004:23:52:50 +0000] Printer 'queue' modified by 'root'.
I [10/Jul/2004:23:53:17 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7459)
I [10/Jul/2004:23:53:24 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7461)
I [10/Jul/2004:23:53:24 +0000] Adding start banner page "none" to job 1.
I [10/Jul/2004:23:53:24 +0000] Adding end banner page "none" to job 1.
I [10/Jul/2004:23:53:24 +0000] Job 1 queued on 'queue' by ''.
I [10/Jul/2004:23:53:24 +0000] Started filter /usr/lib/cups/filter/pstops (PID 7462) for job 1.
I [10/Jul/2004:23:53:24 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 7463) for job 1.
I [10/Jul/2004:23:53:24 +0000] Started backend /usr/lib/cups/backend/usb (PID 7464) for job 1.
W [10/Jul/2004:23:53:25 +0000] [Job 1] Media tray empty!
I [10/Jul/2004:23:53:37 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7472)
E [11/Jul/2004:00:09:34 +0000] get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good!
E [11/Jul/2004:00:19:34 +0000] get_printer_attrs: resource name '/printers/PrintServer' no good!
E [11/Jul/2004:00:22:13 +0000] get_printer_attrs: resource name '/printers/PrintServer' no good!
E [11/Jul/2004:00:23:02 +0000] get_printer_attrs: resource name '/printers/localhost' no good!
E [11/Jul/2004:10:49:35 +0000] get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good!
E [11/Jul/2004:11:14:36 +0000] get_printer_attrs: resource name '/printers/::{2227a280-3aea-1069-a2de-08002b30309d}' no good!
I [11/Jul/2004:11:15:14 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=20446)
I [11/Jul/2004:11:15:29 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=20447)
I [11/Jul/2004:11:15:41 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=20449)
I [11/Jul/2004:11:15:41 +0000] Saving printers.conf...
I [11/Jul/2004:11:15:41 +0000] Printer 'queue' modified by 'root'.
I [11/Jul/2004:11:15:43 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=20450)
I [11/Jul/2004:11:15:46 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=20451)
I [11/Jul/2004:11:15:50 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=20452)
I [11/Jul/2004:11:15:55 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=20453)
I [11/Jul/2004:11:16:14 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=20455)
I [11/Jul/2004:11:16:21 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=20456)
I [11/Jul/2004:11:43:55 +0000] Scheduler shutting down normally.
I [11/Jul/2004:11:44:00 +0000] Listening to 0:631
I [11/Jul/2004:11:44:00 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [11/Jul/2004:11:44:00 +0000] Configured for up to 100 clients.
I [11/Jul/2004:11:44:00 +0000] Allowing up to 100 client connections per host.
I [11/Jul/2004:11:44:00 +0000] Full reload is required.
I [11/Jul/2004:11:44:01 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [11/Jul/2004:11:44:01 +0000] LoadPPDs: Wrote "/etc/cups/ppds.dat", 1895 PPDs...
I [11/Jul/2004:11:44:01 +0000] Full reload complete.
E [11/Jul/2004:11:44:17 +0000] StartListening: Unable to find IP address for server name "PrintServer" - Host name lookup failure
I [11/Jul/2004:12:02:32 +0000] Setting HP-DeskJet_3550 printer-is-accepting-jobs to 1 (was 0.)
I [11/Jul/2004:12:02:32 +0000] Setting HP-DeskJet_3550 printer-state to 3 (was 5.)
I [11/Jul/2004:12:02:32 +0000] Saving printers.conf...
I [11/Jul/2004:12:02:32 +0000] New printer 'HP-DeskJet_3550' added by 'root'.
I [11/Jul/2004:12:02:32 +0000] Saving printers.conf...
I [11/Jul/2004:12:02:32 +0000] Printer 'HP-DeskJet_3550' modified by 'root'.
I [11/Jul/2004:12:02:32 +0000] Saving printers.conf...
I [11/Jul/2004:12:02:32 +0000] Printer 'HP-DeskJet_3550' modified by 'root'.
I [11/Jul/2004:12:02:32 +0000] Setting HP-DeskJet_3550 device-uri to "usb://3550" (was "file:/dev/null".)
I [11/Jul/2004:12:02:32 +0000] Saving printers.conf...
I [11/Jul/2004:12:02:32 +0000] Printer 'HP-DeskJet_3550' modified by 'root'.
I [11/Jul/2004:12:02:44 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21320)
I [11/Jul/2004:12:02:57 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=21321)
I [11/Jul/2004:12:02:59 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=21322)
I [11/Jul/2004:12:03:00 +0000] Printer 'queue' deleted by 'root'.
I [11/Jul/2004:12:03:00 +0000] Saving printers.conf...
I [11/Jul/2004:12:03:03 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21323)
I [11/Jul/2004:12:03:31 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=21324)
I [11/Jul/2004:12:03:33 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21325)
I [11/Jul/2004:12:03:37 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=21326)
I [11/Jul/2004:12:03:56 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=21367)
I [11/Jul/2004:12:06:04 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=21369)
I [11/Jul/2004:12:26:39 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=26998)
I [11/Jul/2004:14:30:43 +0000] Scheduler shutting down normally.
I [11/Jul/2004:14:54:47 +0000] Listening to 0:631
I [11/Jul/2004:14:54:47 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [11/Jul/2004:14:54:47 +0000] Configured for up to 100 clients.
I [11/Jul/2004:14:54:47 +0000] Allowing up to 100 client connections per host.
I [11/Jul/2004:14:54:47 +0000] Full reload is required.
I [11/Jul/2004:14:54:50 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [11/Jul/2004:14:54:54 +0000] LoadPPDs: No new or changed PPDs...
I [11/Jul/2004:14:54:54 +0000] Full reload complete.
E [11/Jul/2004:14:55:02 +0000] StartListening: Unable to find IP address for server name "PrintServer" - Host name lookup failure
I [11/Jul/2004:16:31:25 +0000] Scheduler shutting down normally.
I [11/Jul/2004:16:31:26 +0000] Listening to 0:631
I [11/Jul/2004:16:31:26 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [11/Jul/2004:16:31:26 +0000] Configured for up to 100 clients.
I [11/Jul/2004:16:31:26 +0000] Allowing up to 100 client connections per host.
I [11/Jul/2004:16:31:26 +0000] Full reload is required.
I [11/Jul/2004:16:31:27 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [11/Jul/2004:16:31:27 +0000] LoadPPDs: No new or changed PPDs...
I [11/Jul/2004:16:31:27 +0000] Full reload complete.
E [11/Jul/2004:16:34:41 +0000] get_jobs: resource name '/printers/HPDeskJet3550' no good!
I [11/Jul/2004:16:37:19 +0000] Setting HPDeskJet3550 printer-is-accepting-jobs to 1 (was 0.)
I [11/Jul/2004:16:37:19 +0000] Setting HPDeskJet3550 printer-state to 3 (was 5.)
I [11/Jul/2004:16:37:19 +0000] Saving printers.conf...
I [11/Jul/2004:16:37:19 +0000] New printer 'HPDeskJet3550' added by 'root'.
I [11/Jul/2004:16:37:19 +0000] Setting HPDeskJet3550 device-uri to "usb:/dev/usb/lp0" (was "file:/dev/null".)
I [11/Jul/2004:16:37:19 +0000] Saving printers.conf...
I [11/Jul/2004:16:37:19 +0000] Printer 'HPDeskJet3550' modified by 'root'.
I [11/Jul/2004:16:37:19 +0000] Saving printers.conf...
I [11/Jul/2004:16:37:19 +0000] Printer 'HPDeskJet3550' modified by 'root'.
I [11/Jul/2004:16:38:35 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6966)
I [11/Jul/2004:16:38:46 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6967)
I [11/Jul/2004:16:38:47 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6968)
I [11/Jul/2004:16:38:49 +0000] Printer 'HP-DeskJet_3550' deleted by 'root'.
I [11/Jul/2004:16:38:49 +0000] Saving printers.conf...
I [11/Jul/2004:16:38:50 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6969)
I [11/Jul/2004:16:38:56 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6970)
I [11/Jul/2004:16:38:56 +0000] Adding start banner page "none" to job 1.
I [11/Jul/2004:16:38:56 +0000] Adding end banner page "none" to job 1.
I [11/Jul/2004:16:38:56 +0000] Job 1 queued on 'HPDeskJet3550' by ''.
I [11/Jul/2004:16:38:56 +0000] Started filter /usr/lib/cups/filter/pstops (PID 6971) for job 1.
I [11/Jul/2004:16:38:56 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 6972) for job 1.
I [11/Jul/2004:16:38:56 +0000] Started backend /usr/lib/cups/backend/usb (PID 6973) for job 1.
W [11/Jul/2004:16:38:56 +0000] [Job 1] Media tray empty!
I [11/Jul/2004:16:39:07 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6981)
I [11/Jul/2004:16:51:30 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7208)
I [11/Jul/2004:16:52:38 +0000] Adding start banner page "none" to job 2.
I [11/Jul/2004:16:52:38 +0000] Adding end banner page "none" to job 2.
I [11/Jul/2004:16:52:38 +0000] Job 2 queued on 'HPDeskJet3550' by 'root'.
I [11/Jul/2004:16:52:38 +0000] Started filter /usr/lib/cups/filter/pstops (PID 7218) for job 2.
I [11/Jul/2004:16:52:38 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 7219) for job 2.
I [11/Jul/2004:16:52:38 +0000] Started backend /usr/lib/cups/backend/usb (PID 7220) for job 2.
W [11/Jul/2004:16:52:38 +0000] [Job 2] Media tray empty!
I [11/Jul/2004:21:48:58 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=22145)
I [11/Jul/2004:21:49:04 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=22148)
I [11/Jul/2004:21:49:06 +0000] Saving printers.conf...
I [11/Jul/2004:21:49:06 +0000] Printer 'HPDeskJet3550' modified by 'root'.
I [11/Jul/2004:21:49:07 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22149)
I [11/Jul/2004:21:49:12 +0000] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=22150)
I [11/Jul/2004:21:49:22 +0000] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=22151)
E [11/Jul/2004:21:49:23 +0000] restart_job: job #2 cannot be restarted - no files!
I [11/Jul/2004:21:49:27 +0000] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=22152)
I [11/Jul/2004:22:34:43 +0000] Scheduler shutting down normally.
I [12/Jul/2004:08:35:46 +0000] Listening to 0:631
I [12/Jul/2004:08:35:46 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [12/Jul/2004:08:35:46 +0000] Configured for up to 100 clients.
I [12/Jul/2004:08:35:46 +0000] Allowing up to 100 client connections per host.
I [12/Jul/2004:08:35:46 +0000] Full reload is required.
I [12/Jul/2004:08:35:49 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [12/Jul/2004:08:35:53 +0000] LoadPPDs: Wrote "/etc/cups/ppds.dat", 1895 PPDs...
I [12/Jul/2004:08:35:53 +0000] Full reload complete.
I [13/Jul/2004:17:45:11 +0000] Adding start banner page "none" to job 3.
I [13/Jul/2004:17:45:11 +0000] Adding end banner page "none" to job 3.
I [13/Jul/2004:17:45:11 +0000] Job 3 queued on 'HPDeskJet3550' by 'root'.
I [13/Jul/2004:17:45:11 +0000] Started filter /usr/lib/cups/filter/pstops (PID 19748) for job 3.
I [13/Jul/2004:17:45:11 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 19749) for job 3.
I [13/Jul/2004:17:45:11 +0000] Started backend /usr/lib/cups/backend/usb (PID 19750) for job 3.
W [13/Jul/2004:17:45:11 +0000] [Job 3] Media tray empty!
I [13/Jul/2004:17:46:45 +0000] Adding start banner page "none" to job 4.
I [13/Jul/2004:17:46:45 +0000] Adding end banner page "none" to job 4.
I [13/Jul/2004:17:46:45 +0000] Job 4 queued on 'HPDeskJet3550' by 'root'.
I [13/Jul/2004:17:46:45 +0000] Started filter /usr/lib/cups/filter/pstops (PID 19776) for job 4.
I [13/Jul/2004:17:46:45 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 19777) for job 4.
I [13/Jul/2004:17:46:45 +0000] Started backend /usr/lib/cups/backend/usb (PID 19778) for job 4.
W [13/Jul/2004:17:46:45 +0000] [Job 4] Media tray empty!
I [13/Jul/2004:17:49:45 +0000] Adding start banner page "none" to job 5.
I [13/Jul/2004:17:49:45 +0000] Adding end banner page "none" to job 5.
I [13/Jul/2004:17:49:45 +0000] Job 5 queued on 'HPDeskJet3550' by 'root'.
I [13/Jul/2004:17:49:45 +0000] Started filter /usr/lib/cups/filter/pstops (PID 19815) for job 5.
I [13/Jul/2004:17:49:45 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 19816) for job 5.
I [13/Jul/2004:17:49:45 +0000] Started backend /usr/lib/cups/backend/usb (PID 19817) for job 5.
W [13/Jul/2004:17:49:45 +0000] [Job 5] Media tray empty!
I [14/Jul/2004:09:58:47 +0000] Adding start banner page "none" to job 6.
I [14/Jul/2004:09:58:47 +0000] Adding end banner page "none" to job 6.
I [14/Jul/2004:09:58:47 +0000] Job 6 queued on 'HPDeskJet3550' by 'root'.
I [14/Jul/2004:09:58:47 +0000] Started filter /usr/lib/cups/filter/pstops (PID 2419) for job 6.
I [14/Jul/2004:09:58:47 +0000] Started filter /usr/lib/cups/filter/foomatic-rip (PID 2420) for job 6.
I [14/Jul/2004:09:58:47 +0000] Started backend /usr/lib/cups/backend/usb (PID 2421) for job 6.
W [14/Jul/2004:09:58:47 +0000] [Job 6] Media tray empty!
I [14/Jul/2004:20:23:23 +0000] Scheduler shutting down normally.
I [15/Jul/2004:01:41:07 +0000] Listening to 0:631
I [15/Jul/2004:01:41:07 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [15/Jul/2004:01:41:07 +0000] Configured for up to 100 clients.
I [15/Jul/2004:01:41:07 +0000] Allowing up to 100 client connections per host.
I [15/Jul/2004:01:41:07 +0000] Full reload is required.
I [15/Jul/2004:01:41:10 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [15/Jul/2004:01:41:14 +0000] LoadPPDs: No new or changed PPDs...
I [15/Jul/2004:01:41:14 +0000] Full reload complete.
I [15/Jul/2004:02:12:40 +0000] Scheduler shutting down normally.
I [17/Jul/2004:18:28:34 +0000] Listening to 0:631
I [17/Jul/2004:18:28:34 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [17/Jul/2004:18:28:34 +0000] Configured for up to 100 clients.
I [17/Jul/2004:18:28:34 +0000] Allowing up to 100 client connections per host.
I [17/Jul/2004:18:28:34 +0000] Full reload is required.
I [17/Jul/2004:18:28:37 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [17/Jul/2004:18:28:41 +0000] LoadPPDs: No new or changed PPDs...
I [17/Jul/2004:18:28:41 +0000] Full reload complete.
I [18/Jul/2004:02:43:22 +0000] Scheduler shutting down normally.
I [18/Jul/2004:10:07:47 +0000] Listening to 0:631
I [18/Jul/2004:10:07:47 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [18/Jul/2004:10:07:47 +0000] Configured for up to 100 clients.
I [18/Jul/2004:10:07:47 +0000] Allowing up to 100 client connections per host.
I [18/Jul/2004:10:07:47 +0000] Full reload is required.
I [18/Jul/2004:10:07:50 +0000] LoadPPDs: Read "/etc/cups/ppds.dat", 1895 PPDs...
I [18/Jul/2004:10:07:54 +0000] LoadPPDs: No new or changed PPDs...
I [18/Jul/2004:10:07:54 +0000] Full reload complete.
E [19/Jul/2004:00:12:12 +0000] get_printer_attrs: resource name '/printers/var' no good!
E [19/Jul/2004:00:12:13 +0000] get_printer_attrs: resource name '/printers/var' no good!
E [19/Jul/2004:00:12:14 +0000] get_printer_attrs: resource name '/printers/var' no good!
E [19/Jul/2004:00:12:14 +0000] get_printer_attrs: resource name '/printers/var' no good!
E [19/Jul/2004:00:12:15 +0000] get_printer_attrs: resource name '/printers/var' no good!
E [19/Jul/2004:00:12:16 +0000] get_printer_attrs: resource name '/printers/var' no good!


I was a bit of an idiot at the start and added a printer called "Queue" :D



cupsaddsmb gives no output

Jim[/code]
_________________
-----------------------
fatboyjim
Gentoo/AMD64 Arch Tester (Inactive)
Back to top
View user's profile Send private message
jeffrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2003
Posts: 89
Location: New York, USA

PostPosted: Mon Jul 19, 2004 7:49 pm    Post subject: Hmmm.... Reply with quote

OK everybody seemed happy... printing from linux to my Samsung ML1710 works great and most printing from Windows works... except PDFs! Only the first page that is sent gets printed... I can print the whole doc from Linux OR print it page-by-page in Windows... printing to another printer (different server) works, so I think it is the samba/cupsd somewhere.

Any tips on where I should start troubleshooting this?

Jeff
_________________
A computer is like an Old Testament god, with a lot of rules and no mercy. -Joseph Campbell
Kingfisher Athlon-XP: 2.6.7-love8-ck5 +nptl
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Wed Jul 21, 2004 3:09 pm    Post subject: Reply with quote

fatboyjim wrote:
Code:

...snip...


I was a bit of an idiot at the start and added a printer called "Queue" :D

cupsaddsmb gives no output

Well from looking at that log output I see at least 4 different entries marked with an E (the first character on the line), and also some with a W

  • Quote:
    StartListening: Unable to find IP address for server name "PrintServer" - Host name lookup failure

    Is your printer server really called that? Do you have the correct entries in your DNS configuration or in /etc/hosts?
  • I see a lot of references to /printer and /printer/var, do these directories exist? Permissions ok?
  • Empty media tray?
  • /printer/HPDeskJet3550 seems to be "no good", why would this be? See the second entry in this list regarding the /printer directory.

Seems you have a bit of a mess in there, and the fact that cupsaddsmbd did not produce any output should worry you, shouln't it?

I'd start over and really follow the guide step by step, but not blindly and to the letter, because you'll have to make substitutions for things like PrintServer and the like. Also read through the other posts in this thread, maybe you'll see some information that's interesting for you.

Please do also post your smb.conf entries for [print$], [HPDeskJet3550] and [printers].
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
daff
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 232
Location: Vienna, Austria

PostPosted: Wed Jul 21, 2004 3:15 pm    Post subject: Re: Hmmm.... Reply with quote

jeffrice wrote:
OK everybody seemed happy... printing from linux to my Samsung ML1710 works great and most printing from Windows works... except PDFs! Only the first page that is sent gets printed... I can print the whole doc from Linux OR print it page-by-page in Windows... printing to another printer (different server) works, so I think it is the samba/cupsd somewhere.

Any tips on where I should start troubleshooting this?

I think I had that problem once, too. Unfortunately I don't remember how I solved it, but it might help to delete the printer driver on the Windows machine and re-add it by connecting to the printer on the printserver again.

Are you sure you are using the correct driver for your printer? And the correct CUPS-Samba-Windows drivers?

You should also follow your log files (/var/log/cups/error_log) with tail -f when printing a PDF from Windows, maybe you'll notice something wrong.

I'm afraid I can't help more on that problem, I know it drove me crazy some time ago.

Maybe someone else?
_________________
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 9, 10, 11  Next
Page 4 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum