个人工具
登录
查看“UbuntuWiki:flash-install”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuWiki:flash-install”的源代码
来自Ubuntu中文
←
UbuntuWiki:flash-install
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://wiki.ubuntu.com/flash-install}} {{Languages|php5}} *Launchpad Entry: [WWW] https://launchpad.net/distros/ubuntu/+spec/flash-install *Created: 2006-12-20 by MattMossholder *Contributors: MattMossholder *Packages affected: == Summary == This is a first pass at running Edgy off of a 256MB Compact Flash module, attached via an CF->IDE adapter. Most of the removals were based on this small amount of disk space, and the minimal requirements of the system (a digital picture frame, pulling images off of an NFS server). The directory structure was created in a chroot on an ext3 FS on my desktop system, and then copied to the flash. == Rationale == The concepts here should allow for a fast booting, reliable OS, with fewer moving parts. It is somewhat similar to what MS is doing in Vista, but rather than caching an image of the common OS files to flash, this just runs the whole OS off of flash. Given that CF->IDE adapters can be had for $9.99 on NewEgg and various other sites, this might make a great way to run a full fledged Ubuntu system. Hard drives would have more opportunity to spin down. Important files could be mirrored to the flash for a quick, portable backup. == Use cases == Candice wants a to reduce boot times on her system. Installing Ubuntu onto the flash allows Candice's system to boot in ''X'' seconds. == Scope == == Design == == Implementation == apt-get install debootstrap<br> mkdir ''<install target dir>''<br> debootstrap edgy ''<install target dir>''<br> mount -o bind /proc ''<install target dir>''/proc<br> mount -o bind /dev ''<install target dir>''/dev<br> chroot ''<install target dir>''<br> vi /etc/apt/sources.list ''(add universe for feh)''<br> apt-get update<br> apt-get install linux-image-generic ''(Answer no to aborting)''<br> apt-get install xserver-xorg-core xinit feh language-pack-en<br> apt-get install lilo ''(say "OK" to the message that you need to run liloconfig)''<br> apt-get remove ubuntu-minimal netcat xserver-xorg-input-all xserver-xorg-input-elographics xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus xserver xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740 xserver-xorg-video-i810 xserver xorg video-imstt xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv xserver-xorg video-rendition xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l xserver-xorg-video-via xserver-xorg-video-vmware xserver-xorg-video-voodoo<br> rm -rf /etc/cron.*<br> rm -rf /usr/share/doc<br> rm /var/cache/apt/archives/*<br> rm -rf /usr/share/sounds ''(unless you want the test tones for determining sound channels)''<br> rm -rf /usr/share/man ''(unless you want man pages and have the space)''<br> rm /etc/mtab <br> ln -s /proc/mount /etc/mtab<br> ''update /etc/fstab to ensure root fs is mounted with noatime option''<br> ''update /etc/init.d/mountkernfs <br> These lines ensure that these directories are mounted in a tmpfs rather than letting the system write them to flash. As a result, the system can run with the rootfs mounted as readonly<br> Add these lines after /var/lock gets mounted:''<br> domount tmpfs /var/lib/nfs "-o mode=0755"<br> domount tmpfs /var/lib/dhcp3 "-o mode=0755"<br> domount tmpfs /tmp "-o mode=1777"<br> domount tmpfs /var/log "-o mode=1777"<br> domount tmpfs /var/lib/urandom "-o mode=0755"<br> #only needed if you are running nfs...<br> mkdir /var/lib/nfs/rpc_pipefs/<br> mkdir /var/lib/nfs/sm<br> mkdir /var/lib/nfs/sm.bak<br> <br> setup network interfaces in /etc/network/interfaces<br> /usr/bin/Xorg --configure - generate (or copy in) /etc/X11/xorg.conf<br> remove syslog from rc.d dirs. (or set to log remotely)<br> add following to /etc/inittab:<br> #8:23:respawn:/usr/bin/xinit /usr/local/bin/slideshow<br> copy in /usr/local/bin/slideshow<br> change filesystem to mount with option ro in fstab<br> clear out /var/cache/apt/archive<br> install mbr for lilo [[category:UbuntuWiki]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuWiki:flash-install
。