Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot start X using a .xinitrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
weelkin
n00b
n00b


Joined: 13 Dec 2011
Posts: 7

PostPosted: Thu Dec 15, 2011 10:24 pm    Post subject: Cannot start X using a .xinitrc Reply with quote

Hello,

i'm simply trying to start X with a .xinitrc like this:

Code:
#!/bin/sh
exec twm &
exec xterm &


But X refuses to start with no apparent error in the log or in the console. I tried as user and as root, but no luck so far. Any ideas? It works when i delete my
xinitrc and it starts xclock and 3 xterms...
The second problem i have is that i can't start compiz. It complains about having no Xgl although the Xorg log says that AIGLX enabled is.
Maybe these Problems are somehow connected.

Thanks in advance,

weelkin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46361
Location: 56N 3W

PostPosted: Thu Dec 15, 2011 10:29 pm    Post subject: Reply with quote

weelkin,

With no .xinitrc, Xorg will use the system wide default one, which starts twn, 3 xterms and xclock.
You need to install twm, xterm and xclcock for this to work.

Code:
twm &
        xclock -geometry 50x50-1+1 &
        xterm -geometry 80x50+494+51 &
        xterm -geometry 80x20+494-0 &
        exec xterm -geometry 80x66+0+0 -name login
is what I use for testig in my .xinitrc.
Its not a script, so the #!/bin/bash at the top is not normally needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Fri Dec 16, 2011 12:14 am    Post subject: Reply with quote

I don't know, why would you want to use twm, but as for .xinitrc, if every line of it is 'exec <something> &', it can't really work.
The final line needs to be in the foreground or you need to use waitpid.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum