2012年4月14日 星期六

Debian快速筆記 -1-

1. 更新 /etc/apt/source.list 以下是copy自別人的,先求可以用 stable跟unstable 排除test
        # Debian main and non-US
        deb http://debian.linux.org.tw/debian/ stable main non-free contrib
        deb-src http://debian.linux.org.tw/debian/ stable main non-free contrib
        deb http://debian.linux.org.tw/debian-non-US stable/non-US main contrib non-free
        deb-src http://debian.linux.org.tw/debian-non-US stable/non-US main contrib non-free
        # Debian security
        deb http://security.debian.org/ stable/updates main contrib non-free
        # Unofficial java packages (for mozilla)
        deb ftp://ftp.tux.org/pub/java/debian stable non-free
        # Unofficial packages (decss, libdvd, mplayer and others)
        deb http://mplayer.nmeos.net stable/
        deb http://marillat.free.fr/ stable main
        deb http://ftp.debian.org/debian dists/proposed-updates/
        deb http://www2.linuxforum.net/mirror/debian stable main contrib non-free
        deb http://www2.linuxforum.net/mirror/debian dists/proposed-updates/

2. apt-get update   AND   apt-get upgrade(可以先不用)

3. aptitude install libc6-dev 先安裝此lib gcc才能裝

4. apt-get install build-essential 安裝gcc

5. 決定runlevel,debian與fedora不同的是沒有預設的 /etc/inittab 所以可輸入runlevel查詢 及telinit "Level"決定 或是自行創建inittab 但level 2~5是沒有差別的所以如果要修改此level的服務 請設定/etc/rc"Your level".d底下的檔案
ex. rm /etc/rc5.d/S13gdm拿掉開啟X Window的設定
附上 參考網址 http://zoobave.blogspot.com/2007/08/debianubutnu-run-levelswithout-inittab.html