FAH

From Segfault
Jump to navigation Jump to search

Installation

Fetch the latest version from folding.stanford.edu and install:

sudo tar -C /opt/ -xjf latest.tar.bz2
sudo ln -s $(basename /opt/fahclient*) /opt/fah
sudo chown -R games:games /opt/fah/

Some older clients may be linked against /usr/lib/mesa/libGL.so.1, so it will be necessary to install libgl1-mesa-glx. Current clients are linked against the following libraries:

$ ldd /opt/fah/FAHClient
        linux-vdso.so.1 (0x00007ffd8c5f2000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f96e4f1b000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f96e4d00000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f96e4aef000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f96e48d2000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f96e45c7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f96e42c5000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f96e40af000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f96e3d06000)
        /lib64/ld-linux-x86-64.so.2 (0x000055d2188d4000)

Add a startup line to /etc/rc.local resp. /etc/rc.d/rc.local:

/usr/local/bin/fah.sh start                                             # TBD!

Configuration

sudo chmod a+rx /proc/bus                                               # May be needed so that /proc/bus/pci/devices can be read
cd /opt/fah && sudo -u games /bin/bash
$ ./FAHClient --configure
User name [Anonymous]: myusername
Team number [0]:
Passkey:
Enable SMP [true]: true
Enable GPU [true]: true
Name of configuration file [config.xml]:

$ cat config.xml 
<config>
  <user value='myusername'/>
  <team value='0'/>
  <passkey value=/>
  <smp value='true'/>
  <gpu value='true'/>
</config>

You may want to add the following to config.xml[1]:

<cpus value='8'/>
<nice value='20'/>
<cpu-usage value='10'/>
<core-priority value='idle'/>
<pause-on-battery v='true'/>

Links

References