2008年10月1日 星期三

幾個Linux指令


#建構upstream source code
./autogen.sh --prefix=/usr --sysconf=/etc
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
sudo make install




#指定base目錄為mnt/, System.map的位置在mnt/boot kernel版號2.6.26-eeepc
sudo depmod -b mnt/ -v 2.6.26-eeepc -F mnt/boot

sudo chroot mnt/ mkinitramfs -o boot/initrd.img-2.6.26-eeepc 2.6.26-eeepc



#/usr/share/pdk/platforms/netbook-lpia-moblin2/exclude :
#boot
#usr/sbin/policy-rc.d

mksquashfs /targets/eeepc/fs /targets/eeepc/image/rootfs.img -no-progress -ef /usr/share/pdk/platforms/netbook-lpia-moblin2/exclude


#建立moblin的base system
#/etc/yum/repos.d/Moblin.repo的內容:

[Moblin]
name=Moblin
failovermethod=priority
baseurl=http://repo.moblin.org/Stable/
enabled=1
gpgcheck=0

yum -y --installroot=/home/qustion/asus_work/moblin/intel-moblin/project install yum yum-protectbase

#若要建立一個a basic console based system需要額外安裝以下的套件
grub passwd kernel-netbook coreutils sysvinit bash moblin-release yum which dhclient openssh-clients wireless-tools rt73usb-firmware mkinitrd moblin-config-tools

沒有留言: