Re: new LiveCD instructions for OpenBSD

2006-10-25 Thread ropers

On 25/10/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:

Just an update to this:
Kenny Mann ([EMAIL PROTECTED]) contacted be about
www.openbsd-wiki.org
he built and hosts. For one I'd like to thank him for doing this.


I smell a user-maintained live and annotated HCL (hardware compatibility list).


Secondly I put my instructions there as well:
http://openbsd-wiki.org/index.php/LiveCD

Much easier to read than the old .txt description.


Superb.
Forget John Romero; Andreas Bihlmaier has made me his biatch.  ;o)



Re: new LiveCD instructions for OpenBSD

2006-10-25 Thread Andreas Bihlmaier
Just an update to this:
Kenny Mann ([EMAIL PROTECTED]) contacted be about
www.openbsd-wiki.org
he built and hosts. For one I'd like to thank him for doing this.

Secondly I put my instructions there as well:
http://openbsd-wiki.org/index.php/LiveCD

Much easier to read than the old .txt description.

Regards,
ahb



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Frank
Andreas Bihlmaier wrote:
> On Tue, Oct 24, 2006 at 01:51:45PM +, Ryan McBride wrote:
>> On Tue, Oct 24, 2006 at 02:37:05PM +0200, Andreas Bihlmaier wrote:
>>> On Tue, Oct 24, 2006 at 08:25:52AM +0900, vladas wrote:
 On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
 Is this LiveCD/DVD reliable enough to send in dmesg's from it?
>>> Exuse me, but I don't see a point in posting a dmesg for a livecd, which
>>> by definition is portable. The dmesg depends on the machine I insert it
>>> into.
>> I /believe/ the poster is asking whether it can be used to plug into
>> $RANDOM_MACHINE and mail a dmesg from that machine.  Nice for scoping
>> out potential OpenBSD systems in a shop provided you can get the sales
>> droids to look away long enough for the reboot.
> 
> Of course!
> Actually that was my very first motivation to even build an OpenBSD livecd.
> Wherever I encounter an 'interesting' machine (i386/amd64) I put the
> livecd in to see how good this machine would be supported.
> One thing I noted since my first livecd with 3.7:
> much more machines just work PERFECT (at least by dmesg output), even
> the weird P4s we have at school.
> 
> The problem is that the boot sequence seems to scare some windows users:
> "What are all those messages, you didn't you wrack my PC, did you?" ;)
> 
> Regards,
> ahb
So true, I once used a floppy based linux (I'm sorry posting this on a
OpenBSD mailing list) distribution in media lab at school with the lynx
browser on it.
The librarian kicked me out almost immediately because I was "hacking"
the network...
I was only using a text based browser because of the slow network..

Frank



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Andreas Bihlmaier
On Tue, Oct 24, 2006 at 01:51:45PM +, Ryan McBride wrote:
> On Tue, Oct 24, 2006 at 02:37:05PM +0200, Andreas Bihlmaier wrote:
> > On Tue, Oct 24, 2006 at 08:25:52AM +0900, vladas wrote:
> > > On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
> > > Is this LiveCD/DVD reliable enough to send in dmesg's from it?
> > 
> > Exuse me, but I don't see a point in posting a dmesg for a livecd, which
> > by definition is portable. The dmesg depends on the machine I insert it
> > into.
> 
> I /believe/ the poster is asking whether it can be used to plug into
> $RANDOM_MACHINE and mail a dmesg from that machine.  Nice for scoping
> out potential OpenBSD systems in a shop provided you can get the sales
> droids to look away long enough for the reboot.

Of course!
Actually that was my very first motivation to even build an OpenBSD livecd.
Wherever I encounter an 'interesting' machine (i386/amd64) I put the
livecd in to see how good this machine would be supported.
One thing I noted since my first livecd with 3.7:
much more machines just work PERFECT (at least by dmesg output), even
the weird P4s we have at school.

The problem is that the boot sequence seems to scare some windows users:
"What are all those messages, you didn't you wrack my PC, did you?" ;)

Regards,
ahb



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Girish Venkatachalam
On Tue, Oct 24, 2006 at 04:12:00AM -0400, Nick Guenther wrote:
> On 10/23/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
> >Hello misc@,
> >
> >Quite a few people sent me emails about my earier instructions, I posted
> >here some time ago:
> >http://marc.theaimsgroup.com/?l=openbsd-misc&m=1
> >
> >Now I finally got around to update my instructions on how to create an
> >OpenBSD-based LiveCD/DVD.
> >
> >They are far from perfect, but it works reasonably well (for me).
> >With the instructions you can either create a CD or DVD.
> >I'm too tired to test on amd64 at the moment, but it _should_ work
> >exactly the same (that is one of the reasons I love OpenBSD, no as much
> >pitfalls as in other OS).
> >
> >Also thanks to Stuart Henderson for his recent post about the "new" CD
> >boot method:
> >http://marc.theaimsgroup.com/?l=openbsd-misc&m=115926553800205&w=2


