Re: howto for 3.4-STABLE - 4.0-CURRENT?

2000-03-08 Thread Adriel Ickler

Comments: I wanna share my results for those who want to do this via
remote.

I slightly modified the procedure below for upgrading a box several
hundred miles away, where single user mode means a long distance phone
call.

cvsup to current
make buildworld
make buildkernel
make installkernel
- change - I just rebooted normally, the network came up fine, if you
  have any special kernel needs, make sure you have di lines in
/boot/kernel.conf (i.e. your system hangs when trying to detect a
device) at this point you are very safe, Its just a new kernel, if it
doesnt work, just load from the old one and give up or tweak, or
whatever.
make -DNOINFO installworld
make installworld
ok, here is where I discovered something nobody told me about.
4.0 moved me from DES to MD5.  the effect was that none of the passwords
worked. luckily I was logged in as root already, and only had 4 accts, I
just ran the passwd command and reset them.  if its a nightmare to move
your accounts, and/or you want to keep DES, I have been told that adding
the line "auth_default  =   des" in /etc/auth.conf will keep you on
DES.
(I didnt read the dev changes till after I did this, so it would prob be
better to do it here.)
reboot
now after the reboot, I had a weird error that nobody has mentioned as
far as I can see.  Whenever I tried to make in /usr/ports I would get an
error on two libraries:
 /usr/libexec/ld-elf.so.1, /usr/lib/libm.so.2

after that everything was pretty sane, little cleanups, but nothing
really scary.

I dont know if I recommend this or not, but I hope anyone who tries it
will learn from my experience and have a smoother ride ;)

so, first solution I can think of is, copy the files from an existing
current box".  /usr/libexec/ld-elf.so.1 wouldnt let me overwrite it,
even as root, but /usr/lib/libm.so.2 did, amazingly enough it only took
the libm replacement.

Quoting Eugene M. Kim ([EMAIL PROTECTED]):
 On Thu, 10 Feb 2000, John Baldwin wrote:
 
 | You need a -current kernel for installworld to work.  In fact,
 | if you aren't running a -current kernel installworld will blow
 | up on your machine.  Try this instead:
 | 
 | - cvsup -current
 | - make buildworld
 | - make buildkernel
 | - make installkernel
 
 - backup /dev to /dev.orig
 - mkdir /dev
 - copy /usr/src/etc/MAKEDEV* into /dev 
 - remake all devices in /dev (don't forget to make the disk slice
 entries separately)
 
 | - reboot into single user mode
 | - make -DNOINFO installworld
 | - make installworld
 | - merge over /etc changes, etc.
 | - reboot
 
 -- 
 Eugene M. Kim [EMAIL PROTECTED]
 
 "Is your music unpopular?  Make it popular; make music
 which people like, or make people who like your music."
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message

-- 

Adriel Ickler
Network Administrator   -  [EMAIL PROTECTED]  
Self Trading Securities -  Voice:   512-263-2769
www.selftrading.com -  Fax: 512-263-2141



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: howto for 3.4-STABLE - 4.0-CURRENT?

2000-03-08 Thread Kris Kennaway

On Wed, 8 Mar 2000, Adriel Ickler wrote:

 cvsup to current
 make buildworld
 make buildkernel
 make installkernel
 - change - I just rebooted normally, the network came up fine, if you
   have any special kernel needs, make sure you have di lines in

This may screw you because some device nodes (e.g. ATA drives) have
changed from 3.x to 4.x. You really need to mergemaster and re-MAKEDEV
before rebooting, which requires you to install mknod as described in
UPDATING. You should also do the rest of the upgrade in single-user mode
(e.g. I forgot and tried to boot multi-user, and the system paniced at
boot trying to load the linux KLD from /etc/rc.).

 ok, here is where I discovered something nobody told me about.
 4.0 moved me from DES to MD5.  the effect was that none of the passwords
 worked.

This is because you presumably didn't install the crypto sources and/or
build them.

 luckily I was logged in as root already, and only had 4 accts, I
 just ran the passwd command and reset them.  if its a nightmare to move
 your accounts, and/or you want to keep DES, I have been told that adding
 the line "auth_default  =   des" in /etc/auth.conf will keep you on
 DES.

This won't do anything.

Kris


In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: howto for 3.4-STABLE - 4.0-CURRENT?

2000-02-11 Thread John Baldwin


On 11-Feb-00 Eugene M. Kim wrote:
 On Thu, 10 Feb 2000, John Baldwin wrote:
 
| You need a -current kernel for installworld to work.  In fact,
| if you aren't running a -current kernel installworld will blow
| up on your machine.  Try this instead:
| 
| - cvsup -current
| - make buildworld
| - make buildkernel
| - make installkernel
 
 - backup /dev to /dev.orig
 - mkdir /dev
 - copy /usr/src/etc/MAKEDEV* into /dev 
 - remake all devices in /dev (don't forget to make the disk slice
 entries separately)

Oh yeah, oops. :)  My installworld script does that automatically, so
I forgot about that step.

| - reboot into single user mode
| - make -DNOINFO installworld
| - make installworld
| - merge over /etc changes, etc.
| - reboot
 
 -- 
 Eugene M. Kim [EMAIL PROTECTED]
 
 "Is your music unpopular?  Make it popular; make music
 which people like, or make people who like your music."

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: howto for 3.4-STABLE - 4.0-CURRENT?

2000-02-11 Thread Calvin NG

Greetings,

  I'm glad I saw Eugene's admendment first.
  My upgrade from 3.4-Stable to 4.0-Current went
  relatively okay yesterday.  Thanks to both Eugene
  and John.

  I have to add that I need to manually install /sbin/mknod
  first too.  If not, the "sh MAKEDEV all" won't work.
  I just went to src/sbin/mknod/ and did a make install there.

  I have to admit that the upgrade is pretty scary, and it
  involves a long downtime.  Took me almost 5 hours from
  cvsup to the second reboot.  Another 2 to "make world"
  again just to make sure. ( good tip, thanks )

  Now rebuilding XFree86. And possibly a few other apps,
  like libgtop.

Regards,
/calvin
  
lines with : are quotes from John Baldwin's email
: 
: On 11-Feb-00 Eugene M. Kim wrote:
:  On Thu, 10 Feb 2000, John Baldwin wrote:
:  
: | You need a -current kernel for installworld to work.  In fact,
: | if you aren't running a -current kernel installworld will blow
: | up on your machine.  Try this instead:
: | 
: | - cvsup -current
: | - make buildworld
: | - make buildkernel
: | - make installkernel
:  
:  - backup /dev to /dev.orig
:  - mkdir /dev
:  - copy /usr/src/etc/MAKEDEV* into /dev 
:  - remake all devices in /dev (don't forget to make the disk slice
:  entries separately)
: 
: Oh yeah, oops. :)  My installworld script does that automatically, so
: I forgot about that step.
: 
: | - reboot into single user mode
: | - make -DNOINFO installworld
: | - make installworld
: | - merge over /etc changes, etc.
: | - reboot
:  


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: howto for 3.4-STABLE - 4.0-CURRENT?

2000-02-10 Thread John Baldwin


On 10-Feb-00 Jason J. Horton wrote:
 Any advice on upgrading a system from -STABLE to -CURRENT?
 Or would a standard "cvsup, make world, make kernel, reboot"
 do it?

You need a -current kernel for installworld to work.  In fact,
if you aren't running a -current kernel installworld will blow
up on your machine.  Try this instead:

- cvsup -current
- make buildworld
- make buildkernel
- make installkernel
- reboot into single user mode
- make -DNOINFO installworld
- make installworld
- merge over /etc changes, etc.
- reboot

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message