Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Black screen with .xinitrc, start a bash script at startup< Next Oldest | Next Newest >
MAGAT Offline





Group: Members
Posts: 16
Joined: Sep. 2004
Posted: Mar. 16 2005,22:47 QUOTE

I have make a remaster
and now i want to start a script after
x windows was launch
i add this line in .xinitrc ==>
mount /mnt/hda1
rxvt -rv -T fixed yellow "start shell" -e sudo sh /mnt/hda1/start.sh

and when i launch dsl when it launch x windows i have a black
screen
if i launch the script "sh .xinitrc" manually it's ok
.....?

perhaps it's not the good file to launch a x term at startup....?

vincent
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 17 2005,00:03 QUOTE

Try adding an ampersand (&) after the command, and make sure it is above the "fluxbox" line (unless you want to run the script in place of the window manager).  This runs the command in the background and allows .xinitrc to continue its business.

You should be able to run anything you want from .xinitrc


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
MAGAT Offline





Group: Members
Posts: 16
Joined: Sep. 2004
Posted: Mar. 17 2005,07:57 QUOTE

ok thank
in fact i have already put the "&"
i try to place my line above fluxbox 2
I keeps you informed
vincent
Back to top
Profile PM 
MAGAT Offline





Group: Members
Posts: 16
Joined: Sep. 2004
Posted: Mar. 17 2005,08:57 QUOTE

now it's ok  above fluxbox

i don't understand the difference between
================================
fluxbox &
rxvt -rv -T fixed yellow "start shell" -e sudo sh /mnt/hda1/start.sh

and

rxvt -rv -T fixed yellow "start shell" -e sudo sh /mnt/hda1/start.sh &

fluxbox
=================================

thank again...
Back to top
Profile PM 
MAGAT Offline





Group: Members
Posts: 16
Joined: Sep. 2004
Posted: Mar. 17 2005,09:41 QUOTE

ok now my script start

In my script i have this line :
killall -9 xtdesk
killall -9 wmcpuload
killall -9 fluxter
killall -9 wmnet
killall -9 asmem
killall -9 wmix
killall -9 mount.app

when i execute with sh start.sh it's ok
but at startup (call in my .xinitrc file)
i have no process to kill

my question:
how to wait that this process is done....

thank vincent....
Back to top
Profile PM 
7 replies since Mar. 16 2005,22:47 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Black screen with .xinitrc

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code