• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

finding FAH on my linux machine

racercarl

Limp Gawd
Joined
Nov 16, 2003
Messages
485
Ok i am a new linux user and finally got this machine to work somewhat the way I think it should. I have no one in the local area that has been able to help me with linux, as the two people i know that use it are never in town for long enough to help.

I have FAH running on my windows box and need to get it on this one. I down loaded the client and tried to install it. if i click on it to try to open it in a shell it flashes up then disappears? tried to find it and can't, even if I point to the public files it was downloaded into? ( multiple tries )

I went to all the sites that supposedly have answers and most of them assume I already have it installed and/ assume i have written programming for years and know the language. For ME there was no answers or help there.

I have wine installed so i thought " no problem" i will just run the windows version in wine.
downloaded it, installed it and poof, no sign of it.

I know it installed, but can't find it to be sure, and I need to put in the team number, so we can stay ahead of the Aussies :D

I am running SuSe 8.2 pro, Amd 1100 Clocked to1521, 1.5 gig memory and 120 gig hard drive. System is stable at everything I have done so far and tested so. ( backed it down to get stable from where it was actullay working but wouldn't test out. :D

Any simple advise for a REALLY new linux user.
 
For the Linux client-

open a terminal and cd to the directory where folding is saved
ex using /home/username/fah/FAH4Console-Linux.exe

cd /home/username/fah
chmod +x FAH4Console-Linux.exe
./FAH4Console-Linux.exe -advmethods -forceasm



For the windows client-

cd /home/username/fah
wine -- FAH4Console.exe -advmethods -forceasm

wine may not have access to the correct fonts and so you may get errors, in which case it will be difficult to create the client.cfg file.

To check if you're folding, run the command

top

You should see the fahcore_##.exe taking up cpu time for the linux client, or wine.bin taking up cpu time for running the windows client in wine.
press q to quit
 
tried your suggestions, could not get it to come up in a shell. kept getting "no such file or directory."

tried every directory i could think of, it would not change to the one with the cleint in it.

deleted the download and put it in the desktop directory.

go to the directory and it is there, try to bring it up in a shell and "no such file or directory"

tried copying it to a shell and it shows up but can't execute it, i think it only copied the label not the file that way,

I down loaded into wine and it says it needs a windows executable to run.

used the top comand ( no where have I heard of or seen that comand before) and it is not running:(

I have downloaded the other programs i needed to use this machine everyday, and I really don't want to go back to "Bill's better way" of OS ( BS )

I want this box to fold, or it's going to get converted to windows, so it can
cause if it won't do what i want, it's worthless and I will have all of my machines folding

really getting frustrated at this point
:confused:
 
Note- an easier solution is to use finstall available at http://forum.folding-community.org

If you follow these instructions, folding will run as a service on your linux box. It will start at boot-time. You will also create a few custom commands that will make it easy to stop, start, reconfigure user/team, and view the folding logfile with simple one-word commands. So this goes a bit beyond just a service install.


Part 1. Shell scripting

These scripts will make managing your folding a little easier and will be step one in setting it up as an automatic service. Only a very slight familiarity with linux is assumed.

Create some new text files by right-clicking your desktop and choosing create new text file. Paste the following scripts into these new test files. For all of these scripts, change the FoldDir variable so that it points to your actual folding directory. For the purposes of this guide, you will also want to make sure to rename your folding client .exe file to FAH4Console.exe. If you have not already, you need to make FAH4Console.exe executable.

cd /your/folding/directory
(I suggest /home/your_username/fold for the folding directory)
chmod +x FAH4Console.exe


Script I (I usually name this one foldon)

#!/bin/sh
#This script starts folding@home as a background service
# it uses gromacs flags
# Change your FoldDir variable to refelct your actual folding directory's location
# your folding client's .exe should be named FAH4Console.exe
FoldDir=/path/to/your/folding
cd $FoldDir
./FAH4Console.exe -advmethods -forceasm -forcesse > FAHlog.txt &
echo "Starting F@H service..."


Script II (I call this one viewfold)

#!/bin/sh
# This script displays a portion of the folding log file
# tail -20 can be set to any number you want, just not too large
# that will be the number of lines displayed
# Change your FoldDir variable to refelct your actual folding directory's location
FoldDir=/path/to/your/folding
more $FoldDir/FAHlog.txt | tail -20


Script III ( I call this one foldoff)

#!/bin/sh
# This script safely kills folding@home
killall -15 FAH4Console.exe


Script IV (this one's optional. Its an easy way to reset the client.cfg file)

#!/bin/sh
#This script starts folding@home and uses gromacs flags
# It also runs the -config option to let you enter new user information
# Change your FoldDir variable to reflect your actual folding directory's location
# your folding client's .exe should be named FAH4onsole.exe
FoldDir=/path/to/your/folding
cd $FoldDir
./FAH4Console.exe -advmethods -forceasm -forcesse -config



Part 2. Preparing the scripts for use.

Now, hopefully you've got some new text files and have saved them and named them. The name will also be the command to launch the script from a terminal.

Now you'll want to move them to a location where other executables are kept. I suggest /usr/local/bin. You might need to be root in order to write to that directory, so become root by using the su command. Replace your_user_name in the commands below with your normal username.

su
(enter root's password)

mv /home/your_username_here/Desktop/foldon /usr/local/bin
mv /home/your_username_here/Desktop/foldoff /usr/local/bin
mv /home/your_username_here/Desktop/cfgfold /usr/local/bin
mv /home/your_username_here/Desktop/viewfold /usr/local/bin


Now you need to make these scripts executable.


cd /usr/local/bin
chmod +x foldon
chmod +x foldoff
chmod +x viewfold
chmod +x cfgfold

(That can probably all be done as one command, but for new linux users, repetition of common commands is a good thing. )


Part 3. Making it start when the system boots

This procedure can vary depending on the distro you have. You will either be entering a command into a file (rc.local method), or you will be creating a link to your script in a startup folder (rc5.d method). You should still be root, but if not, become root with the su command.

su
(enter root's password)


Look at your system's /etc directory for some specific files.

cd /etc
ls

You want to find rc.local if it exists. Or if it doesn't, then rc5.d, rc3.d, and rc2.d.


For rc.local:


Open rc.local with a text editor. If you have one you like, good. My example uses vi.

vi rc.local


(press the i key to insert text and type the following line, but replace "your_username" with your normal username)

su -c "/usr/local/bin/foldon" your_username

(To save in vi, press the escape key followed by a :wq and then press enter.)



For rc5.d, rc3.d, and rc2.d:

These folders contain shortcuts to system services (also called init scripts because these scripts can be issued to start, stop, or restart system services). Rc5.d is run control 5 which means the stuff isnside it runs when you boot straight to graphical mode (default from many distros and especially preferred by newbies). Rc3.d and rc2.d are both run levels that go to a text prompt, aka text mode. The difference between them is that rc3.d starts more networking services than rc2.d. If you are unsure you can edit all three of these, though you actually only boot into one of these run levels by default.

ln -s /usr/local/bin/foldon /etc/rc5.d/S99foldon



Step 4. Optional, and only needed if you modified the rc#.d file(s). If you edited rc.local, skip this section.


One problem is that folding will be run by root instead of by an ordinary user. This is not a big deal, but you should run it as a normal user for the sake of this paranoid administrator.


You can leave it as is, or you can do this one last step:

cd /usr/local/bin
cp foldon fold
vi foldon

(press the i key to insert text. Here's what you're looking at. The text in red is what you need to add.)

#!/bin/sh
#This script starts folding@home as a background service
# it uses gromacs flags
# Change your FoldDir variable to refelct your actual folding directory's location
# your folding client's .exe should be named FAH4Console.exe
FoldDir=/path/to/your/folding
cd $FoldDir
su -c "./FAH4Console.exe -advmethods -forceasm -forcesse > FAHlog.txt & " your_username_here


(Make sure to replace your_username_here with your normal username. Save the file by pressing escape and then :wq and enter)

Run this command as root to make sure the permissions for everything are set correctly:
chown -R username /your/folding/directory
(where username is the user who will be running folding@home)
Launch the client for the first time as the regular folding user with the cfgfold script and configure it.

Part 5. Congratulations!!


It's not very hard to make desktop icon shortcuts to your scripts or to place shortcuts in a "quick launch bar" in the same style as a windows system. Tune in next time for more Linux tweaking tips....


Please report any errors in this how-to so that they can be corrected ASAP. Updated for v4.0 folding@home.
 
thank's to Arkaine23, i finally figured out how to get fah running on computer # 2.
( follow the simple advice ) thank you for helping ,

box # 3 will be here friday and as soon as it's checked out it will be folding also:D

Picture a old semi fat hippie doing the happy dance:D :D :D
 
Back
Top