# /etc/csh.cshrc & .cshrc by Julian Stacey # Only edit /site/etc/csh.cshrc.master # (which gets installed to # /usr/home/jhs/public_html/src/bsd/fixes/freebsd/src/jhs/etc/ # csh.cshrc.master # by # cd /site/etc ; make ; make install # # Re-read with `source ~/.cshrc` # .cshrc is read by scs bsd4.2 csh before .login. # freebsd /etc/csh.cshrc runs before /etc/csh.login # Anything that's just an internal variable to unset later gets named Z_* set Z_HOST_SHORT = `uname -n` # # `hostname -s` cannot be used as zombie(pcs) & hobel(uni) do not # # allow any parameter to hostname. # FreeBSD supports, but I do not currently use YP/NIS domainname set Z_BSN_DOMAIN = bsn.com set Z_BERKLIX_ORG = berklix.org set Z_FLIP_EP = film # # gets reset to film-plip for lapl set Z_FREEBSD_DOMAIN = freebsd.org set Z_HOLZ_DOMAIN = js.berklix.net set Z_MOBILE_DOMAIN = mo.berklix.net set Z_HOLZ_GATE = gate.${Z_HOLZ_DOMAIN} set Z_HOLZ_PLIP_DOMAIN = jhs-plip.private set Z_MC_PRI_DOMAIN = mmc.private set Z_MC_PUB_DOMAIN = martin-collins.de # set Z_MAIL_RECEIVE_DOMAIN = js.berklix.net # doesnt resolve yet. one day set Z_MAIL_RECEIVE_DOMAIN = berklix.net set Z_NO_DOMAIN = no.net set Z_VCFE_DOMAIN = vcfe.org set Z_HOST_TYPE = `uname -s` set Z_DHCP_DOMAIN = dummy_dhcp.org setenv HISTORICAL_MAKE_WORLD yes # # For FreeBSD-5.3-RELEASE setenv MAIL_HOST `hostname` # # default # # MAIL_HOST is what your local proxy will declare you # # to be to remote ftpd sites # When I''m obscured behind a firewall, I set this to the public hostname # of my mail server at that site (not the internal name of the ftp proxy). # REMOTEHOST is automatically set by /usr/src/contrib/tcsh/ # to show where I'm coming from as a text name. # If named fails, it does not get set, not even as a numeric. switch ($Z_HOST_SHORT) # #{ case blak.${Z_HOLZ_DOMAIN}: case blak.${Z_HOLZ_DOMAIN}: case deli.${Z_HOLZ_DOMAIN}: case dual.${Z_HOLZ_DOMAIN}: case erik.${Z_HOLZ_DOMAIN}: case film.${Z_HOLZ_DOMAIN}: case fire.${Z_HOLZ_DOMAIN}: case flat.${Z_HOLZ_DOMAIN}: case flip.${Z_HOLZ_DOMAIN}: case john.${Z_HOLZ_DOMAIN}: case king.${Z_HOLZ_DOMAIN}: case lapa.${Z_HOLZ_DOMAIN}: case lapa.${Z_HOLZ_PLIP_DOMAIN}: case lapd.${Z_HOLZ_DOMAIN}: case lapl.${Z_HOLZ_DOMAIN}: case lapl.${Z_HOLZ_PLIP_DOMAIN}: case lapn.${Z_HOLZ_DOMAIN}: case lapn.${Z_HOLZ_DOMAIN}: case lapn.${Z_HOLZ_PLIP_DOMAIN}: case lapo.${Z_HOLZ_DOMAIN}: case laps.${Z_HOLZ_DOMAIN}: case laps.${Z_MOBILE_DOMAIN}: case loft.${Z_HOLZ_DOMAIN}: case mini.${Z_HOLZ_DOMAIN}: case rain.${Z_HOLZ_DOMAIN}: case scan.${Z_HOLZ_DOMAIN}: case slim.${Z_HOLZ_DOMAIN}: case snow.${Z_HOLZ_DOMAIN}: case sony.${Z_HOLZ_DOMAIN}: case surf.${Z_HOLZ_DOMAIN}: case test.${Z_HOLZ_DOMAIN}: case thin.${Z_HOLZ_DOMAIN}: case towr.${Z_HOLZ_DOMAIN}: case wind.${Z_HOLZ_DOMAIN}: case wood.${Z_HOLZ_DOMAIN}: # #{ setenv DOMAIN ${Z_HOLZ_DOMAIN} setenv MAIL_HOST ${Z_MAIL_RECEIVE_DOMAIN} # # MAIL_HOST is what local proxy declares to remote ftpd sites. set Z_GATE_HOST = ${Z_HOLZ_GATE} set Z_FLIP_EP = flip breaksw # #} case mart.${Z_HOLZ_DOMAIN}: case park.${Z_HOLZ_DOMAIN}: # #{ setenv DOMAIN ${Z_HOLZ_DOMAIN} setenv MAIL_HOST ${Z_MAIL_RECEIVE_DOMAIN} breaksw # #} case lapa.${Z_DHCP_DOMAIN}: case lapd.${Z_DHCP_DOMAIN}: case lapl.${Z_DHCP_DOMAIN}: case lapn.${Z_DHCP_DOMAIN}: case lapo.${Z_DHCP_DOMAIN}: case laps.${Z_DHCP_DOMAIN}: case laps.${Z_DHCP_DOMAIN}: # #{ setenv DOMAIN ${Z_DHCP_DOMAIN} set nobeep # # disable tcsh's terminal beep breaksw # #} case lapp.${Z_HOLZ_DOMAIN}: case lapp.${Z_HOLZ_PLIP_DOMAIN}: # #{ setenv DOMAIN ${Z_HOLZ_DOMAIN} setenv MAIL_HOST ${Z_MAIL_RECEIVE_DOMAIN} # # MAIL_HOST is what your local proxy will declare you # # to be to remote ftpd sites set Z_GATE_HOST = ${Z_HOLZ_GATE} set Z_FLIP_EP = film-plip breaksw # #} case cebulon.${Z_BSN_DOMAIN}: case test88.${Z_BSN_DOMAIN}: case popeye.${Z_BSN_DOMAIN}: # #{ # # setenv MAIL_HOST ${Z_MAIL_RECEIVE_DOMAIN} setenv DOMAIN ${Z_BSN_DOMAIN} breaksw # #} case flat.${Z_BERKLIX_ORG}: case slim.${Z_BERKLIX_ORG}: case temp.${Z_BERKLIX_ORG}: case tower.${Z_BERKLIX_ORG}: # #{ # # setenv MAIL_HOST ${Z_MAIL_RECEIVE_DOMAIN} setenv DOMAIN ${Z_BERKLIX_ORG} setenv WWWHOST www.berklix.org # # WWWHOST needed to over ride FreeBSD-4.7 # # /usr/ports/mail/mailman/work/mailman-2.0.12/ # # config.status # # s%@FQDN@%bsn.com%g # # s%@URL@%bsd .bsn.com%g # # Mailman/Defaults.py # # DEFAULT_HOST_NAME = 'bsn.com' # # DEFAULT_URL = 'http://list.berklix.org/mailman/' # # presumably the bsd .bsn.com comes from RDNS lookup. # # If WWWHOST is not set, mailman configure uses MAILHOST. breaksw # #} case flop.${Z_MC_PRI_DOMAIN}: case frog.${Z_MC_PRI_DOMAIN}: case stac.${Z_MC_PRI_DOMAIN}: # #{ setenv DOMAIN ${Z_MC_PRI_DOMAIN} setenv MAIL_HOST ${Z_MC_PUB_DOMAIN} set Z_GATE_HOST = frog.${Z_MC_PRI_DOMAIN} breaksw # #} case freefall.${Z_FREEBSD_DOMAIN}: case hub.${Z_FREEBSD_DOMAIN}: # #{ setenv DOMAIN ${Z_FREEBSD_DOMAIN} breaksw # #} case symmetric.${Z_VCFE_DOMAIN}: # #{ setenv DOMAIN ${Z_VCFE_DOMAIN} breaksw # #} case lapa.${Z_NO_DOMAIN}: case lapd.${Z_NO_DOMAIN}: case lapl.${Z_NO_DOMAIN}: case lapn.${Z_NO_DOMAIN}: case laps.${Z_NO_DOMAIN}: case lapo.${Z_NO_DOMAIN}: # #{ setenv DOMAIN ${Z_NO_DOMAIN} breaksw # #} default: # #{ breaksw # #} endsw # #} # 05.06.2000 commented out set Z_HOST_SHORT = `basename ${Z_HOST_SHORT} .${DOMAIN}` # Proxies. These are used both by interactive web browsers & non interactive # ftp/fetch scripts. # From: Jeremy Chadwick # Date: Wed, 24 Nov 2010 03:37:45 -0800 (12:37 CET) # To: "Julian H. Stacey" , freebsd-stable@freebsd.org # There is absolutely nothing that requires or guarantees a piece of # software will import or make use of *_proxy environment variables. The # software has to explicitly state it honours and respects these, and # provide documentation stating what it expects the syntax to be. # The only two pieces of software I've encountered which honours these is # perl's LWP::UserAgent (and friends), and curl. # man 3 fetch: # FTP_PROXY URL of the proxy to use for FTP requests. The document # part is ignored. FTP and HTTP proxies are supported; # if no scheme is specified, FTP is assumed. If the # proxy is an FTP proxy, libfetch will send ``user@host'' # as user name to the proxy, where ``user'' is the real us- # er name, and ``host'' is the name of the FTP server. # If this variable is set to an empty string, no proxy # will be used for FTP requests, even if the HTTP_PROXY # variable is set. # ftp_proxy Same as FTP_PROXY, for compatibility. # man 3 fetch: # HTTP_PROXY URL of the proxy to use for HTTP requests. The docu- # ment part is ignored. Only HTTP proxies are supported # for HTTP requests. If no port number is specified, the # default is 3128. # Note that this proxy will also be used for FTP docu- # ments, unless the FTP_PROXY variable is set. # man 3 fetch: # HTTP_AUTH Specifies HTTP authorization parameters as a colon-sep- # arated list of items. The first and second item are # the authorization scheme and realm respectively; fur- # ther items are scheme-dependent. Currently, only basic # authorization is supported. # Basic authorization requires two parameters: the user # name and password, in that order. # This variable is only used if the server requires au- # thorization and no user name or password was specified # in the URL. # man 3 fetch: # HTTP_PROXY_AUTH Specifies authorization parameters for the HTTP proxy # in the same format as the HTTP_AUTH variable. # This variable is used if and only if connected to an # HTTP proxy, and is ignored if a user and/or a password # were specified in the proxy URL. # fortune: # In order to make fetch ask for username/password # when it encounter a password-protected web page, # you can set the environment variable HTTP_AUTH # to 'basic:*'. # man ftp: # FTP_PASSIVE_MODE If this variable is set to something else than ``NO'', # ftp will use passive mode by default. # Prompt from fortune on a 6.1 system: # Having trouble using fetch through a firewall? Try setting # the environment variable FTP_PASSIVE_MODE to yes, and see # fetch(3) for more details. # 6.1 generic/src/login.conf has FTP_PASSIVE_MODE=YES # unsetenv FTP_PASSIVE_MODE # unsetenv commented out 2006.08.31 # # FTP_PASSIVE_MODE comes from login.conf # # the unsetenv is needed to avoid "dir" failing # # FTP_PASSIVE_MODE is helpful on wind with # # ncftp -N ftp://gate/pub/ls-lR.gz # # as it hangs on data transfer, whereas without # # FTP_PASSIVE_MODE it hangs earlier, saying # # "Receiving file: /pub/ls-lR.gz" # man ftp: # FTPSERVER Host to use as gate-ftp server when gate is enabled. # man ftp: # FTPSERVERPORT Port to use when connecting to gate-ftp server when # gate is enabled. Default is port returned by a # getservbyname() lookup of ``ftpgate/tcp''. # FTP_PROXY over rides ftp_proxy when used by ports # make, so I assert ftp_proxy & leave FTP_PROXY # unset ready to over ride manually if I want. # On host=fire, /var/log/xferlog I have seen attempted access from my gate # (ehn the gate was itself called from within a chroot on fire) ... # ftpd[82018]: ANONYMOUS FTP LOGIN FROM mart, apache_proxy@ # fire ftpd[82027]: connection from mart (192.168.91.48) # these attempts stopped after "unsetenv http_proxy" # man ftp: # ftp_proxy URL of FTP proxy to use when making FTP URL requests # (if not defined, use the standard ftp protocol). # # setenv ftp_proxy ftp://${Z_GATE_HOST} # # if proxy ftpd is refusing with "Login incorrect" # # just comment out ftp_proxy, & let apache work instead # # remember: standard bsd ftpd does not support proxy working ! # man ftp: # http_proxy URL of HTTP proxy to use when making HTTP URL requests # # Chimera: # # all_proxy is default proxy host for all protocols # # setenv all_proxy http://${Z_GATE_HOST} # # setenv http_proxy http://${Z_GATE_HOST} # # setenv http_proxy http://localhost:8080/ # # setenv http_proxy http://gw.muc.ditec.de:8080/ # # setenv ftp_proxy http://${Z_GATE_HOST} # # gopher_proxy http://${Z_GATE_HOST} # # wais_proxy http://${Z_GATE_HOST} # # setenv no_proxy localhost,${Z_HOLZ_DOMAIN} # # no_proxy comma separated list of domains # # that should not be proxied. # # /usr/local/lib/chimera/Chimera: # # .httpProxy: http://www.somewhere.org:8000/ # # .gopherProxy: http://www.somewhere.org:8000/ # # .ftpProxy: http://www.somewhere.org:8000/ # # FTP proxying may be needed to pass a firewall, # # but FTP should almost _never_ # # go through a proxy _cache_ -- cached FTP # # proxying tends to _increase_ network # # load, as well as eating tremendous amounts of # # disk space on the proxy # # .waisProxy: http://www.somewhere.org:8000/ # # .newsProxy: http://www.somewhere.org:8000/ # # .nntpProxy: http://www.somewhere.org:8000/ # # .email: # # .urnProxy: http://www.somewhere.org:8000/ # # .noProxy: my.own.domain,another.domain # # .allProxy: http://www.somewhere.org:8000/ # # strings /usr/local/bin/chimera | grep -i prox | sort | uniq # # _http_proxy allProxy all_proxy ftpProxy ftp_proxy # # gopherProxy gopher_proxy httpProxy http_proxy # # newsProxy news_proxy nntpProxy nntp_proxy noProxy # # no_proxy urnProxy urn_proxy waisProxy wais_proxy # # ftp has a proxy command (no params) # # after invoking it, packets from my internal address # # are then caught trying to go to internet port=ftp, ie # # ipfw: 7900 Deny TCP flip:1957 # # freebsd.org:21 in via ed0 # # man ncftp: # # somewhat compatible with the stock ftp program's .netrc # # gateway-login & gateway-host # # man ftp: proxy ftp-command # # Execute an ftp command on a secondary control connection # # Lynx: does not use all_proxy, does use http_proxy & ftp_proxy, # # & also /etc/local/lynx.cfg Env vars take precedence. # # Arena: # # ? # # Mosaic 2.7b5: /usr/local/lib/mosaic/proxy see # # http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/\ # # help-proxylist.html # # I don't know of anything that uses NO_PROXY & ALL_PROXY # # but I''m adding them for completeness. # # man ftp: # # ftp_proxy URL of FTP proxy to use when making # # FTP URL requests (if not defined, use # # the standard ftp protocol). # # http_proxy URL of HTTP proxy to use when making # # HTTP URL requests. # # 7.1-RELEASE/src/lib/libfetch has no_proxy, 6.4 has, 6.1 has not. if ($?Z_GATE_HOST) then # #{ If Z_GATE_HOST is set, we are a client of that gate. # echo "Setting proxies" setenv FTPSERVER ${Z_GATE_HOST} # setenv ftp_proxy ftp://${Z_GATE_HOST}:21 setenv FTP_PROXY ftp://gate # ftp://gate ok with ports/ftp/ftpproxy setenv http_proxy http://${Z_GATE_HOST}:80 # setenv HTTP_PROXY http://${Z_GATE_HOST}:80 setenv FTP_PASSWORD `whoami`@${MAIL_HOST} # setenv FTP_LOGIN ftp # # overide `fetch` default of anonymous # # FTP_LOGIN not needed by ports/ftp/ftpproxy setenv all_proxy http://${Z_GATE_HOST} # setenv ALL_PROXY http://${Z_GATE_HOST} setenv no_proxy localhost,${DOMAIN} # setenv NO_PROXY localhost,${DOMAIN} # # but not bsd.berklix.com, so I have 1 with & 1 without for testing else # #}{ We are a gate EG Park # # On Park, "fetch ftp://bsd.berklix.com/etc/ftpmotd" fails with # # "Permission denied" if FTP_PASSIVE_MODE is set, # # & works if unset. # # On Park, "ncftp ftp://bsd.berklix.com/etc/ftpmotd" works # # whether or not it has "setenv FTP_PASSIVE_MODE" # # On Wind, whether or not it has "setenv FTP_PASSIVE_MODE" # # "fetch ftp://bsd.berklix.com/etc/ftpmotd" fails with # # "README: Connection refused" # # and "ncftp ftp://bsd.berklix.com/etc/ftpmotd" fails with # # "bsd.berklix.com: gethostbyname herror (2): # # Host name lookup failure" # unsetenv FTP_PASSIVE_MODE # ports/ftp/ftpproxy doesnt care about FTP_PASSIVE_MODE # when accesing internal hosts, But it only fetches # through the firewall when Not defined. endif # #} #{ First set up stuff needed in common by both # non interactive & interactive sessions. # setenv noclobber # faxaddmodem complains: bash: # /tmp/addmodem8512: Cannot clobber existing file setenv GZIP "--fast" setenv SHELL /bin/csh #setenv LC_ALL "en_US.ISO8859-1" # # LC_ALL to support national characters for european languages # # in tools like less without creating other nationalisation aspects. # {============================================================================ # A4 for the world, except USA & maybe Canada. setenv PAGE A4 # PAGE is for Pre-FreeBSD-4.5: # /usr/src/gnu/usr.bin/groff/devps/Makefile # which creates # /usr/obj/src/gnu/usr.bin/groff/devps/DESC # which contains # paperlength 792000 or 841890 # which produces: # /usr/share/groff_font/devps/DESC # PAGE is for Pre-FreeBSD-4.5/ # /usr/src/contrib/groff/devps/Makefile.sub # PAGE is for (just my FreeBSD-4.5) # /usr/src/gnu/usr.bin/groff/Makefile.inc PAGE?=A4 # # setenv PAPERSIZE A4 # for ports/print/a2ps # setenv PAPERSIZE a4 # # for ports/ math/R-letter, # # print/a2ps-letter, a2ps43-letter, apsfilter, # # c2ps-letter, enscript-letter, lprps-letter # setenv A4 A4 # # for generic-4.5/ports/print/ghostscript-gnu # # & generic-7.1-RELEASE/ports/print/ghostscript8# Which should but does not affect: # /usr/local/share/ghostscript/*/lib/gs_init.ps # if next line is left commented out it defaults to american letter # % /DEFAULTPAPERSIZE (a4) def # If gs is not compiled for A4, later uncomment /DEFAULTPAPERSIZE. # setenv WITH_A4SIZE yes # # for 7.1-RELEASE/ports/print/ghostscript8 # ----------------------------------------------------------------------------- # ANALYSIS OF fORMATS # .ps Postscript # Starting from an A4 tiff, then make ps # gs -sDEVICE=bbox *.ps # %%BoundingBox: 0 0 578 843 # %%HiResBoundingBox: 0.000000 0.000000 577.807998 842.003974 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # PostScript units (72 to the inch): "page_height=792" appears in: # doc/en_US.ISO_8859-1/books/corp-net-guide/book.html # doc/en_US.ISO_8859-1/books/corp-net-guide/x661.html # doc/en_US.ISO_8859-1/books/handbook/book.html # doc/en_US.ISO_8859-1/books/handbook/printing-advanced.html # examples/printing/make-ps-header # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # examples/BSD_daemon/FreeBSD.pfa 79200 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # To change a postscript file created by this # groff -U -b -s -t -Tps -dumlauts=p file.rof > file.ps # which is in USA letter format, EG: # def/PL 792 def/LS ... # change it to A4 format: EG: # def/PL 841.89 def/LS ... # ----------------------------------------------------------------------------- # .pdf: depending on content of gs_init.ps, # Multiple occurences (1 per page I guess) of # letter.pdf: < kimproxy.0 -> x11/kdelibs3. install Fails, current: make package OK set D_D = "$D_D kde3" # # x11/ x11/kdebase3/ needs LDAP which breaks on no libssl set D_D = "$D_D kdeaddons3" # # misc/ graphics/OpenEXR # needs to be confirmed if it breaks set D_D = "$D_D koffice-kde3" # # editors/ x11/kdelibs3 set D_D = "$D_D nmap" # # security/ fails if openssl is installed set D_D = "$D_D ogmrip" # # multimedia/ needs GNU sed; current OK. set D_D = "$D_D virtualbox-ose" # # emulators/ current broken Minor opcode of failed request: 1 (DRI2Connect) set D_D = "$D_D firefox35" # # www/ package-recursive fails on sysutils/gnome-mount > lang/gawk gawk release & current fails on install # # x11/kdebase3 fails to make install # # x11/kdelibs3 & security/nmap fail to build, to work round it: # # cd ~/tmp ; xs pkg_create -b openssl-1.0.0_2 # # xs pkg_delete -f openssl-1.0.0_2 # # cd /usr/ports/x11/kdelibs3 ; make install # # cd ~/tmp ; xs pkg_add openssl-1.0.0_2.tbz # # echo "D_D is ${D_D}" breaksw default: breaksw endsw setenv DUDS "$D_D" setenv FORCE_PACKAGE "Ignore copyright advisory about exporting binaries to others." # # Cos I''m building packages for my own machines. setenv FORCE_PKG_REGISTER "Overwrites in /var/db/pkg/" # # Even fresh chrooted build failed when I commented out # # FORCE_PKG_REGISTER - because I wanted X built, & # # imake-6.7.0_2 depends on file: perl5.8.5 setenv PACKAGEROOT "ftp://ftp" # # Ref man pkg_add # # PACKAGESITE below is just an example, but I dont need it. # setenv PACKAGESITE \ # "ftp://ftp/pub/FreeBSD/ports/i386/packages-4.11-release/All/" # # Ref man pkg_add # # # Avoid packages arriving in ports tree. # # bsd.port.mk has: PACKAGES?= ${PORTSDIR}/packages # # so setting PORTSDIR is enough, assuming # # /usr/ports/packages -> ../packages .... setenv PORTSDIR /usr/ports # setenv HAVE_MOTIF YES setenv KDEDIR /usr/local # # setenv MAKEFLAGS "SENDMAIL_CF=`hostname -s`.cf" # # MAKEFLAGS used by /usr/src/etc/sendmail/Makefile setenv MANPATH '/usr/share/man:/usr/man:/usr/local/man:/usr/local/man:/usr/local/lib/ghostscript/doc:' setenv OPENWINHOME /usr/local # # what for ? # # OPENWINHOME refenced by 4.4 or earlier # # audio/workman/ # # deskutils/xrolo/ # # ftp/ftptool/ # # games/imaze/ # # games/xvmahjongg/ # # games/xvmines/ # # java/jdk12-beta/ # # mail/faces/ # # math/calctool/ # # print/bibcard/ # # sysutils/contool/ # # x11-toolkits/slingshot/ # # x11-toolkits/xview-clients/ # # x11-toolkits/xview/ # # x11-wm/olvwm/ # # x11/props/ # # The /a is in case running a new release, # # & not everything rebuilt yet. But it can confuse too. # # as it needs libs from local # # local is still used on park 6.2 setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/a/sbin:/a/bin:/a/usr/sbin:/a/usr/bin:/a/usr/games:/a/usr/local/sbin:/a/usr/local/bin:$Z_MY_BIN/.other:$Z_MY_BIN/.csh:$Z_MY_BIN/.sh:$Z_MY_PRIV_BIN/.other:$Z_MY_PRIV_BIN/.csh:$Z_MY_PRIV_BIN/.sh:/site/etc/gate:/etc/isdn:/site/usr/local/bin # # /site/usr/local/bin for gbde.sh # # Unused: $Z_MY_BIN/.${Z_HOST_TYPE} # # if PATH ends with a : then . is assumed after # # which of course is a security hazard ! # Breaking the path with backslashes works, but su complains 3 times: # Warning: imported path contains relative components # & set shows: # path ( # .... broken into multiple lines ... # ) setenv SLRNPULL_ROOT /var/spool/news/slrn # # used by slrnpull setenv TMPDIR ~/tmp # # Used by slrn & ctm & /usr/libexec/locate.updatedb # # but breaks `cd /usr/src/release ;make release`. # # because a chroot occurs with no /usr/home/jhs/tmp setenv TZ Europe/Berlin # # TZ is a name within within /usr/share/zoneinfo/ # # see also man environ # # Europe/Berlin # # doesnt realise the clocks have just gone back # # (left summer time) # # See tzset(3) for more information. # # Seems to be some confusion whether capital city or # # country should be used, setenv USA_RESIDENT NO # # NO for /usr/ports/security/pgp # # Used by ~jhs/public_html/src/bsd/fixes/FreeBSD/\ # # src/gen/contrib/tcl/generic/README.JHS & # # lib/libtcl/README.JHS # # NO for ports/security/ssh2 setenv WITH_JADETEX NO # # /usr/ports/textproc/docproj must have 'yes' or 'no'. # #{ To consolidate the surplus variant TCLs, do this in this order: # # ln -s ../../usr/local/include/tcl /usr/include/tcl # # ln -sf tcl7.5 /usr/local/include/tcl # # ln -sf generic/tcl.h /usr/include/tcl/tcl.h # # To avoid breakage from `cd .../2.2.2.release/\ # # src/lib/libtcl ; make` # # cd .../2.2.2.release/src/contrib/tcl/generic # # ln -sf /usr/include/tcl/generic/tclInt.h tclInt.h # # # Note /cdrom.2.2.2/usr/include/tcl/generic/tclInt.h == # # # current/ports/\ # # lang/tcl75/work/tcl7.5p1/generic/tclInt.h # # cd 2.2.2.release/src/lib/libtcl # # ln -s /usr/include/tcl.h tcl.h # # # grep TCL_VERSION tcl.h #define TCL_VERSION "7.5", # # same for cdrom.2.2.2 # # Current/src @ 10.96 uses tcl8 # #} # #{ Things for FreeBSD + Dasa fest2000 at Dasa & Holz, # # not needed at other sites, # # Festigkeit_2000 runs on: # # HP: tcl-7.5, tk-4.1, tix-4.1.7.5 # # Linux: tcl-7.6, tk-4.2, tix-4.1.7.6 # # FreeBSD: tcl-7.5p1, tk-4.1, tix-4.1.0 (build in this order) # # Fest2000 setenv TCL_LIBRARY /usr/local/lib/tcl7.5 # # Other dependencies: # # /usr/lib/libtcl.so.75.1: used by /usr/bin/vi # # lang/tcl75 installs these: # # /usr/local/lib/libtcl75.a # # /usr/local/lib/libtcl75.so.1.0 # # /usr/local/lib/tcl7.5/ # # init.tcl ldAout.tcl parray.tcl # # tclAppInit.c tclConfig.sh tclIndex # # /usr/local/man/man[13n]/ tclsh.1 Tcl_Interp.3 Tcl_Main.3 Tcl.n # # /usr/local/include/tcl7.5/tcl.h # # make default does this: # # ln -sf tcl7.5/generic/tcl.h /usr/local/include # # ln -sf tcl7.5/tclConfig.sh /usr/local/lib # # but I do better with this after make install: # # ln -sf tclsh7.5 /usr/local/bin/tclsh # # ln -sf ../local/bin/tclsh /usr/bin/tclsh # # ln -sf tcl7.5 /usr/local/include/tcl # # ln -sf tcl/generic/tcl.h /usr/local/include # # rm -rf /usr/local/lib/tcl # # ln -sf tcl7.5 /usr/local/lib/tcl # # ln -sf tcl/tclConfig.sh /usr/local/lib # # ln -sf ../local/lib/tcl /usr/libdata/tcl # # /sbin/ldconfig -m //usr/local/lib # # Fest2000 setenv TK_LIBRARY /usr/local/lib/tk4.1 # # tk4.1 while configuring reads /usr/libdata/tcl/tclConfig.sh # # x11/tk41 installs these: # # /usr/local/lib/libtk41.a # # /usr/local/lib/libtk41.so.1.0 # # /usr/local/bin/wish4.1 # # /usr/local/include/tk4.1/generic/default.h # # Do this after make install: # # ln -sf wish4.1 /usr/local/bin/wish # # ln -sf tk4.1 /usr/local/lib/tk # # ln -sf tk/tkConfig.sh /usr/local/lib # # ln -sf tk4.1 /usr/local/include/tk # # ln -sf tk/generic/tk.h /usr/local/include # # ln -sf libtk41.a /usr/local/lib/libtk.a # # ln -sf libtk41.so.1.0 /usr/local/lib/libtk.so.1.0 # # ln -sf libtk41.so.1 /usr/local/lib/libtk.so.1 # # tk4.1 has no -L/usr/local/lib so once failed like this: # # cc tkAppInit.o -L/usr/ports/x11/tk41/work/tk4.1/unix # # -ltk41 -L/usr/ports/lang/tcl75/work/tcl7.5p1/unix # # -ltcl75 -L/usr/local/lib -lX11 -lm -lc -o wish # # ld: -ltcl75: no match # # 1.1: 7105 May 16 17:49 /usr/local.1+XFree86-3.2/lib/X11/XF86Setup/\ # # tcllib/palette.tcl # # 1.2: 7111 Aug 11 11:04 /usr/local/lib/tk4.1/palette.tcl # # 1.4: 6402 May 19 01:14 /usr/local/lib/tk4.2/palette.tcl # # Fest2000 setenv TIX_LIBRARY /usr/local/share/tix4.1 # checked # # Before compiling: cd /usr/local ; ln -s ../libdata # # to avoid: # # checking Tk source directory... //usr/local/include/tk4.1 # # Can't open /usr/include/tcl/../../libdata/tcl/tclConfig.sh # # I saw usage of # # -I/usr/include/tcl/unix # # /usr/bin/tclsh # # make -i install fails with # # Installing libtixsam4175.a as //usr/local/lib/libtixsam4175.a # # strip: //usr/local/lib/libtixsam4175.a: # # Inappropriate file type or format # # Installing libtksam41.a as //usr/local/lib/libtksam41.a # # strip: //usr/local/lib/libtksam41.a: # # Inappropriate file type or format # # Installing libtclsam75.a as //usr/local/lib/libtclsam75.a # # strip: //usr/local/lib/libtclsam75.a: # # Inappropriate file type or format # # Installing libtix4175.a as //usr/local/lib/libtix4175.a # # strip: //usr/local/lib/libtix4175.a: # # Inappropriate file type or format # # installing the tixindex program for builing tclIndex for # # Tix scripts # # strip: //usr/local/bin/tixindex: # # Inappropriate file type or format # # Installing libtixsam4175.a as //usr/local/lib/libtixsam4175.a # # strip: //usr/local/lib/libtixsam4175.a: # # Inappropriate file type or format # # Fix it with: # # (cd work/Tix4.1.0/unix/tk4.1;tar cf - libtksam41.a \ # # libtixsam4175.a libtclsam75.a libtix4175.a ) | \ # # (cd /usr/local/lib;tar xf - ) # # (cd work/Tix4.1.0/tools;;tar cf - tixindex ) | \ # # (cd /usr/local/bin;tar xf -) # # ports/x11/tix does not create a static lib, unlike tcl7.5 & tk4.1 # # .. why ? # # I don't know of any variables needed for graphics/Mesa. # #} breaksw # #} case OpenBSD: # #{ setenv BSDSRCDIR `cd /usr/src;pwd` setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:\ /usr/games:/usr/local/sbin:/usr/local/bin:\ $Z_MY_HOME/bin/.${Z_HOST_TYPE}:$Z_MY_HOME/bin/.csh:$Z_MY_HOME/bin/.sh:\ $Z_MY_HOME/bin/.bash:$Z_MY_HOME/bin/.perl:$Z_MY_HOME/bin/.other # Removed 2005.08.19 /site/etc/gate # Removed 2005.08.19 /etc/isdn setenv TZ Europe/Berlin breaksw # #} case NetBSD: # #{ surf setenv CFLAGS "-static -DJULIAN_STACEY -O -I./" setenv LDFLAGS "-static" # # LDFLAGS is used by cc, not ld # # This seems to work OK # # make CFLAGS+="$CFLAGS" LDFLAGS+="$LDFLAGS" setenv LINES 56 # # for vi setenv MACHINE pc532 # # MACHINE used in: # # sys/arch/pc532, # # sys/arch/pc532/pc532 # # sys/lib/libkern/ns32k setenv MACHINE_ARCH ns32k # # MACHINE_ARCH used in: # # gnu/usr.bin/gcc2/arch/ns32k # # lib/libc/gen/Makefile.inc # # gnu/usr.bin/gdb/bfd/arch/ns32k # # gnu/usr.bin/gdb/gdb/arch/ns32k # # gnu/usr.bin/ld/ns32k # # lib/csu/ns32k # # lib/libc/arch/ns32k # # setenv TERM vt100 # # setenv TERM vt_100_l56 unsetenv DESTDIR # # if have setenv DESTDIR / # # then cd /usr/src/lib/libc ; make invokes # # cpp -E -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -DPOSIX_MISTAKE # # -I/usr/src/lib/libc/arch/ns32k -nostdinc -idirafter # # /usr/include # # /usr/src/lib/libc/arch/ns32k/gen/_setjmp.S | as -o _setjmp.o # # and the -idirafter /usr/include for some reason results in no # # data ever being sent to pipe setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/gnu/bin:\ /usr/local/bin:/usr/games:$Z_MY_BIN # # set path=( /usr/ucb /bin /usr/bin /etc /usr/local/bin # # /usr/gnu/bin .) breaksw # #} case Symmetrix: # #{ symmetric unsetenv CDPATH setenv GZIP "--best" # # /usr/gnu/bin/tar should be before /bin/tar set path=( /sbin /usr/ucb /usr/gnu/bin /bin /usr/bin \ /usr/local /usr/nsc /usr/bin/misc /usr/vsl/bin ~/bin ) # # SCS /.cshrc: /etc /usr/ucb /bin /usr/bin /usr/local /usr/nsc . # # SCS /.profile: /etc /usr/ucb /bin /usr/bin /usr/nsc . # # /etc removed from path, & /sbin added after I moved all # # executables to /sbin from /etc. # # I use /usr/vsl/bin as /usr/local/bin has a load of stuff # # I don''t have source for. set cdpath=(/sys \ /usr/src/{etc,bin,usr.bin,ucb,lib,usr.lib,lib/c,}) breaksw # #} case HP-UX: # #{ HP-UX /usr/mail/jhs # # setenv PATH ${PATH}:${Z_MY_HOME}/bin/.csh:\ # # ${Z_MY_HOME}/bin/.sh:${Z_MY_HOME}/bin/.bash:\ # # ${Z_MY_HOME}/bin/.perl:${Z_MY_HOME}/bin/.other # # /usr/bin/lpr, /usr/bin/lp, no man lpr setenv MANPATH /usr/share/man:/usr/man:/usr/local/man:\ /opt/CC/share/man:`cd ~mayer;pwd`/man breaksw # #} case ULTRIX: # #{ # # /usr/bin/lpr, /usr/bin/lp, /usr/ucb/lpq setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:\ /usr/games:/usr/local/sbin:/usr/local/bin:\ $Z_MY_HOME/bin/.${Z_HOST_TYPE}:$Z_MY_HOME/bin/.csh:$Z_MY_HOME/bin/.sh:\ $Z_MY_HOME/bin/.bash:$Z_MY_HOME/bin/.perl:$Z_MY_HOME/bin/.other setenv PATH $PATH:/usr/bin/X11 breaksw # #} case SunOS: # #{ # # setenv PATH $PATH:/usr/local/bin # for gzip # # fails with setenv PATH $PATH:/usr/local/bin # # Variable syntax. # # printenv PATH reports ":/usr/ucb:/bin:/usr/bin" # # echo "xx`printenv PATH`yy" # # xx:/usr/ucb:/bin:/usr/binyy # # /usr/local/bin for gzip # # ucb: finger more rdist tail vacation vi setenv PATH /usr/ucb:/bin:/usr/bin:/usr/local/bin breaksw # #} case SCO_SV: # #{ OPS # # set path=( \ # # /usr/local/bin /usr/lib/X11/IXI/XDesktop/bin \ # # /usr/lib/X11/IXI/XDesktop/bin/i3sc0322 /etc \ # # /bin /usr/bin /usr/merge/dosroot/ubin /usr/bin/X11 \ # # ~/bin ~/bin/.sh ~/bin/.csh ~/bin/.perl ~/bin/.other ) # # # gnu tar installs by default into /usr/local/bin which # # # pre-empts SCO's posix limited short file name tar. # # setenv DEBUGGER gdb # # # Note only a SCO with the extra purchasable C # # # development system comes with "dbx", the basic SCO # # # does not have "dbx". # # # without this env var, if you compile xxgdb-1.12 # # # on SCO, # # # it will bring up the graphics, then fail to find # # # dbx and Silently exit with No useful diagnostic. # # # BTW gdb is in /opt/K/SKUNK98/Gdb/4.17/usr/local/bin/ # # # & the SCO extra C licence also brings a graphical # # # front end called "dbXtra" # # setenv IMAKECPP /opt/K/SCO/link/1.1.1Eb/lib/idcpp # # # You do not need to set IMAKECPP if you are using # # # a SCO with the supplementary licenced C developers # # # package, but you do need it if you are using my free # # # xmkmf + imake ported from XFRee86-3.3.[2or3]. # # # Maybe SCO-imake uses a non broken cpp, # # # but my-imake defaults to use /lib/cpp -> # # # /opt/K/SKUNK98/Gcc/98q2/usr/local/lib/gcc-lib\ # # # /i486-pc-sco3.2v5.0/2.7.2.3/cpp # # # which is broken, as also is # # # /opt/K/SKUNK98/Gcc/98q2/usr/local/lib/gcc-lib\ # # # /i486-pc-sco3.2v5.0/egcs-2.90.27/cpp # # # they create bad Makefiles with surplus spaces EG: # # # "oceres : $(OBJS) $(DEPLIBS)" # # # "install.man:: oceres .man" # # # PS /opt/K/SCO/BaseX/5.1.3b/usr/lib/X11/xrdb/cpp # # # says: cpp: line 3, Error: Illegal # command \ # # # "Copyright" .... # & lots more xmkmf errors # # setenv TZ GMT-01 # # # This belongs somewhere else, but pretty much all # # # the time I''m logged into SCO, I''m working in central # # # Europe. # # # The polarity appears wrong, but the numbers work out # # # OK, except that SCO keeps saying GMT when it should # # # not ! See examples below: # # # unsetenv TZ ; date # # # Tue Jun 8 16:03:45 GMT 1999 # # # setenv TZ GMT+01 ; date # # # Tue Jun 8 15:03:49 GMT 1999 # # # setenv TZ GMT-01 ; date # # # Tue Jun 8 17:03:53 GMT 1999 # # # setenv TZ +01:00 ; date # # # Tue Jun 8 16:03:58 GMT 1999 # # # setenv TZ -01:00 ; date # # # Tue Jun 8 16:04:02 GMT 1999 # # breaksw # #} case default: # #{ breaksw # #} endsw # #} #} switch ($DOMAIN) # #{ Site Specific Non-Interactive case ${Z_HOLZ_DOMAIN}: # #{ setenv CVSROOT /usr/cvs # # Some host have local tree so no point doing slow net access. setenv CVSROOT_LN /pri/FreeBSD/development/FreeBSD-CVS # # Reminder of path for those that dont have a local copy. # # # setenv FETCH_BEFORE_ARGS -N # -N not in 228 man fetch # # setenv FETCH_CMD ncftp # # setenv INTERACTIVE # # setenv LD_LIBRARY_PATH /usr/local/lib # use comma for extras # # /etc/rc now does this & /usr/local/lib # # GS_FONTPATH Path names used to search for fonts # # GS_LIB Path names for initialization files and fonts # # man gs says default is: # # "/usr/local/lib/ghostscript/3.N:\ # # /usr/local/lib/ghostscript/3.N/fonts" # # make install does not create # # /usr/local/lib/ghostscript/3.53/fonts # # strings /usr/local/bin/gs | grep fonts : # # /usr/local/lib/ghostscript/3.53:\ # # /usr/local/lib/ghostscript/fonts setenv GS_LIB /usr/local/lib/ghostscript/fonts setenv MAKE_LOCAL # setenv MAKE_PORTS # Presumably obsolete not in current src ports @ 2009.11 unsetenv MAKE_X_MIT setenv MANSEC 1:2:3:4:5:6:7:8:l:n # # setenv PRINTER ascii # # setenv SAVE $Z_MY_HOME/tmp/med # for med editor setenv SM_SAVE_DIR ~/dots/private # # ref. man 1 xsm # # SM_SAVE_DIR needs more thinking about: # # what about my netted host & 2 SVGA & NCD all running X11 ? # # setenv WINEPATH /dos/bin/dos:/dos/bin/local: # # /dos/bin/msc_v4:/dos/bin/packages setenv XWINFONTPATH /usr/local/lib/X11/fonts/6x13,/usr/local/lib/X11/fonts/8x13,/usr/local/lib/X11/fonts/25x26,/usr/local/lib/X11/fonts/30x31 # # Old ex FreeBSD, but pkg_add doesnt seem to use PKG_PATH # # setenv PKG_PATH /pub/FreeBSD/ports/i386/packages-`uname -r|dd conv=lcase`/All # # NetBSD 3.1 install defines eg: # # PKG_PATH ftp://ftp.de.netbsd.org/pub/NetBSD/packages/3.1/i386/All # # I might as well define it as I never fetch FreeBSD, but always build local, # # whereas I dont [yet] want to compile NetBSD packages. setenv PKG_PATH ftp://ftp.de.netbsd.org/pub/NetBSD/packages/`uname -r`/`uname -m`/All breaksw # #} case ${Z_NO_DOMAIN}: # #{ case ${Z_VCFE_DOMAIN}: # #{ case ${Z_BSN_DOMAIN}: # #{ case ${Z_BERKLIX_ORG}: # #{ breaksw # #} # case otn.lm.dasa.de: # #{ # if ($?prompt) then # #{ # set notify # # alias fest cd ~${USER}/fest_2000 ; ./fest2000 # endif # #} # setenv MY_LIBRARY ~/fest_2000 # setenv PRINTER ps1060i006 # setenv USER `whoami` # switch ($Z_HOST_TYPE) # #{ # case HP-UX: # #{ # case ULTRIX: # setenv JHS_TCL ~/tcl # my backup of # Berhard''s stuff # setenv TCL_LIBRARY ${JHS_TCL}/tcl_lib # setenv TIX_LIBRARY ${JHS_TCL}/tix_lib # setenv TK_LIBRARY ${JHS_TCL}/tk_lib # setenv TZ MET-1METDST # HP-UX doesn't like # Europe/Berlin, # if ($?prompt) then # #{ # alias ns "netscape" # # on caeh32, not on caeu05 # alias w ${JHS_TCL}/wish # alias tw ${JHS_TCL}/tixwish # # alias vt52 "set term = vt52" # # alias ti745 \ # "set term = ti745 ; stty -tabs" # # alias ti785 \ # "set term = ti745 ; stty -tabs" # # alias vt100 "set term = vt100" # # alias not dxnotepad # # setenv MEIN_LASER fe2_ps20_0 # # setenv ODINPRINT ln03p056 # # setenv ODINPRINT_PS ps1060i006 # alias lprps "lpr -Pps1060i006" # # caeh32 lp -dps1060i006 OK # # caeh32 lp -d ps1060i006 OK # # caeh32 lpr -Pxxxx option \ # -Pxxxx not recognized # # caeu05 lp -dps1060i006 OK # # caeu05 lp -d ps1060i006 OK # # caeu05 lpr -Pps1060i006 OK # # caeu05 lpr -P ps1060i006 OK # alias lpq "lpq -Pps1060i006" # endif # #} # setenv PATH ${PATH}:${Z_MY_HOME}/bin/.${Z_HOST_TYPE} # setenv PATH ${PATH}:${Z_MY_HOME}/../mayer/bin:. # # $HOME/../mayer/bin as fest_2000/setup calls # tclsh in # # $HOME/../mayer/bin, & although # # fest_2000/setup is a sh # # not a csh, there are other things in # # ${Z_MY_HOME}/../mayer/bin that may be needed. # breaksw # #} # case FreeBSD: # #{ # # TZ: FreeBSD accepts both Europe/Berlin & # # MET-1METDST. # breaksw # #} # case default: # #{ # echo "Warning Z_HOST_TYPE $Z_HOST_TYPE \ # unexpected at $DOMAIN." # breaksw # #} # endsw # #} # # setenv MANPATH ${MANPATH}:/opt/CC/share/man # #} case ${Z_MC_PRI_DOMAIN}: # #{ breaksw # #} case default: # #{ breaksw # #} # # Note cannot do a case for Ernst''s site, cos switchin on DOMAIN. endsw # #} # Interactive if ($?Z_GATE_HOST) then # #{ setenv WWW_HOME http://${Z_GATE_HOST} # WWW_HOME in all of arena & lynx & chimera & Mosaic endif # #} setenv PKG_TMPDIR /usr/tmp # # Some X stuff needs a lot of space. switch ($Z_HOST_SHORT) # # Host Specific for Interactive { case snow.${Z_HOLZ_DOMAIN}: # #{ # # if short of space on gate, uncomment next line # # setenv PKG_TMPDIR /host/user/usr/tmp breaksw # #} case sony.${Z_HOLZ_DOMAIN}: # #{ # # if short of space on gate, uncomment next line # # setenv PKG_TMPDIR /host/user/usr/tmp breaksw # #} case park.${Z_HOLZ_DOMAIN}: # #{ for ide, not for scsi & mitsumi alias xcdplayer "/usr/local/bin/xcdplayer -device /dev/racd0" breaksw # #} case film.${Z_HOLZ_DOMAIN}: # #{ alias xcdplayer "/usr/local/bin/xcdplayer -device /dev/acd0" # # on 5.3 volume works finally: mouse to green bar, # # then for coarse: keep clicking left or right. # # for fine middle button & slide setenv CDR_DEVICE 1,1,0 # # write device for cdrecord breaksw # #} case fire.${Z_HOLZ_DOMAIN}: # #{ # # Speeds: # # DVD-RAM: LG "52x24x52x" # # CD-RW Bezel: Plextor 16x10x40 setenv CDR_SPEED 10 # # writer cdrecord # # DVD: Nothing on Bezel, but its just a reader anyway, so # # no need to set CDR_SPEED which is for writing only # cdrecord -v -scanbus # order depends if dvdram power is # on at boot (at least pre 8.0-RELEASE # If pre 8.0-RELEASE & USB DVD writer is powered up before reboot: # 0,0,0 'HL-DT-ST' 'DVDRAM GSA-5163D' 'A102' # 2,0,0 'PIONEER ' 'DVD-ROM DVD-116 ' '1.09' # Reader # 2,1,0 'PLEXTOR ' 'CD-R PX-W1610A' '1.02' # Writer # If 8.0-RELEASE & USB DVD writer is powered up before reboot: # 0,0,0 'PIONEER ' 'DVD-ROM DVD-116 ' # 0,1,0 'PLEXTOR ' 'CD-R PX-W1610A' # 3,0,0 'HL-DT-ST' 'DVDRAM GSA-5163D' if ( "x`filetest -c /dev/cd2`" == "x1" ) then # #{ # # USB DVDRAM writer exists. Assume it was # # powered up & connected at boot time when # # SCSI allocation occured. (If it was only turned # # On later, the allocation assumptions fail. # # JJLATER investigate devd.conf to improve this. setenv CDDA_DEVICE 0,0,0 # # reader cdda2wav setenv CDR_DEVICE 0,1,0 # # writer cdrecord else # #}{ USB writer assumed not connected at boot setenv CDDA_DEVICE 0,0,0 # # reader cdda2wav setenv CDR_DEVICE 0,1,0 # # writer cdrecord endif # #} breaksw # #} case flip.${Z_HOLZ_DOMAIN}: # #{ setenv CDDA_DEVICE 4,0 # # read device for cdda2wav # # CDDA_DEVICE for cdda2wav in ports/sysutils/cdrecord # # setenv CDDA_DEVICE /dev/cd0c # # Invalid argument. Open by 'devname' not supported # # on this OS. Cannot open SCSI driver. # # setenv CDROM_SELECT_SPEED 2 # read speed for cdda2wav # # CDROM_SELECT_SPEED found by strings `which cdda2wav` # # but is not documented & has no effect when tried. breaksw # #} case rain.${Z_HOLZ_DOMAIN}: # #{ setenv CDDA_DEVICE 6,0 # # read device for cdda2wav # # cdrom=1,0 worm=6,0 # # setenv CDROM_SELECT_SPEED 6 # read speed for cdda2wav # # cdrom=8 worm=6 setenv CDR_DEVICE 6,0 # # write device for cdrecord setenv CDR_SPEED 2 # # write speed for cdrecord setenv CDR_FIFOSIZE 8m # # up from 4m. # # Even though audio CDs write OK over NFS at 4m, # # it gives me more safety, as data CD are one Big track, # # + also allows me more buffer in case I momentarily # # disrupt my coax ethernet. breaksw # #} case wind.${Z_HOLZ_DOMAIN}: # #{ setenv CDDA_DEVICE 2,0 # # read device for cdda2wav # # setenv CDROM_SELECT_SPEED 2 # read speed for cdda2wav # # remove distant/minority cdrom market countries. unsetenv HAVE_MOTIF unsetenv KDEDIR # # do I want USA_RESIDENT when generating cdrom ? # # do I want TRYBROKEN when generating cdrom ? breaksw # #} case john.${Z_HOLZ_DOMAIN}: # #{ breaksw # #} case king.${Z_HOLZ_DOMAIN}: # #{ # # cd0 id=3 # # dmesg: 10.000MB/s transfers setenv CDDA_DEVICE 4,0 # # read device for cdda2wav # # setenv CDROM_SELECT_SPEED 6 # read speed for cdda2wav setenv CDR_DEVICE 3,0 # # write device for cdrecord setenv CDR_SPEED 2 # # write speed for cdrecord setenv CDR_FIFOSIZE 8m # # up from 4m. # # Even though audio CDs write OK over NFS at 4m, # # it gives me more safety, as data CD are one Big track, # # + also allows me more buffer in case I momentarily # # disrupt my coax ethernet. # # # # unsetenv DUDS # fetch all distfiles even if I cant build them. unsetenv HAVE_MOTIF unsetenv KDEDIR # # do I want USA_RESIDENT when generating cdrom ? # # do I want TRYBROKEN when generating cdrom ? breaksw # #} case laps.${Z_DHCP_DOMAIN}: case laps.${Z_HOLZ_DOMAIN}: case laps.${Z_NO_DOMAIN}: # # CDR_DEVICE cdrecord setenv CDR_DEVICE 0,0,0 # # 'HL-DT-ST' 'DVDRAM setenv CDR_DEVICE 2,0,0 # # 'MATSHITA' 'DVD/CDRW # # setenv CDR_SPEED ? # cdrecord setenv CDDA_DEVICE 2,0,0 # # cdda2wav breaksw # #} case lapa.${Z_DHCP_DOMAIN}: # #{ case lapl.${Z_DHCP_DOMAIN}: case lapn.${Z_DHCP_DOMAIN}: case lapd.${Z_DHCP_DOMAIN}: setenv NO_CHECKSUM breaksw # #} case freefall.${Z_FREEBSD_DOMAIN}: # #{ case hub.${Z_FREEBSD_DOMAIN}: setenv CVSREAD # # ~ncvs setenv CVSROOT /home/ncvs # #echo "CVSREAD=$CVSREAD CVSROOT=$CVSROOT" breaksw # #} case default: # #{ breaksw # #} endsw # #} # Aliases are only useful interactively, so are skipped to reduce startup # time for noninteractive shells (which conveniently leave the prompt unset). if ($?prompt == 0) goto unset_label # I used to just exit, but when I did a `set` in a script, I see lots of # unwanted variables. # ======================================================================== # NOW SET UP STUFF ONLY NEEDED FOR INTERACTIVE SESSSIONS. setenv MAILCHECK 10 # setenv EMAIL jhs@whatever_domain # for chimera when calling anon. ftp # do not remove comment delimeter in system wide /etc/csh.cshrc, # only for use in ~/.cshrc setenv EDITOR vi setenv TERMPATH ~/.termcap:/etc/termcap:/usr/share/misc/termcap # /usr/local/etc/termcap # set Z_WHOAMI = `whoami` # SCO_SV does not have `whoami` # Sco who am i produces: "st26u9!jhs ttyp3 Dec 2 13:34" # Native awk on sco needed awk -e, but BSD/awk & gnu/gawk on Sco-Skunkware # do not allow awk -e, & this cshrc with -e then fails to extract user name. set Z_WHOAMI = `who am i | awk '{ print $1 }' | sed -e 's/\\!/ /' | sed -e "s/$Z_HOST_SHORT/ /" | awk '{ print $1 }'` set autolist yes # # print expansion alternatives on filename tab-completion # Pressing tab in that circumstance pops up a list of matching # filenames to choose from. You can then type the next character # or two and hit tab again. # Initial aliases (may be changed for some hosts ) set history = 100 alias a 'alias | more' alias c 'cls;cd;jobs' alias ci "echo probably a typo for vi" # When I have done eg cd /host/blak/pub & want to see where I really am, # eg in /.amd_mnt/blak/ad4s4/ftp/.backup/pub alias cdr 'cd `/bin/pwd`' alias coax 'cd /site/domain/this/etc/namedb/master;vi *.fwd' alias df 'df -H -t ufs,msdosfs' alias fmt "/usr/bin/fmt 70 75" alias h "history | tail -20" alias ispell "/usr/local/bin/ispell -x" alias isdn "/etc/isdn/isdn" alias j jobs -l alias k ksmp3play alias l "ls -alG" alias ll ls -lg alias ls "ls -F" alias mf "mformat -t 80 -h 2 -s 18 a:" alias n "cd ~/txt/notes ; make notes.vhtml" alias p "ps -laxwwh" alias pd pushd alias pe "printenv | sort | more" alias po popd alias rd rmdir alias rewind '(cd /dev ; dd if=tape of=null count=1 ; dd if=tape of=null count=1 )' alias skip "dd if=/dev/ntape of=/dev/null" alias sl 'ls | rev | sort | rev | more' alias slrn "/usr/local/bin/slrn -f ~/dots/slrn/.jnewsrc" alias spell "spell -b" if ($Z_HOST_TYPE != Symmetrix) then # #{ Symmetrix old, has no ssh. alias telnet "echo Use ssh when possible.; /usr/bin/telnet $*" alias rlogin "echo Use ssh when possible.; /usr/bin/rlogin $*" endif # #} alias names "vi ~/job/odd/names" alias people "vi ~/txt/text/people" alias urls "vi ~/txt/text/urls" # Variable aliases dependent on host set filec # # escape completes names setenv BLOCKSIZE K # stty mustnt be done unless interactive shell, else will zap controlling tty if ( X.$Z_HOST_TYPE == X.SCO_SV) then # #{ # # Prevent Sco xterm complaining on the first stty set (regardless which) # # "stty: standard input: unable to perform all requested operations" # # note scoterm does not need this. stty -a > /dev/null endif # #} stty eof '^d' erase '^h' intr '^c' kill '^u' susp '^z' # set prompt = '[%B%m%b] %B%~%b%# ' # set prompt="%B$Z_WHOAMI@%m `echo $Z_UNAME_R | sed -e s/-RELEASE//` `tty | sed -e s/\\/dev\\/tty//` %~ ! %b" # jhs@fire 5.3 p3 /usr/tmp 2 set prompt="%B`echo $Z_UNAME_R | sed -e s/-RELEASE//` `tty | sed -e s/\\/dev\\/tty//` $Z_WHOAMI ! %m%~ %b" # New prompt easier to mouse to a /host/something for cd, eg: # 5.3 p3 2 fire/usr/tmp switch ($Z_HOST_TYPE) # #{ Generic (select by $Z_HOST_TYPE later) # case RCU: # #{ # # whoami: not found # setenv Z_WHOAMI `who am i | awk '{print $1;}'` # unalias df # no -k # breaksw # #} case FreeBSD: # #{ # # set prompt="%B$Z_WHOAMI@%m `echo $Z_UNAME_R | sed -e s/-RELEASE//` `tty | sed -e s/\\/dev\\/tty//` %~ ! %b" # # jhs@fire 5.3 p3 /usr/tmp 2 set prompt="%B`echo $Z_UNAME_R | sed -e s/-RELEASE//` `tty | sed -e s/\\/dev\\/tty//` $Z_WHOAMI ! %m%~ %b" # # New prompt easier to mouse to a /host/something for cd, eg: # 5.3 p3 2 fire/usr/tmp alias xlock "xlock -mode mountain" # # avoid caught signal 8 while running galaxy mode. # # SVFONTPATH is used by starwriter # # setenv TERM cons25 # # setenv TERM xterm setenv TTY_SETS `stty -g` # # ; export TTY_SETS setenv XKEYSYMDB /usr/local/lib/X11/XKeysymDB # # For netscape setenv XNLSPATH /usr/local/lib/X11/nls # # For netscape # # XNLSPATH instead of /usr/X11/lib/X11/nls # # User setrlimit(2), or ``ulimit'' in bash, # # or ``limit'' in csh... MAXUPRC default. # # unlimit openfiles (csh) # # unlimit descriptors (tcsh) # # ulimit (ash) # # limit maxproc 100 read from /etc/csh.cshrc by tcsh # # but not seen by X, which uses /bin/sh to start everything up. # # So put 'ulimit -u 100' in .xsession. & check # # .xsession-errors Ref. login.conf # # setenv LANG C # might be needed for netscape, (also X -bpp 16) setenv SPUNK_COLOR YES # # for xestic setenv SPUNK_LANGUAGE 2 # # for xestic, 1=German, 2=English setenv SPUNK_COUNTRY 049 # # setenv SPUNK_CP437 yes # for a PC term, not inside an xterm. # # setenv LC_CTYPE iso_8859_1 # convert estic umlauts to ascii. setenv SPUNK_XFONT 12x24 # # or 8x13 alias xestic \ "cd /etc/pbx; /usr/X11R6/bin/xestic -display disp:0.0" # # -geometry anything from 80x25 to 100x50 supposed to be OK # # but does not work on freebsd xestic 1.40 # # Maybe needs full path to find adjacent estic.res. # # Does not look for DISPLAY as an env. var. # # Files installed by /usr/ports/misc/estic/Makefile: # # /usr/local/bin/ xestic, xestic.res. # # /usr/local/etc/pbx/ aliases.example, # # estic.ini.freebsd_example, estic.ini.generic_example # # /usr/local/share/doc/estic/ README estic.doc # # I use these symbolic links: # # /usr/local/etc/pbx -> ../../../etc/pbx # # /usr/local/var -> ../../var # # /etc/pbx -> ../usr/home/jhs/pbx # # /usr/home/jhs/pbx -> private/etc/pbx # # estic.rc is created by xestic in CWD. # # ~jhs/pbx/ # # alias.dat Txt Jhs Old # # aliases.example Txt Gen < port # # config Bin JHS # # estic.ini Txt # # ~jhs/.estic-rc Bin breaksw # #} case Symmetrix: # #{ set prompt="$Z_WHOAMI@$Z_HOST_SHORT csh `tty | sed -e s/\\/dev\\///` ! % " # # Note uname most flags dont work, # # /usr/bin/uname --> /usr/vsl/bin/uname # # stty all >& .cshrc.stty.all goes to stdout # # setenv TTY_SETS `cat .cshrc.stty.all` # # rm .cshrc.stty.all # # stty all doesnt generate correct syntax, # # but shows what we want, 4.4BSD stty -g would be ideal alias date 'date -u' # # kernel thinks it''s in pacific alias df /bin/df -i breaksw # #} case OpenBSD: # #{ alias eject "/bin/eject /dev/rfd0c" alias swapinfo "pstat -s" breaksw # #} case NetBSD: # #{ alias 5 echo You are already on $Z_HOST_SHORT alias b kermit -l /dev/tty06 -b 9600 -c alias s kermit -l /dev/tty05 -b 9600 -c setenv DOC dummy_to_stop_make_clean_of_share_doc_aborting setenv TERM vt_100_l56 setenv TERMCAP "vt_100_l56:bl=^G:cr=^M:it#8:do=^J:co#80:li#56:cl=50\E[;H\E[2J:sf=2*\ED:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:cb=3\E[1K:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:if=/usr/share/tabset/vt100:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:" setenv TTY_SETS `stty -g` # # ; export TTY_SETS breaksw # #} case SCO_SV: # #{ alias resize '/usr/bin/X11/resize|egrep \'(LINES|COLUMNS)\' >! ~/.resize; source ~/.resize; rm ~/.resize' alias rsh rcmd # # SCO rsh is the restricted shell, # # alias yacc "rcmd st26s1 yacc" # # alias yacc bison # off of skunkware cdrom breaksw # #} case default: # #{ echo "/etc/csh.cshrc 2nd switch: no action for $Z_HOST_SHORT" breaksw # #} endsw # #} switch ($DOMAIN) # #{ Site Specific case ${Z_HOLZ_DOMAIN}: # #{ setenv ARCHIE_HOST archie.th-darmstadt.de # # what muc use setenv NNTPSERVER news.muc.de setenv ADOBE_LANG=ENU # for ports/print/acroread9 acroread # When $LANG is set, $ADOBE_LANG will be set automatically based on it. breaksw # #} case ${Z_MC_PRI_DOMAIN}: # #{ breaksw # #} case ${Z_FREEBSD_DOMAIN}: # #{ echo "Suggest: who ; cvs hi -a" echo "CVSREAD=$CVSREAD CVSROOT=$CVSROOT" breaksw # #} case default: # #{ breaksw # #} endsw # #} # Unset my variables internal only to this file, unset_label: unset \ Z_MAIL_RECEIVE_DOMAIN \ Z_BERKLIX_ORG \ Z_BSN_DOMAIN \ Z_DHCP_DOMAIN \ Z_FLIP_EP \ Z_FREEBSD_DOMAIN \ Z_GATE_HOST \ Z_HOLZ_DOMAIN \ Z_HOLZ_GATE \ Z_HOLZ_PLIP_DOMAIN \ Z_HOST_SHORT \ Z_HOST_TYPE \ Z_MC_PRI_DOMAIN \ Z_MC_PUB_DOMAIN \ Z_MY_BIN \ Z_MY_HOME \ Z_MY_PRIV_BIN \ Z_NO_DOMAIN \ Z_UNAME_R \ Z_VCFE_DOMAIN \ Z_WHOAMI # Warning do not hang a backslash on last line, & then leave a blank line, # cos blank line gets discarded by makefile, & then the unset fails to run. # Ex Symmetric Computer Systems Inc. /.cshrc: # set path=(/etc /usr/ucb /bin /usr/bin /usr/local /usr/nsc .) # alias ls ls -F # if ($?prompt) then # set history=100 # set prompt=`hostname`' \! # ' # set cdpath=(/sys /usr/src/{etc,bin,usr.bin,ucb,lib,usr.lib,lib/c,}) # alias a alias # alias h 'history -r' # alias j jobs -l # alias so source # alias ll ls -lg # alias ta 'vi -t \!*' # alias tset 'set noglob histchars=""; eval `\tset -s -Q \!:*`; unset noglob histchars' # alias x exit # alias z suspend # # alias + pushd # alias - popd # alias cd 'set old=$cwd; chdir \!*' # alias back 'set t=$cwd; chdir $old; set old=$t; dirs; unset t' # # alias ci sccs delget # alias co sccs get -e # alias setup 'sccs admin -i \!* < \!:$' # alias out 'echo SCCS/p.* |sed -e s,SCCS/p.,,g' # alias get sccs get # alias info sccs info # alias prt sccs prt # alias sd sccs diffs # alias sds 'sccs sccsdiff \!* |more -s' # endif # setenv SHELL /bin/csh # setenv EXINIT 'set ai sm' # End of /etc/csh.cshrc