Tim McNamara | 2 Feb 00:51 2004
Picon

New 1.6.1 install notes; also pkg_add problem with 1.6.1

I installed 1.6.1 on a Quadra 700 yesterday- quite an ordeal due to the 
Installer bug (1.1h) with what are now "small" hard drives larger than 
1 GB but smaller than 10GB.  This is the "Error on SCSIRead(), #5" 
problem, occurring in this case on a 4.3GB IBM drive.  Maximizing the 
memory to the Installer made no difference.  Fortunately the Installer 
would write the kernel into the root partition and enough of the 
base.tgz and etc.tgz files to boot into single user mode and finish if 
from there.

On boot I get "warning: no /dev/console" and then "mfs /dev" or 
something like that; boot seems to hang for about 2 or 3 minutes at 
this point and then proceeds.  Building devices with the Installer or 
from within /dev doesn't fix this.  It also hung once on boot at "adb0" 
but that hasn't been repeated.

But it works and that's the main thing!  I used 1.4.2 on a IIci, 145B 
and this Quadra several years ago; from what I've seen so far, 1.6.1 
seems to be improved.  Seems faster, seems to handle DSL traffic over 
the sn0 better.  Very nice work and renders an obsolete machine useful 
again!

I am having a problem installing software to make it actually useful, 
though.  I want to install apache, Emacs, a browser and a few other 
applications.  Some of that might reasonably be a part of the standard 
distribution someday.  pkg_add fails as documented below; there was 
also a problem I was able to solve; the documentation says to do:

"% PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/Packages/1.6.1/mack68k/All
% export PKG_PATH"

(Continue reading)

Frederick Bruckman | 2 Feb 02:02 2004
Picon

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

On Sun, 1 Feb 2004, Tim McNamara wrote:

> "% PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/Packages/1.6.1/mack68k/All
> % export PKG_PATH"
>
> with the results that there is "no such command."
>
> "setenv
> PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6.1/mac68k/All"
> worked temporarily.

Heh. You are using "csh". The export thing only works with "/bin/sh"
and "/bin/ksh". "/bin/csh" isn't a very good shell for interactive
use, by the way. If you really prefer C-style shells to Bourne shells,
consider installing the "tcsh" package.

> Now, I can ftp to the directory and download packages manually, but I
> cannot do so with pkg_add.  For example:
>
> # pkg_add -v emacs

Not sure, but...

> Any advice on what I have got miscued in my setup would be appreciated.
>   I don't know what address 2001:4f8:4:7:2e0:81ff:fe21:6563 is, it has
> nothing to do with any of my machines as far as I can tell.

That's the IPv6 address of ftp.netbsd.org. Try substituting
"ftp4.netbsd.org" for "ftp.netbsd.org, and see what difference
that makes. (I believe that is no longer an issue in 1.6.2.)
(Continue reading)

Tim McNamara | 2 Feb 02:14 2004
Picon

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

On Feb 1, 2004, at 7:02 PM, Frederick Bruckman wrote:

> On Sun, 1 Feb 2004, Tim McNamara wrote:
>
>> "% PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/Packages/1.6.1/mack68k/All
>> % export PKG_PATH"
>>
>> with the results that there is "no such command."
>>
>> "setenv
>> PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6.1/mac68k/All"
>> worked temporarily.
>
> Heh. You are using "csh".

Seems to be the default, I didn't specify it.

> The export thing only works with "/bin/sh"
> and "/bin/ksh". "/bin/csh" isn't a very good shell for interactive
> use, by the way. If you really prefer C-style shells to Bourne shells,
> consider installing the "tcsh" package.

Actually, I prefer bash but it's not available by default; 1.4.2 
wouldn't even let me change to bash after I installed it, complaining 
that it was a "non-standard shell."  I use OS X on my main computer and 
tcsh was the default there originally.  'Twas OK but I still prefer 
bash.

>> Now, I can ftp to the directory and download packages manually, but I
>> cannot do so with pkg_add.  For example:
(Continue reading)

James Bilotto | 2 Feb 02:23 2004

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

On Sun, Feb 01, 2004 at 07:14:28PM -0600, Tim McNamara wrote:
> Actually, I prefer bash but it's not available by default; 1.4.2 
> wouldn't even let me change to bash after I installed it, complaining 
> that it was a "non-standard shell."  I use OS X on my main computer and 
> tcsh was the default there originally.  'Twas OK but I still prefer 
> bash.
> 

you have to add something like this to /etc/shells

/usr/pkg/bin/bash

Kazuyuki Inanaga | 3 Feb 15:32 2004
Picon

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

Hi,

At 7:14 PM -0600 04.2.1, Tim McNamara wrote:
>
>Well, it still failed just without the line about the IPv6 address.
>But that's progress- thanks!

I'm using csh on 1.6.1. In ~/.cshrc;

setenv  PKG_PATH ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6.1/mac68k/All
(need not "=")

 {1} su
 {1} pkg_add -v emacs

