You are not logged in.
I've got a laptop which I'd like to boot into X most of the time but also have the option to boot to the command line, how can I do this?
I use grub so I was thinking that it could be through there somehow by passing parameters to the kernel but I don't know what I'd pass or how I would interpret it once booting had started.
Can anyone suggest a way to do it?
Offline
Put something like this in your ~/.bash_profile :
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
startx
logout
fiThis will start X when that user logs into console 1 , but goes to command line when logging in on console 2,3,4,5,6 .
Taken from Start_X_at_boot
Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them
Offline
OK, thanks thats a good solution. I was thinking more of either starting gdm or just command line but this will work just as well.
Offline
http://wiki.archlinux.org/index.php/Add … on_startup
see the part on runlevels.
Offline