-
-
Save jackpoter/8553081 to your computer and use it in GitHub Desktop.
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 | |
# fork | |
# only for ubuntu 12.04 | |
if [ $# -ne 1 ]; | |
then | |
echo "USAGE: $0 Yourkey" | |
echo "see https://secure.worldcommunitygrid.org/ms/viewMyProfile.do?language=en_US" | |
exit | |
fi | |
skey=$1 | |
boinc_path='boinc' | |
mkdir $boinc_path -p | |
cd $boinc_path | |
sudo apt-get update | |
wait | |
sudo apt-get install libxss1 | |
wget http://boinc.berkeley.edu/dl/boinc_7.2.34_x86_64-pc-linux-gnu.sh | |
/bin/sh boinc_7.2.34_x86_64-pc-linux-gnu.sh | |
cd BOINC | |
sudo iptables -A INPUT -p tcp --dport 31416 -j ACCEPT | |
#firewall | |
./boinc --daemon | |
wait | |
./boinccmd --project_attach http://www.worldcommunitygrid.org/ $skey | |
wait | |
./boinccmd --project http://www.worldcommunitygrid.org/ update | |
wait | |
./boinccmd --project http://www.worldcommunitygrid.org/ update | |
wait | |
./boinccmd --get_messages | |
echo 'check the log if yourkey attach it' | |
echo 'done' |
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
https://secure.worldcommunitygrid.org/ms/viewMyProfile.do?language=en_US | |
Account Key: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment