View previous topic :: View next topic |
Author |
Message |
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 47 Location: London, UK
|
Posted: Sat Oct 22, 2005 1:53 am Post subject: BOINC on Gentoo howto? |
|
|
Are there good howtos/idiot's guides around for running BOINC on Gentoo? The last time I emerged it, I couldn't work out how to get it set up and which of the executables to run when. I'd be greatful for a post here or a link. |
|
Back to top |
|
|
Kurt Steiner Bodhisattva
Joined: 01 Apr 2005 Posts: 1050 Location: Ostroleka, Polska
|
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 47 Location: London, UK
|
Posted: Sat Oct 22, 2005 3:11 pm Post subject: |
|
|
;¬¬
PS: there's an /etc/init.d/boinc file, does that mean the boinc client will be started automatically on boot, or do I have to attach it to a runlevel? |
|
Back to top |
|
|
WerK Tux's lil' helper
Joined: 05 Mar 2005 Posts: 96 Location: Prague, Czech Republic
|
Posted: Sun Oct 23, 2005 7:56 am Post subject: |
|
|
Armand Karlsen wrote: | ;¬¬
PS: there's an /etc/init.d/boinc file, does that mean the boinc client will be started automatically on boot, or do I have to attach it to a runlevel? | You need to attach it some runlevel via _________________ Regards,
WerK |
|
Back to top |
|
|
Redeeman l33t
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Sun Oct 23, 2005 8:23 am Post subject: |
|
|
i run boinc perfectly with setiathome here.. |
|
Back to top |
|
|
srain315 n00b
Joined: 22 Aug 2002 Posts: 12 Location: SoCal
|
Posted: Mon Mar 27, 2006 12:04 am Post subject: hopefully helpful information |
|
|
Installing BOINC is easy on Gentoo:
Code: | host # emerge boinc |
But configuration on Gentoo is poorly documented. I had hoped this thread would help, but "RTFM " wasn't what I needed.
If you want BOINC to start at boot time, you need to configure and add the BOINC rc-script to a runlevel (typically "default"). First edit /etc/conf.d/boinc and then run rc-update.
Code: | # Config file for /etc/init.d/boinc
# Owner of BOINC process (must be existing)
USER="<username>"
GROUP="<a group the user belongs to - I used 'users' and it works fine>"
# Directory with runtime data: Work units, project binaries, user info etc.
RUNTIMEDIR="<Gentoo uses a /var/ folder here but I put it in my /home/>"
# Location of the boinc command line binary
BOINCBIN="/usr/bin/boinc_client"
# Logfile (/dev/null for nowhere)
LOGFILE="/var/log/boinc.log"
# Allow remote gui RPC yes or no
ALLOW_REMOTE_RPC="no"
# nice level
NICELEVEL="19"
|
Then you can Code: | host # /etc/init.d/boinc start | and Code: | host # rc-update add boinc default |
I've seen it suggested that the rc-script can be used to add projects, but I never used that. Code: | host # /etc/init.d/boinc attach (?) |
Attaching is easiest with boinc_gui - use "Projects->Attach to project". There's a wizard to walk through registration, and it now uses your e-mail/pass in lieu of the umpteen-digit Auth Code.
For boinc_cmd, use Code: | host $ boinc_cmd --project_attach <URL> <AUTH> |
Note that boinc_cmd and boinc_gui will return authorization errors unless a copy of the gui_rpc_auth.cfg file is present. It would be nice if that could be fixed. _________________ Like any tool, a Corporation can be used for good or evil. |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 47 Location: London, UK
|
Posted: Mon Mar 27, 2006 5:54 pm Post subject: |
|
|
Right... I did eventually get BOINC to work, but recently the BOINC Manager gui app has been throwing up error messages:
BOINC Manager - Connection Error
"The password you have provided is incorrect, please try again."
I have no idea what password it means. I've tried my user password, the root password for the computer, and my BOINC account passwords/keys; no dice.
Though BOINC continues to crunch away happily, this leaves the manager app is now totally useless for managing what BOINC does on my box. I can't attach/detach/adjust any project I have installed. Un-merging the re-emerging BOINC did nothing to help this. What could be the problem, what should I look at to troubleshoot this? |
|
Back to top |
|
|
srain315 n00b
Joined: 22 Aug 2002 Posts: 12 Location: SoCal
|
Posted: Mon Mar 27, 2006 6:09 pm Post subject: |
|
|
Quote: | Note that boinc_cmd and boinc_gui will return authorization errors unless a copy of the gui_rpc_auth.cfg file is present. |
Unless you run boinc_gui or boinc_cmd from a folder containing gui_rpc_auth.cfg (it can be a copy or symlink), you will get authentication errors.
I found a post on the BOINC message board which covers this issue: http://boinc.berkeley.edu/dev/forum_thread.php?id=505.
Basically, if you replace the contents of gui_rpc_auth.cfg with a single newline character, it will disable authentication. In the working directory:
Code: | host $ echo > gui_rpc_auth.cfg |
Good luck!
-J _________________ Like any tool, a Corporation can be used for good or evil. |
|
Back to top |
|
|
srain315 n00b
Joined: 22 Aug 2002 Posts: 12 Location: SoCal
|
Posted: Fri Mar 31, 2006 3:31 am Post subject: Work-Around |
|
|
Well, I couldn't get any of the no-password suggestions to work, so I settled for a work-around. I wrote a shell script "boinc_gui_start": Code: | #!/bin/bash
cd ~<home>/boinc
boinc_gui | It works fine.
Cheers!
-J _________________ Like any tool, a Corporation can be used for good or evil. |
|
Back to top |
|
|
FormerSlacker Guru
Joined: 11 Mar 2003 Posts: 340 Location: Toronto, ON. Canada
|
Posted: Mon Apr 03, 2006 4:28 am Post subject: Re: Work-Around |
|
|
srain315 wrote: | Well, I couldn't get any of the no-password suggestions to work, so I settled for a work-around. I wrote a shell script "boinc_gui_start": Code: | #!/bin/bash
cd ~<home>/boinc
boinc_gui | It works fine.
Cheers!
-J |
Gentoo seems to setup a boinc password at boinc users home at /var/lib/boinc/gui_rpc_auth.cfg which seems to be a random ~30 character hex string. I suppose if you blank the file, no password will be needed. I just use the password in that file to connect via boinc_gui to localhost and it seems to work fine. |
|
Back to top |
|
|
karpi n00b
Joined: 22 Apr 2006 Posts: 1 Location: cz
|
Posted: Sat Apr 22, 2006 12:21 pm Post subject: boinc in 5 points |
|
|
1) gvim /etc/conf.d/boinc #-change-> ALLOW_REMOTE_RPC="yes"
2)/etc/init.d/boinc start
3)cat /var/lib/boinc/gui_rpc_auth.cfg #-this-is-"-required-password-"-
as user:
1) echo "-requrired-password-"> ~/gui_rpc_auth.cfg
2) boinc_gui
it works for me.. |
|
Back to top |
|
|
sasq Apprentice
Joined: 09 Sep 2005 Posts: 234 Location: Poland
|
Posted: Sun Jul 23, 2006 5:47 am Post subject: |
|
|
And what if the "Attach to new project" doesn't work?
I click that button, enter URL and passcode, OK, and nothing is happened _________________ SasQ |
|
Back to top |
|
|
DrWilken Apprentice
Joined: 12 Dec 2003 Posts: 219 Location: Oelsted ("BeerPlace"), Denmark
|
Posted: Wed Oct 18, 2006 8:00 pm Post subject: |
|
|
Use the Command Line
Code: |
# echo > /var/lib/boinc/gui_rpc_auth.cfg
# boinc_cmd --project_attach http://setiathome.berkeley.edu <account-key>
|
_________________ -=[DrWilken]=-
ASUS AT5IONT-I (64bit Dual Core Atom D525 processor with Nvidia ION(2) GPU) running Gentoo Linux... Latest and Greatest...
tux-power.dk |
|
Back to top |
|
|
sasq Apprentice
Joined: 09 Sep 2005 Posts: 234 Location: Poland
|
Posted: Wed Oct 18, 2006 8:50 pm Post subject: |
|
|
I know the command line and use it when I have to. But what is the GUI for, and what is it worht, if it don't allow to do the basic things? Bad GUI, baaad _________________ SasQ |
|
Back to top |
|
|
|