From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728412124.tru64-unix-managers.marc@archive.invalid> From: David Stern Date: Mon, 23 Nov 1998 17:28:19 +0000 To: tru64-unix-managers Subject: SUMMARY: Timezone, network printer X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728412124 Thanks to: Robert Benites Paul Watson Jacques Demeulemeester Pirie Hart Lucio Chiappetti 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 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