Hi, All.
If you are a newbie, like me, you may have difficulty getting onto a forum to ask about
headless mining. Below you will find my scripts and links to help if, like me you run a
headless server administered via ssh using Debian.
This link/thread should do the heavy lifting to get started, giving most of the setup
and getting running before trying headless access:
https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359then create the following scripts. I put these in my ./poclbm directory YMMV:
> ./start1.sh
#!/bin/bash
export DISPLAY=:0
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
python ~your _home_directory_here/poclbm/poclbm.py -d 1 yr.Uname:
[email protected]:8332
replace yr.Uname with the user name for your JSON account
replace yr.Pwd with the password for your JSON account
> ./poclbm/start_mining
#!/bin/bash
cd /your_home_directory_here
# create a new screen, detatch then start bitcoin as
# a daemon. It takes a while for the daemon to get fully
# up to speed so be prepared to wait. Checking on bitcoins
# progress via another teminal might be a good idea
/usr/bin/screen -admS Mining /usr/bin/bitcoind -daemon
# Now wait - start another screen - connect to the GPU
# and connect to the bitcoin server
#screen 1
cd /your_home_directory_here/poclbm
/usr/bin/screen -admS GPU0 ./start1.sh
# if more GPU's are available then add them to these following
#screen 2
#exec ./start2.sh
#screen 3
#exec ./start3.sh
#screen 4
#exec ./start4.sh
Getting the stuff to run can be a bit tricky, and my experience is limited :
# instruction on running headless with X server
# login via ssh
# gdm has to be stopped in /etc/init.d
# x11-common has to be stopped in init.d
# check /tmp - If X is running there will be a lock file there.
# With no X running; run this: $ sudo screen /usr/bin/X 2>1
# or as root : # screen /usr/bin/X 2>1
# then detatch via ctrl-A ctrl-D
# as root check via this # screen -ls
# to list the screens run by root.
# Exit from root and you are in a shell with X running
# export the display $ Display=:0.0 ; export $DISPLAY
# check your cards by running ./CLInfo |grep CL_DEVICE_TYPE_GPU
# in this directory :
# cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64
# then run the scripts to bring up bitcoind and put it onto
# the GPU
hth
donate? : tba