http://www.minimalinux.org/ttylinux/showpage.php?pid=4
ctrl-alt-t
sudo su
cd /tmp
wget http://www.minimalinux.org/ttylinux/packages/ttylinux-i486-6.2.tar.gz
tar zxvf ttylinux-i486-6.2.tar.gz
mv ttylinux-i486-6.2/rootfs.gz /tmp
gunzip rootfs.gz
mkdir go
mount rootfs go -o loop
chroot go
# root@tiny:/etc# cat HOSTNAME
tiny.local
# echo eeepc-yourname > HOSTNAME
# vi /etc/resolv.conf
order hosts,bind
multi on
# modify two files.
# /etc/rc.d/rc.sysinit
# /etc/rc.d/rc.local
diff -u rc.local.tty rc.local | more
--- rc.local.tty 2007-11-15 08:15:00.000000000 +0800
+++ rc.local 2007-11-15 08:15:00.000000000 +0800
@@ -1,2 +1,11 @@
#!/bin/bash
# put local startup commands in here
+mkdir /s1
+mkdir /s2
+mount -t ext2 /dev/sda1 /s1 -o ro,noatime
+mount -t ext3 /dev/sda2 /s2 -o ro,noatime
+
+if [ -f /s2/eeeboot.sh ]; then
+ /s2/eeeboot.sh &
+fi
+
diff -u rc.sysinit.tty rc.sysinit | more
--- rc.sysinit.tty 2007-11-15 08:15:00.000000000 +0800
+++ rc.sysinit 2007-11-15 08:15:00.000000000 +0800
@@ -31,10 +31,11 @@
check_status
fi
-echo -n "Setting system clock: "
-hwclock --hctosys --utc
-check_status
+# echo -n "Setting system clock: "
+# hwclock --hctosys --utc
+# check_status
+if [ -f /etc/my_fsck ]; then
echo "Starting fsck for root filesystem."
fsck -T -C /
if [ "$?" -gt 2 ]; then
@@ -50,6 +51,7 @@
echo -n "Checking root filesystem: "
check_status
fi
+fi
echo -n "Remounting root rw: "
mount -o remount,rw /
@@ -59,6 +61,7 @@
mount /dev/pts
check_status
+if [ -f /etc/my_fsck ]; then
echo "Starting fsck for local filesystems."
fsck -A -C -R -T -t nonfs,nosmbfs
if [ "$?" -gt 2 ]; then
@@ -74,10 +77,13 @@
echo -n "Checking local filesystems: "
check_status
fi
+fi
+if [ -f /etc/my_swap ]; then
echo -n "Enabling swap space: "
swapon -a
check_status
+fi
===
cd /etc/rc.d/rc.start
mkdir ../old
mv 00.firewall ../old/
mv 40.pppconf ../old/
mv 50.isdn ../old/
cd ../rc.stop
mv 10.isdn ../old/
passwd root
# change root password.
exit
umount go
gzip -9 rootfs
mv rootfs.gz eeefs.gz
mkdir /s1
mount /dev/sda1 /s1 -o loop
mv eeefs.gz /s1/boot/
# vim /s1/boot/grub/menu.lst
#
+ title ttylinux+x
+ root (0x80,0)
+ kernel /boot/vmlinuz-2.6.21.4-eeepc nosplash=y rw
vga=785 irqpoll load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4096
root=/dev/ram0
+ initrd /boot/eeefs.gz
umount /s1
===
mkdir /s2
mount /dev/sda2 /s2
cp eeeboot.sh /s2
umount /s2
===
eeeboot.sh =>
#!/bin/sh
mkdir /eeeram
mount -t tmpfs none /eeeram
mkdir /go
mount -t unionfs -o dirs=/eeeram=rw:/s2=ro:/s1=ro unionfs /go
mkdir -p /lib/modules
ln -s /s1/lib/modules/2.6.21.4-eeepc /lib/modules/2.6.21.4-eeepc
modprobe ohci_hcd
modprobe uhci_hcd
modprobe ehci_hcd
modprobe usbcore
modprobe mii
# modprobe forcedeth
modprobe atl2
modprobe usbhid
modprobe usb_storage
modprobe pcnet32
modprobe loop
# modprobe unionfs
# mkdir /eeeram
# mount -t tmpfs none /eeeram
# mkdir /go
# mount -t unionfs -o dirs=/eeeram=rw:/s2=ro:/s1=ro unionfs /go
# mount -t ext3 /dev/sda2 /s2 -o rw,noatime,remount
mount --bind /proc /go/proc
mount --bind /sys /go/sys
(udhcpc; ifconfig eth0:7 192.168.7.100; ifconfig eth0:8 192.168.8.100) &
chroot /go startx
====
run camera in ttylinux+x
ctrl-alt-t
sudo su
modprobe asus_acpi
modprobe uvcvideo
export DISPLAY=:0
/sbin/udevd --daemon
/usr/bin/ucview
====
set ip to 192.168.7.70
you can ssh to root@192.168.7.100 by your password
then chroot /go
export DISPLAY=:0
...