View previous topic :: View next topic |
Author |
Message |
weelkin n00b
Joined: 13 Dec 2011 Posts: 7
|
Posted: Thu Dec 15, 2011 10:24 pm Post subject: Cannot start X using a .xinitrc |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Thu Dec 15, 2011 10:29 pm Post subject: |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Dec 16, 2011 12:14 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|