Post
Topic
Board Project Development
Re: LinuxCoin A lightweight Debian based OS with everything ready to go.
by
makiet
on 15/07/2011, 09:11:41 UTC
Hi,

I want to run my mining script at startup. I'm using Linuxcoin 0.21b persistent on a thumb drive.

I put my script file (miner.sh) in /etc/init.d directory and used update-rc to register it. But nothing happen when linuxcoin finished booting.

I also tried to put the script in to local.rc but no luck.

Please help.

Here is miner.sh:
Quote
atitweak -m 300
atitweak -e 960
DISPLAY=0.0 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.1 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.2 aticonfig --pplib-cmd="set fanspeed 0 75"
DISPLAY=0.3 aticonfig --pplib-cmd="set fanspeed 0 75"
/usr/bin/x-terminal-emulator -t "worker0" -e /home/user/Desktop/deepbit0.sh
/usr/bin/x-terminal-emulator -t "worker1" -e /home/user/Desktop/deepbit1.sh
/usr/bin/x-terminal-emulator -t "worker2" -e /home/user/Desktop/deepbit2.sh
/usr/bin/x-terminal-emulator -t "worker3" -e /home/user/Desktop/deepbit3.sh

Each deepbit file has the same content:
Quote
cd /opt/miners/phoenix
./phoenix.py -u http://makietN:passwordN@deepbit.net:8332/ -k phatk VECTORS BFI_INT AGGRESSION=13 WORKSIZE=128 DEVICE=n

If I run the miner.sh file in the root terminal manually, it run perfectly.

Please help me to resolve this problem.