Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: gigawatt on July 31, 2013, 05:40:37 PM



Title: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: gigawatt on July 31, 2013, 05:40:37 PM
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 (https://bitcointalk.org/index.php?topic=261179) and this one are:
  • When you sign up for your DigitalOcean (https://www.digitalocean.com/?refcode=dbe99a6e91ee) or Linode (http://www.linode.com/?r=02323a0949ca9d51f753e28f944693aa08e84269) 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.https://www.digitalocean.com/?refcode=dbe99a6e91eehttp://www.linode.com/?r=02323a0949ca9d51f753e28f944693aa08e84269
  • 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 (http://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 (http://pastebin.com/raw.php?i=YeViHcm8) to notepad and modify the fields at the top of the script. (Highlighted version (http://pastebin.com/YeViHcm8))
    • 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!  8)


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: jdebunt on July 31, 2013, 06:21:54 PM
testing this right now on a linode, we'll see how it goes :)

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


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: notlist3d on July 31, 2013, 06:47:03 PM
I am trying aswell.  Thank you for the great Script's!


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: gigawatt on July 31, 2013, 08:13:38 PM
testing this right now on a linode, we'll see how it goes :)

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

I totally forgot that I had to deal with that.  I actually had to go look it up myself.
I'll update the guide.


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: pyromaniac on August 01, 2013, 05:58:39 PM
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?


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: superfluouso on August 04, 2013, 05:56:11 PM
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


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: superfluouso on August 04, 2013, 06:53:32 PM
Just some more feedback - EC2 microinstances appear to barf on wine but not sure why. 


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: paymetodostuff on August 04, 2013, 08:10:38 PM
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.


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: superfluouso on August 05, 2013, 06:22:12 AM
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..


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: Sy on August 08, 2013, 10:41:56 AM
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...


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: Dumbo on August 08, 2013, 01:01:27 PM
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:
https://i.imgur.com/2cAOx08.png


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.


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: topminingcontracts on August 27, 2013, 01:11:40 AM
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



Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: soulmann on October 31, 2013, 10:27:01 PM
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.


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: Billyboy402 on January 26, 2014, 09:08:51 AM
i understand that wine work better on 32 bit , but isnt a 64 pc faster
(how much faster double ???)


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


Title: Re: [XPM] Automated yPool VPS Miner Setup Script (Beta)
Post by: blackakuma on May 11, 2014, 03:18:56 PM
plz update for scrip and file download     i run you scrip  not work