Title: [XPM] Install and Run Primecoin High Performance Linux on BAMT 1.1 for Litecoin Post by: boldar on August 16, 2013, 02:23:50 PM Hello!
I was having issues installing Primecoind HP9 (https://bitcointalk.org/index.php?topic=255782.0) on my LitecoinBAMT1.1 (https://forum.litecoin.net/index.php?topic=2924.0) 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 (https://forum.litecoin.net/index.php?topic=2924.0) by bee, do the following steps: Step 1. Installing the required dependencies Starting with installing htop to monitor system resources and cpulimit to throttle so the performance of your GPU mining doesn't take a hit: Code: sudo su Installing Lib: Code: apt-get install build-essential libssl-dev libboost-all-dev libdb4.8++-dev -y Step 2. Compiling GMP Code: apt-get install libgmp3-dev Step 3. Compiling primecoind Code: wget -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" Step 4. Configuration Replace 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) Code: mkdir ~/.primecoin Code: sudo mv primecoind /usr/local/bin/. Creating run, stop and watch scripts to make for easy management: Code: cd Code: cd Code: cd Step 5. Starting mining Type the following to start mining: Code: ./run-primecoind If you want to throttle the process, use this code or incorporate cpulimit into your run-primcoind script above: Code: cpulimit -e primecoind -l 90 & Step 6. Monitoring the progress Type this to check the mining status: Code: ./watch-primecoind Step 7. Stopping mining Type this to stop mining: Code: ./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://bitcointalk.org/index.php?topic=259022.0 (https://bitcointalk.org/index.php?topic=259022.0) Please support the hard work! Support: bee for the awesome updated BAMT 1.1 distro (https://forum.litecoin.net/index.php/topic,2924): LRHxoNPBSVYhQL8u9cvVzdkJo7vvyhBDCE mikaelh for HP9 (https://bitcointalk.org/index.php?topic=255782.0) and Original Linux Compilation Guide (https://bitcointalk.org/index.php?topic=259022.0): 1FR6QG6n1ozSsokGGp2kkpt7eHrgs23QxQ And if you want to throw a few XPM my way because this helped you out: AKH7wdkQYPZsc7WgdQRaabzHK17f8Q5EAc Title: Re: [XPM] Install and Run Primecoin High Performance Linux on BAMT 1.1 for Litecoin Post by: gigawatt on August 16, 2013, 02:36:58 PM Hey! Glad to see a primecoin guide being written.
I wrote one a while back and I've made a few tweaks to some of the default scripts mikaelh made. Feel free to borrow any of the code from it. :) edit: Here's a direct link (http://pastebin.com/T19PrHcf) to the script for easy access. edit2: I might steal your idea of cpulimit if that's alright. Some VPS don't like people maxxing out CPU usage, so having a means of throttling it may be a good thing. edit3: Just a note, you probably don't need to set genproclimit if you're going to use cpulimit. If you're using 3 of 4 cores, you'll never have it go above 75% usage. Title: Re: [XPM] Install and Run Primecoin High Performance Linux on BAMT 1.1 for Litecoin Post by: boldar on August 16, 2013, 02:43:57 PM Right on! Yeah, feel free to use the idea! Yeah, with so many great minds there's bound to be a duplication if work. That's one of the things I love about the crypto-mining community... lotta helpful folks :)
Yeah... that's one of the reasons I included htop, so they can monitor and make that decision themselves... weird how 80% becomes <20% on quadcores, but you can't use 380% as a parameter. :( |