Hello!
I was having issues installing
Primecoind HP9 on my
LitecoinBAMT1.1 rigs, and ended up working through it. I know that a lot of you might be having the same problems, so I've listed my install and config steps that are a slight variation of the Ubuntu 13.04 and CentOS 6.4 instructions by mikaelh.
On a fresh image of
BAMT 1.1 by bee, do the following steps:
Step 1. Installing the required dependenciesStarting with installing htop to monitor system resources and cpulimit to throttle so the performance of your GPU mining doesn't take a hit:
sudo su
aptitude install cpulimit
sudo apt-get install htop
Installing Lib:
apt-get install build-essential libssl-dev libboost-all-dev libdb4.8++-dev -y
Step 2. Compiling GMPapt-get install libgmp3-dev
Step 3. Compiling primecoindwget -O primecoin-0.1.2-hp9.tar.bz2 "http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp9/primecoin-0.1.2-hp9.tar.bz2"
tar -xvjf primecoin-0.1.2-hp9.tar.bz2
mv primecoin-0.1.2-hp9 primecoin
cd primecoin/src
make -f makefile.unix USE_UPNP=-
Step 4. ConfigurationReplace genproclimit=[number] with the number of cores you have on your rig.
(I recommend using one less than the number if you don't want to use CPUlimit or if you have a multi-core system, hence 3 because I'm on a quad-core) mkdir ~/.primecoin
echo "rpcuser=USER
rpcpassword=PASSWORD
gen=1
genproclimit=3
rpcallowip=127.0.0.1" > ~/.primecoin/primecoin.conf
sudo mv primecoind /usr/local/bin/.
Creating run, stop and watch scripts to make for easy management:
cd
echo '#!/bin/bash
export PATH="/usr/local/bin:$PATH"
killall --older-than 10s -q run-primecoind primecoind
function background_loop
while :; do
primecoind >/dev/null 2>&1
sleep 1
done
background_loop &' > run-primecoind
chmod +x run-primecoind
cd
echo '#!/bin/bash
killall -q run-primecoind
primecoind stop' > stop-primecoind
chmod +x stop-primecoind
cd
echo '#!/bin/bash'
watch -n 5 'primecoind getmininginfo & primecoind listaccounts & primecoind getconnectioncount & primecoind listtransactions' > watch-primecoind
chmod +x watch-primecoind
Step 5. Starting miningType the following to start mining:
./run-primecoind
If you want to throttle the process, use this code or incorporate cpulimit into your run-primcoind script above:
cpulimit -e primecoind -l 90 &
This let's you still have 10% of your processing to feed your OS and GPUs.Step 6. Monitoring the progressType this to check the mining status:
./watch-primecoind
Step 7. Stopping miningType this to stop mining:
./stop-primecoind
That's it, you should be up and going mining 2 currencies at once with your rig!... Thanks for listening!
Inspiration for this guide was derived from Mikaelh's guide located here.
https://bitcointalksearch.org/topic/xpm-primecoin-high-performance-linux-compilation-guide-259022Please support the hard work!
Support: bee for the awesome updated
BAMT 1.1 distro: LRHxoNPBSVYhQL8u9cvVzdkJo7vvyhBDCE
mikaelh for
HP9 and
Original Linux Compilation Guide: 1FR6QG6n1ozSsokGGp2kkpt7eHrgs23QxQ
And if you want to throw a few XPM my way because this helped you out: AKH7wdkQYPZsc7WgdQRaabzHK17f8Q5EAc