[code][quote author=drgr33n link=topic=7374.msg415933#msg415933 date=1312136652]
[quote author=malavita link=topic=7374.msg415869#msg415869 date=1312134663]
Here's a script that will work.
[code]
#!/bin/bash
#Lets setup some global vars
WORKSIZE="256"
CCLOCK="1000"
MCLOCK="300"
FANSPEED="80"
USERNAME="Cyberphunk"
PASSWORD="pw"
URL="api2.bitcoins.cz"
PORT="8080"
#time to start mining
#setup cards
sudo aticonfig --od-enable
sudo aticonfig --odsc="$CCLOCK,$MCLOCK" --adapter=all
sudo aticonfig --odcc --adapter=all
#lets go
cd /opt/miners/phoenix/
for i in 0 1; do # More cards ? just add more numbers. for eg 4 cards would be 0 1 2 3
DISPLAY=0.$i sudo aticonfig --pplib-cmd="set fanspeed 0 $FANSPEED"
python ./phoenix.py -u http://$USERNAME:$PASSWORD@$URL:$PASSWORD -k phatk \
WORKSIZE=$WORKSIZE AGGRESSION=9 VECTORS BFI_INT FASTLOOPS=false DEVICE=$i &
sleep 2
done
Nice! How do you make the individual terminals for each miner display on the desktop?
Thx!!!
[/quote]
Here ya go
#!/bin/bash
#Lets setup some global vars
WORKSIZE="256"
CCLOCK="1000"
MCLOCK="300"
FANSPEED="80"
USERNAME="Cyberphunk"
PASSWORD="pw"
URL="api2.bitcoins.cz"
PORT="8080"
#time to start mining
#setup cards
sudo aticonfig --od-enable
sudo aticonfig --odsc="$CCLOCK,$MCLOCK" --adapter=all
sudo aticonfig --odcc --adapter=all
#lets go
cd /opt/miners/phoenix/
for i in 0 1; do # More cards ? just add more numbers. for eg 4 cards would be 0 1 2 3
DISPLAY=0.$i sudo aticonfig --pplib-cmd="set fanspeed 0 $FANSPEED"
x-terminal-emulator -e ./phoenix.py -u http://$USERNAME:$PASSWORD@$URL:$PASSWORD -k phatk \
WORKSIZE=$WORKSIZE AGGRESSION=9 VECTORS BFI_INT FASTLOOPS=false DEVICE=$i &
sleep 2
done
CGminers now been updated to 1.5.3-git !! linuxcoin final is on its way
I've reverted back to 11.6 due to a cpu bug in 11.7
shame really but hey ho lol
[/quote]
Almost there, but not quite! New terminals keep opening endlessly in a loop - reminds me of Mickey Mouse w/ the magic brooms in Fantasia :-)
Here's what I have in startminer.sh:
[/code]
#!/bin/bash
#Lets setup some global vars
WORKSIZE="128"
CCLOCK="925"
MCLOCK="300"
FANSPEED="90"
USERNAME="
[email protected]"
PASSWORD="XXXXXXXXXXXXXXXXXXXXXXXXXXX"
URL="bitcoins.lc"
PORT="8080"
#time to start mining
#setup cards
sudo aticonfig --od-enable
sudo aticonfig --odsc="925,300" --adapter=all
sudo aticonfig --odcc --adapter=all
#lets go
cd /opt/miners/phoenix/
for i in 0 1 2 3 4; do # More cards ? just add more numbers. for eg 4 cards would be 0 1 2 3
DISPLAY=:0.0 sudo aticonfig --pplib-cmd="set fanspeed 0 90"
x-terminal-emulator -e python ./phoenix.py -v -u
http://XXXXXXX:[email protected]:8080/ -k phatk \
WORKSIZE=128 AGGRESSION=8 VECTORS BFI_INT FASTLOOPS=false DEVICE=0 &
sleep 2
DISPLAY=:0.1 sudo aticonfig --pplib-cmd="set fanspeed 0 90"
x-terminal-emulator -e python ./phoenix.py -v -u
http://XXXXXXX:[email protected]:8080/ -k phatk \
WORKSIZE=128 AGGRESSION=11 VECTORS BFI_INT FASTLOOPS=false DEVICE=1 &
sleep 2
DISPLAY=:0.2 sudo aticonfig --pplib-cmd="set fanspeed 0 100"
x-terminal-emulator -e python ./phoenix.py -v -u
http://XXXXXXX:[email protected]:8080/ -k phatk \
WORKSIZE=128 AGGRESSION=8 VECTORS BFI_INT FASTLOOPS=false DEVICE=2 &
sleep 2
DISPLAY=:0.3 sudo aticonfig --pplib-cmd="set fanspeed 0 100"
x-terminal-emulator -e python ./phoenix.py -v -u
http://XXXXXXX:[email protected]:8080/ -k phatk \
WORKSIZE=128 AGGRESSION=11 VECTORS BFI_INT FASTLOOPS=false DEVICE=3 &
sleep 2
DISPLAY=:0.4 sudo aticonfig --pplib-cmd="set fanspeed 0 90"
x-terminal-emulator -e python ./phoenix.py -v -u
http://XXXXXXX:[email protected]:8080/ -k phatk \
WORKSIZE=128 AGGRESSION=11 VECTORS BFI_INT FASTLOOPS=false DEVICE=4 &
sleep 2
done
[/code]
Cheers!