Last active
December 31, 2015 11:59
-
-
Save laomo/7982980 to your computer and use it in GitHub Desktop.
为WCG做贡献(攒Ripple的XRP)自动化脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Author : laomo | |
# Donate Address : https://ripple.com//send?to=rQKFznLaiyT55YXSS33fE6NgTjKbrnN4gT | |
sudo apt-get update | |
sudo apt-get install libxss1 libstdc++5 ia32-libs freeglut3 | |
#optional(for see the tasks) | |
sudo apt-get install htop | |
wget http://boinc.berkeley.edu/dl/boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
chmod +x boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
./boinc_7.2.33_x86_64-pc-linux-gnu.sh | |
cd BOINC | |
./boinc --daemon | |
wait | |
#use yours accout_key replace the accout_key | |
./boinccmd --project_attach http://www.worldcommunitygrid.org/ 13d806d0565d9df344a75f981b9fe005 | |
wait | |
./boinccmd --project http://www.worldcommunitygrid.org/ update | |
#startup | |
sudo echo "cd $PWD && ./boinc --daemon" > /etc/init.d/boinc-startup | |
sudo chmod +x /etc/init.d/boinc-startup | |
sudo update-rc.d boinc-startup defaults 99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://gist.github.com/laomo/7982980/raw/boinc_for_wcg.sh | |
chmod +x boinc_for_wcg.sh | |
./boinc_for_wcg.sh | |
#已添加开机启动功能 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment