网络安全参考 | UNIX参考 | GPS参考 | 无线参考 | 在线手册 | OSBUG.ORG | SUNNY-NETWORK.COM
天线制作 GPS 地标
网站地图 RSS订阅
高级搜索 收藏本站
Home | 业界动态 | Open source | GNU | Linux | BSD | Solaris | AIX | HP-UX | IRIX | Mac OS X | Minix | Tru64 | SCO UNIX | Network | Security | X-Window | Database | 应用服务 | Programming | 经典著作 | 永远的纪念 | 杂项
 当前位置: Home > Linux > Misc > 文章  
BabyLinux操作系统的制作过程(下)
文章来源: ChinaITLab 文章作者: GuCuiwen 发布时间: 2007-01-24   字体: [ ]  
 

  查看到sbin下有上述链接,转到bin下:

#cd /babyLinux/rootfs/bin

  重新做这些链接:

#ln -s busybox chroot
#ln -s busybox getty
#ln -s busybox ifconfig

  然后把sbin下的链接删除,以节省空间:

#rm -rf /babyLinux/rootfs/sbin/*

  再把原先inittab中所有的sbin改成bin ,Init.d下的文件:rcS。请确保这个文件是可执行的,否则请改成可执行的:

#chmod u+x rcS

  rcS的内容:

#! /bin/sh
mount -o remount,rw /
/bin/mount -a
>/etc/mtab
echo
echo
echo
echo
echo -en "\t\tWelcom to \\033[0;32mBabyLinux\\033[0;39m\n"
echo -en "\\033[0;36m\n"
echo
echo -en "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\t\t\n"
echo -en "+ This is a tiny Linux system based on a floppy.It contains \t\t\n"
echo -en "+ more than 100 basic Linux commands and tools.The kernel of \t\t\n"
echo -en "+ this tiny system support all kinds of normal filesystems. \t\t\n"
echo -en "+ Linux ext2,ext3,jfs,reiserfs and Windows fat,vfat,ntfs[readonly]\t\t\n"
echo -en "+ is supported! So it is a powerful small system you can use it \t\t\n"
echo -en "+ as a Linux and Windows rescue disk.Beside this,the kernel also\t\t\n"
echo -en "+ contains the drivers of Reltek8139,NE2000,via-rhine ethernet\t\t\n"
echo -en "+ adpater. you can configure the IPaddress and netmask with tools\t\t\n"
echo -en "+ 'ifconfig' and config the default gateway with command 'route'. \t\t\n"
echo -en "+ Is there anything else? Haha,this is a telnet server build-in\t\t\n"
echo -en "+ you can type 'telnetd' to startd it and thus your friends can\t\t\n"
echo -en "+ logon to your system to help you solve the problem.\t\t\n"
echo -en "+ \\033[0;32mAll these great features
            are powered by BusyBox 1.0\\033[0;36m\t\t\n"
echo -en "+ This is a free system tool developed by GuCuiwen.\t\t\n"
echo -en "+ RUN YOUR OWN RISK of using it ! if you have any problem please\t\t\n"
echo -en "+ mailto : win2Linux@163.com Enjoy!!\t\t\n"
echo -en "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\t\t\n"
echo -en "\\033[0;39m\n"
hostname BabyLinux

  可以自己作相应的修改。

  以上是babyLinux根文件系统的所有内容,他的总大小应该在1M左右。

  我还计划做一个live CD,但是目前已经有很多live CD了,而且都做的非常好。但是我会自己做一个作为学习Linux的一种手段。如果有时间,可能写一个做U盘Linux和live CD的教程。但是,我想不会写的和这个文档一样详细了,我的时间有限。可能大概讲一下原理和步骤。有经验的Linux爱好者应该可以通过阅读文档完成制作。

  BabyLinux操作系统的制作过程(上)

  (参考链接: http://linux.ccidnet.com/art/741/20070119/1005117_1.html)

 
推荐文章
·BabyLinux操作系统的制作过程(上
 
 
共6页: 上一页 [1] [2] [3] [4] [5] 6 下一页
↑返回顶部   打印本页   关闭窗口↓  

Google
 
Web oldhand.org unixreference.net meshmea.org
相关分类
热点文章
·第一台基于”OpenMoko”
·BabyLinux操作系统的制
·难得一见 十大经典Linux
相关文章
·BabyLinux操作系统的制
·用Linux系统引导CD为服
·Linux操作系统下信号与
·自己动手做一个最小的Li
·一个Linux爱好者的2.6.1
·定制Linux系统内核,发
·如何编译一个操作系统内
·重新编译Linux操作系统
更多...
 
 

Copyright(c) 2001-2009 OLDHAND ORGANIZATION, All Rights reserved.
Power by DedeCms 织梦内容管理系统