Skip to content

Instantly share code, notes, and snippets.

@mezerotm
Last active August 24, 2020 19:17
Show Gist options
  • Save mezerotm/756a9b12207bf111ec11549bb3eb47fe to your computer and use it in GitHub Desktop.
Save mezerotm/756a9b12207bf111ec11549bb3eb47fe to your computer and use it in GitHub Desktop.
#!/bin/bash
script_version=1.0.4
if [ "$miner_type" = "GPU" ]; then
miner_type=true
else
miner_type=false
fi
cat << "EOF"
+-+-+-+-+-+-+-+-+
|B|A|N|m|i|n|e|r|
+-+-+-+-+-+-+-+-+
EOF
echo "version: $script_version"
echo "by: Adder"
echo "contributor(s): Carlos Rincon and Ian Gerard"
echo ""
echo "updating & upgrading operating system..."
sudo apt update -y
sudo apt upgrade -y
echo ""
echo "installing FAHclient..."
wget https://download.foldingathome.org/releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.4.4_amd64.deb
wget https://download.foldingathome.org/releases/public/release/fahcontrol/debian-testing-64bit/v7.4/fahcontrol_7.4.4-1_all.deb
wget https://download.foldingathome.org/releases/public/release/fahviewer/debian-testing-64bit/v7.4/fahviewer_7.4.4_amd64.deb
mkdir -p /etc/fahclient/
sudo cat << EOF > /etc/fahclient/config.xml
<config>
<user value="$user"/>
<team value="$team"/>
<passkey value="$passkey"/>
<smp value="true"/>
<gpu value="true"/>
</config>
EOF
yes | sudo dpkg -i --force-depends fahclient_7.4.4_amd64.deb
yes | sudo dpkg -i --force-depends fahcontrol_7.4.4-1_all.deb
yes | sudo dpkg -i --force-depends fahviewer_7.4.4_amd64.deb
rm -rf fah*
/etc/init.d/FAHClient stop
sleep 5
/etc/init.d/FAHClient start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment