PDA

View Full Version : boinc e linux: init script e utente boinc


ReDirEct__
26-03-2006, 19:53
Salve a tutti... vorrei poter eseguire boinc con uno script di init ma ho qualche problema
Il client l'ho compilato da me e se lo eseguo come utente tutto va bene... ma se provo ad utilizzare l'init script, boinc manager va trovando una password che è quella che sta in uno dei file di boinc... anche se la metto e riapro boinc manager cerca smepre la stessa password... come faccio a farlo paritre da init senza dover avere tutti questi macelli?

Ho letto anche qualcosa a proposito di crare un altro utente boinc ma nn so come cavolo fare... preferirei seguire questa strada se qualcuno mi spiega meglio come fare... ciao ciao

wubby
26-03-2006, 19:58
Salve a tutti... vorrei poter eseguire boinc con uno script di init ma ho qualche problema

Salve... :D

Il client l'ho compilato da me e se lo eseguo come utente tutto va bene... ma se provo ad utilizzare l'init script, boinc manager va trovando una password che è quella che sta in uno dei file di boinc... anche se la metto e riapro boinc manager cerca smepre la stessa password... come faccio a farlo paritre da init senza dover avere tutti questi macelli?

Dunque, il client BOINC e' una cosa, il boincmanager un altra... :)

Ho letto anche qualcosa a proposito di crare un altro utente boinc ma nn so come cavolo fare... preferirei seguire questa strada se qualcuno mi spiega meglio come fare... ciao ciao

Distribuzione?

Io uso questo script:

http://www.boinc.dk/downloads/mirror/boincctl

Lo modifico secondo le mie esigenze: nome utente, directory di scaccolo.
Lo copio in /etc/init.d e creo un link simbolico in /etc/rcS.d secondo le modalita' Debian.

Lascia un po' di dettagli che sistemiamo tutto! :fagiano:

#!/bin/sh
26-03-2006, 22:17
prova ad eseguire boinc in questo modo:

su <nomeutente> -c <comando per far partire boinc>

Puoi mettere il tutto in uno script tipo questo:

#!/bin/bash
cd <directory dove sta boinc>
su <nomeutente> -c <comando per far partire boinc>

e lo metti alla'avvio. dovrebbe andare.

ReDirEct__
26-03-2006, 23:44
cmq ho una gentoo e vorrei capire meglio la storia di installare boinc con un utente dedicato... come devo fare? Se lo installo inquesto modo posso utilizzare l'init script? So che boinc manager è una cosa e boinc ne è un'altra ma non capisco perchè se avvio boinc da init script, quando avvio boinc manager mi dice che la password è errata mentre se avvio boinc da normale utente (clikkando due volte sul file eseguibile per intenderci) tutto funziona... ho provato anche ad inizzializzare boinc da root ma ovviamente poi cambiano i permessi e non posso + utilizzare boinc da utente normale... cmq questo è lo script che uso io:

#!/sbin/runscript
#
# Gentoo Linux start/stop script to run the BOINC client as a daemon
# at system startup, as the boinc user (not root).
#
# chkconfig: 345 71 29
# description: start boinc client at boot time
# processname: boinc
# config: /etc/sysconfig/boinc
#
# Gabor Nagy <nagyga1 at netscape.net> - 18 January 2005
#
# Based on the original Redhat Linux start/stop scrip by:
# Eric Myers <myers at vassar.edu> - 27 July 2004
# Department of Physics and Astronomy, Vassar College, Poughkeepsie NY
# @(#) $Revision: 1.5 $ -- $Date: 2004/07/27 14:43:24 $


#PATH=/sbin:/bin:/usr/sbin:/usr/bin
#export PATH

# Source function library.
#. /etc/rc.d/init.d/functions


# Defaults, which can be overridden by /etc/sysconfig/boinc

BOINCUSER=redirect
BOINCDIR=/home/redirect/.boinc
#BUILD_ARCH=i686-pc-linux-gnu
LOGFILE=boinc.log
ERRORLOG=error.log
#BOINCOPTS="-allow_remote_gui_rpc"
BOINCOPTS=

if [ -f /etc/sysconfig/boinc ]; then
. /etc/sysconfig/boinc
fi


