Meh. You guys aren't that good!

MedlockMedlock Miramar, Florida Member
edited February 2006 in Folding@Home
A few days ago, this crap stumps me. I come here, asking for help, nothing of course! :rant::grumble:

It's no problem, I got it working, after installing crappy firedaemon... :) I don't know what I'm gonna do when I get the next console up, as firedaemon can only do 1 service, the free version. :(

I really should have done this sooner... Take a look at my recent production... The few points there are from a 930 MHz P3. :banghead:

Edit: You know, I'm still open to suggestions about instsrv and srvany. I really don't like using FireDaemon to run this service...

Comments

  • mmonninmmonnin Centreville, VA
    edited July 2004
    Oh man I'm sorry.

    I have never used svarny. I know some people have installed FAH on 2 services.
  • edited July 2004
    Sorry I can't help you on that, TheGr81. I don't run any clients as a service; I just use an app called Trayit! to iconify the console client(s) to my system tray. Since I don't have access to machines to borg that need the client installed as a service, I've never bothered to learn anything about it. :)
  • edited July 2004
    Here are the instructions that I use to set up FAH as a service. I assume that you have instrsrv.exe and srvany.exe. If not, I can send them to you, they are quite small. I've had success on all the computers I've set up this way:

    Running the Folding@Home Client as a Service in Windows NT/2000/XP

    There are several reasons that you might want to run Folding@Home as a Windows service, rather than as a normal application. The most obvious is that it gets rid of the taskbar button, reducing clutter. The second is if you prefer, for whatever reason, to run the client in "stealth" mode, i.e., not visible to casual viewers. The final and possibly most useful reason is that when Folding is running as a service, you are no longer required to be logged in to the machine for Folding to run. This means that if something causes the machine to reboot, genome will resume processing even sitting at the Windows login screen. The following takes you through the process of setting up a standard Folding@Home client to run as a Windows service.
    This procedure makes a couple of fundamental assumptions. First of all, it assumes that you have already installed and configured the Folding@Home text-based console client. If not, a trip to the Folding@Home web site will get you started. Secondly, it assumes that the path to the client is "C:\fold\". If you have Folding installed in a different directory, modify the instructions accordingly. Finally, to save aggravation of using a beta or nonbeta console client, copy and rename FAHconsole.exe to fahsrv.exe in the same directory.
    In addition to your Folding@Home installation, you will need the two small Microsoft programs in order to set up your service. Instsrv.exe is the program used to create a Windows service, and Srvany.exe is a program that allows almost any other program to run as a service. These files are available in Microsoft's Windows Resource Kit, at various internet sites, or you can just download them both here.
    Finally, before we get started, a quick disclaimer: This procedure involves editing the Windows registry, which, by nature, involves some risk. If you are unfamiliar with editing your registry, DON'T DO IT. I cannot and will not be responsible for any damage caused by a hacked registry entry. Secondly, while I have tested this procedure in Windows XP, and it has worked fine in every environment that I've tested, I cannot not be held responsible if it doesn't work for you. Computers are odd creatures, and your mileage may vary...
    Step 1.
    Put Instsrv.exe and Srvany.exe in your Folding@Home directory.
    Step 2.
    From the Start button, go to Programs->Accessories, then click on Command Prompt. This will open a command window, where you'll need to change to your Folding directory by typing cd\fold, then pressing ENTER.
    Step 3.
    Type instsrv Folding c:\fold\srvany.exe and press ENTER. This will create a service called "Folding". You can substitute a different service name if you wish. If the process is successful, you'll see the following message:
    CreateService SUCCESS at creating:

    Folding

    You must now go to the Registry and the Services applet in the
    Control Panel and edit them as per the instructions.

    When you're done, just minimize the command window, as we'll be returning to it later in the process.
    Step 4.
    Open Regedit by clicking Start->Run, then typing regedit and pressing ENTER.
    Step 5.
    Navigate to the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Folding
    Step 6.
    In the left pane of the registry window, click on the Folding key. Then, in the right pane, right-click and choose NEW -> KEY. Name the key Parameters
    Step 7.
    In the newly-created Parameters key, right-click and choose NEW -> STRING VALUE. Name the value AppDirectory
    Step 8.
    Repeat Step 7 to create a second new string value. Name it Application
    Step 9.
    Repeat Step 7 to create a third new string value. Name it AppParameters
    Step 10.
    Double-click on the String Value "AppDirectory". This will bring up the Modify dialog box. Set the value for AppDirectory to c:\fold\
    Step 11.
    Double-click on the String Value "Application" Set the value for Application to c:\fold\fahsrv.exe
    Step 12.
    Double-click on the String Value "AppParameters" Set the value for Application to -service
    Step 13.
    Close Regedit
    Step 14.
    Stop your Folding@Home client

    Reboot your computer and verify the process in task manager

    If you have any q's feel free to ask. Sorry for the time it took to respond.

    KingFish
  • edited July 2004
    Also, if you want to set up additional flags such as -forcesse, -advmethods, and -verbosity 9 you'd do it in the "appparameters" section described above in regedit. Leave a space between each flag.

    KingFish
  • MedlockMedlock Miramar, Florida Member
    edited July 2004
    :aol::aol::aol:

    Wow... I can't believe that! All this time I didn't put the right thing in the cmd prompt. I guess I never took a good enough look at the instructions. I was typing in "instsrv FAH4Console "C:\program files\folding@home\fah4console.exe" DUH!!

    Thanks a lot KF! I can't believe I missed that! :banghead:
  • edited July 2004
    It's easy to go wrong with these instructions. Like you found out, you have to point instsrv to srvany, not folding at home. You point srvany to fah4console in the registry. I deviate a bit from the instructions in that I name the process "FAH" instead of "Folding" and I don't rename fah4console.exe. It works equally well. Yes, we are that good, hehe.

    KF
  • Buddha16Buddha16 Austin, Tx Member
    edited February 2006
    What if newer fah text only versions don't have fah4console.exe or any fah[x]console.exe at all? I have srvany going as a service but it can't run a program!!:-/
  • deicistdeicist Manchester, UK
    edited February 2006
    You don't need any of this jiggery pokery any more, the newer console clients install themselves as a service. It's one of the prompts during the setup process.
  • LeonardoLeonardo Wake up and smell the glaciers Eagle River, Alaska Icrontian
    edited February 2006
    jiggery pokery
    Leo finds a new term and enters it in his colloquial dictionary. Thanks :D
  • Buddha16Buddha16 Austin, Tx Member
    edited February 2006
    oh yea it does. jeeeeeezzzzzzz! thnx
Sign In or Register to comment.