boinc startskript, wie parameter übergeben?
Hi! Ich habe mir heute boinc (http://www.worldcommunitygrid.org) installiert und will meinen Rechner ein wenig an Proteinfaltungen rechnen lassen. Ich habe ein Skript gefunden um den Client beim Systemstart automatisch zu starten. Das funktioniert auch ganz gut nur möchte ich den Paramter "-allow_remote_gui_rpc" mit angeben damit ich mich von einem lokalen Client im Netz verbinden kann. Diesen einfach mit anzugeben geht nicht, habe dann den Startbefehl in ein Shell-Skript geschrieben und dieses als Binary angeben. Hat auch nicht funktioniert. Kann jemand helfen? Hier die Ausschnitte aus rcboinc: # Check for missing binaries (stale symlinks should not happen) # Note: Special treatment of stop for LSB conformance BOINC_DIR=/home/splash/BOINC BOINC_USER=splash BOINC_LOGFILE=/home/splash/boinc.log BOINC_BIN=$BOINC_DIR/boinc test -x $BOINC_BIN || { echo "$BOINC_BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } case "$1" in start) echo -n "Starting boinc " ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. cd $BOINC_DIR chown $BOINC_USER $BOINC_LOGFILE startproc -u $BOINC_USER -l $BOINC_LOGFILE -s $BOINC_BIN -dir $BOINC_DIR # Remember status and be verbose rc_status -v ;; stop) echo -n "Shutting down boinc " ## Stop daemon with killproc(8) and if this fails ## killproc sets the return value according to LSB. killproc -TERM $BOINC_BIN # Remember status and be verbose rc_status -v ;;
Am Dienstag, 22. November 2005 10:56 schrieb Marco Röben:
Ich habe mir heute boinc (http://www.worldcommunitygrid.org) installiert und will meinen Rechner ein wenig an Proteinfaltungen rechnen lassen. Ich habe ein Skript gefunden um den Client beim Systemstart automatisch zu starten. Das funktioniert auch ganz gut nur möchte ich den Paramter "-allow_remote_gui_rpc" mit angeben damit ich mich von einem lokalen Client im Netz verbinden kann. Diesen einfach mit anzugeben geht nicht, habe dann den Startbefehl in ein Shell-Skript geschrieben und dieses als Binary angeben. Hat auch nicht funktioniert. Kann jemand helfen?
was genau funktioniert denn nicht. Wenn man denn boinc_mgr (run_manager) aufruft, muß man noch ein Passwort angeben. Diese wird unter .../BOINC/gui_rpc_auth.cfg als Klartext eingetragen. Man kann da beliebieges 'reinschreiben. Man muß aber auch in .../BOINC/remote_hosts.cfg die IP-Adressen eintrage, von welchen der Zugiff erlaubt sein soll. Eine IP pro Zeile Klappt eigentlich der Aufruf eines Browsers? (Bie mir leider nicht). Bye Jürgen -- Dr.rer.nat. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe Tel: +49(721) 92 04 87 1 Fax: +49(721) 92 04 87 2 Juergen.Vollmer@informatik-vollmer.de www.informatik-vollmer.de Internet-Telefonie: www.skype.com Benutzer: juergen.vollmer
Am Dienstag, 22. November 2005 14:31 schrieb Dr. Jürgen Vollmer:
was genau funktioniert denn nicht. Wenn man denn boinc_mgr (run_manager) aufruft, muß man noch ein Passwort angeben. Diese wird unter .../BOINC/gui_rpc_auth.cfg als Klartext eingetragen. Man kann da beliebieges 'reinschreiben.
Ok, da hab ich mich nicht klar genug ausgedrückt. Sorry. Also das Passwort ist gesetzt und ich kann mich auch von einem entfernten Client mit dem BOINC Manager verbinden. Allerdings nur wenn ich den Client per Hand mit "./run_client -allow_remote_gui_rpc" starte. Übergebe ich nicht die Option wird kein entsprechender Port zum verbinden geöffnet. Ist es das was Du mit dem "Aufruf eines Browsers" meinst? Mit dem Startscript wird zwar der Client gestartet, allerdings eben ohne diese Option. Damit das für mich Sinn macht muss diese Option allerdings dabei sein. Sonst kann ich mich ja nicht von einem entfernten Rechner verbinden. Ich hab jetzt keine Ahnung wie und wo ich in dem Script am besten die Option (-allow_remote_gui_rpc) angebe.
Man muß aber auch in .../BOINC/remote_hosts.cfg die IP-Adressen eintrage, von welchen der Zugiff erlaubt sein soll. Eine IP pro Zeile
Diese Datei habe ich gar nicht. Oder muss ich die dann per Hand anlegen?
Klappt eigentlich der Aufruf eines Browsers? (Bie mir leider nicht).
Siehe oben, da ich nicht genau weiss was Du mit Browser meinst. MfG Marco
Am Dienstag, 22. November 2005 15:42 schrieb Marco Röben:
Am Dienstag, 22. November 2005 14:31 schrieb Dr. Jürgen Vollmer:
was genau funktioniert denn nicht. Wenn man denn boinc_mgr (run_manager) aufruft, muß man noch ein Passwort angeben. Diese wird unter .../BOINC/gui_rpc_auth.cfg als Klartext eingetragen. Man kann da beliebieges 'reinschreiben.
Ok, da hab ich mich nicht klar genug ausgedrückt. Sorry. Also das Passwort ist gesetzt und ich kann mich auch von einem entfernten Client mit dem BOINC Manager verbinden. Allerdings nur wenn ich den Client per Hand mit "./run_client -allow_remote_gui_rpc" starte. Übergebe ich nicht die Option wird kein entsprechender Port zum verbinden geöffnet. Ist es das was Du mit dem "Aufruf eines Browsers" meinst?
nein, Browser = Netscape, firefox etc. im boinc_mgr kann man im GUI sich die Homepage der Projekte anzeigen lassen, eben mit einem browser. leider geht das bei mir nicht. u.U. startet nur ein konsole-text-basierter browser.
Mit dem Startscript wird zwar der Client gestartet, allerdings eben ohne diese Option. Damit das für mich Sinn macht muss diese Option allerdings dabei sein. Sonst kann ich mich ja nicht von einem entfernten Rechner verbinden. Ich hab jetzt keine Ahnung wie und wo ich in dem Script am besten die Option (-allow_remote_gui_rpc) angebe.
startproc -u $BOINC_USER -l $BOINC_LOGFILE -s $BOINC_BIN -dir
wie man startproc weitere Argumente mitgibt weiss ich auch nicht. Zur Not ein shell-Skript schreiben, welches den eigentlichen Aufruf von boinc samt Option -allow_remote_gui_rpc enthält.
Man muß aber auch in .../BOINC/remote_hosts.cfg die IP-Adressen eintrage, von welchen der Zugiff erlaubt sein soll. Eine IP pro Zeile
Diese Datei habe ich gar nicht. Oder muss ich die dann per Hand anlegen?
von Hand anlegen und IP's eintragen. Ohne die Datei und IP's geht kein Fremdzugriff. Bye Jürgen -- Dr.rer.nat. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe Tel: +49(721) 92 04 87 1 Fax: +49(721) 92 04 87 2 Juergen.Vollmer@informatik-vollmer.de www.informatik-vollmer.de Internet-Telefonie: www.skype.com Benutzer: juergen.vollmer
Am Dienstag, 22. November 2005 16:32 schrieb Dr. Jürgen Vollmer:
nein, Browser = Netscape, firefox etc. im boinc_mgr kann man im GUI sich die Homepage der Projekte anzeigen lassen, eben mit einem browser. leider geht das bei mir nicht. u.U. startet nur ein konsole-text-basierter browser.
Achso. Nein, das funktioniert bei mir auch nicht. Aber man kann doch im Endeffekt "per Hand" zu den Homepages surfen, oder?
wie man startproc weitere Argumente mitgibt weiss ich auch nicht. Zur Not ein shell-Skript schreiben, welches den eigentlichen Aufruf von boinc samt Option -allow_remote_gui_rpc enthält.
Schade. Die Idee mit dem Shell-Skript hab ich schon hinter mir. Das funktioniert auch nicht.
von Hand anlegen und IP's eintragen. Ohne die Datei und IP's geht kein Fremdzugriff.
Also wenn Du mit Fremdzugriff den Zugriff mit Hilfe des BOINC Managers von einem entfernten Computer aus meinst, dann kann ich das nicht nachvollziehen. Bei mir klappt das auch ohne explizit die IP's in der Datei angegeben zu haben. MfG Marco
Am Mittwoch, 23. November 2005 11:00 schrieb Marco Röben:
Am Dienstag, 22. November 2005 16:32 schrieb Dr. Jürgen Vollmer:
nein, Browser = Netscape, firefox etc. im boinc_mgr kann man im GUI sich die Homepage der Projekte anzeigen lassen, eben mit einem browser. leider geht das bei mir nicht. u.U. startet nur ein konsole-text-basierter browser.
Achso. Nein, das funktioniert bei mir auch nicht. Aber man kann doch im Endeffekt "per Hand" zu den Homepages surfen, oder?
wie man startproc weitere Argumente mitgibt weiss ich auch nicht. Zur Not ein shell-Skript schreiben, welches den eigentlichen Aufruf von boinc samt Option -allow_remote_gui_rpc enthält.
Schade. Die Idee mit dem Shell-Skript hab ich schon hinter mir. Das funktioniert auch nicht. was genau funktionierte denn da nicht?
Kann es sein, daß das skript "zu früh" im Boot-Prozess startete, z.B. wenn noch kein Netzwerk vorhanden ist?
von Hand anlegen und IP's eintragen. Ohne die Datei und IP's geht kein Fremdzugriff. logo, aber was soll ein Button in einem proggi, welcher nicht funktioniert....
Also wenn Du mit Fremdzugriff den Zugriff mit Hilfe des BOINC Managers von einem entfernten Computer aus meinst, dann kann ich das nicht nachvollziehen. Bei mir klappt das auch ohne explizit die IP's in der Datei angegeben zu haben.
seltsam, ohne die IP's gings bei mir nicht. Ich habe hier 2 Rechner mit boinc laufen. Für den Zugriff auf den remote-Rechner brauchte ich das. bye Jürgen -- Dr.rer.nat. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe Tel: +49(721) 92 04 87 1 Fax: +49(721) 92 04 87 2 Juergen.Vollmer@informatik-vollmer.de www.informatik-vollmer.de Internet-Telefonie: www.skype.com Benutzer: juergen.vollmer
Hallo, Am Tue, 22 Nov 2005, Marco Röben schrieb:
Ich habe mir heute boinc (http://www.worldcommunitygrid.org) installiert und will meinen Rechner ein wenig an Proteinfaltungen rechnen lassen. Ich habe ein Skript gefunden um den Client beim Systemstart automatisch zu starten. Das funktioniert auch ganz gut nur möchte ich den Paramter "-allow_remote_gui_rpc" mit angeben damit ich mich von einem lokalen Client im Netz verbinden kann. Diesen einfach mit anzugeben geht nicht, habe dann den Startbefehl in ein Shell-Skript geschrieben und dieses als Binary angeben. Hat auch nicht funktioniert. Kann jemand helfen?
Hier die Ausschnitte aus rcboinc:
# Check for missing binaries (stale symlinks should not happen) # Note: Special treatment of stop for LSB conformance BOINC_DIR=/home/splash/BOINC BOINC_USER=splash BOINC_LOGFILE=/home/splash/boinc.log BOINC_BIN=$BOINC_DIR/boinc test -x $BOINC_BIN || { echo "$BOINC_BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; }
case "$1" in start) echo -n "Starting boinc " ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. cd $BOINC_DIR chown $BOINC_USER $BOINC_LOGFILE startproc -u $BOINC_USER -l $BOINC_LOGFILE -s $BOINC_BIN -dir $BOINC_DIR
RTFM startproc: startproc [-f] [-L] [[-n ]+/-<prio>] [-s] [-t sec] [-u user] [-g group] [-v] [-e] [-l log_file |-q|-d] [-p pid_file] [-c root] /path/to/executable [arguments for executable] Und das '-dir $BOINC_DIR' sind schon zwei Argument fuer $BOINC_BIN. Ergo: startproc -u $BOINC_USER -l $BOINC_LOGFILE -s $BOINC_BIN \ -dir $BOINC_DIR -allow_remote_gui_rpc -dnh --
Kann es sein, dass Linux in bestimmten Situationen das Mainboard eines beliebigen Laptops killen kann? -- S. Wolff Nur wenn Du einen richtigen Pinguin in das Laptopgehäuse hineinquetscht, könnte dieser dein Board schrotten. -- Hans-Robert Wagner
* Marco Röben (roeben@web.de) [20051122 10:56]:
Hier die Ausschnitte aus rcboinc:
Ich gehe mal davon aus, dass /etc/init.d/boinc einen LSB konformen Header hat (sprich du hast als Grundlage /etc/init.d/skeleton verwendet). Dann würde ich wie folgt vorgehen: Datei /etc/sysconfig/boinc anlegen mit dem Inhalt # BOINC_CLIENT_ARGS="-allow_remote_gui_rpc" , in /etc/init.d/boinc am Anfang irgendwo . /etc/sysconfig/boinc und dann später start) echo -n "Starting boinc " ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. cd $BOINC_DIR chown $BOINC_USER $BOINC_LOGFILE startproc -u $BOINC_USER -l $BOINC_LOGFILE -s $BOINC_BIN -dir $BOINC_DIR $BOINC_CLIENT_ARGS Damit sollte es eigendlich funktionieren. -- Anything whose specification is too complicated to explain easily probably needs to be redesigned. David Abrahams on boost
Am Mittwoch, 23. November 2005 14:32 schrieb Philipp Thomas:
Ich gehe mal davon aus, dass /etc/init.d/boinc einen LSB konformen Header hat (sprich du hast als Grundlage /etc/init.d/skeleton verwendet).
Ja genau. Ist LSB konform.
Dann würde ich wie folgt vorgehen:
Danke! Das hat wunderbar funktioniert! MfG Marco
participants (5)
-
David Haller
-
Dr. Jürgen Vollmer
-
Marco Röben
-
Philipp Thomas
-
Philipp Thomas