Re: [問題] ubuntu 不想直接進x-window

看板Linux作者 ( )時間13年前 (2010/12/14 18:55), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串3/3 (看更多)
upstart的解法: /etc/init/gdm.conf(or kdm.conf) # gdm - GNOME Display Manager # # The display manager service manages the X servers running on the # system, providing login and auto-login services description "GNOME Display Manager" author "William Jon McCann <mccann@jhu.edu>" ============把這一段註解掉 start on (filesystem and started dbus and (graphics-device-added fb0 PRIMARY_DEVICE_FOR_DISPLAY=1 or drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1 or stopped udevtrigger)) ============ debian的runlevel2-5的內容是一樣的(&ubuntu <= 9.10) 在/etc/init.d裡面的script標頭中: ### BEGIN INIT INFO # Provides: sshd # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: OpenBSD Secure Shell server ### END INIT INFO 這一段定義了在哪個runlevel要用這一個script,可以在這裡改好了後, update-rc.d 統一管理rcX.d下的symlink ※ 引述《maxwux (賓)》之銘言: : ※ 引述《PCIT (岡山的火車￾  N￾ I》之銘言: : : 請愛用 : : /etc/inittab : : 把init level改到3以下,不要設成0(shutdown)或6(reboot)喔 : /etc/inittab 這招是給rh系用的 : 正確來說應該是sysv style的系統在用的 : 而ubuntu 則為upstart style : ubuntu 請看看 /etc/X11/default-display-manager : $ cat /etc/X11/default-display-manager : /usr/bin/kdm (我是用kde所以是kdm,gnome會變成gdm) : 如果要關掉xwindow : 就把內容改為false就可以了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.245.32

12/15 10:52, , 1F
update-rc.d [-n] B name disable|enable [ S|2|3|4|5 ]
12/15 10:52, 1F

12/15 10:52, , 2F
有定義 level 了,為什麼還要自已去改?
12/15 10:52, 2F
文章代碼(AID): #1D1qquxv (Linux)
文章代碼(AID): #1D1qquxv (Linux)