Skip to content

Instantly share code, notes, and snippets.

@jackpoter
Forked from laomo/boinc_for_wcg.sh
Last active January 4, 2016 02:09
Show Gist options
  • Save jackpoter/8553081 to your computer and use it in GitHub Desktop.
Save jackpoter/8553081 to your computer and use it in GitHub Desktop.
#/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'
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