NonGraphicalBoot
|
Size: 2066
Comment: update-rc.d syntax. best practices for kill
|
Size: 2133
Comment: pkill is quite foolproof
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| Line 24: | Line 23: |
| }}} or just {{{ $ sudo pkill Xorg $ sudo pkill -KILL Xorg |
Disabling gdm
Option 0 - Automatic Login Through gdm
You can set up gdm to automatically log in a user either via System > Administration > Login Window > Security > Enable Automatic Login, or by editing the /etc/gdm/gdm.conf configuration file, and set AutomaticLoginEnable=true and AutomaticLogin=<username>.
Option 1 - Turning off GDM after bootup
Switch to a tty (ctrl+alt+F1) or use ssh, log in, and shut off GDM for the current session like this:
$ sudo /etc/init.d/gdm stop
Check to see if you have any remaining X sessions running, and if so, kill them:
$ ps aux | grep /usr/bin/X bryce 5379 0.0 0.0 1784 552 pts/35 S+ 03:10 0:00 grep /usr/bin/X root 7051 1.0 5.0 112224 105556 tty7 Ss+ Jul01 197:49 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7 $ sudo kill 7051 $ sudo kill -KILL 7051
or just
$ sudo pkill Xorg $ sudo pkill -KILL Xorg
This option is appropriate if your system boots up okay other than X, such that you can either ssh into it or access a tty. If gdm is completely locking up your system during boot up, then see the next options.
Option 2 - Temporarily disabling GDM
To disable gdm from running during boot, disable the rc service like this:
sudo update-rc.d gdm stop 2 3 4 5 .
Then to re-enable it later,
sudo update-rc.d gdm start 2 3 4 5 .
This option is useful if gdm or X locks up the system during boot, or if you wish to run X in complete isolation from gdm.
Option 3 - Removing GDM entirely
In order to disable X from starting when booting the system, you can simply remove gdm from the init scripts:
- sudo update-rc.d -f gdm remove
and, to enable X again when booting:
- sudo update-rc.d gdm defaults
This option is probably only useful if you know you want to always boot X manually, and want to eliminate graphical booting entirely.
Starting up X manually
Option 1: startx script
Option 2: Starting X directly
X/NonGraphicalBoot (last edited 2009-03-15 22:50:39 by pool-71-117-254-52)