I am having problems getting Samba configured so I can print. I am going from Windows XP to Samba. I don't get any error messages in Windows saying that there is a problem. It sends the document then that is it. It is like the document gets lost. I am able to print through Linux and WebMin. What should I look at next? I am using the latest version of Caldera OpenServer. I believe the version of Samba is 2.0.8 and am configuring it through the Webmin interface. I am quite new to linux as of yet, so please be patient. Any help would be appreciated! --------- Mike Wills AS400 Programmer programmerATkoldarkDOTnet __________________________________________ Get your free domain name and domain-based e-mail from Namezero.com New! Namezero Plus domains now available. Find out more at: http://www.namezero.com
If you can print from linux then possibly you are sending the print job to the wrong print queue on the server from XP. Post your printcap and smb.conf file and state which printer you have set up on the XP box. Joel On Wed, Dec 19, 2001 at 09:56:15AM -0800, Mike Wills wrote:> I am having problems getting Samba configured so I can print. I am going from Windows XP to Samba. I don't get any error messages in Windows saying that there is a problem. It sends the document then that is it. It is like the document gets lost. I am able to print through Linux and WebMin. What should I look at next? I am using the latest version of Caldera OpenServer. I believe the version of Samba is 2.0.8 and am configuring it through the Webmin interface. > > I am quite new to linux as of yet, so please be patient. > > Any help would be appreciated! > > > --------- > Mike Wills > AS400 Programmer > programmerATkoldarkDOTnet > __________________________________________ > Get your free domain name and domain-based > e-mail from Namezero.com > New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Can you print from linux with an lpr command? The thing is, if you can't print from linux with lpr or similar command, you won't print from windows with XP. Samba just uses the linux printing software. This is a pretty sparse looking print share [HP952C]. Can't work.> [HP952C] > printer = HP952C > printable = yes >I think you HAVE to have a print command = parameter. How does samba know where to send the print job? The parameter should be: lpr -Pprintqueue %s; rm %s Then I think you HAVE to have a spool directory in the share (path =). That is the place samba stores the print file when it is transferred from windows. Here is what I have in my raw queue for a windows printer: [lp] comment = Raw Printer for Z53 path = /tmp create mask = 0700 guest ok = Yes hosts allow = 192.168. printable = Yes printing = lprng print command = echo %J %p %s >> /tmp/junkJ;\ a="`echo '%J' | sed "s/^.*- //"`" ;\ echo This is truncated $a >> /tmp/junkJ;\ /usr/bin/lpr -Plp -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j printer name = lp The print command can be simple: /usr/bin/lpr -Plp %s;rm %s. The fancy command here is used to access the file name, passed as %J, not the random samba name for a print file. The echo stuff is done to strip the long prefix off word documents. Substitute your own print queue for lp in the above commands. Or, just add lp as an alias to your printcap file. Now, about that printcap file. It seems to be missing several important items, including a print device (lp) and a print spool. However, I don't know anything about cups, so I can't tell you much more. You will need to ask the Caldera list or Caldera support how to set up printing in linux with cups. Joel> # Global parameters > > [HP952C] > printer = HP952C > printable = yes > > my printcap file: > HP952C: > ps1: > > > --------- > Mike Wills > AS400 Programmer > programmerATkoldarkDOTnet
Yes. I can manage the print queue from the windows client. However, /etc/lpd.perms limits what users can do to the print queue. So, if things are not working right, look into that file. If you want to experiment, just make the lpd.perms a one line file: DEFAULT ACCEPT Obviously, this is not a secure arrangement. Joel On Fri, Dec 21, 2001 at 12:03:11PM +0100, Unterrainer G?nther wrote:> Hi Joel, > i saw your princapfile and found something very interesting: > What does the lines > lpq command = /usr/bin/lpq -Plp > lprm command = /usr/bin/lprm -Plp %j > lppause command = /usr/sbin/lpc hold -Plp %j > lpresume command = /usr/sbin/lpc release -Plp %j > mean? Can you manage printjobs from a windowsclient with this? > > Thanks in advance > > g?nther > > > -----Urspr?ngliche Nachricht----- > Von: Joel Hammer [mailto:Joel@HammersHome.com] > Gesendet: Freitag, 21. Dezember 2001 04:28 > An: Mike Wills; samba@lists.samba.org > Betreff: Re: Problems Printing w/ Caldera OpenServer > > > Can you print from linux with an lpr command? > The thing is, if you can't print from linux with lpr or similar command, you > won't print from windows with XP. Samba just uses the linux printing > software. > This is a pretty sparse looking print share [HP952C]. Can't work. > > [HP952C] > > printer = HP952C > > printable = yes > > > > I think you HAVE to have a print command = parameter. How does samba know > where to send the print job? > The parameter should be: > lpr -Pprintqueue %s; rm %s > Then I think you HAVE to have a spool directory in the share (path =). That > is the > place samba stores the print file when it is transferred from windows. > Here is what I have in my raw queue for a windows printer: > [lp] > comment = Raw Printer for Z53 > path = /tmp > create mask = 0700 > guest ok = Yes > hosts allow = 192.168. > printable = Yes > printing = lprng > print command = echo %J %p %s >> /tmp/junkJ;\ > a="`echo '%J' | sed "s/^.*- //"`" ;\ > echo This is truncated $a >> /tmp/junkJ;\ > /usr/bin/lpr -Plp -J"$a" %s;\ > rm %s > lpq command = /usr/bin/lpq -Plp > lprm command = /usr/bin/lprm -Plp %j > lppause command = /usr/sbin/lpc hold -Plp %j > lpresume command = /usr/sbin/lpc release -Plp %j > printer name = lp > > The print command can be simple: /usr/bin/lpr -Plp %s;rm %s. > The fancy command here is used to access the file name, passed as %J, > not the random samba name for a > print file. The echo stuff is done to strip the long prefix > off word documents. Substitute your own print queue for lp in the above > commands. Or, just add lp as an alias to your printcap file. > Now, about that printcap file. It seems to be missing several important > items, including a print device (lp) and a print spool. > However, I don't know anything about cups, so I can't tell you much more. > You will need to ask the Caldera list or Caldera support how to set up > printing in linux with cups. > Joel > > > > # Global parameters > > > > [HP952C] > > printer = HP952C > > printable = yes > > > > my printcap file: > > HP952C: > > ps1: > > > > > > --------- > > Mike Wills > > AS400 Programmer > > programmerATkoldarkDOTnet > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba