[plug] printcap settings and Windows printer
Campbell, David (Ex AS17)
david.j.campbell at honeywell.com
Mon Sep 25 07:06:33 WST 2000
Opps,
For printing to that windows box try:
$ smbclient \\\\machine\\printer -P <password> -U <username>
smb: \> print
print <filename>
smb: \> quit
Replace <password> and <username> as appropriately (try the "guest" user)
the extra slash marks (\\) is due to the slash character being used for
escape
sequences in bash.
David Campbell
> -----Original Message-----
> From: Campbell, David (Ex AS17) [SMTP:david.j.campbell at honeywell.com]
> Sent: Monday, September 25, 2000 6:52 AM
> To: plug at plug.linux.org.au
> Subject: RE: [plug] printcap settings and Windows printer
>
> > From: Subba Rao [SMTP:subb3 at attglobal.net]
> > I have installed a HP Deskjet printer on a Windows boxen which is
> networked
> > to the Linux box. Currently my samba settings do allow Linux disk shares
> to be
> > accessed from Windows.
>
> Firstly, is this Win 95/98/ME or Win NT 4.0/2000?
>
> Windows by default uses SMB protocol to share printers rather than the
> UNIX
> default of "lpd" (TCP/IP). Win NT 4.0 supports printing to "lpd" queues
> but
> will
> not support "lpd" queue requests itself. Win 95 (I don't know about 98/ME)
> refuse to co-operate in any fashion with "lpd" queues without extra
> shareware
> software.
>
> Right, onto the following problem:
>
> [*snip*]
>
> > I can connect to the windows.mydomain.com box. It responds to ping
> requests.
> > What other settings need to be done to be able to print to this deskjet
> > printer connected to the Windows box?
>
> Providing you have samba working then you should have access to the
> "smbclient" utility. Looking at the options for the version on my VMS box
> (sorry, linux box is in for an upgrade at the moment).
>
> Try:
> $ cat <file> | smbclient \\machine\printer -P -N -U guest
>
> There are better samba experts than me, hopefully this should put you
> on the right track. Parallel port hardware is my real area of interest.
>
> David Campbell
More information about the plug
mailing list