You are not logged in.
So currently, my system boots automatically to X using the /etc/inittab method here: https://wiki.archlinux.org/index.php/Start_X_at_Boot
But in order to be 'local' in ConsoleKit, I'd like to switch to the ~/.zprofile method. (The first one, but I use zsh.)
So my understanding on how this is done:
Change
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
to
## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:
and comment out this line:
x:5:once:/bin/su andy -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
Now here's where I get a little foggy.
Do I then change the c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux line in /etc/inittab to c1:2345:respawn:/sbin/mingetty --autologin andy tty1 linux (after installing mingetty, of course) and then add
if [[ -z $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
exec startx
fi
or
if [[ -z $DISPLAY && $(tty) = /dev/tty1 ]]; then
exec startx
fi
to ~/.zprofile?
Where I'm trying to get at here is should I automatically log in to tty7 or automatically log in to tty1 if startx automatically runs X on tty7?
EDIT: Also, I'm assuming you'd comment out the x:5:respawn:/usr/bin/xdm -nodaemon line in /etc/inittab? Or does that only get run if you have #id:5:initdefault: uncommented?
Last edited by Arm-the-Homeless (2011-08-09 18:47:01)
Offline
I see the [solved] tag, but where's the solution?
Offline
id:5..... = x:5...... so you totaly skip this when u use id:3 (init 3)
O' rly ? Ya rly Oo
Offline
I see the [solved] tag, but where's the solution?
Got it solved in IRC.
Offline
karol wrote:I see the [solved] tag, but where's the solution?
Got it solved in IRC.
Cool, but pretty please include the solution here so folks that see a [solved] problem they're having won't see your post as a sad joke.
Offline
karol wrote:I see the [solved] tag, but where's the solution?
Got it solved in IRC.
Share your findings with the community. Share your failures as well. Posting the equivalent of 'Nevermind, I fixed it.' in your thread or deleting your own posts for similar reasons is not only selfish and useless to the community, but a complete waste of resources and everyone's time.
Offline
Arm-the-Homeless wrote:karol wrote:I see the [solved] tag, but where's the solution?
Got it solved in IRC.
Forum Etiquette wrote:Share your findings with the community. Share your failures as well. Posting the equivalent of 'Nevermind, I fixed it.' in your thread or deleting your own posts for similar reasons is not only selfish and useless to the community, but a complete waste of resources and everyone's time.
Well, it was more of just a question if I was right...
Which, well, yes I was, apparently.
Offline