Egg Repository

Pterodactyl Community Egg Repository

Folding@Home

Folding@home is a distributed computing project aimed to help scientists develop new therapeutics for a variety of diseases by the means of simulating protein dynamics. This includes the process of protein folding and the movements of proteins, and is reliant on simulations run on volunteers' personal computers

Read Me

Folding@Home

Folding@Home is a distributed computing project aimed at simulating protein folding and other molecular dynamics.

User Account

You can setup an User Account to track your PPD (Points per Day) and done WUs (Work Units). To get a Passkey visit the Folding@home Passkey Site

Teams

You can add your earned Points to a Team that you support. This is not nessesary as the points are just to track how much work was done (with some exeptions). Here is the full List of the Teams

Remote Control

You can connect via FAHControl to your instance. WebUI is not supported because it wouldn't be password protected.

CPU Usage Control

There are three power modes:

  • light
  • medium
  • full

Only light and medium are useful because full enables gpu which is not supported in this egg. Light uses half of the available cpu cores of your system. Full uses all of your cpu cores. You can still limit the cpu usage via the panel.

Supported Versions

Versions < v8 are supported. v8 is still beta and wont work with this egg. Get the latest v7 version number here: Folding@Home Downloadserver

Server Ports

Portdefault
FAHControl36330
Yolks
NameTag
Debianghcr.io/ptero-eggs/yolks:debian
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
FaH UsernameYour Folding@Home UsernameFAH_USERNAMEAnonymousYesYes
FaH TeamYour Folding@Home Team that you are folding for. For reference look here: https://stats.foldingathome.org/teamFAH_TEAM0YesYes
FaH PasskeyYour Folding@Home Passkey for your Username, if not Anonymous. Get your Passkey here: https://apps.foldingathome.org/getpasskeyFAH_PASSKEYYesYes
FaH Anonymous ModeSet to true if you are folding AnonymouslyFAH_ANONtrueYesYes
FaH VersionSet to wanted major Folding@Home Version. Check here: https://download.foldingathome.org/releases/v7/public/fahclient/debian-stable-64bit/release/FAH_VERSION7.6.21YesYes
FaHControl PasswordSet a WebUI PasswordFAH_PASSWORDSetPasswordHereYesYes
FaH PowerThe Powerlevel it should use: - light (only half the cpu power is used) - medium (full cpu power) - full (full cpu and gpu power but gpu is not supported)FAH_POWERmediumYesYes
Install Script
#!/bin/bash
#
# Folding@Home install script
#
# Created by Fuggschen

export DEBIAN_FRONTEND=noninteractive
ARCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "64bit" || echo "arm64")
cd /tmp

echo "Removing previous Version"
mv /mnt/server/config.xml /tmp/config.xml
rm -rf /mnt/server/*

echo "Installing dependencies"
apt update && apt upgrade -y && apt install curl bzip2 -y

echo "Downloading FAHClient"
curl -sSL -o fahclient.tar.bz2 https://download.foldingathome.org/releases/v7/public/fahclient/debian-stable-${ARCH}/release/fahclient_${FAH_VERSION}-64bit-release.tar.bz2

echo "Installing FAHClient"
tar -xjf fahclient.tar.bz2 -C /mnt/server --strip-components=1

echo "Cleaning up.."
rm -f fahclient.tar.bz2
rm -f /mnt/server/sample-config.xml
mv /tmp/config.xml /mnt/server/config.xml

FILE=/mnt/server/config.xml
if [[ ! -f  $FILE ]]
then
echo "Setting up config.xml"
cat > $FILE << EOF
<config>
  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
  <!-- Maximum CPU Cores to use. Can't be more than 64 -->
  <cpus v='64'/>
</config>
EOF
fi

echo "Done!"