Re: Printer Setup through SAMBA
Petru NOTINGHER wrote: > > Hello. > > I've installed Linux 2.2.1 on my machine, but I have no printer > connected via LPT. > The printer (HPOffice JetPro 1150) is installed on another machine > running Bill's stuff. > It seems it is possible to access the printer via NetBios. I read the > doc comming with > Samba and tried to configure smb.conf. I always get the following answer > to my command > smbclient -L \\Serge (Serge is the Win95 machine): > * > Added interface ip=162.38.204.8 bcast=162.38.204.255 nmask=255.255.255.0 > > Server time is Tue Mar 23 13:46:02 1999 > Timezone is UTC+1.0 > security=share > SMBtconX failed. ERRSRV - ERRinvnetname (Invalid network name in tree > connect.) > Perhaps you are using the wrong sharename, username or password? > Some servers insist that these be in uppercase > * > > I have two questions : > > 1. Is it necessary to run a Samba Client for Windows on the machine with > the printer, or > the Windows95 software is enough ? No, no Samba Client (what would that *be*?) is necessary, but you do need to set up the printer for sharing. Right-click the printer in Windows Explorer and go into "Properties...". It's easy. (Don't take offence if you've already done this... :-)) > > 2. How must I configure my machine to access the other's printer ? > The appropriate command to see if you're seeing the share would be: smbclient -L //SERGE then smbclient //SERGE/ -P to connect to it as a printer service. After you enter a password (if you've set it up that way, otherwise use the -N switch) *in uppercase*, you should get a special prompt at which you can enter printer commands. Typing 'h' at this point will get you a list of valid commands.
Re: Printer Setup through SAMBA
On Tue, 23 Mar 1999, Petru NOTINGHER wrote: > Hello. > > I've installed Linux 2.2.1 on my machine, but I have no printer > connected via LPT. > The printer (HPOffice JetPro 1150) is installed on another machine > running Bill's stuff. > It seems it is possible to access the printer via NetBios. I read the > doc comming with > Samba and tried to configure smb.conf. I always get the following answer > to my command smb.conf is for (mostly) the server end (linux). I wouldn't mess with the printers in here, as the way I understand it, this is not what you are trying to do. > smbclient -L \\Serge (Serge is the Win95 machine): getting there. Basically what you want to do is pipe your document through the command smbclient //server/printer -c 'print -' assuming you have no password on that share. More complicated if you do but not impossible, read the smbclient man page. One method for making this use the lpr spooler is described in the SMB-HowTo at http://metalab.unc.edu/LDP and it's the method I use. I hope to eventually incorporate this into my Samba-Beginners-HOWTO at http://wilbur.ozsome.com/~samba/Samba-Beginners-HOWTO.html > * > Added interface ip=162.38.204.8 bcast=162.38.204.255 nmask=255.255.255.0 > > Server time is Tue Mar 23 13:46:02 1999 > Timezone is UTC+1.0 > security=share > SMBtconX failed. ERRSRV - ERRinvnetname (Invalid network name in tree > connect.) > Perhaps you are using the wrong sharename, username or password? > Some servers insist that these be in uppercase > * yes, you are using \\ which won't work. Either use or // as \\ translates to a single \. > I have two questions : > 1. Is it necessary to run a Samba Client for Windows on the machine with > the printer, or > the Windows95 software is enough ? Enable "File and Print sharing" and if you're not too worried about security, use "share level access control" to make your life easier. > 2. How must I configure my machine to access the other's printer ? SMB-Howto. HTH. -Dano
Printer Setup through SAMBA
Hello. I've installed Linux 2.2.1 on my machine, but I have no printer connected via LPT. The printer (HPOffice JetPro 1150) is installed on another machine running Bill's stuff. It seems it is possible to access the printer via NetBios. I read the doc comming with Samba and tried to configure smb.conf. I always get the following answer to my command smbclient -L \\Serge (Serge is the Win95 machine): * Added interface ip=162.38.204.8 bcast=162.38.204.255 nmask=255.255.255.0 Server time is Tue Mar 23 13:46:02 1999 Timezone is UTC+1.0 security=share SMBtconX failed. ERRSRV - ERRinvnetname (Invalid network name in tree connect.) Perhaps you are using the wrong sharename, username or password? Some servers insist that these be in uppercase * I have two questions : 1. Is it necessary to run a Samba Client for Windows on the machine with the printer, or the Windows95 software is enough ? 2. How must I configure my machine to access the other's printer ? Thank you for your help. Petru NOTINGHER