Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: gigawatt on July 30, 2013, 04:17:30 PM



Title: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on July 30, 2013, 04:17:30 PM
Setting up a Quarkcoin Miner on VPS for Absolute Noobs
Donations welcome!
BTC: 1E2egHUcLDAmcxcqZqpL18TPLx9Xj1akcV
Ψ: AWHJbwoM67Ez12SHH4pH5DnJKPoMSdvLz2


Before You Begin
  • Download PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (putty.exe) so you can connect to your VPS when the time comes.
  • Sign up for a DigitalOcean (https://www.digitalocean.com/?refcode=dbe99a6e91ee) or Linode (http://www.linode.com/?r=02323a0949ca9d51f753e28f944693aa08e84269) account.
    • During the creation process, be sure to create a node running Ubuntu 13.04 x64 (not x86)
    • Pick whichever hardware configuration you like (number of CPUs, RAM, etc)
  • If you signed up for DigitalOcean, check your email for your root password.  If you signed up for Linode, your password will be what you specified.
  • Run PuTTY and paste the node's IP address into the "Host Name" slot, then hit "Open" at the bottom. (figure 1) (https://i.imgur.com/TTmKrnd.png)
  • PuTTY will ask you to confirm the SSH key, press Yes (it will only ask once) (figure 2) (https://i.imgur.com/rZ1j1Dc.png)
  • Type or paste your password into PuTTY and press enter.  To paste, simply right click.
    • Note: You will not see the password characters!  This is normal.
http://goo.gl/62aGBQhttp://goo.gl/qMHVgJ

Getting Down to Business
  • If you chose DigitalOcean, it's time to change the root password!  Type passwd, press enter, then enter a new password.  Just like before, the password characters will not show up. (figure 3) (https://i.imgur.com/vsNlOBV.png)
  • Copy this automated setup script (http://pastebin.com/raw.php?i=iggH4B75) to notepad. (highlighted version (http://pastebin.com/iggH4B75))
  • At the top of the script, there are fields starting with "QUARKCOIN_".  Fill these out with your desired info.  Be sure to keep the quotes!
    • QUARKCOIN_USERNAME is your quarkcoind username.  It's required for quarkcoind to work properly!
  • Copy the entire modified script from notepad and paste it into your PuTTY window (right click), then hit enter.
  • The setup is now running.  It will take approximately 10 minutes to complete.
  • Once the script completes, you will see a brief help message and list of commands. (figure 4) (https://i.imgur.com/7ukU7q0.png)

Congratulations!  You're now mining for quarkcoins!
It may take a few minutes before you actually begin mining.  This is normal.  Quarkcoin needs to download the blockchain before it can begin doing work.  After it's caught up, you should be able to run ./peek and see that it's generating quarks.

If you'd like to maximize your mining potential, please see my mini-guide on How to Clone DigitalOcean Droplets (https://bitcointalk.org/index.php?topic=284831.msg3045081#msg3045081).



What Now?
  • If you haven't already, download the latest version of the Quarkcoin client.
    • You can download it from the forum thread (https://bitcointalk.org/index.php?topic=260031.0).
  • To "merge" your quarkcoin accounts into one, you'll need to gather the private keys from your VPS nodes
    • Log into your droplet like you did at the beginning of the setup.  This time your password will be what you set it to.
    • Run ./peek to verify that quarkcoind is running.  If it isn't, run ./start-quarkcoind and wait a few moments.
    • Run ./myinfo to dump your addresses and private keys values. (figure 5) (https://i.imgur.com/ip8X0no.png)
    • Copy the private key value (the random text after "PrivKey:") by highlighting it with your cursor.
    • On your main computer, open Quarkcoin and import the private key.
      • From the main Quarkcoin screen, click Help -> Debug Window
      • In the new popup, select Console
      • Type importprivkey YOUR_PRIVKEY SOME_LABEL and wait a few seconds.  YOUR_PRIVKEY is what you copied from PuTTY and SOME_LABEL is what you want the address to appear as in your address book. (figure 6) (https://i.imgur.com/cn3urrt.png)
      • Repeat this for as many private keys you wish to import.  Once finished, close and re-run the Quarkcoin client.  You should see the new addresses under "Receive".
    • Note: if an instance of quarkcoind mines a block, it may not be under the address you exported.  Wait for the block to be confirmed, then dump your addresses again.  Alternately, modify the notify-wallet script to FTP a backup of your wallet.dat file.
  • Occasionally you may wish to update your quarkcoin miner when new versions or patches are released.  To do this...
    • Log into your DigitalOcean droplet
    • Run ./stop-quarkcoind to stop the quarkcoind process
    • Run ./build-quarkcoin to update and rebuild quarkcoind
    • Run ./start-quarkcoind to start your quarkcoind process again
    • Wait a few minutes and run ./peek to make sure it's running correctly
  • If you'd like to remotely backup your wallet.dat file whenever you mint a new block, check this short guide (https://bitcointalk.org/index.php?topic=261179.msg2796507).

Changelog
  • 27 August, 2013
    • Cron reboot script now works properly.  (Damn you cron and your newlines!)
    • ~/peek no longer shows orphaned blocks.  Balance will only include transactions with one or more confirmations.
    • ~/myinfo now shows all addresses, not just those in the last ~100 transactions.  The pattern matching has been made more generic, so it works with just about any coin on main/testnet.  It also only does a lookup on addresses that generated a block or received currency.
    • Now includes a ~/restart-quarkcoind script
  • 20 August, 2013
    • Tweaked apt-get package names to grab most compatible package for the given install setup
    • Package list now includes fail2ban by default for some semblance of security
    • Package list now includes nano as a text editor.  Why some installs don't come with this is beyond me.
    • Swapfile now persists after reboot.
    • Auto reboot on kernel panic
  • 15 August, 2013 - Now Amazon EC2 compliant.  Also adds quakcoin miner to server startup.
  • 13 August, 2013 - Lots of updates!  Applied changes similar to those in the Primecoin script.
  • 30 July, 2013 - Initial release


Notes
The images in this guide are from my other primecoin guide and are slightly dated.  The images serve to illustrate, but shouldn't be taken as definitive.


If you have any questions or comments, feel free to speak up.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: gigawatt on July 30, 2013, 04:18:43 PM
Reserved


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: poordeveloper on July 30, 2013, 04:23:39 PM
Trying it now. Certainly would make things easier!


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: jpmi1 on July 30, 2013, 05:16:24 PM
I am now running a 2Cpu Digital Ocean droplet. Will give status update in a couple of hours.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: jdebunt on July 30, 2013, 06:27:19 PM
muchly appreciated this guide. Have it running my droplet now, will post back with results in 24 hours or so :)


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: bronan on July 31, 2013, 01:19:19 PM
Well i am quiting this crap it has been running for 5 days on a i7 3770k and got not even one block

It seems looks like mining with minerd also not working ....


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: jdebunt on July 31, 2013, 02:33:20 PM
with this script, i've hit 2 blocks overnight, so kudos :)


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: idny on July 31, 2013, 02:35:33 PM
Mining on 2 droplets for 18 hours. Nothing yet.
ps fu showing quark is running.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: gigawatt on July 31, 2013, 02:39:14 PM
Mining on 2 droplets for 18 hours. Nothing yet.
ps fu showing quark is running.

I'm hoping they fix getmininginfo in the future so it actually shows hashing speed.   :-\


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: victzhang on July 31, 2013, 03:36:04 PM
Don't expect many blocks using a VPS given the high difficulty now. Also since the price is so low, I doubt if it is really profitable.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: gigawatt on July 31, 2013, 05:18:58 PM
Don't expect many blocks using a VPS given the high difficulty now. Also since the price is so low, I doubt if it is really profitable.

People said that about Primecoin too, but I'm looking at 5 minted blocks in the last ~24 hours, so I'm ok if you'd like to sit this one out.  ;)


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: melnikalex on July 31, 2013, 10:38:35 PM
For ./myinfo i suggest to use this code, so mined coins will appear in the windows wallet, after you launch import.bat

Code:
#!/bin/bash
echo rem input your passphase > import.bat
echo rem read x >> import.bat
echo rem quarkcoind walletpassphrase "$x" 3600 >> import.bat
for addr in $(quarkcoind listtransactions "" 99999999999 | grep address | sed 's/address//' | tr -d '",:')
do
    echo quarkcoind importprivkey $(quarkcoind dumpprivkey ${addr}) >> import.bat
done
echo rem quarkcoind walletlock >> import.bat
echo rem unset x >> import.bat
#cat import.bat

To import keys need following:
1. add to quarkcoin.conf (in %USERPROFILE%/AppData/Roaming/Quarkcoin) an options:
Code:
server=1
listen=1
daemon=1
rpcuser=quarkcoinrpc
rpcpassword=7BWF48i19zs1kpi28abjL94E1WCg1sW6ENkyBQ71QkqF
rpcallowip=127.0.0.1
2. Start quarkcoin-qt
3. Put import.bat into the folder where quarkcoind.exe are placed on the pc with your main windows wallet and run it
* if your wallet are encrypted, you need to remove "rem" occurences from the import.bat before run it.

--

If you do not want to write private keys to file, there is a simpler script:
Code:
#!/bin/bash
for addr in $(quarkcoind listtransactions "" 99999999999 | grep address | sed 's/address//' | tr -d '",:')
do
    echo importprivkey $(quarkcoind dumpprivkey ${addr})
done

You would need to copy-paste line by line output of ./myinfo to quarkcoin-qt debug console window on main wallet

--
* fixed: more that 10 addresses to show


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: notlist3d on August 02, 2013, 09:28:56 PM
Great work now showing hashespersec


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: cryptohunter on August 07, 2013, 09:51:25 AM
fixed thanks



Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One Setup Script
Post by: gigawatt on August 13, 2013, 07:30:32 PM
Lots of updates!

Changes include pretty much everything from the primecoin script that's been added in the last two weeks.  That includes better ~/peek and start/stop scripts along with some cosmetic tweaks.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on August 15, 2013, 08:10:21 PM
Minor updates today.

The script is now test and is Amazon EC2 compliant.
It also includes adding quarkcoin to startup.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on August 16, 2013, 06:04:12 PM
Another minor update.  I've noticed that some hosting providers (DigitalOcean) occasionally result in a Kernel Panic on boot.

I've modified the script to auto-reboot in case of a kernel panic so mining can continue as usual.
Secondly, the swapfile will only build once.  Updates are as simple as re-running the whole script.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: liteuser on August 18, 2013, 08:23:21 PM
You need to replace the A in the grep of the myinfo script

Quote
for addr in $(quarkcoind listtransactions | grep --color=never -o "A[A-Za-z0-9]\{32,35\}" | sort -u);

with a Q to get quarkcoin addresses.

BTW, after rerunning your updated script I cannot get any connections in a digital ocean droplet. Are the nodes working?

Thanks


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on August 19, 2013, 02:29:18 PM
You need to replace the A in the grep of the myinfo script

Quote
for addr in $(quarkcoind listtransactions | grep --color=never -o "A[A-Za-z0-9]\{32,35\}" | sort -u);

with a Q to get quarkcoin addresses.

BTW, after rerunning your updated script I cannot get any connections in a digital ocean droplet. Are the nodes working?

Thanks

Good catch, I've updated the script.  That's what I get for copy/pasting.

I'm not certain about the node list.  I haven't updated it since the initial script build.  It may no longer be needed, but to my understanding Quarkcoin always takes a while to find peers.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on August 20, 2013, 03:02:45 PM
Misc stability/compatibility tweaks.

Now includes fail2ban by default to prevent brute-force login attempts.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: cryptohunter on August 20, 2013, 11:51:33 PM
Gigawatt please can you make a linux step by step guide for solo mining quark with this cpu miner ?  also if you put your quark address in sig then people can donate them to you if they dont own prime or bitcoins

taken from quark thread
-------------------------------------------------------------
It's fast, I'll post then all in one place,

the source code:
http://stonefoz.myfastmail.com/cpuminer-quark.zip
the binary: please check if it loads the right libraries. "minerd-bin" is the real thing and "minerd" is a script to set the LD_LIBRARY_PATH current directory. Who knows? you might already have libjannson installed.
http://stonefoz.myfastmail.com/cpuminer-quark-bin.zip
-------------------------------------------------------------------------



Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: ZirconiumX on August 21, 2013, 08:40:56 AM
Can I just recommend something that *might* speed things up?

https://github.com/ilikenwf/apt-fast

It would require a few extra install steps, but it makes grabbing packages so much faster.

Matthew:out


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: part1san on August 25, 2013, 01:00:35 PM
not a team of ~ / myinfo http://imgur.com/BYy5I29 (http://imgur.com/BYy5I29)


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on August 27, 2013, 07:38:55 PM
Updated script to keep it in line with main Primecoin script.  See main post for details.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: bitspill on August 27, 2013, 08:29:06 PM
not a team of ~ / myinfo http://imgur.com/BYy5I29
~/myinfo only shows the addresses and keys that have earned QRK coins, since you haven't mined any yet it shows nothing.

-- Is that enough tabs open ;)
-- Might I suggest OneTab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: bitspill on August 28, 2013, 09:56:34 PM
There is a small mistake in the script, at the top QUARK_USER is set but further down when it is used it says QUARKCOIN_USER so no username is saved to the config file


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: i3lome on September 04, 2013, 07:25:38 AM
I cant seem to get the ~/myinfo command to give any info. everything seems to be mining, getting decent hash speed but no address


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on September 06, 2013, 03:44:17 PM
I cant seem to get the ~/myinfo command to give any info. everything seems to be mining, getting decent hash speed but no address


Have you received any coins or successfully mined a block with that wallet?

~/myinfo only shows an address if it's received coins in some way or another, so if your balance has always been a flat 0, it won't return anything.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: i3lome on September 07, 2013, 02:43:43 AM
I cant seem to get the ~/myinfo command to give any info. everything seems to be mining, getting decent hash speed but no address


Have you received any coins or successfully mined a block with that wallet?

~/myinfo only shows an address if it's received coins in some way or another, so if your balance has always been a flat 0, it won't return anything.

Good to know, sorry Im stupid. I thought since it wasn't showing an address it couldn't mine anything. so I imported private key and tried that way. Lol patience is my downfall


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: soulmann on September 08, 2013, 09:58:25 PM
Hi

Everything is working, but myinfo doesnt work. I tried ~/myinfo and ./myinfo.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: i3lome on September 09, 2013, 01:46:51 AM
Hi

Everything is working, but myinfo doesnt work. I tried ~/myinfo and ./myinfo.
I had the same issue, i was told once a block is mined, your address and coin will so in the myinfo command. So aslong as your hashing, its working


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: bitspill on September 09, 2013, 03:41:08 AM
Hi

Everything is working, but myinfo doesnt work. I tried ~/myinfo and ./myinfo.
The post right before you was the same problem and the same solution just as i3lome said, myinfo only shows private keys to addresses with a balance so if ~/peek shows a balance of 0 ~/myinfo will be blank


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: jasonslow on September 09, 2013, 08:17:14 AM
Do you have tutorial for windows vps?


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: i3lome on September 15, 2013, 11:14:35 PM
OP can I give you Pool Mining Script for VPS, I have it down to a copy and paste method that uses some of your guide to setup


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: gigawatt on September 17, 2013, 03:14:20 PM
OP can I give you Pool Mining Script for VPS, I have it down to a copy and paste method that uses some of your guide to setup

You might be interested in my Securecoin pool mining guide in my signature.
Securecoin and Quarkcoin use the same hashing algorithm, so you can just point the miner to a Quarkcoin pool and be good to go!


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: zx9r on November 30, 2013, 11:57:54 PM
I guess this tutorial is for VPS "solo" mining ?

Could you please help in configuring a pool mining ?



Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: BitcoinBA on December 01, 2013, 10:10:17 AM
Hi Gigawatt,

thank you for the great script. I have just bought a VPS at Linode and it's running at 45k hps. Another node is running at my home PC in a virtual LUBUNTU box at 20k hps.

The script compiled quite well at the Linode box, but with many warnings. It seems to be working fine but still, is it ok? I don't have so much experience with linux so it might be a stupid question :)

Building LevelDB ...

db/log_reader.cc:181:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

blake.c:886:8: warning: invalid conversion from ‘void*’ to ‘unsigned char*’ [-fpermissive]

blake.c:944:1: warning:   initializing argument 1 of ‘void blake64_close(sph_blake_big_context*, unsigned int, unsigned int, void*, size_t)’ [-fpermissive]

update-rc.d: warning: /etc/init.d/cron missing LSB information


Thank you.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: digitalindustry on December 01, 2013, 04:56:12 PM
gigawatt you legend is this on our forum ?

? ? ?

http://quark.freeforums.net/  i will sticky it !  in the Tech section we badly need help !

inundated with community members  come and see for yourself !

people will tip you !


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: Meister511 on December 08, 2013, 08:14:00 PM
So little informations...
What QUARK_USERNAME="" means? Where to get that?
How to join pool and where to write my worker username and password?


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: Hilux74 on December 08, 2013, 08:21:47 PM
So little informations...
What QUARK_USERNAME="" means? Where to get that?
How to join pool and where to write my worker username and password?

Lol guess the script is noobproof but not derpproof  :D


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: Meister511 on December 08, 2013, 08:25:47 PM
Dude i follow pdf instructions from qrk forums Super Easy Quark mining SETUP

and when i go this:

./configure CFLAGS="-O3"
make

i get

root@XXX:/usr/local/quarkcoin-cpuminer# make
make: *** No targets specified and no makefile found.  Stop.


Am noob so what? You was pro when u started mining? cmon... get real




Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: bitspill on December 10, 2013, 07:32:38 AM
Dude i follow pdf instructions from qrk forums Super Easy Quark mining SETUP

and when i go this:

./configure CFLAGS="-O3"
make

i get

root@XXX:/usr/local/quarkcoin-cpuminer# make
make: *** No targets specified and no makefile found.  Stop.


Am noob so what? You was pro when u started mining? cmon... get real




Further up there should be more errors. Are you running on Ubuntu 13.10?

I had to load up 13.10 otherwise automake was not the most recent version and compilation fails.


Title: Re: [QRK] Noobproof VPS Quarkcoin All-In-One EZ Setup Script (updated)
Post by: ide99 on December 11, 2013, 11:32:48 AM
i started 2 days ago and have already 0 QRK. Is that normal ?

with ~/peek i get this:

Quote
Stats: {
    "blocks" : 446472,
    "currentblocksize" : 2009,
    "currentblocktx" : 2,
    "difficulty" : 5396.99515579,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespersec" : 21303,
    "pooledtx" : 2,
    "testnet" : false
}
Confirmed Balance:  0.00000000
Immature Balance:   0
Immature TX: 0
Connections: 124