tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Timezone, network printer
@ 1998-11-23 17:28 David Stern
  0 siblings, 0 replies; only message in thread
From: David Stern @ 1998-11-23 17:28 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-23 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-23 17:28 SUMMARY: Timezone, network printer David Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox