Re: who do you install freebsd without sysinstall?

2006-08-31 Thread Ruslan Ermilov
[ added freebsd-questios@ ]

On Thu, Aug 31, 2006 at 02:08:59AM +0200, Thomas Vogt wrote:
 Hello
 
 In this emails 
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=244762+0+current/cvs-src you 
 wrote that you don't install freebsd with sysinstall. May I ask you how you 
 do this? Maybe in some way like this: 
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/?
 
 I'm just curious.
 
Plenty of options, depending on the available environment and
needs.

1) Add a spare disk to an existing FreeBSD box, and populate
   it using installworld/installkernel/distribution targets
   and specifying DESTDIR pointing to a mounted spare disk.

2) Boot from live-system on CD-ROM, prepare and partition the
   disk(s), install distributions manually through install.sh
   scripts.

3) Boot from live-system on CD-ROM, prepare and partition the
   disk(s), CVSup, build/install from sources.

4) Boot in a PXE/TFTP/NFS diskless environment (details are
   in the Handbook), install distributions using a shell
   script as above.  Distributions may come from either
   remote CD-ROM media, or be prepared by make release
   and made available over NFS to diskless clients.
   A modification of this approach includes a mass deployment
   option that involves writing (relatively simple) local
   installation scripts that automate the tasks.

Many other options...


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgpE96BCik3vq.pgp
Description: PGP signature


Re: who do you install freebsd without sysinstall?

2006-08-31 Thread backyard


--- Ruslan Ermilov [EMAIL PROTECTED] wrote:

 [ added freebsd-questios@ ]
 
 On Thu, Aug 31, 2006 at 02:08:59AM +0200, Thomas
 Vogt wrote:
  Hello
  
  In this emails 
 

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=244762+0+current/cvs-src
 you 
  wrote that you don't install freebsd with
 sysinstall. May I ask you how you 
  do this? Maybe in some way like this: 
 

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/?
  
  I'm just curious.
  
 Plenty of options, depending on the available
 environment and
 needs.
 
 1) Add a spare disk to an existing FreeBSD box, and
 populate
it using installworld/installkernel/distribution
 targets
and specifying DESTDIR pointing to a mounted
 spare disk.
 
 2) Boot from live-system on CD-ROM, prepare and
 partition the
disk(s), install distributions manually through
 install.sh
scripts.
 
 3) Boot from live-system on CD-ROM, prepare and
 partition the
disk(s), CVSup, build/install from sources.
 
 4) Boot in a PXE/TFTP/NFS diskless environment
 (details are
in the Handbook), install distributions using a
 shell
script as above.  Distributions may come from
 either
remote CD-ROM media, or be prepared by make
 release
and made available over NFS to diskless clients.
A modification of this approach includes a mass
 deployment
option that involves writing (relatively simple)
 local
installation scripts that automate the tasks.
 
 Many other options...
 
 
 Cheers,
 -- 
 Ruslan Ermilov
 [EMAIL PROTECTED]
 FreeBSD committer
 

Out of curiosity...

So If I made a custom boot cd I could boot a dead box,
setup the drives and slices, CVSUP the system I want
to build, tweak the build environment for the proper
temporary build locations and build a system from
source and install that system to the now live box,
boot it and be done? I've always wondered about this
because I always remake the system I've just installed
because I'm usually dealing with deprecated hardware
and all the architecture tweaks I could use help... If
that run on is confusing basically to setup FreeBSD
like a gentoo install from scratch with a system CD.

also along these lines how do I make the system allow
me to seed the entropy engine? Usually after an
install it asks to fill in a screen full of junk, but
with a custom install it doesn't do this for me, at
least not the last time I tried. Just curious,
especially if I attempt the above procedure.

-brian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: who do you install freebsd without sysinstall?

2006-08-31 Thread Thomas
Am Donnerstag, den 31.08.2006, 07:53 -0700 schrieb backyard:
 
 --- Ruslan Ermilov [EMAIL PROTECTED] wrote:
--snipp---

 Out of curiosity...
 also along these lines how do I make the system allow
 me to seed the entropy engine? Usually after an
 install it asks to fill in a screen full of junk, but
 with a custom install it doesn't do this for me, at
 least not the last time I tried. Just curious,
 especially if I attempt the above procedure.

I use the following in my PXE installation:
echo kern.random.sys.seeded = 1  /etc/sysctl.conf 

in my post_install.sh config.

Cheers
Thomas

PS: Ignore the subject it was late. s,who,how

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: who do you install freebsd without sysinstall?

