PDA

View Full Version : Attaching to an Boinc Account using "weak account Key"



Mike029
03-20-11, 05:31 PM
I've read the following and am having a little bit of a problem. I'm attempting to connect to a friends account using the "weak account key" and I'm doing something wrong. I created an xml as instructed below and placed it into the primegrid folder but I'm still attached to my account and crunching for myself. On the "Project page" of the Boinc manager it says I'm attached under my own account. Thanks for the help.

This is what I put into the xml file.
<account>
<master_url>account_www.primegrid.com.</master_url>
<authenticator>Weak Key here</authenticator>
</account>

A little walk through to help out a novice, please. :o


Your 'weak account key' lets you link a computer to your account without giving it the ability to log in to your account or to change it in any way. This mechanism works only with projects that have upgraded their server software 7 Dec 2007 or later.

Your weak account key for this project is:

"Your key here"

To use your weak account key on a given host, find or create the 'account file' for this project. This file has a name of the form account_PROJECT_URL.xml. The account file for PrimeGrid is account_www.primegrid.com.xml.

Create this file if needed. Set its contents to:

<account>
<master_url>PROJECT_URL</master_url>
<authenticator>WEAK_ACCOUNT_KEY</authenticator>
</account>

Your weak account key is a function of your password. If you change your password, your weak account key changes, and your previous weak account key becomes invalid.

Maxwell
03-20-11, 05:53 PM
1. The master url is "http://www.primegrid.com"
2. This file doesn't go in the project folder. It goes in the BOINC data folder. On Win7 it is C/ProgramData/BOINC

Hope that helps...

Mumps
03-20-11, 10:53 PM
Actually, an easier way to do it would be to attach using the commandline tool.

Make sure you're detached from the project first, then do the following from a cmd prompt:

cd to the BOINC installation folder (Most likely C:\Program Files\Boinc)

boinccmd --project_attach http://www.primegrid.com {weak account key}

Mike029
03-31-11, 07:00 PM
Actually, an easier way to do it would be to attach using the commandline tool.

Make sure you're detached from the project first, then do the following from a cmd prompt:

cd to the BOINC installation folder (Most likely C:\Program Files\Boinc)

boinccmd --project_attach http://www.primegrid.com {weak account key}

Can I run the commandline and the boinc manager at the same time as long as I'm not connected to PG?

Run Reg Boinc for GPU projects and the Command line for cpu?

Mike029
03-31-11, 07:44 PM
1. The master url is "http://www.primegrid.com"
2. This file doesn't go in the project folder. It goes in the BOINC data folder. On Win7 it is C/ProgramData/BOINC

Hope that helps...

Well, sometimes you have to really read and pay attention to directions.
I got it to work. It was real easy actually. I forgot to add "http://" in front of the www.primegrid.com. I also detached from Bam till the Challenge is over. I need to get to the other boxes now to make the switch.

Thanks Max!!

DrPop
03-31-11, 08:05 PM
Hmmm....I'm going to have to try this tonight to make sure I can attach properly to his account before the challenge! Wish me luck. ;)

joker
03-31-11, 08:10 PM
Ahhhhhh, I will be asking some questions come 10:59 (my time) tomorrow. :confused:

Mike029
03-31-11, 08:37 PM
I'm not kidding about how easy this was once I placed it into the Boinc directory and fixed the web address. It attaches itself. Here is what I put into the xml file.
Remember to shut down Boinc and detach from PG.

<account>
<master_url>http://www.primegrid.com./</master_url>
<authenticator>49582_b572b43f267fb3c286acfbd3aff8c973</authenticator>
<project_preferences>


<resource_share>100</resource_share>
</account>

Save it as "account_www.primegrid.com" I Put it into the C:\Program Data\Boinc (I have Vista) Restart Boinc and done.

joker
03-31-11, 08:44 PM
Damn it Jim!! Im a carpenter, not a programmer!!

DrPop
04-01-11, 01:42 AM
Damn it Jim!! Im a carpenter, not a programmer!!
hahahaha...I was almost going to say..."dang it all to heck, Mike; I'm a doctor, not a programmer!"

...It just didn't quite have the same ring to it. :p;)

DrPop
04-01-11, 02:53 AM
Joker and anyone else wanting in on it - see my latest post to this thread here. (http://setiusa.free-dc.org/vbforum/showthread.php?1073-RALLY-for-...&p=10116#post10116)

Step by step instructions. It will work.