[Samba] smbclient & printing on win2k box with HP Deskjet 560C (Drivers?) SMB 2.2.3a - Kernel 2.4.7, red hat 7.2
Joel at HammersHome.com
Wed May 1 05:22:02 GMT 2002
I got lazy. The full command with gs might look like this:
cat YourPostscriptFile | \
gs -q -sDEVICE=YourPrintingDevice -sOutputFile=- - | \
smbclient //Server/printershare PasswordStuff -c "print -"
The trick is YourPrintingDevice. Look at gs -h for what is available.
On Wed, May 01, 2002 at 08:13:03AM -0400, Joel Hammer wrote:
> You don't need samba to print, just smbclient. That is, you don't need to be
> running a samba server.
> Since you don't have much time and don't want to mess around with a lot of
> stuff, here is the quick and dirty way. Assuming your printer is postscript,
> just print your document in postscript format to a file.
> smbclient -L Win2kServer
> and see what the name of the printer share is.
> smbclient //Win2kServer/PrinterShare
> Do the password stuff
> print YourFile
> You can make this one command with:
> cat YourFile | smbclient //Win2kServer/PrinterShare PasswordStuff -c " print -"
> If you leave out the PasswordStuff you will be prompted for it.
> If you have to filter your job for your printer (ie. It doesn't know
> postscript), then things get slightly more complicated.
> You will have to find a gs device for your printer. Man gs.
> On Wed, May 01, 2002 at 08:22:15PM +1200, Diembo wrote:
> > Hi LUs,
> > I dont have much time at the moment to read tons of documentation. So, I
> > would like to ask a hopefully easy to answer question.
> > Samba is running alright with me, smbclient works fine, but I would like to
> > print from my Linux box over LAN to a printer (HP 560C) connected to a win2k
> > box. Because I can't afford a better or second printer & I also havent got
> > enough room for it really I would like to print my Linux-stuff over LAN.
> > Anyway, how do I do that? I read a bit about smbclient and a printer script
> > and that you need special drivers but I couldn't work it out so far. If
> > anyone could give me an efficient solution for this I would be very greatful,
> > because I am sick of booting windows every time I want to do an assignment
> > and need to use a word processor. I would also like to use one of the
> > KDE-word processors because the amount of choice is so much bigger.
> > Thanks in advance,
> > regards
> > Tim
> > PS: Is there anybody in this mailing list, by accident situated in Palmerston
> > North (New Zealand) and knows about a local LUG?
> > --
> > Diembo working O Linux :-P
> > --
> > 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
More information about the samba