There are a few services and developers who have cool things like this, but I am specifically going to be going through Folding at home. You can read about it here:
https://folding.stanford.edu/
(You can also help the search for intelligent life in outspace! https://setiathome.berkeley.edu)
To begin, you will a virtual machine. Make sure to only give it as many CPU cores (Or in reality, threads...) that you would like to donate. I wanted to stick to what I knew, so I am running a dual core CentOS minimal BHYVE VM with a 25GB HDD, and 2GB of RAM (You could probably get away with less). I will not go into the process of setting up a VM in Freenas, but if someone needs help it is pretty easy and I don't mind helping. I prefer CentOS or RH over Ubuntu, and I recommend using the minimal ISO:
http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso
*Note* When choosing your VM Core count, these will be 100% in use by the FAHClient for folding. Use this to limit how much of your total CPU the FAHClient has access to!
After your VM is installed make sure that it is fully updated:
I also prefer Nano (or use vi/vim). Use this to check your config.xml files below if you wish
also enable SSH and start it on boot. This will be a lot easy from putty or an ssh client.
Once you are fully updated and SSH is enabled, I would recommend switching to an SSH client for easy copy/paste operations.
Installation for the FAHClient can be found on there website:
http://folding.stanford.edu/support/faq/installation-guides/linux/manual-installation-advanced/
Download and install Instructions:
Install the FAHClient.
Install the FAHControl application. Root privileges are required.
Optionally, install the FAHViewer. (I dont think this is helpful in a terminal only environment...)
Once these are installed we need to set everything up. First let's generate a username and passkey:
http://fah-web.stanford.edu/cgi-bin/getpasskey.py
You can stay anonymous if you like, but that's less fun...
You will get a username, and a passkey that you will use for configuration. You will get an email with this information.
You will then need to run the fahclient configuration wizard to generate a config.xml:
*Optional* Join the FreeNAS team! When the second prompt asks you for a team number, use 234067
After entering your username, team name, and passkey, you can pretty much leave everything default. I set the GPU option to False, but if you leave enabled and you have no GPU, it should automatically detect that. Also if you dont use SUDO, the program wont have permissions to write the file, but it wont tell you this.
Once this is done, we need to copy over this generated config.xml to the proper location.
You should see it with the name you gave it from the configuration tool
Copy this config that you found to the proper location (You will need to strip out the timestamp information).
And that should do it! Run the fahclient service in verbose mode to make sure that it picked up your information.
The "-v" will be verbose and show you the settings that your FAHClient are running. Ensure that it picked up your username and team name!
https://folding.stanford.edu/
(You can also help the search for intelligent life in outspace! https://setiathome.berkeley.edu)
To begin, you will a virtual machine. Make sure to only give it as many CPU cores (Or in reality, threads...) that you would like to donate. I wanted to stick to what I knew, so I am running a dual core CentOS minimal BHYVE VM with a 25GB HDD, and 2GB of RAM (You could probably get away with less). I will not go into the process of setting up a VM in Freenas, but if someone needs help it is pretty easy and I don't mind helping. I prefer CentOS or RH over Ubuntu, and I recommend using the minimal ISO:
http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso
*Note* When choosing your VM Core count, these will be 100% in use by the FAHClient for folding. Use this to limit how much of your total CPU the FAHClient has access to!
After your VM is installed make sure that it is fully updated:
sudo yum update -y
sudo yum install wget
I also prefer Nano (or use vi/vim). Use this to check your config.xml files below if you wish
sudo yum install nano
also enable SSH and start it on boot. This will be a lot easy from putty or an ssh client.
sudo systemctl start sshd.service
sudo systemctl enable sshd.service
Once you are fully updated and SSH is enabled, I would recommend switching to an SSH client for easy copy/paste operations.
Installation for the FAHClient can be found on there website:
http://folding.stanford.edu/support/faq/installation-guides/linux/manual-installation-advanced/
Download and install Instructions:
wget --no-check-certificate https://fah.stanford.edu/file-releases/public/release/fahclient/centos-5.3-64bit/v7.4/fahclient-7.4.4-1.x86_64.rpm
wget --no-check-certificate https://fah.stanford.edu/file-releases/public/release/fahcontrol/centos-5.3-64bit/v7.4/fahcontrol-7.4.4-1.noarch.rpm
wget --no-check-certificate https://fah.stanford.edu/file-releases/public/release/fahviewer/centos-5.3-64bit/v7.4/fahviewer-7.4.4-1.x86_64.rpm
Install the FAHClient.
sudo rpm -i --nodeps fahclient-7.4.4-1.x86_64.rpm
Install the FAHControl application. Root privileges are required.
su -c 'rpm -i --nodeps fahcontrol-7.4.4-1.noarch.rpm'
Optionally, install the FAHViewer. (I dont think this is helpful in a terminal only environment...)
su -c 'rpm -i --nodeps fahviewer-7.4.4-1.x86_64.rpm'
Once these are installed we need to set everything up. First let's generate a username and passkey:
http://fah-web.stanford.edu/cgi-bin/getpasskey.py
You can stay anonymous if you like, but that's less fun...
You will get a username, and a passkey that you will use for configuration. You will get an email with this information.
You will then need to run the fahclient configuration wizard to generate a config.xml:
sudo /usr/bin/FAHClient --configure
This will have a bunch of prompts that are pretty self explanatory.*Optional* Join the FreeNAS team! When the second prompt asks you for a team number, use 234067
After entering your username, team name, and passkey, you can pretty much leave everything default. I set the GPU option to False, but if you leave enabled and you have no GPU, it should automatically detect that. Also if you dont use SUDO, the program wont have permissions to write the file, but it wont tell you this.
Once this is done, we need to copy over this generated config.xml to the proper location.
You should see it with the name you gave it from the configuration tool
cd /var/lib/fahclient/configs
Copy this config that you found to the proper location (You will need to strip out the timestamp information).
sudo cp config-Yourtimestamp.xml /etc/fahclient/config.xml
And that should do it! Run the fahclient service in verbose mode to make sure that it picked up your information.
sudo /etc/init.d/FAHClient start -v
The "-v" will be verbose and show you the settings that your FAHClient are running. Ensure that it picked up your username and team name!
Last edited: