Skip to content

Instantly share code, notes, and snippets.

@laomo
Last active December 31, 2015 11:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save laomo/7982980 to your computer and use it in GitHub Desktop.
Save laomo/7982980 to your computer and use it in GitHub Desktop.
为WCG做贡献(攒Ripple的XRP)自动化脚本
#/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
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