Thank you. smbclient works just as you describe. As all the printers I use are postscript printers, filtering is not an issue.
Interestingly (to me anyway), smbclient will only connect if I supply the server's IP address with the -I option. As far as I can tell, there isn't any way to supply the IP address within the printserver URI used by smbspool. Joel Hammer wrote: > I don't know a thing about NT but: > Have you tried, from your linux box: > smbclient //server/printer > Then, do the user/password thing > Then: > print Printfile > Of course, it would help if Printfile were formated for your printer. > If that works, you should be able to print without much trouble. > The print command to use, if this all works, is: > cat Printfile | smbclient //server/printer (PaswordStuff) -c " print -" > Or something close to it. If THIS works, then learning to set up a print filter > should be your next project. > If you have a postscript printer, you might not even need to reformat your > documents to print them. Just print your document to a file, then use the > above command to send it to your printer. I am not even sure if you would > need lprng or whatever if this works and meets your needs. > Joel > > On Thu, Apr 25, 2002 at 07:23:57PM -0700, Norbert Froese wrote: > > I am trying to set up my Debian(Woody) laptop(HP Omnibood500) to work in > > a NT-centric instutution. I started this with very little understanding > > of networks > > > > I can now mount my NT file share without problems (learning alot about > > networks in the process) but am having problems with network printing. > > > > I decided to use CUPS but it didn't work. In an effort to troubleshoot, > > I tried to use smbspool directly. > > > > I have the following information: > > Print Server Name: server > > Print Server Domain: domain > > Print Server IP: xxx.xxx.xxx.xxx > > Printer Name: printer > > My NT username username > > My NT password password > > > > I did the following > > > > # export DEVICE_URI="smb://username:password@server/printer" > > # echo $DEVICE_URI > > smb://username:password@server/printer > > # smbspool 0 0 0 0 0 mozilla.ps > > ERROR: cli_connect() failed... > > ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: > > Success > > ERROR: cli_connect() failed... > > ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: > > Success > > ERROR: cli_connect() failed... > > ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: > > Success > > ERROR: cli_connect() failed... > > ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...: > > Success > > > > The network information I believe is correct because I was able to > > print, although inconsistantly, with lprng. It comes straight off a > > Windows2000 Printer Test Page > > > > I have tried many variations for the URI without success. > > > > Does anyone have suggestions as to how I could best troubleshoot this > > problem. Or would I be best off going back to lprng, as I seemed to be > > further along trying to get that to work? > > > > Any help would be appreciated. > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
