Re: Linux
Napísané: Ut Aug 19, 2008 3:55 pm
normalne v grafickom prostredí si otvorim BM ale screensaver sa nespustí ked dám show graphics...
Kód: Vybrať všetko
DISPLAY=:0.0
export DISPLAY
To nik netvrdíslavko.sk napísal:Nechcem stale rypat ale fakt vam to nepripada zlozite?
Palo M. napísal:Pri pouziti jedinej masiny ako desktopu (cize display je na tom istom stroji ako bezi aplikacia) je to jednoduche: do init-skriptu treba pridat pred samotne spustenie BOINC-klienta dat:Samozrejme, ak je init skript sh alebo bash (csh ma inu syntax).Kód: Vybrať všetko
DISPLAY=:0.0 export DISPLAY
Ja som sa zlozito vyjadril. V skutocnosti je to velmi jednoduche, je to logicke a rozumiem tomu ako to funguje.slavko.sk napísal:Nechcem stale rypat ale fakt vam to nepripada zlozite?
Neda sa nic robit, bude mensia prednaska.matob napísal:sory ale nechytám sa..mohol by si mi napisat step-by-step ako na to ?
vdaka
matob napísal:co sa týka display-a, mám tam iba toto:
# Display $BOINC_USER's cpu_share:
uid=`id -u $BOINC_USER`
cpu_share_file="/sys/kernel/uids/$uid/cpu_share"
if [ -f "$cpu_share_file" ]; then
log_success_msg "cpu_share: `cat "$cpu_share_file"`"
fi
else
log_success_msg "$STATUS stopped."
Ja neviem našiel som to tam kde si vravel : etc/init.d/boinc-clientPalo M. napísal:matob: To, co si napisal, vobec nevyzera na startovaci skript BOINC-klienta.
Mrkol som na ubuntacky balik a vyzera velmi podobne ako Debianovsky.matob napísal:Ja neviem našiel som to tam kde si vravel : etc/init.d/boinc-client
no neviem jedina uzitocna informacia ma napada ze po instalacii z repozitara, som si boinc nastavil
ako startup proces v sessions.
Kód: Vybrať všetko
# This file is /etc/default/boinc-client, it is a configuration file for the
# /etc/init.d/boinc-client init script.
# Set this to 1 to enable and to 0 to disable the init script.
ENABLED="1"
# Set this to 1 to enable advanced scheduling of the BOINC client and all its
# sub-processes (reduces the impact of BOINC on the system's performance).
SCHEDULE="1"
# The BOINC core client will be started with the permissions of this user.
BOINC_USER="boinc"
# This is the data directory of the BOINC core client.
BOINC_DIR="/var/lib/boinc-client"
# This is the location of the BOINC core client, that the init script uses.
# If you do not want to use the client program provided by the boinc-client
# package, you can specify here an alternative client program.
#BOINC_CLIENT="/usr/local/bin/boinc_4.25"
BOINC_CLIENT="/usr/bin/boinc_client"
# Here you can specify additional options to pass to the BOINC core client.
# Type 'boinc --help' or 'man boinc' for a full summary of allowed options.
#BOINC_OPTS="--allow_remote_gui_rpc"
BOINC_OPTS=""
Kód: Vybrať všetko
# Set display for graphical applications:
DISPLAY=:0
export DISPLAY
CPDN niektore aplikacie nemaju graficku cast (u mna je aj button disablovany, takze sa ani neda "stlacit"). MilkyWay myslim tiez nema graficku cast - celkovo ked som pozrel do kodu a zistil par detailov o MilkyWay, posobi to na mna vysoko amatersky a dost demotivujuco (podla mna je aplikacia na urovni alfa fazy).Kiwi napísal:Tak hodil som tam E@H, spustil som klienta cez BM, a screen saver isiel. Tak som to killnul.
Spustil som boinc cez TTY1, normalne ./boinc, pod normalnym userom. Skocil som
do gnome CTRL-ALT-F7, spustil BM a screen saver takisto ide. Pri CPDN ani Milky nejde.