rc腳本的位置不同:
redhat : /etc/rc.d/rc
ubuntu:/etc/init.d/rc作者: wangkj 時間: 2009-11-10 14:41
還有就是ubuntu特有的/etc/rcS.d
我從rc文件中,沒有找到關于這個必須執行的操作,但是
網上提到:
*運行等級 S:開機進程中的第一個運行等級。若/etc/rcS.d 下的鏈接文件開頭子母是大寫的,那么它鏈接的在 /etc/init.d 下的對應腳本將被調用并開啟,該進程將被執行。
運行等級 S 就是指的這個這個目錄中的文件,
如果相信了解這些啟動步驟,請讀/sbin/init的源碼,這個俺懶得讀了。
從我的實驗來看,確實是先執行rcS.d然后在執行rc的。
linux的啟動過程簡介:
bios啟動第一個可啟動設備
啟動grub
啟動內核,加載root分區
內核讀取/bin/init /sbin/init /usr/bin/init //usr/sbin/init ,這四個文件前面優先,有前面的后面就不管了
所以詳細的真是啟動過程,應該從init文件讀取。
這個文件可以是可執行文件,也可以是shell腳本。當然,從這個文件進一步調用其他可執行文件或者腳本再正常不過了。作者: wangkj 時間: 2009-11-10 14:42
所以,估計rcS.d可能就是init讀取的執行文件,當然你想修改init強制讀取其他文件也沒有問題。或者強制不讀取某些文件也沒問題。作者: lelee007 時間: 2009-11-10 17:23
會計什么意思?想表達什么?作者: linux_Ultra 時間: 2009-11-10 22:01
ubuntu 不守規范,亂搞,要用正統的發行版,debian作者: wangkj 時間: 2009-11-11 13:05 標題: apt-get 錯誤的解決:用這個文件替換/etc/apt/sources.list #deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://hk.archive.ubuntu.com/ubuntu/ jaunty main restricteddeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates main restricteddeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu## team. Also, please note that software in universe WILL NOT receive any## review or updates from the Ubuntu security team.deb http://hk.archive.ubuntu.com/ubuntu/ jaunty universedeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty universedeb http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates universedeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu## team, and may not be under a free licence. Please satisfy yourself as to## your rights to use the software. Also, please note that software in## multiverse WILL NOT receive any review or updates from the Ubuntu## security team.deb http://hk.archive.ubuntu.com/ubuntu/ jaunty multiversedeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty multiversedeb http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates multiversedeb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse## Uncomment the following two lines to add software from the 'backports'## repository.## N.B. software from this repository may not have been tested as## extensively as that contained in the main release, although it includes## newer versions of some applications which may provide useful features.## Also, please note that software in backports WILL NOT receive any review## or updates from the Ubuntu security team.# deb http://hk.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse# deb-src http://hk.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's## 'partner' repository.## This software is not part of Ubuntu, but is offered by Canonical and the## respective vendors as a service to Ubuntu users.# deb http://archive.canonical.com/ubuntu jaunty partner# deb-src http://archive.canonical.com/ubuntu jaunty partnerdeb http://security.ubuntu.com/ubuntu jaunty-security main restricteddeb-src http://security.ubuntu.com/ubuntu jaunty-security main restricteddeb http://security.ubuntu.com/ubuntu jaunty-security universedeb-src http://security.ubuntu.com/ubuntu jaunty-security universedeb http://security.ubuntu.com/ubuntu jaunty-security multiversedeb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse作者: wangkj 時間: 2009-11-11 13:05
cn.ubuntun.com有問題。經常連不上,不知道是不是被河蟹了。作者: f.luo 時間: 2009-11-11 13:09
會計也用ubuntu了?作者: 一朝成名 時間: 2009-11-11 20:21
裝了一個Ubuntu,一直還沒用過~作者: f.luo 時間: 2009-11-11 20:26
現在的源用的是163的,速度還不錯。作者: wangkj 時間: 2009-11-11 21:37
地址,給個具體地址。作者: linux_Ultra 時間: 2009-11-11 21:53
163 , 臺灣的都不錯。作者: f.luo 時間: 2009-11-11 22:19
163的源:
deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse作者: linux_Ultra 時間: 2009-11-11 22:19
安裝剛發行的ubuntu,一般就看看速配指南就行了 http://wiki.ubuntu.org.cn/Qref/Source#.E6.BA.90.E5.88.97.E8.A1.A8作者: f.luo 時間: 2009-11-11 22:19
sohu的源:
deb http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse作者: 一朝成名 時間: 2009-11-12 11:34
看來我要順應潮流換ubuntu了~~~作者: linux_Ultra 時間: 2009-11-12 22:27
linuxsir 那邊的老鳥都玩gentoo和archlinux。。。
還記得上課時老師對我們說:你們現在還太粉了所以在玩 linux,和我當年一樣,高手玩的是 FreeBSD和OpenBSD...作者: f.luo 時間: 2009-11-12 22:38
學到詞了,粉……作者: wangkj 時間: 2009-11-13 15:22
ubuntu 啟動調用的不是inittab,而是/ectc/event.d/rc-default !
可能是修改了init文件吧。沒看源碼。
花了不少功夫才發現的。