From: David Stern <dave () davka ! gsfc ! nasa ! gov>
To: tru64-unix-managers
Subject: SUMMARY: Timezone, network printer
Date: Mon, 23 Nov 1998 17:28:19 +0000 [thread overview]
Message-ID: <96078728412124.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks to:
Robert Benites <benites@cs.unca.edu>
Paul Watson <phwatso@cooper-energy-services.com>
Jacques Demeulemeester <demeule@univ-lille3.fr>
Pirie Hart <pirie@u.washington.edu>
Lucio Chiappetti <lucio@ifctr.mi.cnr.it>
as well as anyone else that will respond.
Original questions:
>1/ I wish to change timezone from GMT to EST. I run thru /usr/sbin/timezone
> and it does update /etc/svid2_tZ. Yet even after reboot, the time remains
> GMT. First off, what is " SVID-2 habitat" described in the timezone
> manpages? I also editted /etc/TIMEZONE but that didn't seem to make a
> difference.
>
>2/ I also wish to add a network printer (tcp/ip, not lat). This machine
> is an HPlaserjet4, has no security associated with it and can easily
> be added to Suns, HPs and AIX generally using lpsystem, lpadmin etc.
> I've played around with lprsetup and printconfig without much luck.
> I presume the latter is really for direct connected or LAT printers.
> So what's the secret incantation?
For Timezone, you need to make a link between /etc/zoneinfo/localtime and
whatever timezone you want eg
ln -s /etc/zoneinfo/US/Eastern /etc/zoneinfo/localtime.
My inherited machine was set to GMT but had no localtime link...
For network Printers, unlike hp and solaris, you need a printcap file. I
created one with two entries to handle text and postscript:
printer-text:\
:lf=/usr/adm/lp-err:\
:lp=:\
:mx#0:\
:rm=remote-network-printer-name:\
:rp=text:\
:rw:\
:sd=/usr/spool/printertext:\
:sh:
printer-ps:\
:lf=/usr/adm/lp-err:\
:lp=:\
:mx#0:\
:rm=remote-network-printer-name:\
:rp=postscript:\
:rw:\
:sd=/usr/spool/printerdir:\
:sh:
So "rp" defines whether it'll handle <LF><CR>
And now, a freebie from me. Using the above, you can snapshot your screen or
window (depending on where you click your cursor) using:
xwd | xpr -device ps | lp -dprinter-ps
=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-=
David Stern Flight Dynamics
dave@davka.gsfc.nasa.gov Goddard Space Flight Ctr
Building 23 Room S226 301-286-9786
reply other threads:[~1998-11-23 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox