From: <shs...@st...> - 2003-03-31 18:39:56
|
Hi again, i started working on a GUI for changing the number running X servers, some screenshots: http://varna.demon.co.uk/~svetlio/aivils2/contrib/bruby-python/ please give it a try, but for safety disable( comment out) the actual commands, that could break smth. before activating the comands, make shure that the system works properly useing the /etc/rc.d/rc.sysinit add-on and the additional Xservers.[0-(the number of your graphic cards -1)] !!! you have to have working XF86Config-4's, !!! !!! and they must be specified in the right order !!! !!! in the Xservers.[0-(the number of your graphic cards -1)] !!! you can check this by starting a bruby kernel with : dumbcon=0 dumbcon=1 dumbcon=2 up to the number of your graphic cards -1 not specifying dumbcon should be equal to dumbcon=0, only one X server is started the actual code is in : http://varna.demon.co.uk/~svetlio/aivils2/contrib/bruby-python/bruby-dm- configs/usr/lib/bruby-python/ python/dialog menu/interface consists of : bruby-menu.py, sel_Xservers.py, dialog.py shell scripts used by the python menus: getCurr, changeCurr, restartDM.sh shell scripts/ links (sort of): bruby_X links X_dialog.py to dialog.py -- starts the menu useing Xdialog bruby_cmd links cmd_dialog.py to dialog.py -- starts the menu useing dialog difference between X_dialog.py & cmd_dialog.py: at the very beginning the definition of Dialog - - for X_dialog.py Dialog=/usr/bin/Xdialog - for cmd_dialog.py Dialog=/usr/bin/dialog it requires python and dialog/Xdialog for cmd/X interface ( see bruby-python/usr/sbin/bruby_X & bruby_cmd ) as i'm pretty tired these days, there are some really stupid misstakes(bugs :( ) like for example the script for restarting the dm : ------------------------------------------------------------------------- #!/bin/bash # # $RCSfile: $ # $Author: $ # $Locker: $ # $Id: $ ps -A | grep gdm &>/dev/null if [ $? -eq 0 ]; then echo "Restarting gdm" kill -HUP `cat /var/run/gdm.pid` &>/dev/null exit 0 fi ps -A | grep kdm &>/dev/null if [ $? -eq 0 ]; then echo "Restarting kdm" kill -HUP `cat /var/run/gdm.pid` &>/dev/null exit 0 fi ps -A | grep xdm &>/dev/null if [ $? -eq 0 ]; then echo "Restarting xdm" kill -HUP `cat /var/run/gdm.pid` &>/dev/null exit 0 fi -------------------------------------------------------------- i've forgot to change the kill line, i'll fix it later today. that's all for now, i hope i'll found some time soon to make sort of web page, with some more detail explanations. best, svetljo |