#!/bin/sh - # NOTE: On (older?) grub systems, you can make a new first entry in # /boot/grub/menu.lst copying the lastest entry but with # "[text] /boot/grub/menu.lst" appended to the title, # s/quiet splash/text/ in the kernel line and without the "quiet" line, # for a default entry that boots into console mode. # NOTE: On grub systems, you may have "(recovery mode)" options to eventually # boot into console mode. # NOTE: On non-grub gdm systems (like Ubuntu pre-11.10), you can # # echo manual > /etc/init/gdm.override # to suppress the graphical login, so you can get to console mode # after a Ctrl-Alt-F1. # Then you can also append this to /etc/motd.tail: # * Run `start gdm` as root for graphical login and desktop. # NOTE: You can also # # telinit 1 # (after a Ctrl-Alt-F1 to get to a terminal login) # to bring a system down to single-user, non-graphical mode. # For convenience, make this command and login: # # (echo '#!/bin/sh -'; echo exec `which telinit` 1) > \ # /usr/local/bin/rl1; chmod +x /usr/local/bin/rl1 # rl1:x:0:0:Runlevel 1 Single-User,,,:/tmp:/usr/local/bin/rl1 # rl1:???:14557:0:99999:7::: XINITRC=${XINITRC-$HOME/etc/xinitrc} case "`opsys`" in sunos5) args='-ar1 200 -ar2 25';; *) args=;; esac # x - X11 startup script # Steve Kinzler, kinzler@cs.indiana.edu, Feb 94/Jan 02 # http://www.cs.indiana.edu/~kinzler/home.html#x11 DISPLAY=${DISPLAY-:0} echo "DISPLAY=$DISPLAY" export XINITRC DISPLAY case "$1" in =) echo 'Skipping DNS lookups for xauth FQDNs.' NO_DNS=1; export NO_DNS;; =*) if=`echo "$1" | sed 's/=//'`; shift echo "Starting network interface $if ..." ifup "$if";; esac mkxauthority NO_DNS= # run "# locale-gen en_US" for Ubuntu errors here case "$LANG" in ''|C) LANG=en_US;; # for 8-bit cut+paste esac export LANG exec ssh-agent xinit -- -auth ${XAUTHORITY-$HOME/.Xauthority} $args ${1+"$@"}