Nick,

I run out of words to thank you. :-)

You probably have no idea how much this is going to help me.

Thanks a million dear friend.

regards,
Girish



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Ryan McBride
On Tue, Oct 24, 2006 at 02:37:05PM +0200, Andreas Bihlmaier wrote:
> On Tue, Oct 24, 2006 at 08:25:52AM +0900, vladas wrote:
> > On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
> > Is this LiveCD/DVD reliable enough to send in dmesg's from it?
> 
> Exuse me, but I don't see a point in posting a dmesg for a livecd, which
> by definition is portable. The dmesg depends on the machine I insert it
> into.

I /believe/ the poster is asking whether it can be used to plug into
$RANDOM_MACHINE and mail a dmesg from that machine.  Nice for scoping
out potential OpenBSD systems in a shop provided you can get the sales
droids to look away long enough for the reboot.



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Andreas Bihlmaier
On Mon, Oct 23, 2006 at 06:39:35PM -0500, Sam Fourman Jr. wrote:
> I have been looking for a OpenBSD Kismet Live DVD with a X Front end,
> I wonder if a person could actually have Kismet  and x on a Live DVD?
> or would it have to be able to write to a Disk?
> 
> 
> Sam Fourman Jr.

You might be able to fit everything on a "normal" 700MB CD, I need a
800MB CD for all my "important" apps, btw. this is all in the
instructions.

You'll need something to save your kismet logs to before shutting down,
of course.
At runtime everything gets written to MFS partitions -> kismet works.

Regards,
ahb



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Andreas Bihlmaier
On Tue, Oct 24, 2006 at 08:25:52AM +0900, vladas wrote:
> On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
> 
> >Now I finally got around to update my instructions on how to create an 
> >OpenBSD-based LiveCD/DVD.
> 
> Is this LiveCD/DVD reliable enough to send in dmesg's from it?

Exuse me, but I don't see a point in posting a dmesg for a livecd, which
by definition is portable. The dmesg depends on the machine I insert it
into.

If the question was: "Does it really work?"
Yes, it does quite well, today I had the chance to test it with 10
different machines, all worked. Slowest was a pIII-500 with 128MB RAM,
top showed 75MB mem usage after booting into X and with several apps
started.

One thing that bothers me is that I can only boot from the first CD
drive, because cd0 is hardcoded in several places, but most of the time
this doesn't matter.

Regards,
ahb



Re: new LiveCD instructions for OpenBSD

2006-10-24 Thread Nick Guenther

On 10/23/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:

Hello misc@,

Quite a few people sent me emails about my earier instructions, I posted
here some time ago:
http://marc.theaimsgroup.com/?l=openbsd-misc&m=1

Now I finally got around to update my instructions on how to create an
OpenBSD-based LiveCD/DVD.

They are far from perfect, but it works reasonably well (for me).
With the instructions you can either create a CD or DVD.
I'm too tired to test on amd64 at the moment, but it _should_ work
exactly the same (that is one of the reasons I love OpenBSD, no as much
pitfalls as in other OS).

Also thanks to Stuart Henderson for his recent post about the "new" CD
boot method:
http://marc.theaimsgroup.com/?l=openbsd-misc&m=115926553800205&w=2


Regards,
ahb

Best viewed using vim: tw=80; syn on; filetype=conf
#--- OpenBSD LiveCD ---#
-># are 'links' to my private documentation, just ignore
[...]

# Burn the image as usuall:
cdrecord -speed=12 -overburn -data livecd.iso   # CD
growisofs -dvd-compat -Z /dev/rcd1c=/home/livecd.iso# DVD
# -> brennen -> cdrecord -> growisofs
#--#




Oh you win forever!! Thank you so much. In 9 days when 4.0 goes up for
download this is the first thing I'm doing.

Thank you!
-Nick



Re: new LiveCD instructions for OpenBSD

2006-10-23 Thread Sam Fourman Jr.

I have been looking for a OpenBSD Kismet Live DVD with a X Front end,
I wonder if a person could actually have Kismet  and x on a Live DVD?
or would it have to be able to write to a Disk?


Sam Fourman Jr.

On 10/23/06, vladas <[EMAIL PROTECTED]> wrote:

On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:

> Now I finally got around to update my instructions on how to create an 
OpenBSD-based LiveCD/DVD.

Is this LiveCD/DVD reliable enough to send in dmesg's from it?




Re: new LiveCD instructions for OpenBSD

2006-10-23 Thread vladas

On 10/24/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:


Now I finally got around to update my instructions on how to create an 
OpenBSD-based LiveCD/DVD.


Is this LiveCD/DVD reliable enough to send in dmesg's from it?



new LiveCD instructions for OpenBSD

2006-10-23 Thread Andreas Bihlmaier
Hello misc@,

