You are not logged in.

#1 2013-05-29 06:24:44

madth3
Member
Registered: 2013-05-29
Posts: 1

[SOLVED] Start X at login (wiki instructions problem)

[In a way I managed to make things work but I post here because others might find it helpful. I hope that's ok.]

After installing and configuring xfce successfully I wanted to start X automatically to save some time (since I'm using a Virtualbox guest).
So I followed the instructions at https://wiki.archlinux.org/index.php/Start_X_at_Login but they don't work for me.

My .bash_profile is being read but the line

[[ $TTY == "/dev/tty1" ]] && exec startx

is not working.

I found the thread at https://bbs.archlinux.org/viewtopic.php?id=159615 and then changed the line to the old wiki contents:

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

and that worked without a problem.

I'm wondering if the wiki edit was correct or there is something wrong with my installation.

I'm using the 2013 May release, installed a couple of days ago.

[ ~]$ uname -a
Linux host 3.9.3-1-ARCH #1 SMP PREEMPT Sun May 19 22:50:29 CEST 2013 x86_64 GNU/Linux

Last edited by madth3 (2013-05-30 16:46:33)

Offline

#2 2013-05-29 06:54:33

Argish
Member
Registered: 2012-07-04
Posts: 7

Re: [SOLVED] Start X at login (wiki instructions problem)

Did you made .bashrc executable ? It's not going to work If the answer is no.

Offline

#3 2013-05-29 09:08:09

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Start X at login (wiki instructions problem)

Apparently somebody didn't agree with the wiki and rewrote most of that page without discussing it first. If you have actually found a situation where this TTY check does not work (what is the value of $TTY when it is not working?) the changes should probably be reverted. I also don't like the change from profile to rc file and the removal of notes like "X must be started on same tty" (for logind session).

Argish wrote:

Did you made .bashrc executable ? It's not going to work If the answer is no.

That's not going to change anything. If you also add a hashbang line, you could run .bashrc as any other executable, but I don't see a reason to do that. And the OP only mentioned .bash_profile.

Offline

#4 2013-05-29 09:21:28

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

Re: [SOLVED] Start X at login (wiki instructions problem)

Raynman wrote:

Apparently somebody didn't agree with the wiki and rewrote most of that page without discussing it first. If you have actually found a situation where this TTY check does not work (what is the value of $TTY when it is not working?) the changes should probably be reverted. I also don't like the change from profile to rc file and the removal of notes like "X must be started on same tty" (for logind session).


Agreed. The changes detract from the usefullness and accuracy of the page, not add to it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-05-29 09:24:57

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

Re: [SOLVED] Start X at login (wiki instructions problem)

It's a wiki, so thankfully you can revert the changes rather easily. Is this version OK https://wiki.archlinux.org/index.php?ti … did=254230 ?

Offline

#6 2013-05-29 09:27:10

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

Re: [SOLVED] Start X at login (wiki instructions problem)

Already reverted them: and left a note on the Talk page... smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB