[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A couple of simple questions... I think



On Sat, Jan 09, 1999 at 12:56:20AM -0800, Brant Wells wrote:
> 1) I got Netscape 4.5 installed on my system... If I login as ROOT, I am 
> not able to run Netscape... What do I do??

That's deliberate. You shouldn't need to.

> 2) I've need to print to a printer that is shared on a WinNT 4.0 
> machine... as \\DAHOUSE\HPDESKJE  how do I set that up in Linux?

I've never done this, but it looks like you would want do something
like this. Create a shell script, say /usr/local/bin/print-hpdeskje
with the contents

#!/bin/sh
smbclient \\\\dahouse\\hpdeskje <password> -U <username> -P -c 'print -'

(username and password are for the NT server.)

Then in /etc/printcap, put something like

lp|deskjet:\
	:lp=/dev/null:sd=/var/spool/lpd/deskjet:\
        :sh:pw#80:pl#66:px#1440:mx#0:\
        :if=/usr/local/bin/print-hpdeskje:\
        :af=/var/log/lp-acct:lf=/var/log/lp-errs:

Thus when you print to the deskjet, lpd will filter it through
the script, which will run smbclient and dump it to the printer on SMB.
(You need to install the samba package for this). Then nothing is sent
to the printer because lp=/dev/null.


Hamish
-- 
Hamish Moffatt VK3TYD              hamish@debian.org, hamish@rising.com.au
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


Reply to: