易截截图软件、单文件、免安装、纯绿色、仅160KB

制作可移动的linux系统(Ubuntu)

制作可移动的linux系统(Ubuntu)
1、光盘启动,安装复制到移动硬盘,将grub安装到dev/sda。
2、复制完后重启,光盘启动,安装启动界面输入rescue,进入急救模式,选择挂载分区时,选择系统所在硬盘和分区。
3、ctrl-Alt-F2,打开新窗口。
CODE:mount -tproc proc /target/proc
chroot /target
su
4、nano /etc/mkinitramfs/modules
加入:ehci-hcd
CODE:usb-storage
scsi_mod
sd_mod
5、nano /etc/mkinitramfs/initramfs.conf
在前面加上:WAIT=12
6、mkinitramfs -o /boot/initrd.img-2.6-…… /lib/modules/2.6……
7、nano /boot/grub/menu.lst修改menu.lst:root (?.?)改为系统所在分区。
8、重起,进入BIOS,选择usb-hdd启动;没有这项的话,在disk sequence里调整磁盘序列,
将usb硬盘调到本地硬盘前,让电脑从usb启动;如果rp太差,主板的disk sequence里没有
认出移动硬盘,只有制作grub软盘,然后用虚拟软盘启动。成功从移动硬盘启动后,继续安
装过程,直到完成,进入系统。
9、经过数次测试,系统的移动性能非常好,在不同电脑上正常使用,只是开始不能启动
xwindows,使用命令:
CODE:sudo dpkg-reconfigure -phigh xserver-xorg
自动配置显卡,nv和ati显卡都能自动识别,正常进入xwindows。
10、启动时自动配置xorg.conf
在/etc/rc2.d下增加一个可执行脚本S03xconfig.sh
内容如下:
#!/bin/bash
#
# /etc/rc2.d/S03xconfig
#
reconfigx(){
   echo "Reconfiguring xserver-xorg ... "
   dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg
}
if [ -e /etc/X11/xconfig.log ] ;then
   lspci > /etc/X11/xconfig.tmp
   diff /etc/X11/xconfig.tmp  /etc/X11/xconfig.log > /etc/X11/different
   if [ -s /etc/X11/different ] ;then
       reconfigx
       # delete screen config
       lspci > /etc/X11/xconfig.log
   fi
else
   lspci > /etc/X11/xconfig.log
   reconfigx
fi
exit 0


相关文档:

Linux from Scratch

1. Download all packet and patchs    Done
2. To be involved in the mail list
3. Check Host Requirements                    Done
还学习了 cut 显示某行的指定field ,head 显示前几行,readlin ......

Linux 下getch()和getche()

Linux下getch()和getche()
I would recommend never mixing input techniques in a program. Don't mix fgets() or scanf() with getchar(). Don't mix any standerd C library input function with a non-standard function that bypasses the C stream mechanism, be that getch(), getche(), bioskey(), or anything el ......

完全用 GNU/Linux 工作


[精华] 完全用 GNU/Linux 工作
http://www.chinaunix.net 作者:enfuzion  发表于:2005-12-08 16:05:56
【发表评论】【查看原文】【Linux讨论区】【关闭】
转自http://www.chinaunix.net/jh/4/16102.html
完全用 GNU/Linux 工作
— 摈弃 Windows 低效率的工作方式,发掘&n ......

Linux设备模型

看LDD3中设备模型一章,觉得思维有些混乱。这里从整体的角度来理理思路。
本文从四个方面来总结一些内容:
1.底层数据结构:kobject,kset.
2.linux设备模型层次关系:bus_type,device,device_driver.
3.集成:PCI设备驱动模型实例及设备,设备驱动注册源码的简单分析.
4.面向对象的思想在linux设备模型中的应用分析.
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号