Ideas are really flowing now. I'll try implement vnc and samba. Users can then control their overfoldix(knoppix) box with vnc from their main rig and monitor the client with EM3.
I've got a dozen little scripts written out to make controlling fah simple for a non-linux user. The simple ones come first so be patient. And these are rough since I'm not on a linux box right now, some are only partially complete...
foldon
foldon gromacs - I know you must have these in overfoldix already, although I could offer up a perl script that does some cool extra stuff though the system must have perl and awk installed for it to work.
foldstop- several possibilites here:
cd /folding
kill -15 $(ps -C $(ls *Core_*.exe) -o pid=)
Note: This is a "polite" termination (waiting FAH client and cores to finish their job) and if ps -ax should still show some cores running (newer cores may have this bug) then use a forced termination (no more waiting...):
cd /folding
kill -9 $(ps -C $(ls *Core_*.exe) -o pid=)
Attention! As FAH and Core different versions tend to respond differently to "killing" of these then it may be advisable to issue the same kind of "kill routines" to FAH client itself, too:
killall -15 FAH3Console-Linux.exe
and if it is still not dead (check it with "/sbin/pidof FAH3Console-Linux.exe") then:
killall -9 FAH3Console-Linux.exe
delete-
#!/bin/sh
$dir = /folding/directory
cd $dir
if $1 = wu
then
rm -rf work queue*
if $1 = cores
then rm fahcore_*
else
echo "Invalid argument. Correct useage is "delete wu" or "delete cores"
fi
viewlog-
#!/bin/sh
$dir = /folding/directory
cd $dir
more fahlog.txt | tail -5
cfgclient- think you already have this one
configsamba- This will have to echo a couple of questions to the user and then put their answers into the /etc/samba/smb.conf so they can set NTDomain, samba user, samba password... maybe a couple of other things... I've gotta check my own smb.conf to find out what needs to be unique and what can be standardized.
sambastart- "You may want samba to start automatically on boot. In that case, you should add the following to a rc file (I tend to use rc.local)." -Titan386
nmbd -D
smbd -D
Is $host a built-in variable or will I have to grab it out of the /etc/hostname? hmmm...
vncsmall
#!/bin/sh
vncserver -geometry 800x600 $host:1
vncmed
#!/bin/sh
vncserver -geometry 1024x768 $host:1
vnclarge
#!/bin/sh
vncserver -geometry 1280x1024 $host:1
vncstop