免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2333 | 回复: 4
打印 上一主题 下一主题

关于LiveCD定制 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-21 16:19 |只看该作者 |倒序浏览
大家好,我想做一个LiveCD,想实现LiveCD启动后,Bypass登录界面以及桌面,直接进入一个应用程序界面,或者web界面,对系统进行恢复操作。
想实现这样一个功能,苦于没有这方面的资料查找,不知到有没有人知道怎样做?

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2010-08-21 16:32 |只看该作者
这个没做过。问问他platinum。

论坛徽章:
0
3 [报告]
发表于 2010-08-21 18:20 |只看该作者
下面是fedora启动过程,是不是可以在红色所指位置,启动自己的程序? 这个过过程通过哪个脚本在控制?

Fedora - The Boot Process

Fedora 2 boots is the usual Red Hat way. Its initscripts are more or less similar in the various RedHat versions, as it often happens when a process is tested and mature enought to not need particular changes.

Boot Loader
Fedora's default boot loader is Grub, the directory /boot/grub/ contains all the configuration files and the binaries, grub.conf contains all the configuration data (/boot/grub/menu.lst and /etc/grub.conf are both symlinks to it), /boot/grub/splash.xpm.gz is the default splash images shown under the text in Grub.

Kernel
The core binary is placed in /boot/vmlinuz-version, System Map is /boot/System.map-version and the boot initialized ram disk data in /boot/initrd-version. A nice plus, introduced with Fedora is the presence of /boot/config-version (installed by a kernel rpm) with the complete configuration of the current kernel (a .config file which can be used as starting point for a new kernel configuration or for historycal reasons).
Modules are placed in /lib/modules/version.

Init
/etc/inittab has a standard logic, with mingetty started at runlevels superior to 1 (so in single user mode no password is asked and a root shell is directly invoked). The first initialization script, executed at every runlevel is /etc/rc.d/rc.sysinit, then are executed the various services according to the SysV logic of the /etc/rc#runlevel.d directories.
Many system configuration files are placed in /etc/sysconfig/ and are loaded (sourced) in the boot phase.
/etc/rc.d/rc.sysinit takes care of various setup activities, according to the following order:
- Uses initlog to log it activities according do what is configured in /etc/initlog.conf and /etc/syslog.conf
- If DEVFS is used, starts devfsd
- Sets up hostname, hosttype and sources /etc/sysconfig/network
- Mounts the procfs and the sysfs in /proc and /sys
- Checks SeLinux status (disable by default)
- Sources /etc/init.d/functions with various common shell functions used by other init scripts: daemon() ,  killproc() , pidofproc() , status() , echo_success() (the green OK) , confirm() ...
The script also sources some important configuration files:  /etc/sysconfig/i18n (the system default language, in UTF format (ex: LANG="en_US.UTF-8"), which can create problems with some older software, particularly in Perl, either export LANG="en_US" before launching a troubled application or set it directly in /etc/sysconfig/i18n), /etc/sysconfig/init (the various color codes used in the booting output).
- Sets the system default font
- Prints the well known "Welcome to ..." banner
- Starts the graphical boot screen with the rhgb program which uses graphics from /usr/share/rhgb (change to customize)
- Configures kernel according to /etc/sysctl.conf settings
- Sets system clock accoring to /etc/sysconfig/clock parameters
- Sets the keyboard layout according to /etc/sysconfig/keyboard (change here to manage the keyboard settings in text mode)
- Initializes ACPI settings
- Initializes USB controller and HID devices
- Checks the files /fastboot, /fsckoptions, /forcefsck and /.autofsck and sources /etc/sysconfig/autofsck in order to determine if and how launch a file system check.
- Checks quota settings if any
- Sets up ISA PNP devices according to the configuration file /etc/isapnp.conf
- Mounts the Root filesystem in read/write mode
- If configured sets up the Logical Volume Management (LVM)
- Activates swap space
- Loads kernel modules with the parameters specified in /etc/modules.conf
- Starts raid (MD) devices
- If there is the /.unconfigured flag files, starts the first boot configuration procedure
- Removes various flag files in / , /var/lock , /var/run , removes the rpm database (/var/lib/rpm/__db*, it's rebuilt when a new rpm command is issued) and various files in the /tmp directory.
- Inizializes serial ports, SCSI tapes, USB storage, Firewire
- Turns on hard disk optimization with hdparm according to the settings in /etc/sysconfig/harddisks*
- If profiles are configured, it activates the default network profile

It's now time to switch to the default runlevel and activate the services (whose initialization scripts are in /etc/init.d/ according to the symlinks in /etc/rc#.d/ in typical SysV fashion.
The last script to be executed is /etc/rc.local where the user can place custom commands.

Services
To manage services (start|stop|restart|reload...) it's possibile to invoke directly the relative script or use the service command. For example:
[root@vagante al]# service httpd start
does the same (starting the Apache Web server) of:
[root@vagante al]# /etc/init.d/httpd start
which, since /etc/init.d is actually a symlink to /etc/rc.d/init.d, is exactly equivalent to:
[root@vagante al]# /etc/rc.d/init.d/httpd start

论坛徽章:
0
4 [报告]
发表于 2010-08-21 20:00 |只看该作者
说实话我也没做过这个需求,我觉得应该着重分析几个技术细节
如果这些技术都解决了,拼凑在一起就是你的最终需求

1、学会构建一个 LiveCD 系统
2、知道如何在启动后自动运行某程序
3、解决启动后需要输入用户名密码登录的问题

分别都解决了,应该你的困难就解决了

论坛徽章:
0
5 [报告]
发表于 2010-08-22 11:24 |只看该作者
主要问题是,init 3启动 可以运行界面程序么? init 5启动能不能不启动 desktop ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP