This is how I do it. It could be a lot more polished, but when I got it working, I just let it be. I assume you know how to use screen.
set_ati_profiles.sh sets clocks and fan settings
#!/bin/bash
DISPLAY=:0
export LD_LIBRARY_PATH=/home/xxxx/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:
cd /home/xxxx
AMDOverdriveCtrl -i 0 card2.core1.safe.ovdr > /dev/null &
AMDOverdriveCtrl -i 3 card2.core2.safe.ovdr > /dev/null &
AMDOverdriveCtrl -i 4 card4.core1.safe.ovdr > /dev/null &
AMDOverdriveCtrl -i 7 card4.core2.safe.ovdr > /dev/null &
start1.sh starts miner for the first core:
#!/bin/bash
export DISPLAY=:0
export LD_LIBRARY_PATH=/home/xxxx/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:
python phoenix.py -u http://xxxx:
[email protected]:8332/ DEVICE=1 VECTORS BFI_INT AGGRESSION=11
Then I have a custom screenrc called start_miners:
shell /bin/bash
chdir /home/xxxx/bitcoin-0.3.21/bin/64/
screen 0
exec ./bitcoind -daemon
chdir /home/xxxx/phoenix-1.46/
screen 1
exec ./start1.sh
screen 2
exec ./start2.sh
screen 3
exec ./start3.sh
screen 4
exec ./start4.sh
After that set your X to auto login, and add two commands to "startup programs" in that nice GUI config tool in Ubuntu (startup settings or something like that?)
set_ati_profiles.sh
screen -d -m -c /home/xxxx/start_miners
That starts screen in detached mode, and you can just login with ssh to check up on your miners. No need for monitor/keyboard/mouse.
Some of the extra maneuvering in those scripts are done, because screen didn't seem to pass LD_LIBRARY_PATH if I tried give the miner command line directly to the screen. Also it felt like I had to be logged in on X for everything to work ok reliably, so that's why I used that "startup programs" menu, so they would be called after the login.