Debian GNU/Linux at Infodrom

The Universal Operating System

XDM with The Matrix You want to run XDM with xmatrix in background?

Of course, you can do this with X11.

It's quite easy:

You will have to add the following blurb to your Xsetup_0:

   if grep -qs ^run-xmatrix /etc/X11/xdm/xdm.options; then
       # kill any running xmatrix
       pid=$(cat /var/run/xmatrix_0.pid 2>/dev/null)
       if [ "$pid" ]; then
	   kill -9 $pid 2> /dev/null
       fi
       rm -f /var/run/xconsole_0.pid
       xmatrix -root &
       echo $! > /var/run/xmatrix_0.pid
   fi
Sample Xsetup_0.

You will have to add the following blurb to your Xstartup_0:

   if grep -qs ^run-xmatrix /etc/X11/xdm/xdm.options; then
       # kill any running xmatrix
       pid=$(cat /var/run/xmatrix_0.pid 2>/dev/null)
       if [ "$pid" ]; then
	   kill -9 $pid 2> /dev/null
       fi
       rm -f /var/run/xconsole_0.pid
   fi
Sample Xstartup_0.

Back

© Joey, 26 Sep '99