I'm having a couple of problems getting samba to process /etc/printcap properly. The printer definition lines of my /etc/printcap are: epson|lp|uniprint-letter-auto-mono|Epson Stylus Color 800 (mono, 360x360):\ color|epson_color|lp1|uniprint-letter-auto-mono|Epson Stylus Color 800 (color, 360x360):\ med|epson_med|lp2|uniprint_stc800p-letter-auto-mono|Epson Stylus Color 800 (mono, 720x720):\ color_med|epson_color_med|lp3|uniprint_stc800p-letter-auto-mono|Epson Stylus Color 800 (color, 720x720):\ high|epson_high|lp4|uniprint_stc800ih-letter-auto-mono|Epson Stylus Color 800 (mono, 1440x720):\ color_high|epson_color_high|lp6|uniprint_stc800ih-letter-auto-mono|Epson Stylus Color 800 (color, 1440x720):\ text|lp6|uniprint-letter-ascii-mono|Epson Stylus Color 800 (text, mono, 360x360):\ raw|lp7|uniprint-letter-raw|Epson Stylus Color 800:\ But `smbclient -L` shows Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Sten Drescher's home SMB print server) epson Printer Epson Stylus Color 800 (mono, 360x360) epson_color Printer Epson Stylus Color 800 (color, 360x360) epson_med Printer Epson Stylus Color 800 (mono, 720x720) epson_color_m Printer Epson Stylus Color 800 (color, 720x720) epson_high Printer Epson Stylus Color 800 (mono, 1440x720) color_high Printer Epson Stylus Color 800 (color, 1440x720) text Printer Epson Stylus Color 800 (text, mono, 360x360) raw Printer Epson Stylus Color 800 As you can see, samba is inconsistent about which component of the first entry to use. Is there any way, aside from creating a dummy printcap, to force the first component to be used? As a minor nit, has any thought been given to having samba handle LPRng printcaps when 'printing = LPRng' is set? I really like not _having_ to use the continuation \, but not using it caused samba some problems (it thought that it had a printer named ^I). -- #include <disclaimer.h> /* Sten Drescher */ Amendment II, Revised: A well-regulated population being necessary to the security of a police state, the right of the Government to keep and destroy arms shall not be infringed.
Hi! My problem is this; I have a small LAN with two neighbors. My Linux SuSE 6.1 samba 2.0.3-13 and two win98's. After getting help from this mailing list everything works (at last) thank you! However I have to restart samba about twice a day. For this I use the command /etc/rc.d/init.d/smb restart. This is quite irritating. If I don't do this my share "dissapears" from the Network Neighbourhood of the win98's from time to time. Anyone recognize the problem and possibly know the solution? Thank you /Nikolaj
The first thing I'd try is to make sure workgroups= is the same as that on all clients, and make sure you explicitly specify netbios name= the hostname of your server box. You might also guarantee your Samba box as an LMB with: os level=65 local master=yes preferred master=yes And finally, make your box a wins server: wins support=yes Or if it already is, say no and see if it changes the symptom. Steve Litt At 09:20 AM 12/15/1999 +1100, Nikolaj Farrell wrote:>Hi! >My problem is this; I have a small LAN with two neighbors. My Linux SuSE 6.1 >samba 2.0.3-13 and two win98's. After getting help from this mailing list >everything works (at last) thank you! However I have to restart samba about >twice a day. For this I use the command /etc/rc.d/init.d/smb restart. This is >quite irritating. If I don't do this my share "dissapears" from the Network >Neighbourhood of the win98's from time to time. > >Anyone recognize the problem and possibly know the solution? >Thank you >/Nikolaj >
> I am using cups, using the cups web interface to add > printers, today I added 2 more printers. They do not > show up in samba, I have restarted cups, smb > nmb, everything except the machine itself.By, "They do not show up in samba", is that from the Samba or Windows client? Sometimes Windows take a bit to notice, for best results try: "smbclient -L localhost -U [user]" and see if they show up. Do you have a [printers] share and a load printers = Yes? If not you need to add print share explicitly in smb.conf. ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
John Terpstra wrote:> > ...or else just use "printing = bsd" > or "printing = "sysv", depending on which commands you want to use. > > If you use "printing = sysv", then set "printcap = lpstat -t". > > Note: Only use "printing = sysv" if you have LPRng installed. This will > not work if your systems does not support the AT&T command tools (lp, > lpstat). >So I'm running a job control application on top of Solaris. Am I better off using "printing = sysv" or "printing = bsd"? (The vendor actually suggested using Samba as my front end!) -wde -- Will Enestvedt UNIX System Administrator Johnson & Wales University -- Providence, RI
> Rob Sell lists at facnd.com > Mon Dec 22 17:46:29 GMT 2003 > > > I have samba 3.0.1 running and have successfully set it up to be a print > spooler, which is working great, until I tried to add more than 5 printers. > I am using cups, using the cups web interface to add printers, today I added > 2 more printers. They do not show up in samba, I have restarted cups, smb > nmb, everything except the machine itself. Samba is set to load > /etc/printcap printers, my /etc/printcap is as follows. > > # This file was automatically generated by cupsd(8) from the > # /etc/cups/printers.conf file. All changes to this file > # will be lost. > 7th_Dock_Laser: > Edgeley_Inkjet: > Edgeley_Laser: > Eng_Laser: > Eng_Laser_Color: > Front_Office_Big_Laser: > Front_Office_Laser: > Michigan_Plotter: > > Any ideas why only the 1st 5 printers show up in samba? >The first 5 printers have max. 15 characters in their name. The last 3 printers have min. 16 characters in their name. You may have crossed a limit (bug or feature?).> Rob >Cheers, Kurt