Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Setup an account at http://boincstats.com.
- # Setup an account at http://boinc.bakerlab.org/rosetta/
- # Configure your Boincstats BAM account to automatically join the Rosetta project.
- # Once you have that configured, call this script passing your username and BAM password as arguments $1 and $2
- # If you run this script without those arguments, boinc will be installed and running, but it will not perform any work.
- #
- systemctl enable docker
- docker run -d --restart unless-stopped --name boinc --net=host --pid=host -v /opt/appdata/boinc:/var/lib/boinc -e BOINC_GUI_RPC_PASSWORD="123" -e BOINC_CMD_LINE_OPTIONS="--allow_remote_gui_rpc" boinc/client
- sleep 120
- if [ -n "$1" -a -n "$2" ]; then
- docker exec boinc boinccmd --join_acct_mgr http://bam.boincstats.com/ $1 $2
- fi
- docker exec boinc boinccmd --get_cc_status
- docker stop boinc
- #
- # Ensure BOINC only runs when F@H cores are not running
- #
- cat > /opt/appdata/boinc/cc_config.xml << EOD
- <cc_config>
- <options>
- <ncpus>24</ncpus>
- <no_gpus>1</no_gpus>
- <report_results_immediately>1</report_results_immediately>
- <dont_suspend_nci>1</dont_suspend_nci>
- <exclusive_app>FahCore_a7</exclusive_app>
- <exclusive_gpu_app>FahCore_21</exclusive_gpu_app>
- <exclusive_gpu_app>FahCore_22</exclusive_gpu_app>
- </options>
- </cc_config>
- EOD
- docker start boinc
- docker exec boinc boinccmd --get_cc_status
Advertisement
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement