Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!goanna!minyos.xx.rmit.oz.au!s902113 From: s902113@minyos.xx.rmit.oz.au (Luke Mewburn) Newsgroups: comp.unix.bsd Subject: Re: Questions about 386BSD Message-ID: <1992Sep22.222426.24672@minyos.xx.rmit.oz.au> Date: 23 Sep 92 03:24:26 GMT References: <1992Sep22.180926.13496@minyos.xx.rmit.oz.au> Organization: RMIT Computer Centre, Melbourne Australia. Lines: 146 rcskb@minyos.xx.rmit.oz.au (Kendall Bennett) writes: >I have a few questions about 386BSD 0.1: > 1. Swap Space. Does 386BSD automatically set up swap space for you when >you install it, or do you need to install the swap space yourself? >Presently I only have 1 partition on my 120M hard disk, and the swapon -a >command is in the /etc/rc file. From what I gather swapping will not >be active, since there is no swap partition - or does 386BSD swap to a >swap file in the root partition? Can it swap to a swap file or only to >a partition? Only to a partition (hey, this is real VM ok???? none of this swapfile shit like windoze :) When I had OS/2 2.0 running, I didn't like the idea of a swapfile there either (I gave the swapfile it's own partition :) > 2. Weird bugs in csh for 0.1? I have set up a new account for myself >on my system with the login id 'kjb' and no password. When I try to >use this account, the shell dies after a while and either halts with >a core dump or sends me back to the logon prompt. I have custom .cshrc >and .login files, but they are _exactly_ the same as my root ones, and >I have no problems at all when running as root. Other accounts such >as lynne and bill seems to work fine? Apparantly the default BSD (not 386BSD, BSD) Net/2 dist of csh has problems with pathnames with a multiple of 4 chars in them... I don't experience the prob, since I use tcsh - which I recommend you to get. The patch for csh was posted here a few days ago... It's tacked on the end of this post... > 3. Strange ROOT LOGIN messages? I just noticed while I was writing this >message that if I do nothing for a while when logged in as root, I get >wierd messages popping up on the screen > > "Sep 22 18:16:29 jaco login: ROOT LOGIN (root) ON console" >Is this normal or is it a bug? It's normal... Whenever root logs in, this is classified as a certain level of 'notification' for the kernel ('auth' I think). The initial way that 386bsd is configured is to output to /dev/console some of the log messages. Here is the /etc/syslog.conf file which defines this: -- *.err;kern.debug;auth.notice;mail.crit /dev/console *.notice;kern.debug;lpr,auth.info;mail.crit /var/log/messages mail.info /var/log/maillog lpr.info /var/log/lpd-errs *.err root *.notice;auth.debug root *.alert root *.emerg * -- As you can see, any mesg of type auth.notice gets dumped to the console. 2 solns: 1. remove auth.notice from the 1st line 2. change /dev/console to /var/log/console, and put the messages in a file :) Read the manual for syslog and syslogd for more info. > 4. /etc/motd file getting changed? I tried to change the /etc/motd file >but it seems to be reset after a while to the default file. Why is this >and how can you change it? Dunno... > 5. I am thinking of getting a tape drive and possibly a large SCSI >hard disk for my system. What sort of drives are the best to get >(rather general question :-). Well, for SCSI HD's I'd recommend: Conner 360 (CP3360) or 540 (CP3500). Fasted drives we tested for that size. The Quantum 240 is pretty good too. (I have a lot of benchtest data at work that some guy did - on Mac's - but data used a lot of different benchtest techniques... I personally like the 540 - we run A/UX 3.0 on it at work :) >+------------------------------------------+-------------------------------+ >| Kendall Bennett, | Internet: | >| Advanced Computer Graphics Centre, | kjb@godzilla.cgl.citri.edu.au | >| Royal Melbourne Institute of Technology, | rcskb@minyos.xx.rmit.oz.au | >| Victoria, AUSTRALIA. | | >+------------------------------------------+-------------------------------+ >| CoSysop (Bossman), PC Connection Australia: +61 3 688 0909 | >+--------------------------------------------------------------------------+ CSH FIX FOLLOWS... Path: minyos.xx.rmit.oz.au!goanna!munnari.oz.au!spool.mu.edu!caen!uflorida!mosquito.cis.ufl.edu!kml From: kml@mosquito.cis.ufl.edu (Kevin Lahey) Newsgroups: comp.unix.bsd Subject: csh segmentation violation Summary: bug report and fix Message-ID: <37095@uflorida.cis.ufl.edu> Date: 19 Sep 92 22:52:25 GMT Sender: news@uflorida.cis.ufl.edu Organization: Univ. of Florida CIS Dept. Lines: 38 Nntp-Posting-Host: mosquito.cis.ufl.edu I have run into the csh segmentation violation bug, and I was too lazy to install the simple "alloc + 4" bugfix, so I tracked it down. It seems to come about whenever you are in a directory in your account which has a pathname length which is divisable by 4, for instance, /users/kml/g. To test, create such a directory, enter it, and sorta execute alot of commands. Sooner or later, csh will die. The fix is to add one to the space allocated for a string in the dcanon() routine where it normalizes directory names which include the string defined for the environment variable 'HOME'. Have fun, Kevin kml@sware.com [Apologies in advance if I mucked up the context diffs here, but I think you get the idea about the change...] *** /usr/src/bin/csh/dir.c Sat Sep 19 10:05:01 1992 --- /usr/src/bin/csh/dir.orig Sat Sep 19 10:04:46 1992 *************** *** 876,882 **** */ p2 = cp + Strlen(p2); sp = newcp = (Char *) xmalloc((size_t) ! ((cc + Strlen(p2) + 1) * sizeof(Char))); while (*p1) *sp++ = *p1++; while (*p2) --- 876,882 ---- */ p2 = cp + Strlen(p2); sp = newcp = (Char *) xmalloc((size_t) ! ((cc + Strlen(p2)) * sizeof(Char))); while (*p1) *sp++ = *p1++; while (*p2)