Author

Topic: [XPM] Automated yPool VPS Miner Setup Script (Beta) (Read 5176 times)

newbie
Activity: 1
Merit: 0
plz update for scrip and file download     i run you scrip  not work
hero member
Activity: 599
Merit: 500
i understand that wine work better on 32 bit , but isnt a 64 pc faster
(how much faster double Huh)


is there any other way to get this runing on vps , i can only find beeeer.org walk through and i dont want to stay on beeer.org


thx for your help
full member
Activity: 221
Merit: 100
I use the script

{
sudo apt-get install git g++ libboost-all-dev libdb++-dev build-essential libgmp-dev libssl-dev
git clone https://github.com/xolominer/xolominer.git && cd ./xolominer/src && make -f makefile.unix primeminer &&
nohup ./primeminer -pooluser=myadress -poolip=rpool.net -poolport=8336 -genproclimit=8 -poolshare=6 &
}

to mine on beeeeer and rpool. But the primeminer sometimes stops mining. Is there any script to automatically restart it?
Thank you.
hero member
Activity: 532
Merit: 500
TaaS is a closed-end fund designated to blockchain
On i7

Val/h 7.877 - PPS: 31883 - 4ch/h: 4432.60 - 5ch/h: 377.81 - 6ch/h: 31.37 - Last 4ch/h: 3149.21 - Last 5ch/h: 0.00

Nice results

TMC

member
Activity: 114
Merit: 10
When I run this on a Digital Ocean Ubuntu 13.04 x32 droplet ...

I get the confirmation:  jhPrimeminer should be up and running!

But then when I use the ./peek command - I get this:



any ideas?

EDIT:

I am an idiot and messed up with username and password - I fixed it (destroyed the old droplet and made a new one) and username password is in "username.workername" and "worker Password" format.

./peek command gives the same output
...the CPU is running at ~ 73% and my ypool say that my worker is not active and has not submitted any shares.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
Quote
Have the miner running in the background, be able to watch live results, but have the miner run at half speed

Why's that? Never heared that screen reduces speed...
full member
Activity: 201
Merit: 100
I just run via ssh in mac terminal and leave it running...seems to run for long periods of time but then sometimes I find I need to reissue ./start-mining command to get it to register shares on ypool and get the green checkmark to show up next to the worker...

Already wondering if its better to stick to solo mining..With one VPS, I would at least get 1 maybe 2 blocks a week..at this rate with pool mining, I'll be lucky if I generate 1 or 2 XPM in a week..
member
Activity: 88
Merit: 10
Script works well for me on digitalocean as long as I keep putty open. However, as soon as I close out of putty jhprimeminer stops running.
full member
Activity: 201
Merit: 100
Just some more feedback - EC2 microinstances appear to barf on wine but not sure why. 
full member
Activity: 201
Merit: 100
Thanks for the script gigawatt!

Appears to be working well on my linode vps.  However, on my digital ocean vps, although the miner is running, ypool reports that it is not.  Will continue to play with things - in the meantime, thanks!

edit - one other question.  If I need to restart my vps or it crashes, what should be run to start the miner with option 2 scenario?  Obviously running ./miner puts me in an option 1 scenario.

Thanks

edit2: Nevermind - I'm an idiot:   ./start-miner
hero member
Activity: 639
Merit: 500
I've just ordered a cheap VPS from other company, who don't provide Gnome, or any other Xorg components for their server. Wine, AFAIK, uses Gnome or something alike. So I'm strongly need a linux x64 miner. How can I build it for linux from souce?
Why it's still windows only?
full member
Activity: 168
Merit: 100
testing this right now on a linode, we'll see how it goes Smiley

Edit : you might get prompted with a EULA & asked to accept the terms, just press and Enter to 'press' OK in Putty Smiley

I totally forgot that I had to deal with that.  I actually had to go look it up myself.
I'll update the guide.
legendary
Activity: 1456
Merit: 1000
I am trying aswell.  Thank you for the great Script's!
legendary
Activity: 1596
Merit: 1010
testing this right now on a linode, we'll see how it goes Smiley

Edit : you might get prompted with a EULA & asked to accept the terms, just press and Enter to 'press' OK in Putty Smiley
full member
Activity: 168
Merit: 100
This guide will be a bit shorter than the last two, mainly because I'd consider this in "beta" right now.  For the time being, I wouldn't consider it 100% "noobproof".

The key differences between my previous guides and this one are:
  • When you sign up for your DigitalOcean or Linode account, you must select a 32-bit version of Ubuntu 13.04, not a 64-bit one.  jhPrimeminer was built for windows, so to run it on a *nix VPS it needs to run on Wine.  Wine has major issues installing on 64-bit Ubuntu.
  • Because this installation uses Wine, there's a limitation when it comes to running the miner.  You can either:
    • Watch the miner as it runs in the foreground, but have it stop if you close your session
    • Have the miner running in the background regardless of if you're connected but not be able to watch live results
    • Have the miner running in the background, be able to watch live results, but have the miner run at half speed
  • This setup opts for the 2nd option.  The miner runs in the background and you can check your progress on yPool.net

Getting Down to Business
  • When you create your VPS node, be sure to select Ubuntu 13.04 x32 (not x64)
  • Copy this script to notepad and modify the fields at the top of the script. (Highlighted version)
    • YPOOL_USERNAME is your yPool username AND worker.  It usually looks like "username.workername".
    • YPOOL_PASSWORD is your yPool worker's password, not your login password.  Usually, it's "x".
    • YPOOL_SIEVESIZE and YPOOL_PRIMES are parameters for jhPrimeminer
  • Connect to your VPS node via PuTTY, then paste the script.
  • Once the script finishes, run ./peek to verify that the jhPrimeminer process is running in the background


Notes
If the parameters for jhPrimeminer change (or if you decide to use a different mining client), you'll need to modify the ./miner script and add them.
The ./miner script automatically detects the number of CPU cores available and utilizes all of them.  This works regardless of if you've selected a 1 CPU plan or an 8 CPU plan.

If you get a message about accepting an EULA, press TAB to highlight the OK button, then press SPACE.


Please feel free to let me know if you have any questions, but do keep in mind even though this script is tested and working, it's still currently in a beta phase.
Thank you for your cooperation and understanding.  Enjoy your Primecoins!  Cool
Jump to: