You are not logged in.
I have followed this: https://wiki.archlinux.org/index.php/Start_X_at_Login
But still X do not start at login, after logging in I just get in the tty console.
If I type 'startxfce4' all work fine, it's like that command is not being executed automatically.
My bash profile:
$ cat .bash_profile
#
# ~/.bash_profile
#
. $HOME/.bashrc
#[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -z $DISPLAY && $XDG_VTNR -eq 3 ]] && exec startx
export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"My xinitrc (do not pay attention to the 2 xrandr lines):
$ cat .xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
##################################
####### Personalizzazioni ########
xmodmap -e 'add mod3 = Scroll_Lock'
xrandr --fbmm 408x255
#xrandr --output DVI-I-1 --pos 1440x0 --mode 1440x900 --rate 75.0
##################################
##################################
######## Ambiente singolo ########
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
##################################
##################################
######### Post ambiente ##########
xrandr --output DVI-I-1 --pos 1440x0 --mode 1440x900 --rate 75.0
##################################
##################################
######## Ambiente multiplo #######
# exec ck-launch-session --exit-with-session startxfce4
#DEFAULT_SESSION="exec ck-launch-session --exit-with-session startxfce4"
#case $1 in
#
#xfce4)
# exec startxfce4
# ;;
#gnome)
# exec gnome-session
# ;;
#e17)
# exec enlightenment_start
# ;;
#esac
##################################EDIT: added description about happens after login, in the 2nd row of the post.
Last edited by buntolo (2014-09-13 12:40:20)
Offline
What does not starting look like? Do you get an error? Does it crash? Do you just log in and see a command prompt? See other diagnostic tests here
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What does not starting look like? Do you get an error? Does it crash? Do you just log in and see a command prompt? See other diagnostic tests here
I get logged in the tty console, no error at all! It acts like there is no .xinitrc file.
$ pgrep Xorg
443
$ echo $0
bash
$ echo $XDG_VTNR
1
$ loginctl
SESSION UID USER SEAT
c1 1000 archio seat0
1 sessions listed.
$ uname -a
Linux archio-immobile 3.16.2-1-ARCH #1 SMP PREEMPT Sat Sep 6 13:12:51 CEST 2014 x86_64 GNU/LinuxAfter manually launching startxfce4 I get a correct session:
$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=archio
Timestamp=Sat 2014-09-13 10:38:24 UTC
TimestampMonotonic=21599169
VTNr=1
TTY=tty1
Remote=no
Service=login
Scope=session-c1.scope
Leader=383
Audit=0
Type=tty
Class=user
Active=yes
State=active
IdleHint=yes
IdleSinceHint=1410604736829235
IdleSinceHintMonotonic=0Last edited by buntolo (2014-09-13 12:06:25)
Offline
$ echo $XDG_VTNR
1You're on tty 1. You set it up to only autostart X on tty 3.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
$ echo $XDG_VTNR 1You're on tty 1. You set it up to only autostart X on tty 3.
I did it on purpose, following what suggested here: https://wiki.archlinux.org/index.php/Start_X_at_Login
You can replace the -eq 1 comparison with one like -le 3 (for vt1 to vt3) if you want to use graphical logins on more than one VT.
If I understand correctly with -le 3 I am not using vt3, but a range from vt1 to vt3, so i can make a second graphical login. I would like to use a second X on another vt to run steam.
Did I get it wrong?
Offline
-le = less-than-or-equal-to
-eq = equals
The conditional in your bash_profile uses '-eq 3' so you set it to only startx X auotmatically when your are on tty3. You are not on tty3, so it's doing exactly what you told it do. If you want to autostart X on vt numbes less than or equal to 3, then you need to use "-le" not "eq".
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ok, marking as solved.
Offline