Differences between revisions 20 and 24 (spanning 4 versions)
Revision 20 as of 2003-01-30 16:24:51
Size: 2987
Editor: zappa
Comment:
Revision 24 as of 2003-03-21 08:36:38
Size: 2722
Editor: dsl093-039-041
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
This procedure must be done as root I think Version 0.2
Line 4: Line 4:
wget http://www.personaltelco.net/download/bewitched/linuxap.tgz This procedure must be done as root on a machine that can mount a Compact Flash device as a disk drive. You will also need grub installed. If starting from a stage2 tarfile skip the first part of this.

wget http://www.personaltelco.net/download/bewitched/stage1-0.2.tgz
Line 7: Line 9:
tar xzf ../linuxap.tgz
mkdir var
tar xzf etc/var.tgz
tar xzf ../stage1-0.2.tgz
Line 11: Line 11:
edit var/local/etc/resolv.conf edit etc/resolv.conf.default
Line 18: Line 18:
tar czf etc/var.tgz var

rm -rf var
Line 23: Line 19:
        if compressed
                change /dev/hda4 to /dev/hda3
        if !compressed
                change /dev/hda4 to /dev/hda2
        change /dev/hda4 to /dev/hda2
Line 37: Line 30:
        if it exists delete "mkfs.ext2 /dev/hda3"
 add
the line "mkfs.ext2 /dev/ram0"
        change "mkfs.ext2 /dev/hda3" to "mkfs.ext2 /dev/ram0"
Line 43: Line 35:
 if compressed
  change "/dev/hda4" to "/dev/hda3"
 if !compressed
 
change "/dev/hda4" to "/dev/hda2"
 change "/dev/hda4" to "/dev/hda2"
Line 63: Line 52:
                        pre-up iwconfig wlan0 channel 1                          pre-up iwconfig wlan0 channel 1
Line 77: Line 66:
at this point you can run "tar czf ../readonly.cf.tgz *" at this point you can run "tar czf ../stage2-0.2.tgz *"
}}}
Start here if you already have a stage2 tarfile
{{{
Line 81: Line 73:
 conpressed uncompressed
 hdc1 5MB hdc1 125m bootable
 hdc2 120mB hdc2 -
 hdc3 -
 hdc1 125m bootable
        hdc2 (the rest of the device)
Line 87: Line 77:
if compressed
 mkfs.ext2 /dev/hdc2
 mount /dev/hdc2 /mnt/tmp
 mkdir /mnt/tmp/boot
 mount /dev/hdc1 /mnt/tmp/boot
mount /dev/hdc1 /mnt/tmp
Line 93: Line 79:
if !compressed
 mount /dev/hdc1 /mnt/tmp
tar -C /mnt/tmp -xf ../stage2-0.2.tgz
umount /mnt/tmp
Line 96: Line 82:
tar cf - * | tar -C /mnt/tmp -xf -
umount /mnt/tmp/boot /mnt/tmp

if compressed
 mkfs.ext3 /dev/hdc3

if ! compressed
 mkfs.ext3 /dev/hdc2
mkfs.ext3 /dev/hdc2

Version 0.2

This procedure must be done as root on a machine that can mount a Compact Flash device as a disk drive.  You will also need grub installed.  If starting from a stage2 tarfile skip the first part of this.

wget http://www.personaltelco.net/download/bewitched/stage1-0.2.tgz
mkdir readonly
cd readonly
tar xzf ../stage1-0.2.tgz

edit etc/resolv.conf.default
        set up as appropriate for network config
                suggestion use maus as a nameserve
                    untill final configuration:
                "search personaltelco.net"
                "nameserver 204.245.198.90"

edit root/bin/mountu
        change /dev/hda4 to /dev/hda2

edit boot/grub/menu.lst
        change line: "terminal --timeout=10 serial console"
        to: "terminal --timeout=0 serial"
        change all instances(3) of: "console=tty0"
        to: "ramdisk_size=16384"
        delete lines "savedefault"

edit etc/init.d/mountall.sh
        before the line "mount -avt nonfs,nosmbfs,noncpfs,noproc"
        change "mkfs.ext2 /dev/hda3" to "mkfs.ext2 /dev/ram0"

edit etc/fstab
        change "/dev/hda3" to "/dev/ram0"
        delete lines for floppy, cdrom and swap (/dev/hda4)
        change "/dev/hda4" to "/dev/hda2"

edit etc/modules
        change "ne" to "natsemi"
        delete line "hostap_plx"

edit etc/default/pcmcia
        change "PCIC=i82365"" to "PCIC=yenta_socket"

edit etc/network/interfaces
        configure network as appropriate
                iface wlan0 inet static
                        address 10.11.0.1
                        netmask 255.255.255.0
                        network 10.11.0.0
                        broadcast 10.11.0.255
                        pre-up iwconfig wlan0 mode master
                        pre-up iwconfig wlan0 channel 1
                        pre-up iwconfig wlan0 essid www.personaltelco.net


# remove ssh keys
rm etc/ssh/*key*

edit etc/shadow
        change root to no password
                second field empty

mkdir dev proc var
ln -s /var/tmp tmp

at this point you can run "tar czf ../stage2-0.2.tgz *"

Start here if you already have a stage2 tarfile

dd if=/dev/zero of=/dev/hdc count=100
cfdisk /dev/hdc
        hdc1 125m       bootable
        hdc2 (the rest of the device)

mkfs.ext2 /dev/hdc1
mount /dev/hdc1 /mnt/tmp

tar -C /mnt/tmp -xf ../stage2-0.2.tgz
umount /mnt/tmp

mkfs.ext3 /dev/hdc2

run grub and enter the following commands
        device (hd0) /dev/hdc
        root (hd0,0)
        setup (hd0)
        quit

At this point the CF is ready for first boot in the soecris box.

on first boot

remountrw
set password for root and ptp
dpkg-reconfigure ssh
        use all defaults

reconfigure network

remountro

--- BrianBeattie


[CategoryBeWitched]

BuildCompactFlash (last edited 2007-11-23 18:01:39 by localhost)