Samba: CUPS printers are not available at startup

Lucio M Nicolosi lmnicolosi at gmail.com
Fri Apr 15 07:09:41 UTC 2011


On Fri, Apr 15, 2011 at 1:18 AM, NoOp <glgxg at sbcglobal.net> wrote:
> On 04/14/2011 09:15 PM, NoOp wrote:
>> On 04/14/2011 08:00 PM, Lucio M Nicolosi wrote:
>> ...
>>> Restored "printcap cache time" back to default 700 in case 30 was too
>>> little. Didn't work.
>>
>> May not make a difference, but default is 750:
>>
>>> printcap cache time (G)
>>>
>>>            This option specifies the number of seconds before the printing
>>>            subsystem is again asked for the known printers. If the value is
>>>            greater than 60 the initial waiting time is set to 60 seconds to
>>>            allow an earlier first rescan of the printing subsystem.
>>>
>>>            Setting this parameter to 0 disables any rescanning for new or
>>>            removed printers after the initial startup.
>>>
>>>            Default: printcap cache time = 750
>>>
>>>            Example: printcap cache time = 600
>> ...
>>
>>
>
> Sorry, forgot to add the uri:
> http://manpages.ubuntu.com/manpages/maverick/man5/smb.conf.5.html

G.,

It is weird.

Reinstalled Natty 64 with a clean /home, which I guess shouldn't make
any difference since cups and samba modules are expected to load
before login (I guess smbd doesn't). Installed only the Nvidia driver
and Samba and tested it with a different workgroup name and then with
the common workgroup (MSHOME). Reduced the number of Samba servers to
the absolute minimum (2 - one for printers - Natty - and another for
files). the only non default parameters are: printcap cache time = 75
and printcap name = cups.

Smbd should refresh every 75 seconds, but it doesn't. If I manually
reload: sudo service restart smbd, printers (2 USB) are immediately
loaded and available for the other stations.

Before:

$ smbclient -L lm-###
Enter lm's password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.8]

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (lm-xfx server (Samba, Ubuntu))
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.8]

	Server               Comment
	---------            -------
	LM-###               lm-xfx server (Samba, Ubuntu)
	STUDIO
	UBUNTU               ubuntu server (Samba, Ubuntu)

	Workgroup            Master
	---------            -------
	MSHOME               UBUNTU

after sudo service restart smbd

~$ sudo service smbd restart
[sudo] password for lm:
smbd start/running, process 2041

$ smbclient -L lm-###
Enter lm's password:
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.8]

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (lm-xfx server (Samba, Ubuntu))
	Stylus-CX5600   Printer   EPSON Stylus CX5600
	HL-1440-series  Printer   Brother HL-1440 series
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.8]

	Server               Comment
	---------            -------
	LM-###               lm-xfx server (Samba, Ubuntu)
	STUDIO
	UBUNTU               ubuntu server (Samba, Ubuntu)

	Workgroup            Master
	---------            -------
	MSHOME               UBUNTU


It's a bit late over here and I need some sleep. Perhaps tomorrow
brings me an insight.

As always, thanks for your help.

L.

-- 
Lucio M. Nicolosi, Eng.
Open Source Platform Implementation
System and Applications
GNU/Linux - Ubuntu




More information about the ubuntu-users mailing list