Sun-Spots-Request@Rice.edu (William LeFebvre) (11/09/88)
SUN-SPOTS DIGEST Monday, 7 November 1988 Volume 7 : Issue 7 Today's Topics: Re: SunView questions on video retrace and color icons here's a program to trim the wtmp file Re: Remove booting a Sun-3/280 -- failure! SCSI disk format? Leonardo - illustration package for Sun-3? Re: Wren IV system hang Opportunity for SEX at the SUG Re: SunOS Source shell problem under SunOS 4.0 Video backup? Re: Algebraic Calctool with Trig Functions Bug in Gammontool? SDST110 config file in sun4 distribution doesn't work ALM Problems Re: Photographic output devices connected to Sun RGB floppies in shoeboxes? Re: sun sources Send contributions to: sun-spots@rice.edu Send subscription add/delete requests to: sun-spots-request@rice.edu Bitnet readers can subscribe directly with the CMS command: TELL LISTSERV AT RICE SUBSCRIBE SUNSPOTS My Full Name Recent backissues are available via anonymous FTP from "titan.rice.edu". For volume X, issue Y, "get sun-spots/vXnY". They are also accessible through the archive server: mail the request "send sun-spots vXnY" to "archive-server@rice.edu" or mail the word "help" to the same address for more information. ---------------------------------------------------------------------- Date: Sat, 29 Oct 88 12:45:43 PDT From: "John D. Polstra" <cfg!polstra!jdp@uunet.uu.net> Subject: Re: SunView questions on video retrace and color icons Reference: v6n265 After trying some experiments a while back, I determined that the icon uses the same color map as the base frame. Here is a simple example which creates a frame with a 4-color icon: ________________________________ #include <suntool/sunview.h> #define CMSNAME "test" #define NCOLORS 4 /* RED GRN BLU VIO */ static unsigned char rmap[NCOLORS] = { 255, 0, 0, 255 }; static unsigned char gmap[NCOLORS] = { 0, 255, 0, 0 }; static unsigned char bmap[NCOLORS] = { 0, 0, 255, 255 }; main() { Frame frame; Pixwin *pw; struct pixrect *pr; Icon icon; /* Create a frame */ frame = window_create(0, FRAME, WIN_HEIGHT, 300, WIN_WIDTH, 300, FRAME_CLOSED, TRUE, 0); /* Set up a 4-color map for the frame */ pw = (Pixwin *)window_get(frame, WIN_PIXWIN); pw_setcmsname(pw, CMSNAME); pw_putcolormap(pw, 0, NCOLORS, rmap, gmap, bmap); /* Build a simple color pixrect for the icon */ pr = mem_create(64, 64, 8); pr_rop(pr, 0, 0, 32, 32, PIX_SRC|PIX_COLOR(0), (struct pixrect *)0, 0, 0); pr_rop(pr, 32, 0, 32, 32, PIX_SRC|PIX_COLOR(1), (struct pixrect *)0, 0, 0); pr_rop(pr, 0, 32, 32, 32, PIX_SRC|PIX_COLOR(2), (struct pixrect *)0, 0, 0); pr_rop(pr, 32, 32, 32, 32, PIX_SRC|PIX_COLOR(3), (struct pixrect *)0, 0, 0); /* Build an icon with the color pixrect, and install it in the frame */ icon = icon_create(ICON_IMAGE, pr, 0); window_set(frame, FRAME_ICON, icon, 0); window_main_loop(frame); exit(0); } ________________________________ John Polstra (jdp@polstra.uucp) ------------------------------ Date: Sun, 30 Oct 88 10:51:20 PST From: Dave Yost <grand!day@uunet.uu.net> Subject: here's a program to trim the wtmp file Phone: +1 213-650-1089 #!/bin/sh # trim /usr/adm/wtmp file # if size is over 24K, then trim to around 16K wc wtmp | awk ' { SIZ = 36 # size of a wtmp record LOWAT = 16 * 1024 ; LOWAT -= LOWAT % 1 HIWAT = 24 * 1024 ; HIWAT -= LOWAT % 1 nbytes = $3 if (nbytes > HIWAT) { skip = nbytes - LOWAT skip -= skip % SIZ skip /= SIZ printf "cd /usr/adm\n" printf "dd if=wtmp of=wtmp.new bs=%d skip=%d\n", SIZ, skip printf "dd if=wtmp of=wtmp.old bs=%d count=%d\n", SIZ, skip printf "mv wtmp.new wtmp\n" } else { printf "echo '"'"'wtmp size (%d) not above high water mark (%d)'"'"'\n", \ nbytes, HIWAT } }' | sh -x exit 1 Oct 1988 Dave Yost, Grand Software, Inc. 213-650-1089 {uunet,attmail}!grand!dyost or dyost@grand.COM Permission granted to all to copy and use. ------------------------------ Date: 31 Oct 88 05:50:05 GMT From: mkhaw@teknowledge-vaxc.arpa (Mike Khaw) Subject: Re: Remove booting a Sun-3/280 -- failure! Reference: v6n279 > problem on several occasions. What it comes down to is: the procedure > documented in the manual for booting tapeless workstations DOES NOT WORK > (at least, not on a class A or B network; Sun seems to think the whole > world is class C; ever try to run setup(8) with class B addressing?) The We found that you can fake out setup(8) on our class B net. For example, if the tapeless diskful client is really 128.136.10.128, just tell setup that its host address is 128.136.2688 (2688 = 256*10 + 128). It's worked from SunOS 3.2 through 3.5 Mike Khaw -- internet: mkhaw@teknowledge.arpa uucp: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge.arpa hardcopy: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303 ------------------------------ Date: 28 Oct 88 18:15:14 GMT From: Aled Morris <mcvax!gould.doc.imperial.ac.uk!awm@uunet.uu.net> Subject: SCSI disk format? Can anyone explain, in simple terms, what "alternate cylinders" are? Why are there two of these, on average? why can't I have none? If my SCSI disk has N cylinders, the format program restricts me to using N-2 of these for data. Where do the other two go? Please MAIL replies, I will summarise (if there is anything worth summarizing!). Aled Morris systems programmer mail: awm@doc.ic.ac.uk | Department of Computing uucp: ..!ukc!icdoc!awm | Imperial College talk: 01-589-5111x5085 | 180 Queens Gate, London SW7 2BZ ------------------------------ Date: 28 Oct 88 17:47:52 GMT From: Frode Odegard <mcvax!m2cs.naggum.se!frode@uunet.uu.net> Subject: Leonardo - illustration package for Sun-3? Qubix sent me a brochure presenting their illustration package (called "Leonardo") for the Sun-3. I was wondering if anyone has really checked it out. The brochure doesn't mention an email address. Does Qubix have one? - Frode ------------------------------ Date: Mon, 31 Oct 88 02:33:03-1000 From: Richard Foulk <richard@uhccux.uhcc.hawaii.edu> Subject: Re: Wren IV system hang > From: blia.UUCP!blipyramid!mike@cgl.ucsf.edu (Mike Ubell) > > We installed a CDC Wren IV 300meg drive on a 3/60 running SUN Os3.4. > Using the formatting information provided in sun-spots seemed to work but > when the system is used it will hang after about 5 - 15 minutes. We recently had a problem with a Miniscribe drive that we purchased from Parity and were told by them that the 3.x formatter has a bug that keeps it from working correctly with Wren's and Miniscribes. They recommended that we use the formatter that comes with 4.0. Due to more severe problems I wasn't able to try it out. Apparently Parity ships all of its drives pre-formatted, and doesn't normally say anything about the possible problem. Richard Foulk richard@uhccux.uhcc.hawaii.edu ------------------------------ Date: Mon, 31 Oct 88 08:09:53 EST From: Chuck Musciano <chuck@trantor.harris-atd.com> Subject: Opportunity for SEX at the SUG Now that I have your attention... Of course, I am referring to a possible Software EXchange at the Sun User's Group meeting in Miami, December 4-7. I will be there, and I assume many other Sun-Spots readers will also. It occured to me that this is a perfect opportunity to obtain and exchange software. If everyone brought a tape, with anything they had that was interesting, you could contribute your stuff, and leave with everyone else's. The major hurdle to this problem is finding a machine upon which to store the incoming stuff, and let people copy off what they want. Perhaps some vendor could graciously allow the use of a machine. I should point out that lots of people would be coming to your booth, and that this selfless act would be viewed as a positive, community-minded thing. In addition, vendors could make demo copies of their products available, which is always a good marketing idea. I am willing to coordinate this project, just to see what happens. I would like to hear from people who think this is a good or bad idea, as well as people who are willing to bring stuff, and especially vendors who could offer part time use of a machine. This could be the start of something big, or maybe I'm just talking through my hat. Either way, I'd be interested in people's reactions. And just to be safe, bring a tape to SUG! Chuck Musciano Advanced Technology Department Harris Corporation (407) 727-6131 ARPA: chuck@trantor.harris-atd.com ------------------------------ Date: Mon, 31 Oct 88 03:11:38-1000 From: Richard Foulk <richard@uhccux.uhcc.hawaii.edu> Subject: Re: SunOS Source > From: chrisw@sun.com (Chris Wellens) > ... > As with all UNIX > licensees, Sun is obligated to follow the rules and regulations set forth > in our agreement with AT&T. This precludes our providing automatic source > updates, as a given source product may require proof of an updated AT&T > Source License Agreement. How about a reasonable update price? Richard ------------------------------ Date: Mon, 31 Oct 88 10:04:47 CST From: hsc@vuse.vanderbilt.edu (Hsuan Chang) Subject: shell problem under SunOS 4.0 Hi. While this might be an old problem, it is certainly annoying to its user: SOMETIMES, when I select the "shelltool" entry of the top SunView menu, all I get is a series of USELESS shell windows, which would say to any single key stroke "Use 'exit' to leave csh"!!! Has anybody out in the NetLand seen this? Does anyone have a cure to it? hsc@vuse.vanderbilt.edu !uunet!vuse!hsc ------------------------------ Date: Mon, 31 Oct 88 11:20:39 EST From: larryd%bnrmtl.UUCP@larry.mcrcim.mcgill.edu (Larry Dunkelman) Subject: Video backup? We are planning to use a video backup for our Sun 3/280 with 15 3/60 clients. Currently we have 1 800 Mbyte disk and plan to add another in a few months. We perform level 5 dumps each night (between 2-5 Meg). Has anyone any information regarding suppliers of video backup systems ? Has anyone any advice (should we use something else?) Larry Dunkelman Bell-Northern Research (Montreal) bnrmtl!larryd@larry.mcrcim.mcgill.edu ------------------------------ Date: Mon, 31 Oct 88 10:12:10 PST From: greg%hobbes@lbl.gov (Gregory J. Ward) Subject: Re: Algebraic Calctool with Trig Functions I have written a number of programs, including a desk calculator, that evaluate algebraic expressions. In addition to the standard library of math functions, the language allows user-defined recursive functions, and I have files for roots of functions, integration, etc. I haven't written a program specifically for suntools, but calc can be run in a subwindow if you like. Best of all, there are programs for performing calculations and conversions on files, such as output from other programs. -Greg Ward GJWard@lbl.gov P.S. Source to follow. [[ Just what I need: another program called "calc"! --wnl ]] ------------------------------ Date: 31 Oct 1988 12:35 EST From: nvuxr!cmc3@bellcore.bellcore.com (c.m.chase) Subject: Bug in Gammontool? I recently had a strange thing happen to me during a game on gammontool (BTW, I have a 4/110 with OS 4.0). I had fallen behind in the game and considered my only hope to avoid a gammon was to leave a piece in the computer's home board as it was bearing off. Well I was very fortunate, and the computer left a blot. It was the computer's last piece. I was again fortunate in that I hit the blot, and filled in all the points on my home board. After bearing off two of my own pieces, I left a blot in my own home board figuring I might as well play aggresively since I was down 13 peices to 1. I figured I had nothing to lose. After all, I was probably going to lose the game, and the computer could no longer gammon me, right? Wrong. The computer hit my blot. Then on the computer's next turn, the computer rolled double 6's (Hmmmm.) and not only brought the last piece all the way around the board and beared it off, but hit me in the process! The computer announced that I had been backgammoned, (after all I had a piece on the bar). Is this correct? Can I be backgammoned even if I have born pieces off? Craig Chase [[ I believe so. I still think that gammontool cheats, even more so after this message. --wnl ]] ------------------------------ Date: Mon, 31 Oct 88 13:46:09 est From: kensmith@cs.buffalo.edu (Ken Smith) Subject: SDST110 config file in sun4 distribution doesn't work The SDST110 configuration file distributed on the sun4 tapes doesn't work. A lot of functions dealing with the SCSI devices are undefined when you try to make the kernel. Adding the "sc" controller to the config file fixes up the problem. Looks like the object files for the "sw" controller just call functions that are really in the object files for the "sc" controller which aren't properly included by the config. Ken Smith internet: kensmith@cs.buffalo.edu bitnet: kensmith@sunybcs.BITNET uucp: ..!{ames,boulder,decvax,rutgers}!sunybcs!kensmith ------------------------------ Date: Mon, 31 Oct 88 10:43:30 PST From: sunkist!whitney!pinos!nadim@sun.com (Nadim Tohme ) Subject: ALM Problems It is a fact that sun evolved as a leader in the workstation world. However it looks that serial I/O has been a secondary issue[]. Has anybody noticed/solved the problems regarding system halting due to extensive use of the ALMs? The system being used is a sun3/280 running 4.0 with 2 ALMs. 6 different unix machines are continuously "uucp'ing" files via modem at 2400 baud on ttyh[1..6]. We are currently at the 3rd ALM patch (5 Oct 1988) and still having problems... The final say from Sun Tech was that this is a cabling/hardware problem.. (someone else's fault)... An adb on the core file gives the following : _panic(0xf09d0de) + 44 _v_handler() + 40 _v_handler() + 40 _v_handler(?) _zsa_xsint(0xf0b5010) + 40 _zsa_rxint(0xf0b5010) + 3c zsv002(0xf0bec5e) + 10 _mcpintr() + 15e _Xmcpintr0(?) _sleep(0xf15a588,0x11c) + 22 _strwaitq(0xf0b1478,0xa,0x3) + 9a _strread(0xf23b3f0,0xffff976c) + 25c _spec_rdwr() + e2 _vno_rw() + 82 _rwuio(0xffff976c,0x0) + e2 _read(0xffff9a18) + 2a _syscall(0x3) + 15a syscont() + 6 Nadim Tohme IMA (714) 635-8100 sun!sunkist!whitney!nadim ------------------------------ Date: 31 Oct 88 19:32:10 GMT From: bickel@nprdc.arpa (Steven Bickel) Subject: Re: Photographic output devices connected to Sun RGB Reference: v6n265 We have several phtographic output devices from the Matrix corporation. I am not entirely familiar with them but my understanding of the devices is that they do not use RGB input. They simply image file of formats specific formats and dump them to color film. Matrix may have what you need? Matrix (P.E.I) Inc. West Royalty Industrial Park. Charlottetown, P.E.I Canada C1E1BQ (902) 566-3443 FAX No. (902) 566-3956 Hope this helps. Steve Bickel bickel@nprdc.arpa Systems Engineering Assoc. (619) 553-9306 Naval Personel R & D Center. ------------------------------ Date: Mon, 31 Oct 88 12:32:44 PST From: Jim Frew <frew%huevos@hub.ucsb.edu> Subject: floppies in shoeboxes? We need some way to read and write MS-DOS 5-1/4" floppy disks on our Sun network. I know that Sun markets an add-in PC board with an optional floppy disk subsystem. Are there any cheaper alternatives, especially ones that take advantage of those nice built-in SCSI ports on our 3/50s? For example, has anyone out their successfully gotten one or more floppy drives and their controller to work in a Sun shoebox? I would be happy to send a summary of any responses to sun-spots. Thanks. James Frew CSL/CRSEO, UCSB, Santa Barbara, CA 93106 +1 805 961 8413 frew@hub.ucsb.EDU ucbvax!ucsbcsl!frew frew@ucsbuxa.BITNET ------------------------------ Date: Mon, 31 Oct 88 10:17:43 EST From: hsi!stepstone.com!aad@uunet.uu.net (Anthony A. Datri) Subject: Re: sun sources > 4.0 System V Release 3.1 If this is true, why do we still get ancient uucp? ------------------------------ End of SUN-Spots Digest ***********************