Author

Topic: Complete Ubuntu noob/ guide to mining primecoin on VPS for $0.03/hr at 1500 pps (Read 4366 times)

full member
Activity: 191
Merit: 100
Brought me one step further :0

no it says:   make: *** [obj/bitocoinrpc.o] Error 4


Sorry for being such a unix noob Smiley
sr. member
Activity: 359
Merit: 250
I am getting following error:

g++: internal compiler error: Killed (program cc1plus)

make: *** [obj/init.o] Error 4

Make swapfile:

Code:
dd if=/dev/zero of=/swapfile bs=64M count=16
mkswap /swapfile
swapon /swapfile
full member
Activity: 191
Merit: 100
I am getting following error:

g++: internal compiler error: Killed (program cc1plus)

make: *** [obj/init.o] Error 4
newbie
Activity: 55
Merit: 0
cd ..

till you get back to root.

Then, paste these lines of code:

mkdir ~/.primecoin
echo "rpcuser=yourusernamegoeshere
rpcpassword=yourpasswordgoeshere
gen=1" > ~/.primecoin/primecoin.conf

I think the forum formatting screwed it up, they have to each be on a different line. Sorry bout that



Thank you for your guide.  I ran into problems at step 9 and was hoping you could help.

When I run the command exactly as typed, it tells me that there is no .primecoin folder.  If I just create the folder under root it lets me.  I can then cd to the newly created folder and create the .conf file there.

I can use the following command to view the contents of the file:

cat /root/.primecoin/primecoin.conf

But when I run step 10, I get this error:

root@wezl1:~/primecoin-0.1.1-hp4/src# ./primecoind --daemon
Primecoin server starting
root@wezl1:~/primecoin-0.1.1-hp4/src# Error: To use the "-daemon" option, you must set a rpcpassword in the configuration file:
/root/.primecoin/primecoin.conf

Can you point me in the right direction?

-Randy
sr. member
Activity: 399
Merit: 250
0.03 cents for 1 hour at 1500pps? makes 0.72cents a day. I am mining since days with 6000pps and have no blocks during the last 24 hours... that's not a cheap deal in my eyes... But anyway, How-To's are always fine.. (especially if it is my tutorial).
member
Activity: 102
Merit: 10
Thank you for your guide.  I ran into problems at step 9 and was hoping you could help.

When I run the command exactly as typed, it tells me that there is no .primecoin folder.  If I just create the folder under root it lets me.  I can then cd to the newly created folder and create the .conf file there.

I can use the following command to view the contents of the file:

cat /root/.primecoin/primecoin.conf

But when I run step 10, I get this error:

root@wezl1:~/primecoin-0.1.1-hp4/src# ./primecoind --daemon
Primecoin server starting
root@wezl1:~/primecoin-0.1.1-hp4/src# Error: To use the "-daemon" option, you must set a rpcpassword in the configuration file:
/root/.primecoin/primecoin.conf

Can you point me in the right direction?

-Randy
newbie
Activity: 55
Merit: 0
This guide uses the latest and fastest miner currently available.

I've spent the past day and a half learning to use ubuntu to write this guide and fixing the mistakes other people made in their guides that were written to a much higher level of understanding. Up until yesterday i'd never used ubuntu in my life and I got this to work, so anyone who is remotely computer proficient should be able to get through this with minimal hand holding by following these steps.

Also, for 3cents for 1500pps, this is almost as cheap as owning the hardware yourself and paying the electricity cost (which is about 50 cents a day for me)

For the purposes of this post, I'll be using digitalocean, but any vps with ubuntu 13.04 will do. I'm not going to try and dupe you into some referral link. If you'd like to hook me up for helping you out, I'd gladly accept any XPM here: ASRtmbRbSHnwDFtto64qLSKnUUqKKgffha

Step 1: Get a VPS, I chose digitalocean. I paid $5 via paypal which works out with one vps to be about a solid week of mining. With them, I recommend the 2cpu option as I've found that they are throttling the smallest droplets. At 3cents per hour i'm getting 1500pps. Create the droplet, and name it whatever you wish. Be sure to pick ubuntu 13.04 64bit.

Step 2: Download putty, you can get putty here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Step 3: When you created your droplet, you were sent an email with the login information. Open putty, and input the ip address, you may wish to name this VPS and click save. Connect to the vps, use the username "root" and the password you were provided.
Enter the following lines of code one at a time, don't include the numbers.

1: sudo apt-get update

2: sudo apt-get install bzip2 git git-core subversion checkinstall build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev

3: wget http://downloads.sourceforge.net/project/primecoin-hp/0.1.1-hp4/primecoin-0.1.1-hp4.tar.bz2

4: (you should be still in root, if not, you can type "cd .." until you're in root, if by some chance your vps downloads to a /downloads directory you can type "dir" to list all directories and cd directorynamehere)

5: tar jxvf primecoin-0.1.1-hp4.tar.bz2

6: cd primecoin-0.1.1-hp4

7: cd src

8: make -f makefile.unix USE_UPNP=-

If step 8 gives you an error, your vps does not come with a necessary library. You need to type this:
Step 8 if needed: apt-get install libgmp3-dev

pre Step 9: cd .. (until back in root)

Step 9:

mkdir ~/.primecoin echo "rpcuser=yourusernamegoeshere rpcpassword=yourpasswordgoeshere gen=1" > ~/.primecoin/primecoin.conf
(Pre step 10, cd yourself like before back to the src folder inside the primecoin directory, again, this is "cd primecoin-0.1.1-hp4" "cd src"

Step 10 : ./primecoind --daemon

This will start primecoin. Like any coin, it will need to sync and download the blockchain. Once it does this, it will automatically start mining.
from the /src folder, you can check the status at this point by typing:

Step 11: ./primecoind getmininginfo

Once you see PPS, you know its working, from that point you can do this:

Step 12: watch -d -n 5 './primecoind getmininginfo && ./primecoind getdifficulty && ./primecoind listtransactions "*" 1 0'

Every 5 seconds it will update, if you get a block, it will appear as a transaction. Should you wish to wish to get those coins into another wallet, you simply need to right click the putty top blue bar and click duplicate session. Log into the terminal, then type this from the src folder:

./primecoind sendtoaddress

(you don't actually need the <> when you type this in

Thats pretty much it, 1500pps for 3 cents an hour.

If you have any problems, please post in the thread and i'll try and figure out where you went wrong. If you find a block, feel free to send me a coin!

ASRtmbRbSHnwDFtto64qLSKnUUqKKgffha

Girlfawkesy
Jump to: