Modify Startup
Desktop Training - DSL

Modify Startup

The file to make modifications on for startup is the /home/dsl/.xinitrc file. Before you edit this file create a backup by doing this command as root:

cp /home/dsl/.xinitrc /home/dsl/.xinitrc_bk

Stop Dillo from starting on startup.
If you want to stop Dillo from starting just place a # sign in front like the example.

# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &

 

Run a Program on Startup

You may require an X Window program to run at startup. This also can be done with the .xinitrc file. After the line that you see below enter the command to start the program followed by an &.

 

###################################

# put X windows programs that you want started here.

# Be sure to add at the end of each command the &

 

beaver &

 

This will start Beaver when you log into DSL.

 

Here is the default file for review.

 

This is the .xinitrc file edited to turn off Dillo at start

###################################

# put X windows programs that you want started here.

# Be sure to add at the end of each command the &

 

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"

DESKTOP="$(getoption.lua $HOME/.desktop wm)"

ICONS="$(getoption.lua $HOME/.desktop icons)"

 

# For German Keyboards

if [ $KEYTABLE == "de" ]; then

xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &

fi

 

#if egrep -qv noicons /proc/cmdline 2>/dev/null; then

if [ "$ICONS" == 1 ]; then

for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done

iconsnap.lua &>/dev/null &

xtdesk &>/dev/null &

fi

# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &

torsmo 2>/dev/null &

case $DESKTOP in

fluxbox )

fluxter &>/dev/null &

docked.lua &

swallow.sh docked &

exec fluxbox 2>/dev/null

;;

jwm )

./.background

sleep 2

exec jwm 2>/dev/null

;;

* )

exec fluxbox 2>/dev/null

;;

esac