Black screen with .xinitrc


Forum: Other Help Topics
Topic: Black screen with .xinitrc
started by: MAGAT

Posted by MAGAT on Mar. 16 2005,22:47
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

Posted by mikshaw on Mar. 17 2005,00:03
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

Posted by MAGAT on Mar. 17 2005,07:57
ok thank
in fact i have already put the "&"
i try to place my line above fluxbox 2
I keeps you informed
vincent

Posted by MAGAT on Mar. 17 2005,08:57
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...

Posted by MAGAT on Mar. 17 2005,09:41
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....

Posted by henk.1955 on Mar. 17 2005,12:20
Why do you want to kill aplications you dont want to run. Dont start them.
Change the top of .xinitrc to:
Code Sample
# put X windows programs that you want started here.
# Be sure to add at the end of each command the &
#grep noicons /proc/cmdline >/dev/null
#if [ $? != 0 ]; then
#  enhance &>/dev/null &
#fi
#dillo -f /usr/share/doc/dsl/getting_started.html &>/dev/null &
and NO icons, NO wmapps and NO dillo Getting Started popup.

Posted by mikshaw on Mar. 17 2005,16:41
Quote (MAGAT @ Mar. 17 2005,03:57)
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

The first one loads fluxbox in the background and runs your script normally.  When the script ends, your X session ends.

The second one runs the script in the background and then runs fluxbox normally.  When the script ends, your X session is not killed.  The session runs until Fluxbox is closed.

I agree completely with henk.  You're just making extra work for yourself by closing unwanted running programs rather than just not starting them in the first place.

Posted by MAGAT on Mar. 17 2005,17:41
Thank you
for all this information
vincent from france

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.