2006-08-31 Thread Ruslan Ermilov
On Thu, Aug 31, 2006 at 07:53:28AM -0700, backyard wrote:
 Out of curiosity...
 
 So If I made a custom boot cd I could boot a dead box,
 setup the drives and slices, CVSUP the system I want
 to build, tweak the build environment for the proper
 temporary build locations and build a system from
 source and install that system to the now live box,
 boot it and be done?
 
Basically yes.  When booting from CD though, I'll have
to mdconfig(8) and re-mount at least /tmp, maybe /var
as well.

 also along these lines how do I make the system allow
 me to seed the entropy engine? Usually after an
 install it asks to fill in a screen full of junk, but
 with a custom install it doesn't do this for me, at
 least not the last time I tried. Just curious,
 especially if I attempt the above procedure.
 
Well, it does this only if the below conditions are
met:

1) You have enabled sshd(8) in sysinstall(8), so it's
   enabled in /etc/rc.conf.

2) This is the first boot, /etc/rc.d/sshd needs to
   generate new SSH keys but random(4) hasn't been
   seeded yet.   (random(4) is seeded by the /random
   and /var/db/random/* files.)

So, if you did a custom install and then rebooted for
the first time, but did not yet enable sshd(8), the
cron(8) will save some entropy, so the time you need
it to generate SSH keys there will already be some
entropy available.

But if you absolutely need to reseed manually, boot
into single-user mode, and type

rm /entropy /var/db/entropy/*

Then proceed with normal booting.  If sshd(8) is
enabled, it will ask you to enter some entropy.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgpqXXoIcTwku.pgp
Description: PGP signature


Re: who do you install freebsd without sysinstall?

2006-08-31 Thread backyard


--- Ruslan Ermilov [EMAIL PROTECTED] wrote:

 On Thu, Aug 31, 2006 at 07:53:28AM -0700, backyard
 wrote:
  Out of curiosity...
  
  So If I made a custom boot cd I could boot a dead
 box,
  setup the drives and slices, CVSUP the system I
 want
  to build, tweak the build environment for the
 proper
  temporary build locations and build a system from
  source and install that system to the now live
 box,
  boot it and be done?
  
 Basically yes.  When booting from CD though, I'll
 have
 to mdconfig(8) and re-mount at least /tmp, maybe
 /var
 as well.
 
  also along these lines how do I make the system
 allow
  me to seed the entropy engine? Usually after an
  install it asks to fill in a screen full of junk,
 but
  with a custom install it doesn't do this for me,
 at
  least not the last time I tried. Just curious,
  especially if I attempt the above procedure.
  
 Well, it does this only if the below conditions are
 met:
 
 1) You have enabled sshd(8) in sysinstall(8), so
 it's
enabled in /etc/rc.conf.
 
 2) This is the first boot, /etc/rc.d/sshd needs to
generate new SSH keys but random(4) hasn't been
seeded yet.   (random(4) is seeded by the /random
and /var/db/random/* files.)
 
 So, if you did a custom install and then rebooted
 for
 the first time, but did not yet enable sshd(8), the
 cron(8) will save some entropy, so the time you need
 it to generate SSH keys there will already be some
 entropy available.
 
 But if you absolutely need to reseed manually, boot
 into single-user mode, and type
 
   rm /entropy /var/db/entropy/*
 
 Then proceed with normal booting.  If sshd(8) is
 enabled, it will ask you to enter some entropy.
 
 
 Cheers,
 -- 
 Ruslan Ermilov
 [EMAIL PROTECTED]
 FreeBSD committer
 

ok, I figured it was something simple enough like
that...

how does cron save entropy??? I've noticed saving
entropy files at shutdown but have always wondered
what it is using. or does it just read from
/dev/random?

-brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: who do you install freebsd without sysinstall?

2006-08-31 Thread Ruslan Ermilov
On Thu, Aug 31, 2006 at 08:24:45AM -0700, backyard wrote:
 how does cron save entropy??? I've noticed saving
 entropy files at shutdown but have always wondered
 what it is using. or does it just read from
 /dev/random?
 
# Save some entropy so that /dev/random can re-seed on boot.
*/11*   *   *   *   operator /usr/libexec/save-entropy

The latter saves some amount of /dev/random for further
seeding.  /entropy is saved by /etc/rc.d/random, when
it stops.

random_stop()
{
# Write some entropy so when the machine reboots /dev/random
# can be reseeded
#

I think two mechanisms exist because a solution involving
cron(8) works better, but cron(8) is not guaranteed to be
up and running (untypical but anyway), so additionally an
entropy is also saved once on shutdown.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgp9wxz9np6t0.pgp
Description: PGP signature