Quite a few people sent me emails about my earier instructions, I posted
here some time ago:
http://marc.theaimsgroup.com/?l=openbsd-misc&m=1

Now I finally got around to update my instructions on how to create an
OpenBSD-based LiveCD/DVD.

They are far from perfect, but it works reasonably well (for me).
With the instructions you can either create a CD or DVD.
I'm too tired to test on amd64 at the moment, but it _should_ work
exactly the same (that is one of the reasons I love OpenBSD, no as much
pitfalls as in other OS).

Also thanks to Stuart Henderson for his recent post about the "new" CD
boot method:
http://marc.theaimsgroup.com/?l=openbsd-misc&m=115926553800205&w=2


Regards,
ahb

Best viewed using vim: tw=80; syn on; filetype=conf
#--- OpenBSD LiveCD ---#
-># are 'links' to my private documentation, just ignore

# Since there isn't an official OpenBSD Live CD/DVD we will create one.
# We try to stick to the 'default system' as far as possible, this makes
# maintenance much easier.

# We need a current system and create a release with source code
# -> release
# Alternatively you could use OpenBSD stable/release with matching source code

# For the paranoid, like myself, using a more strict umask than 022 (e.g. 027):
umask 022   # XXX IMPORTANT for everything that follows!

# Create a directory, this will become root '/' on the CD.
# NOTE: If there is not enough free space on '/usr' you have to choose a
# different directory (of course you can do so anyway) and change the paths in
# all following commands accordingly.
# If you like copy/paste create a link from /usr/livecd to /path/foodir
mkdir -p /usr/livecd/backups/dev; chmod 755 /usr/livecd/backups/dev

# COMPLICATED way SKIP this! (Life is to short for this kind of stuff!)
# 

# SIMPLE way to get this done
# Grab an empty hard drive and make a fresh nice and SLIM install of OpenBSD. As
# said above you need the source code to the version you install!
# HINT: Against all good practices ONLY create an 'a' partition since it will
# make creating the CD much easier than having multiple partitions.
# This includes all packages/ports you want to be on the CD.

# CD: X fine, but gets tight with (X) ports.
# CD 800MB: Most sets (including) X + a couple of (X) SLIM ports will fit.
# Sets: ALL -game

# DVD: Install whatever you want, there is lots of space.
# Sets: ALL

# You should configure the system EXACTLY like you want it to be on CD.
# WARNING:
# Some settings should be fairly generic, especially /etc/X11/xorg.conf should
# use the vesa driver and a resolution of "1024x768"!
# X -configure will be run to "autodetect" settings, if this fails, there is a
# fall back to generic xorg.conf, YOU put there.

# NOTE: Set a DIFFERENT root password!

# NOTE: You really want to start up X and login with your default user once
# before proceeding, because we want .fonts.cache-1 to be created.
# But shut X down again, before transferring files.

# Configuration hints:
# Remove:
rm -rf /usr/{src,ports}/*   # CD only, for DVD you might even 
extract them.
rm /etc/ssh/*key*   # Some might want to keep them, 
I don't
# We don't want other people to have a look at our log files
for log_file in `find /var/log -type f`
do
echo "" > $log_file
done

# Now mount this partition with another OpenBSD system in order to create a
# (compressed) tar archive.
# NOTE: Do not forget the 'p' flag!
cd /mnt/ && tar pczf ~/livecd_root.tar.gz *
# Of course you could also do this over the network, e.g.:
# cd / && tar pczf - / | ssh [EMAIL PROTECTED] 'cat >~/livecd_root.tar.gz'

# We transfer this archive to our build machine and extract into our livecd
# directory we created earlier:
tar pxzf livecd_root.tar.gz -C /usr/livecd/

# We have to copy "/var", "/etc", "/dev", "/root" and "/home" from "/usr/livecd"
# to "/usr/livecd/backup":
# WARNING: Delete the "shell history", "viminfo" and other documents we might
# NOT want to have on our CD:
cd /usr/livecd && rm -i root/{.history,.viminfo}
cd /usr/livecd && rm -i home/*/{.history,.viminfo}
cp -pR /usr/livecd/{var,etc,root,home} /usr/livecd/backups/
cp -pR /usr/livecd/dev/MAKEDEV /usr/livecd/backups/dev/
cd /usr/livecd && ln -s tmp/xorg.conf.new xorg.conf.new # dirty trick, NEEDED!

# WARNING: Check for permission issues in livecd directory

# We have to create virtual partitions in memory (MFS) since we want them to be
# faster and more important writeable. On boot the content of the tar files
# located in "/livecd/backups" is extract into these MFS partitions.

# We have to modify the "etc/rc" script in order for this to work:
#--- /usr/livecd/etc/rc ---#
# Create/mount mfs partitions, better do be done inside subshells
echo -n 'Replacing with mfs:'
echo -n ' /tmp'# Can be smaller
(mount_mfs -s 204800 -o async,nosuid,nodev,noatime swap /tmp; \
sleep 1