Verify your OS Distribution with below or similar.

cat /etc/lsb-release

For me running Photon OS, I see the below output.

DISTRIB_ID="VMware Photon OS"
DISTRIB_RELEASE="4.0"
DISTRIB_CODENAME=Photon
DISTRIB_DESCRIPTION="VMware Photon OS 4.0"

Run

tdnf update

Query for the F@H Binaries we have installed

rpm -qa | grep fah

We see we have the following installed

First backup your config.xml file

cp /etc/fahclient/config.xml /tmp/config.xml

Start with fahclient and go to here, and find the latest binary. Copy the URL and use wget to copy it to the host.

Upon installing you will receive the following error

root@nasfah [ ~ ]# rpm -i fahclient-7.6.21-1.x86_64.rpm 
error: Failed dependencies:
	shadow-utils is needed by fahclient-7.6.21-1.x86_64

You can force the install with, as the shadow-utils is actually a bug, and the package isn’t needed. shadow-tools takes care of the shadow-utils dependency.

rpm -i --nodeps fahclient-7.6.21-1.x86_64.rpm 

For some reason, the FAHClient will not uninstall and throws the following error

Instead we must force the install

rpm -i --force --nodeps fahclient-7.6.21-1.x86_64.rpm 

Repeat the steps for the remaining packages.

Reboot the server for good measure.

Once rebooted, log in and execute

/etc/init.d/FAHClient start
/etc/init.d/FAHClient status
/etc/init.d/FAHClient log

For some reason the status command fails to work.

If you are looking to install F@H on a new node, you can use the following Ansible Playbook. Please note, you may wish to change the user, team, and folding key.

---

- hosts: all
  tasks:
    #wget files
    - name: Download fahclient
      get_url:
        url: https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v7.6/fahclient-7.6.21-1.x86_64.rpm
        dest: /tmp/fahclient-7.6.21-1.x86_64.rpm

    - name: Download fahcontrol
      get_url:
        url: https://download.foldingathome.org/releases/public/release/fahcontrol/centos-6.7-64bit/v7.6/fahcontrol-7.6.21-1.noarch.rpm
        dest: /tmp/fahcontrol-7.6.21-1.noarch.rpm

    - name: Download fahviewer
      get_url:
        url: https://download.foldingathome.org/releases/public/release/fahviewer/centos-6.7-64bit/v7.6/fahviewer-7.6.21-1.x86_64.rpm
        dest: /tmp/fahviewer-7.6.21-1.x86_64.rpm

    #force install with --no-deps
    - name: Install F@H Client
      shell: rpm -i --nodeps /tmp/fahclient-7.6.21-1.x86_64.rpm

    - name: Install F@H Control
      shell: rpm -i --nodeps /tmp/fahcontrol-7.6.21-1.noarch.rpm

    - name: Install F@H Viewer
      shell: rpm -i --nodeps /tmp/fahviewer-7.6.21-1.x86_64.rpm

    #create config file after backup
    - name: Creating config file
      copy:
        dest: "/etc/fahclient/config.xml"
        content: |
          <config>
          <!-- Folding Slot Configuration -->
          <gpu v="false"/>

          <!-- Slot Control -->
          <power v="full"/>

          <!-- User Information -->
          <passkey v="d3d983ca81dcf777d3d983ca81dcf777"/>
          <team v="38296"/>
          <user v="dicecca112"/>

          <!-- Network -->
          <proxy-enable v="false"/>
          <proxy v=""/>
          <proxy-user v=""/>
          <proxy-pass v=""/>

          <!-- Folding Slots -->
          <slot id='0' type='CPU'/>
          <client-type v=""/>

          <!-- Remote Command Server -->
          <command-allow v="127.0.0.1 0.0.0.0/0"/>
          <password v="password@123"/>

          <!-- Web Server -->

Advertisement

Published by mdicecca112

Systems Engineer from the Greater Boston Area

Leave a comment

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: