You are not logged in.

#1 2009-01-22 23:43:22

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

[SOLVED]User intervention required to start X

I have a strange problem that has cropped up recently.

I use xinitrc to login and once I put in my username and password, it shows me my last login date and just sits there doing nothing. I have to hit the "RETURN" key twice for it to actually start X. I have even let it sit for over an hour and it just doesn't start up X.

What could be the issue? I haven't changed my xinitrc or my bash_profile files since a long time and it used to work correctly before. Here are the relevant files

xinitrc

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

# exec gnome-session
# exec startkde
# exec startxfce4
# exec icewm
exec openbox-session
# exec blackbox
# exec startfluxbox
# exec ratpoison
# exec dwm
# exec enlightenment_start
# ... or any other WM of your choosing ...

bash_profile

. $HOME/.bashrc

if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi
if [ -z "$DISPLAY" ]; then
    rm ~/.serverauth* 2>/dev/null
    startx -- -br 2>/dev/null
fi

Last edited by Inxsible (2009-01-23 00:14:44)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2009-01-22 23:53:06

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: [SOLVED]User intervention required to start X

as a first step, remove the redirects to /dev/null from your .bash_profile so you get some output from startx.  then, if you can fix it yrself, post yr solution.  if not, post your output.

Last edited by kludge (2009-01-22 23:54:12)


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#3 2009-01-23 00:05:20

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]User intervention required to start X

kludge wrote:

as a first step, remove the redirects to /dev/null from your .bash_profile so you get some output from startx.  then, if you can fix it yrself, post yr solution.  if not, post your output.

Thanks for setting me up in the right direction. It asks me 2 questions both about removing a serverauth.2442 file and another for serverauth.2775 file

rm: remove regular file ~/.serverauth.2442?
rm: remove regular file ~/.serverauth.2527?

I simply removed those files and updated my bash_profile to not ask for user confirmation while removing those files in the future.

Last edited by Inxsible (2009-01-23 00:14:13)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB