You are not logged in.

#1 2011-08-09 18:24:16

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

[SOLVED] Starting X at boot (inittab->zprofile)

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

#2 2011-08-09 20:02:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Starting X at boot (inittab->zprofile)

I see the [solved] tag, but where's the solution?

Offline

#3 2011-08-09 20:24:33

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: [SOLVED] Starting X at boot (inittab->zprofile)

id:5..... = x:5...... so you totaly skip this when u use id:3 (init 3)


O' rly ? Ya rly Oo

Offline

#4 2011-08-09 21:08:42

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVED] Starting X at boot (inittab->zprofile)

karol wrote:

I see the [solved] tag, but where's the solution?

Got it solved in IRC.

Offline

#5 2011-08-09 21:12:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Starting X at boot (inittab->zprofile)

Arm-the-Homeless wrote:
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

#6 2011-08-09 21:16:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Starting X at boot (inittab->zprofile)

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.

Life Is A Two Way Street


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-08-09 23:22:47

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVED] Starting X at boot (inittab->zprofile)

jasonwryan wrote:
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.

Life Is A Two Way Street

Well, it was more of just a question if I was right...

Which, well, yes I was, apparently. hmm

Offline

Board footer

Powered by FluxBB