## Locate the working directory

if [ ! -d $BOINCDIR ]; then
echo "Cannot find boinc directory $BOINCDIR "
exit 1
fi


## Locate the executable with highest version

#BOINCEXE=`/bin/ls -1 $BOINCDIR/boinc_*_$BUILD_ARCH 2>/dev/null | tail -n 1 `
BOINCEXE=$BOINCDIR/boinc_client
if [ ! -x "$BOINCEXE" ]; then
echo "Cannot find/run boinc executable $BOINCEXE "
exit 2
fi


## Functions: start/stop/status/restart

checkconfig() {
cd $BOINCDIR
if [ ! -f client_state.xml ] ; then
eerror "BOINC client requires initialization first."
return 1
fi
}

start() {
checkconfig || return 1
ebegin "Starting BOINC client as a daemon: "
start-stop-daemon --start --quiet --chuid $BOINCUSER --exec $BOINCEXE -- $BOINCOPTS >>$BOINCDIR/$LOGFILE 2>>$BOINCDIR/$ERRORLOG &

eend $?
}

stop() {
ebegin "Stopping boinc client daemon"
start-stop-daemon --stop --quiet --retry 20 --exec $BOINCEXE
eend $?
}

restart() {
$0 stop
$0 start
eend $?
}

quando uso questo boinc manager nn funge e devo fare copia e incolla della password ogni volta :boh:

ReDirEct__
26-03-2006, 23:55
azz questa è bella... ho creato un'icona di avvio sul desktop per avviare boinc manager e se l'avvio da quella boincmanager mi chiede la pass mentre se l'avvio dall'eseguibile che c'è nella cartella di boinc va tutto alla perfezione... ma che è sta storia?

ReDirEct__
27-03-2006, 00:50
piccolo OT:
boinc mi dice questo:

lun 27 mar 2006 01:38:52 CEST||Starting BOINC client version 5.3.6 for x86_64-unknown-linux-gnu
lun 27 mar 2006 01:38:52 CEST||libcurl/7.15.1 OpenSSL/0.9.7i zlib/1.2.3
lun 27 mar 2006 01:38:52 CEST||Data directory: /home/redirect/.boinc
lun 27 mar 2006 01:38:52 CEST||Processor: 2 AuthenticAMD AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
lun 27 mar 2006 01:38:52 CEST||Memory: 1001.45 MB physical, 1.87 GB virtual
lun 27 mar 2006 01:38:52 CEST||Disk: 35.86 GB total, 20.39 GB free
lun 27 mar 2006 01:38:52 CEST|SETI@home|Computer ID: 2291905; location: home; project prefs: default
lun 27 mar 2006 01:38:52 CEST||General prefs: from unknown project http://www.worldcommunitygrid.org/ (last modified 2005-12-26 00:58:14)
lun 27 mar 2006 01:38:52 CEST||General prefs: using your defaults
lun 27 mar 2006 01:38:52 CEST||Remote control not allowed
lun 27 mar 2006 01:38:52 CEST||Listening on port 31416
lun 27 mar 2006 01:38:52 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
lun 27 mar 2006 01:38:52 CEST|SETI@home|Reason: To fetch work
lun 27 mar 2006 01:38:52 CEST|SETI@home|Requesting 1728000 seconds of new work
lun 27 mar 2006 01:38:58 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
lun 27 mar 2006 01:38:58 CEST|SETI@home|Message from server: No work sent
lun 27 mar 2006 01:38:58 CEST|SETI@home|Message from server: (there was work for other platforms)
lun 27 mar 2006 01:38:58 CEST|SETI@home|No work from project

Che significa il penultimo messaggio?

wubby
27-03-2006, 07:07
Prova a cancellare la password... ;)
Viene scritta all'interno di un file, che non ricordo, :( dentro la directory boinc

ReDirEct__
27-03-2006, 11:06
già provato.... ma me la chiede lo stesso :(

wubby
27-03-2006, 11:54
Ok. Possiamo fare un paio di prove al volo via MSN. :cool:

ReDirEct__
27-03-2006, 22:42
Ciao wubby cmq grazie dell'aiuto... ho risolto... in pratica ho chiuso il client boinc e poi è andato tutto...così come per magia... :boh:
Ora però vorrei provare a far andare tutto creando un utente boinc dedicato... se copio tutto nella home del nuovo utente, come dovrei settare i permessi, premettendo che avvierò tutto da init scritp e solo in casi particolari come utente normale? Ho provato a dare privilegi pieni all'utente boinc ed al gruppo boinc ne quale ci ho messo anche l'utente con cui mi loggo nel sistema ma nn riesco cmq ad aprire niente.
Per creare l'utente ho dato da shell:
adduser -m -d /var/lib/boinc boinc
Non so perchè ma mi ha anche creato il gruppo boinc... è normale?
Cmq aspetto delucidazioni a riguardo... per il momento va tutto bene tranne che ancora nn vedo nessuna wu a causa del server "down" :D
Cmq grazie di tutto :D
Alla prox

ReDirEct__
28-03-2006, 18:08
Ragazzi ma è possibile che non riesca a scaricare neanche una wu??? non ho nessun messaggio di errore eppure non me ne è arrivata manco mezza:

mar 28 mar 2006 17:44:49 CEST||Starting BOINC client version 5.3.6 for x86_64-unknown-linux-gnu
mar 28 mar 2006 17:44:49 CEST||libcurl/7.15.1 OpenSSL/0.9.7i zlib/1.2.3
mar 28 mar 2006 17:44:49 CEST||Data directory: /home/redirect/boinc
mar 28 mar 2006 17:44:49 CEST||Processor: 2 AuthenticAMD AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
mar 28 mar 2006 17:44:49 CEST||Memory: 1001.45 MB physical, 1.87 GB virtual
mar 28 mar 2006 17:44:49 CEST||Disk: 35.86 GB total, 18.98 GB free
mar 28 mar 2006 17:44:49 CEST|SETI@home|Computer ID: 2291905; location: home; project prefs: default
mar 28 mar 2006 17:44:49 CEST||General prefs: from unknown project http://www.worldcommunitygrid.org/ (last modified 2005-12-26 00:58:14)
mar 28 mar 2006 17:44:49 CEST||General prefs: using your defaults
mar 28 mar 2006 17:44:49 CEST||Remote control not allowed
mar 28 mar 2006 17:44:49 CEST||Listening on port 31416
mar 28 mar 2006 18:58:12 CEST||Rescheduling CPU: project suspended, resumed or detached by user
mar 28 mar 2006 18:58:14 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
mar 28 mar 2006 18:58:14 CEST|SETI@home|Reason: Requested by user
mar 28 mar 2006 18:58:14 CEST|SETI@home|Requesting 1728000 seconds of new work
mar 28 mar 2006 18:58:20 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
mar 28 mar 2006 19:02:58 CEST||Rescheduling CPU: project suspended, resumed or detached by user
mar 28 mar 2006 19:03:01 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
mar 28 mar 2006 19:03:01 CEST|SETI@home|Reason: Requested by user
mar 28 mar 2006 19:03:01 CEST|SETI@home|Requesting 1728000 seconds of new work
mar 28 mar 2006 19:03:06 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded


Mi dice sempre: Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded ma delle wu neanche l'ombra... che può essere?

EEH
28-03-2006, 18:39
Ragazzi ma è possibile che non riesca a scaricare neanche una wu??? non ho nessun messaggio di errore eppure non me ne è arrivata manco mezza: Mi dice sempre: Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded ma delle wu neanche l'ombra... che può essere?
Si si e' da ieri che non ci sono SETI caccole. Guarda le notizie nel "Server Status" thread. Capisco questa disperazione . . . non e' bello essere nel >> Saloto Della Vergogna << (http://www.webalice.it/hwueeh/report/boinc_6-218_wanted_date.html) :O hehe

ReDirEct__
28-03-2006, 21:01
non sapevo ci fosse... :( uffa... appeno ricomincio a scaccolare se ne vedranno delle belle :P

ReDirEct__
28-03-2006, 22:05
uffaaaa
ho un client moddato per 64 bit ma nessuno dei progetti ha dei client compatibile a 64 bit... che devo fare??? :(

GHz
28-03-2006, 22:28
Sembra che seti abbia appena riaperto i rubinetti delle caccole....ma ci saranno i server un pò intasati adesso...

ReDirEct__
28-03-2006, 22:38
speriamo bene... ho dei benchmarks assurdi con questo client:
mar 28 mar 2006 23:33:27 CEST||Benchmark results:
mar 28 mar 2006 23:33:27 CEST|| Number of CPUs: 2
mar 28 mar 2006 23:33:27 CEST|| 5218 double precision MIPS (Whetstone) per CPU
mar 28 mar 2006 23:33:27 CEST|| 15468 integer MIPS (Dhrystone) per CPU
mar 28 mar 2006 23:33:27 CEST||Finished CPU benchmarks

wubby
29-03-2006, 06:27
ho un client moddato per 64 bit ma nessuno dei progetti ha dei client compatibile a 64 bit... che devo fare??? :(
Credo ci sia solo il SETI. :fagiano:

trekfan1
29-03-2006, 07:11
Results ready to send 0 1h
Current result creation rate 4.83/sec 1m
Results in progress 2,144,686 1h
Workunits waiting for validation 18 1h
Workunits waiting for assimilation 14 1h
Workunits waiting for deletion 499,185 1h
Results waiting for deletion 1,852,047 1h
Transitioner backlog (hours) 0 31m
* minutes (m) or hours (h) since last checked

ReDirEct__
29-03-2006, 14:02
Results ready to send 0 1h
Current result creation rate 4.83/sec 1m
Results in progress 2,144,686 1h
Workunits waiting for validation 18 1h
Workunits waiting for assimilation 14 1h
Workunits waiting for deletion 499,185 1h
Results waiting for deletion 1,852,047 1h
Transitioner backlog (hours) 0 31m
* minutes (m) or hours (h) since last checked

Cioe? :confused:

Luca DellOca
29-03-2006, 14:53
Ho visto che avete risolto, volevo farvi sapere per il futuro, che nel portage di gentoo c'è boinc 5.2.14, quindi è possibile installarlo semplicemente con emerge (occhio che attualmente è in mask...). :D :D

Ciao, Luca.

ReDirEct__
30-03-2006, 01:24
sisi ce lo so... :D m cercavo un client ottimizzato... l'unico problema è che non scarica neanche una wu :(

#!/bin/sh
30-03-2006, 14:53
sisi ce lo so... :D m cercavo un client ottimizzato... l'unico problema è che non scarica neanche una wu :(

ma il boinc lo hai emerso usando l'ebuild?
io in attesa delle caccole ho aggiornato openoffice :D

ReDirEct__
30-03-2006, 17:51
no.. è una versione ottimizzata per amd64 estranea all'albero portage... vi posto i log di boinc:

gio 30 mar 2006 02:43:23 CEST||Starting BOINC client version 5.3.6 for x86_64-unknown-linux-gnu
gio 30 mar 2006 02:43:23 CEST||libcurl/7.15.1 OpenSSL/0.9.7i zlib/1.2.3
gio 30 mar 2006 02:43:23 CEST||Data directory: /home/redirect/boinc
gio 30 mar 2006 02:43:23 CEST||Processor: 2 AuthenticAMD AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
gio 30 mar 2006 02:43:23 CEST||Memory: 1001.45 MB physical, 1.87 GB virtual
gio 30 mar 2006 02:43:23 CEST||Disk: 35.86 GB total, 18.12 GB free
gio 30 mar 2006 02:43:23 CEST|SETI@home|Computer ID: 2291905; location: home; project prefs: default
gio 30 mar 2006 02:43:23 CEST||General prefs: from unknown project http://www.worldcommunitygrid.org/ (last modified 2005-12-26 00:58:14)
gio 30 mar 2006 02:43:23 CEST||General prefs: using your defaults
gio 30 mar 2006 02:43:23 CEST||Remote control not allowed
gio 30 mar 2006 02:43:23 CEST||Listening on port 31416
gio 30 mar 2006 02:43:23 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
gio 30 mar 2006 02:43:23 CEST|SETI@home|Reason: To fetch work
gio 30 mar 2006 02:43:23 CEST|SETI@home|Requesting 1728000 seconds of new work
gio 30 mar 2006 02:43:29 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
gio 30 mar 2006 02:43:29 CEST|SETI@home|Message from server: No work sent
gio 30 mar 2006 02:43:29 CEST|SETI@home|Message from server: (there was work for other platforms)
gio 30 mar 2006 02:43:29 CEST|SETI@home|No work from project
gio 30 mar 2006 15:25:48 CEST||Rescheduling CPU: project suspended, resumed or detached by user
gio 30 mar 2006 15:25:52 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
gio 30 mar 2006 15:25:52 CEST|SETI@home|Reason: Requested by user
gio 30 mar 2006 15:25:52 CEST|SETI@home|Requesting 1728000 seconds of new work
gio 30 mar 2006 15:25:57 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
gio 30 mar 2006 15:36:05 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
gio 30 mar 2006 15:36:05 CEST|SETI@home|Reason: To fetch work
gio 30 mar 2006 15:36:05 CEST|SETI@home|Requesting 1728000 seconds of new work
gio 30 mar 2006 15:36:10 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
gio 30 mar 2006 15:36:10 CEST|SETI@home|No work from project
gio 30 mar 2006 15:46:17 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
gio 30 mar 2006 15:46:17 CEST|SETI@home|Reason: To fetch work
gio 30 mar 2006 15:46:17 CEST|SETI@home|Requesting 1728000 seconds of new work
gio 30 mar 2006 15:46:22 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
gio 30 mar 2006 15:46:22 CEST|SETI@home|No work from project
gio 30 mar 2006 15:56:28 CEST|SETI@home|Sending scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi
gio 30 mar 2006 15:56:28 CEST|SETI@home|Reason: To fetch work
gio 30 mar 2006 15:56:28 CEST|SETI@home|Requesting 1728000 seconds of new work
gio 30 mar 2006 15:56:33 CEST|SETI@home|Scheduler request to http://setiboinc.ssl.berkeley.edu/sah_cgi/cgi succeeded
gio 30 mar 2006 15:56:33 CEST|SETI@home|Message from server: No work sent
gio 30 mar 2006 15:56:33 CEST|SETI@home|Message from server: (there was work for other platforms)
gio 30 mar 2006 15:56:33 CEST|SETI@home|No work from project


Vorrei solo sapere se anche per le versioni normali o ottimizzate per proci a 32 bit fa la stessa cosa :(

wubby
30-03-2006, 19:01
Qui scaccola allegramente... :)
Anche se leggo...
gio 30 mar 2006 19:59:37 CEST| SETI@home| No work from project

#!/bin/sh
30-03-2006, 21:06
io scaccolavo allegramente... ho finito di nuovo le wu :muro:

@ReDirEct__: con quella mod quanto fai nel benchmark di boinc?

ReDirEct__
30-03-2006, 22:49
ho postato i risultati nella pagina precedente...

x wubby: vuoi dire che neanche a te scarica niente?

Anche agli altri la stessa cosa? O solo per client a 64 bit?

wubby
31-03-2006, 06:30
Se i server si fermano o rallentano la produzione, il fermo vale per tutti... :(

ReDirEct__
31-03-2006, 09:42
ok... ora mi sento + tranquillo... ma c'è questo messaggio però che non mi da pace:
ven 31 mar 2006 10:06:53 CEST|SETI@home|Message from server: (there was work for other platforms)
ven 31 mar 2006 10:06:53 CEST|SETI@home|No work from project

Che vuol dire?

trekfan1
31-03-2006, 12:50
Vuol dire che NON ci sono wu disponibili!!!!!!!!!!

ReDirEct__
31-03-2006, 17:35
si ma che intende con "there was work for other platforms"

trekfan1
31-03-2006, 20:32
Non ne ho idea, se conosci bene l'inglese puoi chiedere sul forum del seti :)

ReDirEct__
02-04-2006, 23:09
alla fine mi sono arreso... sto usando la versione ottimizzata a 32 bit che cmq ci mette circa 38 minuti a completare una wu... figuriamoci col client per 64 bit... ma lavoro non ce n'è... buono scaccolo a tutti e grazie ancora di tutto... ciao ciao