>parsing: (PKG_PATH)
>path: (PKG_PATH)
>increasing RLIMIT_NOFILE to max. 956 open files
>trying PKG_PATH (PKG_PATH)
>Spawning FTP coprocess
>ftp -detv (PKG_PATH)
>ftp: connect to address 2001:4f8:4:7:2e0:81ff:fe21:6563: No route to host
>
>ftp> prompt off
>
>ftp> nlist emacs /var/tmp/pkg.00191a
>pkg_add: nlist failed!
>Reusing FDs 4/5 for communication to FTP coprocess
>
>ftp> nlist emacs.tbz /var/tmp/pkg.00191b
(Continue reading)

Bruce ONeel | 2 Feb 17:22 2004
Picon

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

Tim McNamara <timmcn <at> bitstream.net> wrote:
> Date: Sun, 1 Feb 2004 17:51:29 -0600
> From: Tim McNamara <timmcn <at> bitstream.net>
> Subject: New 1.6.1 install notes; also pkg_add problem with 1.6.1
> To: port-mac68k <at> NetBSD.org
> 
> I installed 1.6.1 on a Quadra 700 yesterday- quite an ordeal due to the 
> Installer bug (1.1h) with what are now "small" hard drives larger than 
> 1 GB but smaller than 10GB.  This is the "Error on SCSIRead(), #5" 
> problem, occurring in this case on a 4.3GB IBM drive.  Maximizing the 
> memory to the Installer made no difference.  Fortunately the Installer 
> would write the kernel into the root partition and enough of the 
> base.tgz and etc.tgz files to boot into single user mode and finish if 
> from there.
> 
> On boot I get "warning: no /dev/console" and then "mfs /dev" or 
> something like that; boot seems to hang for about 2 or 3 minutes at 
> this point and then proceeds.  Building devices with the Installer or 
> from within /dev doesn't fix this.  It also hung once on boot at "adb0" 
> but that hasn't been repeated.

Hi,

I think what you can do is the following.

Boot into the installer.

get a shell
mount the hard disk 
mv /dev /dev.old
(Continue reading)

Bruce ONeel | 3 Feb 16:16 2004
Picon

Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1

Sigh, the /dev below really needs to be something like 
/mnt/dev.

cheers

bruce

Bruce ONeel <edoneel <at> sdf.lonestar.org> wrote:
> Date: Mon, 02 Feb 2004 17:22:54 +0100
> From: Bruce ONeel <edoneel <at> sdf.lonestar.org>
> Subject: Re: New 1.6.1 install notes; also pkg_add problem with 1.6.1
> To: Tim McNamara <timmcn <at> bitstream.net>
> Cc: port-mac68k <at> NetBSD.org
> 
> Tim McNamara <timmcn <at> bitstream.net> wrote:
> > Date: Sun, 1 Feb 2004 17:51:29 -0600
> > From: Tim McNamara <timmcn <at> bitstream.net>
> > Subject: New 1.6.1 install notes; also pkg_add problem with 1.6.1
> > To: port-mac68k <at> NetBSD.org
> > 
> > I installed 1.6.1 on a Quadra 700 yesterday- quite an ordeal due to the 
> > Installer bug (1.1h) with what are now "small" hard drives larger than 
> > 1 GB but smaller than 10GB.  This is the "Error on SCSIRead(), #5" 
> > problem, occurring in this case on a 4.3GB IBM drive.  Maximizing the 
> > memory to the Installer made no difference.  Fortunately the Installer 
> > would write the kernel into the root partition and enough of the 
> > base.tgz and etc.tgz files to boot into single user mode and finish if 
> > from there.
> > 
> > On boot I get "warning: no /dev/console" and then "mfs /dev" or 
(Continue reading)

David Rogers | 3 Feb 23:18 2004
Picon
Picon

nubus_scan_slot usage

Hi all, I'm not sure but I think that Allen might be the best to answer 
this question.  I was wondering if there are any examples of how to use 
the results from nubus_scan_slot in nubus.h.  Thanks a bunch!

dave

Tim McNamara | 4 Feb 02:06 2004
Picon

Dumb error locking me out of root

I managed to screw up root already, doing

chsh -s usr/pkg/bin/bash root

which of course doesn't exist (no leading "/").  When I log in to root 
or su to root, I am immediately sent back to "login:"  or back to my 
user prompt since root doesn't have a valid shell.

Do I have to reboot in single user mode to fix this, or is there a way 
to correct this within NetBSD as it is currently running?

Tom Jernigan | 4 Feb 04:39 2004
Picon

Re: Dumb error locking me out of root

You can try su -m, which uses the shell you're in. I assume it'll 
work even if the root shell is screwed up.
Tom

At 7:06 PM -0600 2/3/04, Tim McNamara wrote:
>I managed to screw up root already, doing
>
>chsh -s usr/pkg/bin/bash root
>
>which of course doesn't exist (no leading "/").  When I log in to 
>root or su to root, I am immediately sent back to "login:"  or back 
>to my user prompt since root doesn't have a valid shell.
>
>Do I have to reboot in single user mode to fix this, or is there a 
>way to correct this within NetBSD as it is currently running?

--

-- 
Tom Jernigan, Oak Ridge National Laboratory
Presently at General Atomics, San Diego, California (858) 455-4122


Gmane