Cover | Table of Contents | Forum | Colophon
$ setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
# minicom -s
------[configuration]------
| Filenames and paths
| File transfer protocols
| Serial port setup
| Modem and dialing
| Screen and keyboard
| Save setup as dfl
| Save setup as..
| Exit
| Exit from Minicom
---------------------------------------------------------------------- | A - Serial Device : /dev/ttyS0 | B - Lockfile Location : /var/lock | C - Callin Program : | D - Callout Program : | E - Bps/Par/Bits : 19200 8N1 | F - Hardware Flow Control : No | G - Software Flow Control : No | | Change which setting? -------------------------------------------
Welcome to minicom 2.1 OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Nov 5 2005, 15:45:44. Press CTRL-A Z for help on special keys Now power up the Soekris, and you'll see something like this: comBIOS ver. 1.15 20021013 Copyright (C) 2000-2002 Soekris Engineering. net45xx 0064 Mbyte Memory CPU 80486 133 Mhz PXE-M00: BootManage UNDI, PXE-2.0 (build 082) Slot Vend Dev ClassRev Cmd Stat CL LT HT Base1 Base2 Int ------------------------------------------------------------------- 0:00:0 1022 3000 06000000 0006 2280 00 00 00 00000000 00000000 00 0:16:0 168C 0013 02000001 0116 0290 10 3C 00 A0000000 00000000 10 0:17:0 104C AC51 06070000 0107 0210 10 3F 82 A0010000 020000A0 11 0:17:1 104C AC51 06070000 0107 0210 10 3F 82 A0011000 020000A0 11 0:18:0 100B 0020 02000000 0107 0290 00 3F 00 0000E101 A0012000 05 0:19:0 100B 0020 02000000 0107 0290 00 3F 00 0000E201 A0013000 09 4 Seconds to automatic boot. Press Ctrl-P for entering Monitor.
$ minicom pyramidman 1 minicom $ wget http://metrix.net/support/dist/pyramid-1.0b1.img.gzfdisk -l command. A USB CF writer looks like this: # fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 977 62512 83 LinuxDevice Boot Start End Blocks Id System /dev/hdc1 * 1 977 62512 83 Linux
# gunzip -c pyramid-1.0b1.img.gz | dd of=/dev/sdb bs=16k
3908+0 records in
3908+0 records out $ wget http://metrix.net/support/dist/pyramid-1.0b2.img.gz # apt-get install lighttpd lighttpd-doc tftpd-hpa dhcp3-server subversion ##/etc/dhcp3/dhcpd.conf
subnet 192.168.200.0 netmask 255.255.255.0 {
range 192.168.200.100 192.168.200.200;
allow booting;
allow bootp;
next-server 192.168.200.1;
filename "PXE/pxelinux.0";
max-lease-time 60;
default-lease-time 60;
}next-server is the IP address of the boot server; it must be 192.168.200.1.##/etc/default/tftpd-hpa RUN_DAEMON="yes" OPTIONS="-a 192.168.200.1:69 -l -s -vv /var/lib/tftpboot/"
root@xena:/var/lib/tftpboot # svn export http://pyramid.metrix.net/svn/PXE root@xena:/var/www # ln -s /home/carla/downloads/pyramid-1.0b2.tar.gz os $ wget http://metrix.net/support/dist/pyramid-1.0b2.img.gz # yum install dhcp lighttpd tftp-server subversion # dhcpd.conf
subnet 192.168.200.0 netmask 255.255.255.0 {
range 192.168.200.100 192.168.200.200;
allow booting;
allow bootp;
next-server 192.168.200.1;
filename "PXE/pxelinux.0";
max-lease-time 60;
default-lease-time 60;
}next-server is the IP address of the boot server; it must be 192.168.200.1.disable = no server_args = -svv /tftpboot -a 192.168.200.1:69
root@penguina:/tftpboot # svn export http://pyramid.metrix.net/svn/PXE root@xena:/srv/www/lighttpd# ln -s /home/carla/downloads/pyramid-1.0b2.tar.gz os # cd /etc/init.d/
# xinetd start && lighttpd start && dhcpd startGNU GRUB version 0.95 (639K lower / 64512K upper memory) +---------------------------------------------------------------+ | Metrix | | Shell | | | | | | | | | | | | | +---------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
$ ssh root@192.168.1.1 pyramid:~# /sbin/rw pyramid:~# /sbin/rofind command. This example searches the entire root filesystem for the file named iptunnel: pyramid:~# find / -name iptunnel
/sbin/iptunnelpyramid:~# find / -name iptun* /sbin/iptunnel pyramid:~# find / -name *ptunn* /sbin/iptunnel
find / sbin-name pppd. To search the current directory, use a dot: # find . -name foo-configfind command because you're used to it taking a long time, don't worry—with less than 50 MB to search, all find searches are quick.man 1 find pyramid:~# /sbin/rw
pyramid:~# passwd pyramid:~# useradd -m alrac
pyramid:~# passwd alracsetuid bit on the su command so that ordinary users can su to root: pyramid:~# chmod +s /bin/su pyramid:/etc/rc2.d# mv S20ssh K20ssh# Lighttpd (with FastCGI, SSL and PHP) HT:23:respawn:/sbin/lighttpd -f /etc/lighttpd.conf -m /lib -D > /dev/null 2>&1
/sbin/ro to set the filesystem back to read-only. $ fortune
You will gain money by a fattening action. ubuntu@ubuntu:~$ dpkg -l| grep fortune
ii fortune-mod 1.99.1-3 provides fortune cookies on demand
ii fortunes-min 1.99.1-3 Data files containing fortune cookies ubuntu@ubuntu:~$ dpkg -L fortune-mod
/.
/usr
/usr/games
/usr/games/fortune
/usr/bin
/usr/bin/strfile
/usr/bin/unstr
/usr/share
/usr/share/man
/usr/share/man/man6
/usr/share/man/man6/fortune.6.gz
/usr/share/man/man1
/usr/share/man/man1/strfile.1.gz
/usr/share/doc
/usr/share/doc/fortune-mod
/usr/share/doc/fortune-mod/README.Debian
/usr/share/doc/fortune-mod/copyright
/usr/share/doc/fortune-mod/changelog.gz
/usr/share/doc/fortune-mod/README.gz
/usr/share/doc/fortune-mod/changelog.Debian.gz
/usr/share/menu
/usr/share/menu/fortune-mod
/usr/share/man/man1/unstr.1.gz ubuntu@ubuntu:~$ scp /lib/modules/2.6.15-26-386/kernel/drivers/net \ root@192.168.1.
1:/lib/modules/2.6.15.8-metrix/kernel/drivers/net/ pyramid:~# update-modules pyramid:~# modprobe nicdriver#driver for Foo wireless pcmcia nicdriver
man 8 modprobeman 8 lsmodman 5 modules $ sudo apt-get install linux-source linux-kernel-devel pyramid:/# scp /proc/config.gz carla@192.168.1.10:downloads/gunzip: $ gunzip config.gzdu command: pyramid:/# du --si -c /lib/modules/2.6.17.8-metrix
...
6.3M /lib/modules/2.6.17.8-metrix
6.3M totaldownload - command (that's download, space, hyphen). Then, hit Enter.flashupdate:> flashupdate .Erasing Flash.... Programming Flash......... Verifying Flash.... Done. >
man 1 minicometh0 is the LAN interface, and eth1 is the WAN interface:##/etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback #lan interface auto eth0 iface eth0 inet static address 192.168.1.26 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 #wan interface auto eth1 iface eth1 inet dhcp
auto eth1 iface eth1 inet static address 1.2.3.4 netmask 255.255.255.0 gateway 1.2.3.55
##/etc/resolv.conf nameserver 1.2.3.44 nameserver 1.2.3.45
ifconfig -a: $ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0B:6A:EF:7E:8D
[...]HWaddr. Enter your two MAC addresses and interface names in /etc/iftab:##/etc/iftab eth0 mac 11:22:33:44:55:66 eth1 mac aa:bb:cc:dd:ee:ff
##/etc/sysconfig/network-scripts/ifcfg-eth0 #use your own MAC address and LAN addresses DEVICE=eth0 HWADDR=11:22:33:44:55:66 BOOTPROTO=none ONBOOT=yes NETMASK=255.255.255.0 IPADDR=192.168.1.23 NETWORK=192.168.1.0 USERCTL=no ##/etc/sysconfig/network-scripts/ifcfg-eth1 #use your real MAC address DEVICE=eth1 HWADDR=AA:BB:CC:DD:EE:FF BOOTPROTO=dhcp USERCTL=no
ifconfig -a: $ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0B:6A:EF:7E:8D
[...]##/etc/resolv.conf nameserver 11.22.33.44 nameserver 11.22.33.45