Date: Sat, 8 Feb 97 08:47:25 EST From: Dwight McKay (The Moderator) Reply-To: Suns-at-Home@net-kitchen.com Subject: Suns-at-Home Digest V10 #5 To: Suns-at-Home-List Suns-at-Home Digest Sat, 8 Feb 97 Volume 10 : Issue 5 Today's Topics: Building and Running PPP on a SunOS 4.1.1 Sun SPARC1 Finally got an SS5; sources for cables & (internal) CD? Info needed on 19" Hitachi 540-1094?? PPP + Slirp up and running (on SunOS 4.1.1 SPARC1) SLC diskless setup What is the SunOS 5.x equivalent to the 'ldconfig' utility? X windows font question +--------------------------------------------------------------------+ | Submissions: suns-at-home \ | | Requests: suns-at-home-request > @net-kitchen.com | | Archives: suns-at-home-archives / | | WWW Archive access: http://www.net-kitchen.com/~sah | +--------------------------------------------------------------------+ ---------------------------------------------------------------------- Date: Mon, 3 Feb 1997 17:26:40 -0800 From: ead@ixian.com Subject: Building and Running PPP on a SunOS 4.1.1 Sun SPARC1 To: People, Enclosed is a document explaining how I got PPP up and running on my SunOS 4.1.1 Sun SPARC1. Thank you all for your help. Eric De Mund http://www.ixian.com/ixian/ead/ "You white people are so strange. We think it is very primitive for a child to have only two parents." --Australian aboriginal elder --------CUT HERE: BEGIN SECTION 1 OF 1-------- URL: http://www.ixian.com/ixian/ead/ppp/ppp+slirp+sunos4.txt Last Modified: Mon Feb 3 17:04:29 PST 1997 Version: 1.00 Building and Running PPP on a SunOS 4.1.1 Sun SPARC1 to Communicate with a Remote Host Running Slirp The following recipe describes how I built PPP [1] and got it running on a SunOS 4.1.1 Sun SPARC1. I'm running PPP and am communicating, via PPP, with Slirp [2] on a remote host. I'm using a V.34 33400bps modem and a GENERIC_SMALL kernel, which I did not need to regrind. My system: * model: SPARCstation 1 * CPU: 20 MHz Sun 4/60 * operating system: SunOS Release 4.1.1 * kernel: GENERIC_SMALL * serial controller: Zilog 8530 * maximum port speed: 38400bps * modem: Zoom/FaxModem V.34X+ Model 2836 My modem's settings are: ~/tmp% tip modem38400 connected AT&V ACTIVE PROFILE: B1 E1 L1 M1 N1 Q0 T V1 W1 X4 Y0 &C1 &D0 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 &Y0 S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:002 S09:006 S10:014 S11:050 S12:050 S18:000 S25:005 S26:001 S36:007 S37:000 S38:020 S44:020 S46:138 S48:007 S95:047 STORED PROFILE 0: B1 E1 L1 M1 N1 Q0 T V1 W1 X4 Y0 &C1 &D0 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 S00:000 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:050 S12:050 S18:000 S36:007 S37:000 S40:104 S41:195 S46:138 S95:047 STORED PROFILE 1: B1 E1 L1 M1 N1 Q0 T V1 W0 X4 Y0 &C0 &D0 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 S00:000 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000 S36:007 S37:000 S40:104 S41:195 S46:138 S95:000 TELEPHONE NUMBERS: 0= 2= 3= OK ~ [EOT] ~/tmp% A resource that I recommend for information about Unix serial ports is: [*] Stokely Consulting's Unix Serial Port Resources Be well, Eric De Mund http://www.ixian.com/ixian/ead/ #------------------------------# # INSTALL PPP # #------------------------------# 1. [local] Get and install PPP 2.2 [1]. (Requires no regrinding of kernel.) chat(8), ppp_driver.o(8), pppd(8), and pppstats(8) will be installed in /usr/local/etc. 1a. Add these lines to /etc/rc.local: # # Load PPP module. # if [ -f /usr/local/etc/ppp_driver.o ]; then modload /usr/local/etc/ppp_driver.o && \ echo "load ppp module" fi 1b. Add "daemon.notice" entry to the /dev/console line of /etc/syslog.conf. 1c. Add this new line to /etc/syslog.conf: daemon.debug;local2.debug /etc/ppp/ppplog 1d. Add from one to three line of this form to /etc/resolv.conf: nameserver your-ISP's-DNS The remote nslookup(8C) or remote slirp(1) will report the DNS('s) to use. 1e. Reboot. Observe PPP module being loaded at boot time. 2. [local] Move my ppp-up(1) and ppp-down(1) scripts [2] into a directory in your PATH. Adjust the phone number, baud rate, and serial port names in ppp-up(1), and remove the lines in the $CHATFILE in ppp-up(1) pertaining to "TERM=" and "stty rows" if they don't apply to your login. 3. [local] Create a zero-length /etc/ppp/options file. #------------------------------# # INSTALL SLIRP # #------------------------------# 4. [local] Connect and login to remote host. 5. [remote] Get and install Slirp 1.0c [3]. slirp(1) is the only executable built. Move it into a directory in your PATH. 6. [remote] Create a ~/.slirprc file like this (the first line must be "ppp", and the baudrate may be larger than what your modem supports): ppp baudrate 57600 compress domain your-ISP's-domainname ppp_exit redir X 7. [remote] Log off and disconnect from remote host. #------------------------------# # RUN PPP + SLIRP # #------------------------------# 8. [local] In another xterm(1), run "tail -f /etc/ppp/ppplog". 9. [local] Invoke my ppp-up(1). In /etc/ppp/ppplog, you will observe my chat(8) script (embedded in ppp-up(1)) dialing your modem, connecting to your ISP, logging on, invoking slirp(1) on the remote host, and establishing a PPP connection. 10. [local] Run Netscape, NcFTP, telnet(1C), etc, as desired. The remote host's address is 10.0.2.2. #------------------------------# # BRING PPP + SLIRP DOWN # #------------------------------# 11. [local] Invoke ppp-down(1) [2]. In /etc/ppp/ppplog, observe the PPP connection closing. A few seconds later, observe your modem disconnecting. footnotes: [1] [2] [3] -- Eric De Mund http://www.ixian.com/ixian/ead/ --------CUT HERE: END SECTION 1 OF 1-------- - ------------------------------ Date: Mon, 03 Feb 1997 18:17:49 -0800 From: Greg Earle Subject: Finally got an SS5; sources for cables & (internal) CD? To: suns-at-home@tigger.net-kitchen.com > Friday before last, I finally picked up a (used) SS5 (110MHz; 32 MB; 0.5 > GB internal disk; floppy; 20" monitor w/remote control). A shame, really; I don't know how much you paid for it, but you probably paid as much as it might cost to buy a brand new SPARCstation 5 Model 170 that's twice as fast. (The base model SS5/170 with 17-inch "Entry Color" [huh?] monitor, 2.1 Gb disk and 32 Mb is $4695 list, which is around $2817 with 40% Educational discount, assuming you could get it. Bye bye, Cycle-5 ... ) I'm seriously considering getting one of these base-level SS5/170's, although I'm still torn by the fact that for the same $2800-$3000, I can get a [HERESY ALERT!] Pentium Pro 200 box with an Adaptec 2940 Fast/Wide SCSI controller and 24-bit color framebuffer (as opposed to a TurboGX). Sigh ... [I'd be running NetBSD/SPARC 1.2 or NetBSD/i386 1.2, so the software issue's pretty much a wash for me.] It's a pretty weird situation now, i.e. there are actually decently-made PC's which blow away anything low-end from Sun for price/performance. I'm not sure the old "But Suns are made SO much better" argument holds much water anymore. We have a Pentium 120 upstairs with an Adaptec 2940, a 2.1 Gb Seagate and an ATI Mach64 card in it, and the sucker just screams (relatively speaking!) and it's never given us any hardware trouble at all. I'm quite impressed by it. - Greg (Who has used Suns pretty much exclusively for almost 13 years, and who still has to check himself when he says "I may buy a PC ... ") - ------------------------------ Date: Sun, 2 Feb 1997 17:33:18 +0000 From: Keith Cooper (Keith Cooper) Subject: Info needed on 19" Hitachi 540-1094?? To: suns-at-home@tigger.net-kitchen.com I've just got a Hitachi 19" monitor (540-1094-01 4 bnc) with a 3/160. While the monitor is OK, it is rather dim and a bit blurred. Not being too worried about adjusting monitors, I've sharpened the picture a bit(internal focus ctrl) and adjusted the levels to get it a bit brighter. There are lots of other pots that could be adjusted, but given the way they interact I wondered if anyone out there had any set-up info for this particular monitor? Specific questions are: Is poor focus at higher screen brightnesses a symptom of any particular fault, or is it just an old tube? What do VR402, and VR403 on the back panel do (back gain offset and GS-level)? What is the high voltage adjustment next to the focus for (marked "screen")? Any hints/advice greatfully received bye for now Keith Tel (+44) 116 291 9092 - ------------------------------ Date: Mon, 3 Feb 1997 10:50:17 -0800 From: ead@ixian.com Subject: PPP + Slirp up and running (on SunOS 4.1.1 SPARC1) To: People, I was able to get PPP [1] up and running on my SunOS 4.1.1 SPARC1, at 38400bps, without regrinding my kernel. I am now talking to my ISP's SunOS 4.1.3 SPARC20E running Slirp [2]. Shortly, I will make available a complete recipe on how to do this. Here, I'm enclosing my ppp-up(1) and ppp-down(1) scripts. They're also available on my PPP page [3]. Thank you for your assistance. I greatly appreciate it. Eric De Mund http://www.ixian.com/ixian/ead/ [1] PPP 2.2: [2] Slirp 1.0c: [3] my PPP page: --------CUT HERE: BEGIN SECTION 1 OF 1-------- #!/bin/sh # This is a shell archive (produced by shar 3.50) # To extract the files from this archive, save it to a file, remove # everything above the "!/bin/sh" line above, and type "sh file_name". # # made 02/03/1997 10:48 PST by # Source directory # # existing files will NOT be overwritten unless -c is specified # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 4143 -rw-r--r-- ppp-up-1.02 # 2377 -rw-r--r-- ppp-down-1.00 # # ============= ppp-up-1.02 ============== if test -f 'ppp-up-1.02' -a X"$1" != X"-c"; then echo 'x - skipping ppp-up-1.02 (File already exists)' else echo 'x - extracting ppp-up-1.02 (Text)' sed 's/^X//' << 'SHAR_EOF' > 'ppp-up-1.02' && #!/bin/sh ############################################################################## ## ## ## ## ## ppp-up ## ## ## ## ############################################################################## X # PROGRAM # ppp-up # # USAGE # ppp-up # # FUNCTION # Invoke pppd(8) and establish a PPP connection with a remote host # running slirp(1). Local host is: # * model: SPARCstation 1 # * CPU: 20 MHz Sun 4/60 # * operating system: SunOS Release 4.1.1 # * kernel: GENERIC_SMALL # * serial controller: Zilog 8530 # * maximum port speed: 38400bps # # REQUIRES # [local] PPP 2.2 # # [local] zero-length /etc/ppp/options file # [remote] Slirp 1.0c . Remote # slirp(1) must be instructed to use PPP mode. Invoke it with no # command-line options and use "ppp" in (the remote) ~/.slirprc, # *as the first line* to do this. Remote ~/.slirprc: # ppp # baudrate 57600 # compress # domain # ppp_exit # redir X # # SECURITY # * The remote password never appears as an argument to any program or # script. # * The remote password is not echoed to the terminal when ppp-up # prompts for it and the user keys it in. # * The remote password resides on disk in $CHATFILE, a mode 0600 file # in the user's home directory, for approximately 10 seconds # following the invocation of pppd(8). When pppd(8) is invoked, it # detaches and becomes a background process IF ITS "-detach" OPTION # IS NOT SPECIFIED. Approximately 10 seconds after pppd(8) is # invoked, $CHATFILE is removed. If pppd(8)'s "-detach" option is # specified, $CHATFILE will not be deleted until 10 seconds after # pppd(8) completes. # # AUTHOR # Eric De Mund # http://www.ixian.com/ixian/ead/ # # AVAILABILITY # This script is available on the world-wide web under: # * # * # # VERSION # 1.02 # # DATE # 3 February 1997 X trap 'cleanup; exit 1' 1 2 3 15 X THISSH="`basename $0`" CHATFILE=$HOME/.chatrc PPPDIR=/usr/local/etc PHONENUMBER=555-1212 TERMINAL=vt100 ROWS=24 RUNSLIRP="exec slirp" X cleanup() { X rm -f $CHATFILE X stty echo -echonl } X echo -n "remote login: " && read USER stty -echo echonl echo -n "remote Password:" && read PASSWORD echo -n "reenter remote Password:" && read PASSWORD2 cleanup X if [ ! "$PASSWORD" = "$PASSWORD2" ]; then X echo "$THISSH: error: Password mismatch" X cleanup X exit 1 fi X cat <$CHATFILE X ABORT BUSY X ABORT "NO CARRIER" X "" ATZ X OK ATDT"$PHONENUMBER" X ogin: "$USER" X assword: "$PASSWORD" X ERM= "$TERMINAL" X "tty rows [" "$ROWS" X "% " "$RUNSLIRP" EOF chmod 600 $CHATFILE X $PPPDIR/pppd asyncmap a0000 \ X connect "$PPPDIR/chat -v -f $CHATFILE" \ X defaultroute \ X debug \ X /dev/ttyd0 \ X 38400 X sleep 10 && cleanup Xexit 0 X ############################################################################## ## ## ## ## end ## ppp-up ## ## ## ## ############################################################################## SHAR_EOF chmod 0644 ppp-up-1.02 || echo 'restore of ppp-up-1.02 failed' Wc_c="`wc -c < 'ppp-up-1.02'`" test 4143 -eq "$Wc_c" || echo 'ppp-up-1.02: original size 4143, current size' "$Wc_c" fi # ============= ppp-down-1.00 ============== if test -f 'ppp-down-1.00' -a X"$1" != X"-c"; then echo 'x - skipping ppp-down-1.00 (File already exists)' else echo 'x - extracting ppp-down-1.00 (Text)' sed 's/^X//' << 'SHAR_EOF' > 'ppp-down-1.00' && #!/bin/sh ############################################################################## ## ## ## ## ## ppp-down ## ## ## ## ############################################################################## X # PROGRAM # ppp-down # # USAGE # ppp-down # # FUNCTION # Send a TERM signal to the pppd(8) process. The number of the pppd(8) # process is stored in the file /etc/ppp/ppp0.pid. # # Local host running pppd(8) is: # * model: SPARCstation 1 # * CPU: 20 MHz Sun 4/60 # * operating system: SunOS Release 4.1.1 # * kernel: GENERIC_SMALL # * serial controller: Zilog 8530 # * maximum port speed: 38400bps # # REQUIRES # [local] PPP 2.2 # # [local] zero-length /etc/ppp/options file # [remote] If remote host is running Slirp 1.0c # , slirp(1) must be # directed to exit when PPP is terminated. Use "ppp_exit" in # (the remote) ~/.slirprc to do this. Remote ~/.slirprc: # ppp # baudrate 57600 # compress # domain # ppp_exit # redir X # # AUTHOR # Eric De Mund # http://www.ixian.com/ixian/ead/ # # AVAILABILITY # This script is available on the world-wide web under: # * # * # # VERSION # 1.00 # # DATE # 3 February 1997 X PPPDPIDFILE="/etc/ppp/ppp0.pid" kill -TERM `cat $PPPDPIDFILE` X Xexit 0 X ############################################################################## ## ## ## ## end ## ppp-down ## ## ## ## ############################################################################## SHAR_EOF chmod 0644 ppp-down-1.00 || echo 'restore of ppp-down-1.00 failed' Wc_c="`wc -c < 'ppp-down-1.00'`" test 2377 -eq "$Wc_c" || echo 'ppp-down-1.00: original size 2377, current size' "$Wc_c" fi exit 0 --------CUT HERE: END SECTION 1 OF 1-------- - ------------------------------ Date: Sat, 1 Feb 1997 23:43:10 -0500 From: lordbah@amusing.roc.servtech.com (Jeff Van Epps) Subject: SLC diskless setup To: suns-at-home@tigger.net-kitchen.com I've acquired an SLC (the price was right - nonexistent) and I'd like to set it up to run diskless on my home network (main computer is SPARC 5 w/Solaris 2.5). I can't find any info on how to set up a server to serve a diskless client. I've tried putting genunix in /tftpboot under the encoded IP address, and the SLC does download the file, but then it says "da000 The downloaded file does not appear to be executable". Now this thing doesn't necessarily have to run Solaris. Anything with an X server will do. But I don't have any experience with *BSD or Linux setup either. What would you do with this machine, and how would you do it? ---- Jeff Van Epps lordbah@amusing.roc.servtech.com http://amusing.roc.servtech.com/ (if I'm dialed in) - ------------------------------ Date: Thu, 6 Feb 1997 11:47:23 +1100 (EST) From: Craig Dewick Subject: What is the SunOS 5.x equivalent to the 'ldconfig' utility? To: suns-at-home@tigger.net-kitchen.com hi folks, I've built X11R6.3 on this machine under SunOS 5.5 (following my recent migration from SunOS 4.1.4), however all of the applications (such as Netscape, XV, etc.) fail to execute because they say that ld.so.1 cannot open one of more of the shared libraries in '/usr/X11R6.3/lib'. Under SunOS 4.1.x, the 'ldconfig' command, when run from /etc/rc.local as 'ldconfig /usr/X11R6.3/lib', would enable this directory to be cached for shared library searches along with the default search path defined in the 'ldconfig' man entry. How can this be acheived under SunOS 5.5? There doesn't appear to be an 'ldconfig' command. What mechanism is used for caching shared libraries and how can I find information about configuring it to include the X library directory? Regards, Craig. -- Craig Dewick. Send email to 'cdewick@lios.apana.org.au' Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_ark.html' to access my collection of Sun information and links to other places. - ------------------------------ Date: Thu, 6 Feb 97 11:43:20 EST From: gary@sabot.com (Gary Sabot) Subject: X windows font question To: Suns-at-Home@tigger.net-kitchen.com Can anyone help me stop a new application from changing my default X fonts? My machine is running SunOS 4.1.3U1 with Openwindows 3 (X11R4). I recently installed an application, x3270, that adds new fonts to /usr/openwin/fonts and rebuilds some font family indexes within that directory. The next time I started X, the default fonts were slightly different and harder to read. For example, the machine name as it appears in xload. The most annoying thing is that my emacs text and *shell* buffers are much harder to read. Restoring /usr/openwin/fonts from tape and restarting X fixed the problem for emacs and all my old applications, but messed up the new x3270! Before doing the restore from tape, I ran (frame-parameters) in emacs and found that while emacs originally had this font: (font . "-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1") after x3270 was installed it had changed to this font: (font . "-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1") Can anyone figure out from this what is going on and if there is a way to keep my old defaults as-is when I install an application that adds new fonts? --gary _______________________________________________________ Gary Sabot | Voice: (617) 647-7776 Sabot Associates, Inc. | FAX: (617) 647-7779 10 Carroll Circle | Internet: gary@sabot.com Weston, MA 02193 USA | ------------------------------------------------------- - ------------------------------ End of Suns-at-Home Digest ******************************