i dont remeber where i got this from, but if you know let me know and i will give proper credit, but here are some steps/guidlines that should give you a good idea on how to do this i hope this helps some one.
This assumes you are NOT currently running F@H. IF you are, skip to step 9.
First install the Folding at home clients.
1) Make two separate directories (i.e. C:\F@H1 and C:\F@H2
2) Run the program with the -local switch. This makes it put the work directory it creates in each separate folder. By default, without the -local switch, each instance will SHARE protein work data, and re-do the data the other has already done. You do NOT want that.
ex) "C:\F@H1\FAH3Console.exe" -local
and
"C:\F@H2\FAH3Console.exe" -local
3) When configuring, make sure you go use team number 3074 when it asks for it. Also, it will ask to change advanced options - choose YES.
4) For core type choose fah
5) For core priority choose either, but of course idle is suggested.
6) For CPU usage requested, if you chose idle, go ahead and choose 100. If you chose low, you might want to throttle it back a bit, but even low is pretty low priority (only higher than other idle priority apps)
7) For Machine ID choose 1 for the FIRST instance of F@H and 2 for the SECOND. You must identify the two programs as different "machines" for it to be logged correctly.
8) It will then say "Benchmarking" and download the work necessary to get started. Once it does that, go on to the other program and set it up. Remember to go into advanced options and choose machine # 2 (or 3 or 4)
9) Once both instances are all configured and have downloaded all the files and are actually working...shut them down.
You now have a dual-cpu setup of F@H. If you want to install them as services, continue on.
10) First save the following as the file "folding.reg"
quote:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\F@H_CPU_0\parameters]
"Application"="C:\\F@H1\\FAH3Console.exe"
"AppDirectory"="C:\\F@H1"
"AppParameters"="-local"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\F@H_CPU_1\parameters]
"Application"="C:\\F@H2\\FAH3Console.exe"
"AppDirectory"="C:\\F@H2"
"AppParameters"="-local"
11) Next save the following as "install.cmd"
quote:
@echo off
md C:\F@H1
copy "folding.reg" "C:\F@H1"
regedit /s "C:\F@H1\folding.reg"
::Copy FOLDING service files (\...\ = path)
copy "instsrv.exe" "C:\F@H1\"
copy "srvany.exe" "C:\F@H1\"
copy "netsvc.exe" "C:\F@H1\"
echo .
echo Wait till files copied
echo .
pause
::Install FOLDING executable as NT Service
"C:\F@H1\instsrv.exe" F@H_CPU_0 "C:\F@H1\srvany.exe"
pause
net start F@H_CPU_0
pause
md C:\F@H2
copy "folding.reg" "C:\F@H2\"
regedit /s "C:\F@H2\folding.reg"
::Copy FOLDING service files (\...\ = path)
copy "instsrv.exe" "C:\F@H2\"
copy "srvany.exe" "C:\F@H2\"
copy "netsvc.exe" "C:\F@H2\"
echo .
echo Wait till files copied
echo .
pause
::Install FOLDING executable as NT Service
"C:\F@H2\instsrv.exe" F@H_CPU_1 "C:\F@H2\srvany.exe"
pause
net start F@H_CPU_1
pause
goto end
:error
12) Edit the two files to use your F@H directories if you did not install the program into C:\F@H1 and C:\F@H2. Note: Make sure you use DOUBLE BACKSLASHES in the folding.reg file.
13) Download folding_dual.zip. It includes INSTSRV.EXE, NETSVC.EXE, and SRVANY.EXE a well as dummy versions of folding.reg and install.cmd. Do NOT use the folding.reg and install.cmd files that come with the .zip file - use your own that you made!!! (As seen in the next step)
14) Unzip the files into a directory, and replace the folding.reg and install.cmd files with the ones you made.
15) Copy the file NETSVC.EXE into your windows\system32 (or winnt\system32) directory.
16) MAKE SURE YOU DO # 15!!!
17) You are almost done. Just double click on the install.cmd file you made (you did replace the one in the .zip file with your own, right?!?) and watch the output. If it all goes right, you should see it install a few files and start the first service, and then the second.
18) If for some reason there are any errors when you run the .cmd file and/or the services do not start, it is probably one of four things:
a) You didn't correctly change the .reg and .cmd files to reflect your F@H directories. (Remember the double backslashes in the .reg file)
b) You didn't follow step # 16
c) You didn't put all the files into the same directory before you ran the install.cmd file
d) You aren't using FAH3Console.exe as your F@H program. Check your directories and see what version you are using (FAH3Console.exe was the latest as of this writing).
*phew*
1) To create the separate directories, simply right-click where you want the directory to be made, and click on New and then Folder. You don't need to download the copy to each directory - just download it to one, and copy it to the other.
2) A service is (in an NT-based OS such as NT 3.x-4, Win 2000, and Win XP) a "background task" that is started and stopped by parameters set in the service. I.E. when set as a service, the F@H program will run upon every boot, if desired, automatically, if desired, and in the background, so you won't see the windows.
Basically, it's good for programs that you want to run without any user intervention, or user observance. You can still see it is active by checking the Task manager's processes, or checking in services to see if the specified service is running.