亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2355 | 回復: 4
打印 上一主題 下一主題

關于LiveCD定制 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2010-08-21 16:19 |只看該作者 |倒序瀏覽
大家好,我想做一個LiveCD,想實現(xiàn)LiveCD啟動后,Bypass登錄界面以及桌面,直接進入一個應用程序界面,或者web界面,對系統(tǒng)進行恢復操作。
想實現(xiàn)這樣一個功能,苦于沒有這方面的資料查找,不知到有沒有人知道怎樣做?

論壇徽章:
59
2015七夕節(jié)徽章
日期:2015-08-24 11:17:25ChinaUnix專家徽章
日期:2015-07-20 09:19:30每周論壇發(fā)貼之星
日期: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運維版塊每日發(fā)帖之星
日期:2015-07-20 11:05:34操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:36程序設計版塊每日發(fā)帖之星
日期:2015-07-20 11:05:40數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2015-07-20 11:05:432015年辭舊歲徽章
日期:2015-07-20 11:05:44
2 [報告]
發(fā)表于 2010-08-21 16:32 |只看該作者
這個沒做過。問問他platinum。

論壇徽章:
0
3 [報告]
發(fā)表于 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 [報告]
發(fā)表于 2010-08-21 20:00 |只看該作者
說實話我也沒做過這個需求,我覺得應該著重分析幾個技術細節(jié)
如果這些技術都解決了,拼湊在一起就是你的最終需求

1、學會構建一個 LiveCD 系統(tǒng)
2、知道如何在啟動后自動運行某程序
3、解決啟動后需要輸入用戶名密碼登錄的問題

分別都解決了,應該你的困難就解決了

論壇徽章:
0
5 [報告]
發(fā)表于 2010-08-22 11:24 |只看該作者
主要問題是,init 3啟動 可以運行界面程序么? init 5啟動能不能不啟動 desktop ?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP