BONIC na nekolika linuxovych serverech
Moderátoři: zdespi, Moderátoři
2 the.max: Ja ted bohuzel nikde Gentoo nemam, abych to vyzkousel u sebe. Asi by ses mel podivat do toho /etc/init.d/boinc co vlastne dela. Nebo ho posli. Pripadne jeste obsah boinc.log a error.log.
Private (old) + CCU stats.
Kdyz sem se zkusil pripojit prez BOINC manager na ten server, tak na karte Projekty vidim ze sem pripojeny na seti ale jako Stav je: Komunikace odlozena 23:52:20 a odpocitava to po vterinach
zkusil jsem boinc odebrat, smazat /var/lib/boinc a zkusit to znova na cisto.
Tady je konfigurak, init script a log....
cat /etc/conf.d/boinc
# Config file for /etc/init.d/boinc
# Owner of BOINC process (must be existing)
USER="boinc"
GROUP="boinc"
# Directory with runtime data: Work units, project binaries, user info etc.
RUNTIMEDIR="/var/lib/boinc"
# 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="yes"
# nice level
NICELEVEL="19"
------------------------------------------------------------------------------------------------------
cat /etc/init.d/boinc
#!/sbin/runscript
opts="${opts} attach"
depend() {
use dns
need net
}
start() {
ebegin "Starting BOINC"
if [ ! -d ${RUNTIMEDIR} ]; then
einfo "Directory ${RUNTIMEDIR} not existing, creating now."
/bin/mkdir ${RUNTIMEDIR}
/bin/chown ${USER}:${GROUP} ${RUNTIMEDIR}
if [ ! -d ${RUNTIMEDIR} ]; then
eerror "Directory ${RUNTIMEDIR} could not be created!"
return 1
fi
fi
cd ${RUNTIMEDIR}
if [ ! -f lockfile ]; then
einfo "File ${RUNTIMEDIR}/lockfile does not exist, assuming first run."
einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project."
einfo "Then either run /etc/init.d/boinc attach or connect with a gui client and attach to a project with that."
fi
# if the log file doesn't exist, create it with root privs, then change ownership to boinc
if [ ! -f ${LOGFILE} ]; then
touch ${LOGFILE}
chown ${USER}:${GROUP} ${LOGFILE}
else
mv ${LOGFILE} ${LOGFILE}.old
touch ${LOGFILE}
chown ${USER}:${GROUP} ${LOGFILE}
fi
if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then
ARGS="${ARGS} -allow_remote_gui_rpc"
fi
setsid start-stop-daemon --quiet --start --chdir ${RUNTIMEDIR} \
--exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
--nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 &
eend $?
}
attach() {
printf " Enter the Project URL: "
read url
printf " Enter your Account Key: "
read key
RC_QUIET_STDOUT="yes" svc_status
if [ $? == 1 ]; then
svc_start
fi
ebegin "Attaching to project"
# boinc cmd does not return 1 when it fails currently
boinc_cmd --project_attach ${url} ${key} &> /dev/null
eend $?
sleep 10
tail ${LOGFILE}
}
stop() {
ebegin "Stopping BOINC"
start-stop-daemon --stop --quiet --exec ${BOINCBIN}
eend $?
}
restart() {
svc_stop
sleep 6
svc_start
}
-------------------------------------------------------------------------------------------------------
cat /var/log/boinc.log
2006-08-18 16:57:09 [---] Starting BOINC client version 5.5.6 for x86_64-pc-linux-gnu
2006-08-18 16:57:09 [---] Libraries: libcurl/7.15.1 OpenSSL/0.9.7j zlib/1.2.3
2006-08-18 16:57:09 [---] Data directory: /var/lib/boinc
2006-08-18 16:57:09 [---] Processor: 1 AuthenticAMD AMD Opteron(tm) Processor 144
2006-08-18 16:57:09 [---] Memory: 1003.08 MB physical, 1.42 GB virtual
2006-08-18 16:57:09 [---] Disk: 803.30 GB total, 551.50 GB free
2006-08-18 16:57:09 [---] No general preferences found - using BOINC defaults
2006-08-18 16:57:09 [---] This computer is not attached to any projects
2006-08-18 16:57:09 [---] Visit http://boinc.berkeley.edu for instructions
2006-08-18 17:05:15 [---] Fetching configuration file from http://setiathome.berkeley.edu/get_project_config.php
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Scheduler list download succeeded
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Sending scheduler request: Requested by user
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Requesting 8640 seconds of new work
2006-08-18 17:05:40 [http://setiathome.berkeley.edu/] Scheduler request succeeded
2006-08-18 17:05:40 [SETI@home] Scheduler version: 505
2006-08-18 17:05:40 [SETI@home] Message from server: platform 'x86_64-pc-linux-gnu' not found
2006-08-18 17:05:40 [SETI@home] Successfully attached to SETI@home
-------------------------------------------------------------------------------------------------------------
zkusil jsem boinc odebrat, smazat /var/lib/boinc a zkusit to znova na cisto.
Tady je konfigurak, init script a log....
cat /etc/conf.d/boinc
# Config file for /etc/init.d/boinc
# Owner of BOINC process (must be existing)
USER="boinc"
GROUP="boinc"
# Directory with runtime data: Work units, project binaries, user info etc.
RUNTIMEDIR="/var/lib/boinc"
# 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="yes"
# nice level
NICELEVEL="19"
------------------------------------------------------------------------------------------------------
cat /etc/init.d/boinc
#!/sbin/runscript
opts="${opts} attach"
depend() {
use dns
need net
}
start() {
ebegin "Starting BOINC"
if [ ! -d ${RUNTIMEDIR} ]; then
einfo "Directory ${RUNTIMEDIR} not existing, creating now."
/bin/mkdir ${RUNTIMEDIR}
/bin/chown ${USER}:${GROUP} ${RUNTIMEDIR}
if [ ! -d ${RUNTIMEDIR} ]; then
eerror "Directory ${RUNTIMEDIR} could not be created!"
return 1
fi
fi
cd ${RUNTIMEDIR}
if [ ! -f lockfile ]; then
einfo "File ${RUNTIMEDIR}/lockfile does not exist, assuming first run."
einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project."
einfo "Then either run /etc/init.d/boinc attach or connect with a gui client and attach to a project with that."
fi
# if the log file doesn't exist, create it with root privs, then change ownership to boinc
if [ ! -f ${LOGFILE} ]; then
touch ${LOGFILE}
chown ${USER}:${GROUP} ${LOGFILE}
else
mv ${LOGFILE} ${LOGFILE}.old
touch ${LOGFILE}
chown ${USER}:${GROUP} ${LOGFILE}
fi
if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then
ARGS="${ARGS} -allow_remote_gui_rpc"
fi
setsid start-stop-daemon --quiet --start --chdir ${RUNTIMEDIR} \
--exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
--nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 &
eend $?
}
attach() {
printf " Enter the Project URL: "
read url
printf " Enter your Account Key: "
read key
RC_QUIET_STDOUT="yes" svc_status
if [ $? == 1 ]; then
svc_start
fi
ebegin "Attaching to project"
# boinc cmd does not return 1 when it fails currently
boinc_cmd --project_attach ${url} ${key} &> /dev/null
eend $?
sleep 10
tail ${LOGFILE}
}
stop() {
ebegin "Stopping BOINC"
start-stop-daemon --stop --quiet --exec ${BOINCBIN}
eend $?
}
restart() {
svc_stop
sleep 6
svc_start
}
-------------------------------------------------------------------------------------------------------
cat /var/log/boinc.log
2006-08-18 16:57:09 [---] Starting BOINC client version 5.5.6 for x86_64-pc-linux-gnu
2006-08-18 16:57:09 [---] Libraries: libcurl/7.15.1 OpenSSL/0.9.7j zlib/1.2.3
2006-08-18 16:57:09 [---] Data directory: /var/lib/boinc
2006-08-18 16:57:09 [---] Processor: 1 AuthenticAMD AMD Opteron(tm) Processor 144
2006-08-18 16:57:09 [---] Memory: 1003.08 MB physical, 1.42 GB virtual
2006-08-18 16:57:09 [---] Disk: 803.30 GB total, 551.50 GB free
2006-08-18 16:57:09 [---] No general preferences found - using BOINC defaults
2006-08-18 16:57:09 [---] This computer is not attached to any projects
2006-08-18 16:57:09 [---] Visit http://boinc.berkeley.edu for instructions
2006-08-18 17:05:15 [---] Fetching configuration file from http://setiathome.berkeley.edu/get_project_config.php
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Scheduler list download succeeded
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Sending scheduler request: Requested by user
2006-08-18 17:05:37 [http://setiathome.berkeley.edu/] Requesting 8640 seconds of new work
2006-08-18 17:05:40 [http://setiathome.berkeley.edu/] Scheduler request succeeded
2006-08-18 17:05:40 [SETI@home] Scheduler version: 505
2006-08-18 17:05:40 [SETI@home] Message from server: platform 'x86_64-pc-linux-gnu' not found
2006-08-18 17:05:40 [SETI@home] Successfully attached to SETI@home
-------------------------------------------------------------------------------------------------------------
the.max: Problem je tady:seti nenajde aplikaci pro x86_64. Stejne predpokladam, ze si tam nahrajes optim. aplikaci. Tak se mrknu do tohodle threadu, sosni si ji a pak ti to pojede.
Kód: Vybrat vše
2006-08-18 17:05:40 [SETI@home] Message from server: platform 'x86_64-pc-linux-gnu' not found
Private (old) + CCU stats.
Sory sem fakt asi natvrdlej:-D
ale podle toho navodu sem to pochopil tak, ze stavajici soubory nahradim temi optimalizovanymi. Ja ale nemam co aktualizovat, protoze tam nic nemam. Podle LOGu sem zjistil ze to hleda nejakou praci na seti ale nic to nenajde.
Pokud by se nasel nekdo, kdo by mel chut to zkusit uchodit, muzem se domluvit po ICQ 37781136
ale podle toho navodu sem to pochopil tak, ze stavajici soubory nahradim temi optimalizovanymi. Ja ale nemam co aktualizovat, protoze tam nic nemam. Podle LOGu sem zjistil ze to hleda nejakou praci na seti ale nic to nenajde.
Pokud by se nasel nekdo, kdo by mel chut to zkusit uchodit, muzem se domluvit po ICQ 37781136
- Pav Lucistnik
- Mírně pokročilý

- Příspěvky: 144
- Registrován: ned črc 16, 2006 1:02 pm
- Bydliště: Praha
- Kontaktovat uživatele:
http://www.freebsd.org/cgi/cvsweb.cgi/p ... web-markup
Tohle vyedituj podle svych potreb a uloz do boincdir/projects/setiathome.berkeley.edu/ adresare jako app_info.xml, spolu s optimalizovanou binarkou. pak restartni boinc.
Dystak oficialni pokec je na http://boinc.berkeley.edu/anonymous_platform.php
Tohle vyedituj podle svych potreb a uloz do boincdir/projects/setiathome.berkeley.edu/ adresare jako app_info.xml, spolu s optimalizovanou binarkou. pak restartni boinc.
Dystak oficialni pokec je na http://boinc.berkeley.edu/anonymous_platform.php
VYRESENO!!!
Problem vyresen pomoci opimalizovane aplikace z http://www.lb.shuttle.de/apastron/boincDown.shtml
nebylo by od veci, kdyby to bylo ve FAQ & navody --> Navod na optimalizaci SETI@Home
nebylo by od veci, kdyby to bylo ve FAQ & navody --> Navod na optimalizaci SETI@Home
- azor666
- Moderátor II

- Příspěvky: 985
- Registrován: stř led 18, 2006 9:40 pm
- Bydliště: Praha 20 let
- Kontaktovat uživatele:
Re: VYRESENO!!!
thx Přidal jsem link na strankythe.max píše:nebylo by od veci, kdyby to bylo ve FAQ & navody --> Navod na optimalizaci SETI@Home
Správu původního CNT si přivlasnil forest a podniká s ním na své soukromé doméně jinde.
CZ BOINC WIKI
CZ BOINC WIKI
