Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: drakoin on February 11, 2014, 04:15:38 PM



Title: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on February 11, 2014, 04:15:38 PM
# Shortcut: www.tiny.cc/LinuxWallet links to here now. Easy to remember.
#
# ------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------
#
# Completely overhauled NEW instructions (28/9/2014, 20/2/2015)
# Will work for many altcoins. On your linux, in the cloud (VPS), on raspberryPi.
#
# Wallet --> posting # 31 -->
# https://bitcointalk.org/index.php?topic=460178.msg9007912#msg9007912
#
# Wallet quickstart autoinstaller script --> posting # 32 -->
# https://bitcointalk.org/index.php?topic=460178.msg9009832#msg9009832
#
# cpuMiner --> posting # 39 -->
# https://bitcointalk.org/index.php?topic=460178.msg10522742#msg10522742
#
# linux VPS for 0.25 BTC / year, detailed instructions --> posting # 38 -->
# https://bitcointalk.org/index.php?topic=460178.msg10513565#msg10513565
#
#
# ------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------
# -- END OF EDIT. (very) old posting following now: -----------------------------------
# ------------------------------------------------------------------------------------------------

# walletd - compile and install from github sources

# in this case duckduckcoin, which was forked
# from litecoin, like most other altcoins.
# So this should work for other coins, too.

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64

# N.B.: the compilation fails with 500 MB RAM, so start with the
# 10$ droplet (1GB)
; after the compilation you can resize to 5$
# droplet. If you already have the smallest, power it down,
# resize it to at least 1GB of RAM, and power up again.
# Thanks to btcltcdigger for this hint.

# What?  "droplet"?  Your own server for 5$/month running costs!
# A cheap linux virtual server (VPS) in the cloud, created in 55seconds
# At digital ocean http://tiny.cc/digocean NL USA Singapur
# with code SSD2014 you get 10$ welcome bonus
# Buy 10$ droplet for 1 hour compilation, later downgrade to 5$/month.

# Create droplet. Wait for the email with the root password.
# To connect use ssh / putty.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (data... auto-login: root)

passwd

sudo -i

# prep the system to be able to git & compile & build
cd ~
apt-get update
apt-get install git screen make automake build-essential libboost-all-dev

# might be necessary for other tools, for this wallet on Debian 7 is not:
# apt-get install yasm binutils libcurl4-openssl-dev openssl libssl-dev





# For some reason, bitcoin is stuck in an old database version,
# which is not supported by newest ubuntu / debian anymore,
# so we get it manually:

# Get db4.8 source, compile and install
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar zxf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --enable-cxx
make
sudo make install

# Tell your system where to find db4.8
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# rm -R ~/db-4.8.30.NC*   # perhaps not good to delete?



# EDIT: slower but cheap (free)
# create a SWAP FILE instead of the necessity for 1 MB RAM:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile





# Get the wallet sources from github
# and build the headless server daemon "duckduckcoind"
cd ~
git clone https://github.com/duckduckcoin/duckduckcoin
cd ~/duckduckcoin/src
make -f makefile.unix USE_UPNP=-
cp duckduckcoind ..


 

# first time start creates folder wallet & blockchain & config
cd ~
./duckduckcoin/duckduckcoind  # just to create the folder,
# stops with password missing error



# create a config file (copy paste the whole paragraph in one go):

cat << "CONFIG" >> ~/.duckduckcoin/duckduckcoin.conf

# enable RPC
server=1
rpcport=12122
rpcuser=yourusername
rpcpassword=yoursuperdooperpassword
daemon=1
# no mining:
gen=0
# seed nodes:
addnode=69.90.132.182
addnode=69.90.132.181
addnode=69.90.132.64

CONFIG





# start server
~/duckduckcoin/duckduckcoind

# should answer with: Duckduckcoin server starting


# most important RPC API commands to control your accounts
~/duckduckcoin/duckduckcoind getbalance  
~/duckduckcoin/duckduckcoind getinfo
~/duckduckcoin/duckduckcoind getnewaddress forDonations
~/duckduckcoin/duckduckcoind listtransactions forDonations
~/duckduckcoin/duckduckcoind listaccounts
~/duckduckcoin/duckduckcoind getaddressesbyaccount forDonations
~/duckduckcoin/duckduckcoind getaddressesbyaccount ""

# the full list of commands
~/duckduckcoin/duckduckcoind help


# now to save money, you can power down the droplet,
# resize it back to 0.5GB of RAM (5$ per month),
# and power up again





# If you liked this tutorial, send me some duckduckcoins to try out your new abilities:
~/duckduckcoin/duckduckcoind sendtoaddress dTyYVSVEoHjVSA84h8uKJk3QHz573iU1VA 0.00005 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 11, 2014, 04:39:35 PM
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean
Yes, that shortened URL earns me referral bonus. Thank you for clickthrough.
It expands to https://www.digitalocean.com/?refcode=870aa24cdb10



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 12, 2014, 03:34:53 AM
#

# The manual works for lemoncoin (https://bitcointalk.org/index.php?topic=456597.0), too.

# your wallet in the cloud - compile and install from github sources

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64

# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean

# You can build your lemoncoin wallet on that server.

# Instructions are the same as above (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166), just replace all occurences of "duckduckcoin" by "lemoncoin".



# if you had rebooted after the above, you need to repeat this before compiling:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"




# source:
git clone https://github.com/lemoncoin/lemoncoin/




# for the conf file I suggest this:

cd ~
mkdir ~/.lemoncoin
cat << "CONFIG" >> ~/.lemoncoin/lemoncoin.conf

# enable RPC
server=1
rpcuser=yourusername
rpcpassword=yoursuperdooperpasswordthisisimportant
daemon=1
# no mining:
gen=0
# seed nodes:
addnode=23.92.80.107
addnode=23.92.80.22
addnode=lemon.dogemoon.com
addnode=lemon.stablehash.com
addnode=lmc.chaosagent.org
addnode=lmc.hashrapid.com
addnode=lmc.minebig.com
addnode=Lemon.OakPool.com
addnode=lmc.akpool.net
addnode=lemon.morecoins.org

CONFIG




# If you like this tutorial, send me some lemon coins:
./lemoncoin/lemoncoind sendtoaddress LZrQNRtWJqGqHXpnVaUKYX8ht1E273mvZq 300 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 12, 2014, 06:12:57 AM
#

# The manual works for maxcoin (https://bitcointalk.org/index.php?topic=438150), too.

# your wallet in the cloud - compile and install from github sources

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64

# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your maxcoind wallet on that server.

# Instructions are the same as above (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166), just replace all occurences of "duckduckcoin" by "maxcoin".

# sources from
git clone https://github.com/Max-Coin/maxcoin


# the maxcoin.conf file is created by this, using the official nodes

cd ~
mkdir ~/.maxcoin
cat << "CONFIG" >> ~/.maxcoin/maxcoin.conf

# enable RPC
server=1
rpcuser=yourusername
rpcpassword=yoursuperdooperpasswordthisisimportant
daemon=1
# no mining:
gen=0
# Seed nodes
addnode=maxexplorer.cloudapp.net
addnode=maxcoin.cloudapp.net
addnode=maxcoinus.cloudapp.net
addnode=maxcoinasia.cloudapp.net
addnode=213.179.202.19
addnode=wombat.dar.sh

CONFIG




# If you like this tutorial, send me some max coins:
./maxcoin/maxcoind sendtoaddress mL8JX1z8CCPtU3dcEgAXDoHEGaapmy6EC5 1 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 12, 2014, 02:01:41 PM
#
# The manual works for c-notes (https://bitcointalk.org/index.php?topic=397916), too.

# your wallet in the cloud - compile and install from github sources

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64

# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your c-note wallet on that server.

# Instructions are the same as above (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166), just replace all occurences of "duckduckcoin" with "c-note" (modulo capital / small letters).


# if you had rebooted after the above, you need to repeat this before compiling:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# download the source c-note1.2.tar.gz from https://bitcointalk.org/index.php?topic=397916

# For c-note admin:
# It would be nice if there were a github / wget address for the source,
# for easier download in terminal only mode
# until then I use pscp.exe from the putty.exe programmers (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) to upload it to the droplet
# pscp.exe c-note1.2.tar.gz root@my-droplet-IP:

cd ~
tar zxf c-note1.2.tar.gz
rm c-note1.2.tar.gz
cd C-Note/src
make -f makefile.unix USE_UPNP=-
cp c-noted ..





# create a config file (copy paste all in one go):
cd ~
mkdir ~/.c-note
cat << "CONFIG" >> ~/.c-note/c-note.conf

listen=1
seednode =70.191.156.43
seednode=69.85.86.195
maxconnections =10
testnet=0
port=18491
rpcport=18490
rpcuser=cnote
rpcpassword=yoursooperdooperpasswordhighlysecure
rpcallowip=127.0.0.1
addnode=1.63.78.97:18491
addnode=125.115.70.228:18491
addnode=119.142.38.127:18491
addnode=122.4.158.172:18491
addnode=70.191.156.43:18491
addnode=183.29.166.9:18491
addnode=113.2.233.93:18491

CONFIG






# start the server
~/C-Note/c-noted &

# unfortunately, in contrast to the others above,
# this one doesn't answer "c-note server starting",
# but you can see the process running:
ps gaux | grep c-noted


# API commands are the same, see posting #0
./C-Note/c-noted getinfo
./C-Note/c-noted help


# If you like this tutorial, send me some CNOTEs:

./C-Note/c-noted sendtoaddress CN1JHBX8jnpiXCKSsqCBNo6Dp5uQAMLmdE 500 ThankYouForYourTutorial
# or in other currencies at www.tiny.cc/drakointip

# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 12, 2014, 05:52:45 PM
#
# Updated sourcecode - what to do?
# The lemoncoin sources just got updated to 0.0.2 (https://github.com/lemoncoin/lemoncoin), so how do we update our wallet?
#

# just for fun, in the old version note down the version number:
~/lemoncoin/lemoncoind getinfo


# stop the server
~/lemoncoin/lemoncoind stop


# just to make sure that our old db4.8 is found during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# update the sourcecode, and compile and build:
cd ~/lemoncoin/
git pull
cd src
make -f makefile.unix USE_UPNP=-
cp lemoncoind ..
cd ~

# start server:
~/lemoncoin/lemoncoind

# compare the version numbers:
~/lemoncoin/lemoncoind getinfo


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 14, 2014, 07:54:16 PM
# riecoin (https://bitcointalk.org/index.php?topic=446703)

# your wallet in the cloud - compile and install from github sources
# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your riecoind wallet on that server.
# Instructions are the same as above, just replace all occurences of "duckduckcoin" with "riecoin".
# If your server is brand new, you need to prep it for compilation & building, just do everything in posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166) until "get the wallet source", then continue here:


# to make sure that our old db4.8 is found during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# get the wallet source, compile and build, and copy the binary to ~/riecoin/riecoind
cd ~
git clone https://github.com/riecoin/riecoin
cd ~/riecoin/src
make -f makefile.unix
cp riecoind ..



# now that the compilation is done, to save money,
# you can power down the droplet,
# resize it to 0.5GB of RAM (5$ per month),
# and power up again




# create a config file (copy paste all in one go):
cd ~
mkdir ~/.riecoin
cat << "CONFIG" >> ~/.riecoin/riecoin.conf

gen=0
listen=1
server=1
testnet=0
rpcport=28332
port=28333
rpcuser=riecoinuser
rpcpassword=yoursooperdooperpasswordhighlysecure
rpcallowip=127.0.0.1
addnode=107.170.26.188
addnode=107.170.32.187:28333
addnode=107.170.37.13
addnode=107.170.40.168:28333
addnode=108.161.145.12:28333
addnode=128.199.253.233
addnode=162.243.118.47:28333
addnode=162.243.208.55
addnode=162.248.98.162
addnode=173.193.48.174
addnode=182.32.194.1
addnode=192.241.129.169
addnode=194.97.156.59:28333
addnode=195.47.113.76:28333
addnode=198.144.180.117
addnode=198.144.180.118
addnode=198.98.52.244:28333
addnode=213.239.207.114:28333
addnode=5.83.137.130:28333
addnode=5.83.137.131:28333
addnode=54.197.67.63
addnode=54.198.193.96:28333
addnode=54.204.214.12
addnode=54.234.17.173
addnode=54.237.23.244:28333
addnode=62.210.141.204:28333
addnode=64.79.107.5
addnode=67.225.172.77
addnode=76.102.71.50
addnode=77.172.93.38:28333
addnode=79.135.200.61
addnode=81.27.206.10:28333
addnode=95.138.166.108
addnode=95.138.166.126:28333
addnode=98.121.202.169

CONFIG


# Start the server:
~/riecoin/riecoind  &
# unfortunately does not answer with: riecoin server starting, but if the following works we know that it is running:


# most important RPC API commands to control your accounts
~/riecoin/riecoind getbalance  
~/riecoin/riecoind getinfo
~/riecoin/riecoind getnewaddress forDonations
~/riecoin/riecoind listtransactions forDonations

# the full list of commands
~/riecoin/riecoind help




# If you liked this tutorial, send me some riecoins, to try out your new abilities:
./riecoin/riecoind sendtoaddress RLEvAAHaAnK4yKKuQCnw5houVTds3bhZR3 1.234 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 16, 2014, 10:00:48 PM
# memory issues solved

# g++: internal compiler error: Killed (program cc1plus) ... make: *** [obj/db.o] Error 4
#
# instead of resizing the droplet and giving
# even more RAM during the compilation,
# it is probably enough to create a swapfile:

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 16, 2014, 10:23:47 PM
# dopecoind 2.0 (https://bitcointalk.org/index.php?topic=467641) Linux Wallet instructions, verbose

# your wallet in the cloud - compile and install from github sources
# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your dopecoind wallet on that server.
# Instructions are the same as above, just replace all occurences of "duckduckcoin" with "DopeCoin".
# If your server is brand new, you need to prep it for compilation & building, just do everything in posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166) until "get the wallet source", then continue here.

# not to run into any trouble with lack of RAM space
# during the compilation, we create a swap file:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile


# our old db4.8 is needed during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# if we don't do that we get the error
# "db.h:14:20: fatal error: db_cxx.h: No such file or directory
# compilation terminated. make: *** [obj/db.o] Error 1#"



# get the wallet source from github, compile and build,
# and copy the binary to ~/DopeCoin/dopecoind
cd ~
git clone https://github.com/dopecoin-dev/DopeCoin
cd ~/DopeCoin/src
make -f makefile.unix
cp dopecoind ..



# now that the compilation is done, to save money,
# you can power down the droplet,
# resize it to 0.5GB of RAM (from 10$ down to 5$ per month),
# and power up again.




# create a config file (copy paste all in one go):
cd ~
mkdir ~/.dopecoin
cat << "CONFIG" >> ~/.dopecoin/dopecoin.conf

gen=0
listen=1
server=1
rpcallowip=127.0.0.1
rpcuser=dopecoinuser
rpcpassword=yoursooperdooperpasswordhighlysecure
addnode=5.199.149.228
addnode=213.37.49.176
addnode=98.191.67.106
addnode=107.170.47.143
addnode=171.100.105.151
addnode=174.51.17.18
addnode=116.1.49.175
addnode=106.68.186.128
addnode=84.128.238.204
addnode=183.14.197.233
addnode=197.0.143.159
addnode=213.185.37.164
addnode=82.6.159.183
addnode=91.157.180.238
addnode=80.143.88.230
addnode=94.52.19.22
addnode=93.137.196.0
addnode=93.137.196.0
addnode=77.173.110.4
addnode=94.22.75.142
addnode=85.76.175.236
addnode=72.13.133.222
addnode=96.2.98.225
addnode=213.73.177.144
addnode=31.163.28.203
addnode=77.102.251.218
addnode=77.8.30.138
addnode=82.68.134.30
addnode=95.91.240.205

CONFIG



# Start the server:
~/DopeCoin/dopecoind  &
# unfortunately it does not answer with: dopecoin server starting,
# but if the following works we know that it is running:


# most important RPC API commands to control your accounts
~/DopeCoin/dopecoind getbalance  
~/DopeCoin/dopecoind getinfo
~/DopeCoin/dopecoind getnewaddress forDonations
~/DopeCoin/dopecoind listtransactions forDonations


# the list of commands of the RPC API (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list) is given by
~/DopeCoin/dopecoind help




# If you liked this tutorial, send me some dopecoins please:
~/DopeCoin/dopecoind sendtoaddress 4WMzYuW49UdKLbTE8NcEy6Tt19JFQJknC9 1.234 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 18, 2014, 03:50:04 PM
# your wallet in the cloud - compile and install from github sources
# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 10$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

Cute promotion video about digital ocean:  http://www.youtube.com/watch?v=vHZLCahai4Q

To buy please click through my referral link http://tiny.cc/digocean  thank you.


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: EventualCoinMillionaire on February 22, 2014, 08:29:39 AM

cp duckduckcoind ..


Hi. When I type the above for my altcoin (reddcoin), I get

Code:
cp: cannot stat âreddcoindâ: No such file or directory

I'm on DigitalOcean 10 dollar droplet. Thanks for your info!!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: EventualCoinMillionaire on February 22, 2014, 09:13:13 AM
OK, I believe it was a memory issue. I was able to get it working by following the instructions from dopecoind

THANKS!!!!!!!!!!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: EventualCoinMillionaire on February 22, 2014, 09:27:03 AM
Another question, what's the default port this runs on for outside connections?

Thanks


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 22, 2014, 02:12:10 PM
Another question, what's the default port this runs on for outside connections?
Thanks
Yes, sad, some coindesigners don't mention their port choices anymore.
Please report it back when you have found out what it is. Perhaps this help?
https://github.com/dopecoin-dev/DopeCoin/search?q=port


I'm on DigitalOcean 10 dollar droplet. Thanks for your info!!
With swap file enabled, it might even run on a 5$ droplet.


OK, I believe it was a memory issue. I was able to get it working by following the instructions from dopecoind
THANKS!!!!!!!!!!
I am really happy that it's useful for you.



P.S.: Consider donations :-) www.tiny.cc/drakointip every little bit helps


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 22, 2014, 02:40:34 PM
#
# insanitycoin (https://bitcointalk.org/index.php?topic=471166)

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur
# You can build your insanitycoin wallet on that server.

# If your server is brand new, you need to prep it for compilation & building,
# just do everything in posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166) until "get the wallet source", then continue here.

# for not to run into any trouble with lack of RAM space
# during the compilation, we create a swap file:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile


# our old db4.8 (compiled in #1) is needed during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# if we didn't do that we would get the error
# "db.h:14:20: fatal error: db_cxx.h: No such file or directory
# compilation terminated. make: *** [obj/db.o] Error 1#"



# get the wallet source from github, compile and build,
# and copy the binary to ~/insanitycoin/insanitycoind
cd ~
git clone https://github.com/insanitydev/insanitycoin
cd ~/insanitycoin/src
make -f makefile.unix
cp insanitycoind ..


# download the official config file:
mkdir ~/.insanitycoin
cd ~/.insanitycoin
wget http://5.9.111.71/insanitycoin.conf

# change the password
nano insanitycoin.conf
# to exit press
# ctrl-x
# y
# enter

cd ~


# start server
~/insanitycoin/insanitycoind
# should answer with: Insanitycoin server starting


# most important RPC API commands to control your accounts
~/insanitycoin/insanitycoind getbalance  
~/insanitycoin/insanitycoind getinfo
~/insanitycoin/insanitycoind getnewaddress forDonations
~/insanitycoin/insanitycoind listtransactions forDonations

# the full list of commands
~/insanitycoin/insanitycoind help




# If you liked this tutorial, send me some insanitycoins
~/insanitycoin/insanitycoind sendtoaddress WbDnQujFmzJDxFfV97Dn1yJ75aFebLRifq 10 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 25, 2014, 01:25:57 AM
#
# myriadcoind (https://bitcointalk.org/index.php?topic=483515)
#
# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur
# You can build your myriadcoin wallet on that server.

# you can mark everything in this posting and copy paste it into the linux shell, all in one go.
# or you do it step by step, and observe what is going on (learning mode).


# If your server is brand new, you need to prep it for compilation & building,
# just do everything in posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166) until "get the wallet source", then continue here.

# for not to run into any trouble with lack of RAM space
# during the compilation, we create a swap file:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile


# our old db4.8 (compiled in #1) is needed during the compilation:
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# if we didn't do that we would get the error
# "db.h:14:20: fatal error: db_cxx.h: No such file or directory
# compilation terminated. make: *** [obj/db.o] Error 1#"



# get the wallet source from github, compile and build,
# and copy the binary to ~/myriadcoin/myriadcoind
cd ~
git clone http://github.com/myriadcoin/myriadcoin
cd ~/myriadcoin/src
make -f makefile.unix  USE_UPNP=
cp myriadcoind ..


# now we create a config file (COPY ALL IN ONE GO):

cd ~
mkdir ~/.myriadcoin
cat << "CONFIG" >> ~/.myriadcoin/myriadcoin.conf

listen=1
maxconnections=32
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
server=1
rpcallowip=192.168.0.*
algo=groestl
gen=1

CONFIG


# to edit the conf file; change the password, or switch off the mining -->    gen=0
# nano ~/.myriadcoin/myriadcoin.conf

# to exit nano press
# ctrl-x
# y
# enter

cd ~


# start server
~/myriadcoin/myriadcoind &
# unfortunately does not answer with: myriadcoin server starting


# most important RPC API commands to control your accounts
~/myriadcoin/myriadcoind getbalance  
~/myriadcoin/myriadcoind getinfo
~/myriadcoin/myriadcoind getnewaddress forDonations
~/myriadcoin/myriadcoind listtransactions forDonations

# the full list of commands
~/myriadcoin/myriadcoind help


# to see that the wallet is using most of the CPU cycles for mining, use top, exit with pressing 'q'
# top


# Send me some myriadcoins please
~/myriadcoin/myriadcoind sendtoaddress MAKikmtAosj3fAsYyjgVQ4sBJnyVF9sSvJ 500 ThankYouForYourTutorial

# or in other currencies at www.tiny.cc/drakointip


# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


# P.S.: Mining myriadcoin with an external qubit cpuminer - instructions now online (https://bitcointalk.org/index.php?topic=485770.msg5351445#msg5351445)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: EventualCoinMillionaire on February 28, 2014, 07:48:20 PM
I just ran into an issue with the system. One of my partners ended up typing "reddcoind -daemon" which caused the deamon to max out the CPU and MEM on the server. Is there any reason why this is? I assume from reading the documentation here, that "-daemon" isn't required?

Can a Linux expert elaborate on this for me?

Thanks!!!!!!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: EventualCoinMillionaire on February 28, 2014, 08:40:10 PM
OK, even when I ran with "reddcoind" it seems the CPU is going over 100%. This is what I see with "top -c":

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
xxxx root      20   0 2296m 107m  17m S  165  5.2  56:47.97 /usr/bin/reddcoind

Does anyone know why this is?

Thanks for your help!!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on March 05, 2014, 09:11:40 PM
the CPU is going over 100%. This is what I see with "top -c":
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
xxxx root      20   0 2296m 107m  17m S  165  5.2  56:47.97 /usr/bin/reddcoind
Does anyone know why this is? Thanks for your help!!

I think the total in top is 100% multiplied with the number of cores. Read all the answers to this question http://stackoverflow.com/questions/1032357/comprehending-top-cpu-usage


to max out the CPU and MEM on the server.

check your conf file, does it have a
gen=1
for mining? Switch it off by
gen=0


If not, let it run for a few minutes, to download the blockchain, then check again.
I don't know redd, but my wallets use 0.3 - 2 %.


HTH :-)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on March 05, 2014, 09:41:53 PM
# Zeitcoin (https://bitcointalk.org/index.php?topic=487814)

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur
# You can build your zeitcoind wallet on that server.

# read the first posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166), and the newest posting with explanation #16 (https://bitcointalk.org/index.php?topic=460178.msg5350156#msg5350156)
# to understand, what the following commands are doing

export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
cd ~
git clone https://github.com/zeitcoin/zeitcoin
cd zeitcoin/src
make -f makefile.unix
cp zeitcoind ..
cd ~
mkdir ~/.Zeitcoin
cat << "CONFIG" >> ~/.Zeitcoin/Zeitcoin.conf
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
~/zeitcoin/zeitcoind &
~/zeitcoin/zeitcoind getnewaddress forDonations

# for more RPC commands, see above.

# if this tutorial was useful to you, please tip me zeitcoins (or remember to come back and tip me some zeitcoins)
~/zeitcoin/zeitcoind sendtoaddress MgjyfXo85AfRD5wV4N5rGDxS39rMPZiYGF 20000 ThanksToDrakoinForHisTutorial

# or in other currencies at www.tiny.cc/drakointip, or pass on profitable hints to me www.tiny.cc/drakoinhints


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on March 23, 2014, 08:42:04 PM
This was the first launch H20 coin. Don't know yet what applies to the relaunch version.


# h2o coin (https://bitcointalk.org/index.php?topic=494229)

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your H2Od wallet on that server.

# h20 coin is a bit special :-) and first caused some errors,
# thanks a lot to mmouse for the help (https://bitcointalk.org/index.php?topic=494229.msg5860716#msg5860716) during the chaotic start (https://bitcointalk.org/index.php?topic=494229.msg5861053#msg5861053).
# Hopefully all problems are solved here with this manual.

# To understand, what the following commands are doing
# read the first posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166),
# and the newest posting with explanation #16 (https://bitcointalk.org/index.php?topic=460178.msg5350156#msg5350156)

# If your server is brand new, you need to prep it for compilation & building,
# just do everything in posting #1 until "get the wallet source" (https://bitcointalk.org/index.php?topic=460178), then continue here.

export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
cd ~

git clone https://github.com/CoinDev-io/H2O
cd H2O/src

# this is to avoid compile errors (h2o dev: when fixed it in your source code, PM me please):
mkdir obj
chmod a+x leveldb/build_detect_platform

nano makefile.unix

#add the lines (h2o dev please fix it in your source code)
USE_UPNP:=-
USE_IPV6:=0
# then press Ctrl-x y enter  # to save and leave nano

make -f makefile.unix  # will take a long time, go for lunch :-)
cp H2Od ..

cd ~
mkdir ~/.H2O

# this conf file is temporary, and make sure to change your password
# (h2o dev please publish / put long term reliable addnodes into the sources):
cat << "CONFIG" >> ~/.H2O/H2O.conf
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
rpcport=9911
addnode=94.23.196.92
addnode=148.251.12.124
addnode=69.197.137.58
addnode=188.165.236.213
addnode=94.23.196.92
addnode=194.97.156.59
addnode=98.126.190.28
addnode=94.22.41.45
addnode=46.40.98.211
CONFIG

~/H2O/H2Od &
~/H2O/H2Od getnewaddress forDonations

# for more RPC commands, see above, postings #1 or #16

# if this tutorial was useful to you, please tip me h2o coins (i.e.: remember to come back and tip me some h2o coins :-) )
~/H2O/H2Od sendtoaddress HX3mFEbaFNAyUpWuidM2MiSmuB3AX9hkf3 1000 ThanksToDrakoinForHisTutorial ThanksToDrakoinForHisTutorial

# or in other currencies at www.tiny.cc/drakointip, or pass on profitable hints to me www.tiny.cc/drakoinhints


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on April 03, 2014, 02:26:27 AM
Here is a strong opinion about not putting wallets onto VPS, and good reasons:

https://bitcointalk.org/index.php?topic=421615.msg6043485#msg6043485

What I take from it is to keep no large balances on not self-owned computers.



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on April 03, 2014, 08:33:36 AM
# Groestl coind (https://bitcointalk.org/index.php?topic=525926.0)

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur

# You can build your GroestlCoind wallet on that server.

# Complete copy paste is possible. A bit more info what this does is in the
# first posting #1 (https://bitcointalk.org/index.php?topic=460178.msg5080166#msg5080166), and the recent posting with explanations #16 (https://bitcointalk.org/index.php?topic=460178.msg5350156#msg5350156).

# If your server is brand new, you need to prep it for compilation & building,
# just do everything in posting #1 until "get the wallet source" (https://bitcointalk.org/index.php?topic=460178), then continue here.




# for some reason compiling this needs a larger SWAP FILE:
sudo dd if=/dev/zero of=/swapfile bs=80M count=16
sudo mkswap /swapfile
sudo swapon /swapfile

# set the path to the db4.8
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# download sources from github
cd ~
git clone https://github.com/GroestlCoin/GroestlCoin
cd GroestlCoin/src

# this is to avoid compile errors (dev: when fixed it in your source code, PM me please):
chmod a+x leveldb/build_detect_platform

# compile (takes a looooong time)
make -f makefile.unix USE_UPNP=-
cp GroestlCoind ..

cd ~
mkdir ~/.GroestlCoin

# create config file - copy all in one go. Make sure to change your password
cat << "CONFIG" >> ~/.GroestlCoin/GroestlCoin.conf
listen=1
server=1
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
rpcport=1441
addnode=37.187.129.122
addnode=62.210.162.235
addnode=88.167.215.32
addnode=69.197.137.58
addnode=103.16.218.165
addnode=84.98.85.30
addnode=76.16.120.82
addnode=62.210.123.27
addnode=117.13.253.241
CONFIG
ls ~/.GroestlCoin


# start server
~/GroestlCoin/GroestlCoind &  

# most important RPC commands
~/GroestlCoin/GroestlCoind getnewaddress forDonations
~/GroestlCoin/GroestlCoind listreceivedbyaddress 0 true
~/GroestlCoin/GroestlCoind getbalance

# for more RPC commands, see above, postings #1 or #16, and the API calls list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list)

# if this tutorial was useful to you, please tip me Groestlcoins ( = remember to come back and tip me some  coins :-) )
~/GroestlCoin/GroestlCoind sendtoaddress FstNLSjkh4xJjoiCRd24hw8tKoun8pFrux 200 ThanksToDrakoin ThanksForTutorial

# or now in other currencies at www.tiny.cc/drakointip, or pass on profitable hints to me www.tiny.cc/drakoinhints


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on April 09, 2014, 05:23:27 PM
Heartbleed (http://heartbleed.com/) (CVE-2014-0160) infos  - incomplete:

after upgrading your droplet to newest versions by:
Code:
sudo apt-get update; sudo apt-get dist-upgrade

you should reboot:
Code:
sudo shutdown -r now

and then check if you have a safe version of openssl
Code:
dpkg -l | grep "openssl"
for example "1.0.1e-2+deb7u6" is patched.


Then I guess, all wallets need to be recompiled, using the above instructions?


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on June 05, 2014, 04:42:32 PM
# W2Coin (https://bitcointalk.org/index.php?topic=635177.msg7150815#msg7150815)d - your wallet in the cloud - new manual
# manual version v5.0
# complete instructions how to compile from github sources, in this case w2coin
# which was forked from ?, like a lot of other altcoins. So this should work for other coins, too.

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64.

# With swap, it will work even on the smallest Digital Ocean 5$ droplet (0.5GB RAM) !
# What?  "droplet"?  Your own server for 5$ per month!
# A cheap linux virtual server (VPS) in the cloud, created in 55seconds
# Sign up at digital ocean http://tiny.cc/digocean NL USA Singapur
# with code SSD2014 you might get 10$ welcome bonus.


# Create droplet: Choose 512MB; Region close to you; "Debian 7.0 x64".
# Wait for the email with the root password.
# To connect use ssh / putty.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (data... auto-login: root)

# change password, become superuser
passwd
sudo -i

# update all software (all the installed packages)
apt-get update; apt-get upgrade

# prep the system to be able to git & compile & build
apt-get update; apt-get install git make automake build-essential libboost-all-dev

# might be necessary for other tools & distros (for this wallet on Debian 7 it is not):
# apt-get install yasm binutils libcurl4-openssl-dev openssl libssl-dev

# compiling needs a large SWAP file:
sudo dd if=/dev/zero of=/swapfile bs=80M count=16
sudo mkswap /swapfile; sudo swapon /swapfile


# For some reason, bitcoind is stuck in an old database version db4.8,
# which is not supported by newest ubuntu / debian anymore, so we get it manually:

# Get db4.8 source, compile and install (takes 5 minutes)
cd ~
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar zxf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix; ../dist/configure --enable-cxx
make; sudo make install
rm -R ~/db-4.8.30.NC*   # delete the sources

# Link the libraries
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so

# (SERVER IS PREPARED. FROM HERE ON YOU CAN INSTALL OTHER WALLETS)

# where to find db4.8 tell your system  (needs to be redone after reboot)
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"

# Wallet sources from github, and
# build the headless server daemon "w2coind" (takes 7 minutes)
cd ~; git clone https://github.com/W2Coin/W2Coin-Src-Linux
cd ~/W2Coin-Src-Linux/src
chmod a+x leveldb/build_detect_platform
make -f makefile.unix USE_UPNP=-
cp ~/W2Coin-Src-Linux/src/W2Coind /usr/local/bin


# create config file - copy all in one go. Make sure to change your password.
# unfortunately, the W2Coin dev made a bad choice by removing the default paths, but the following repairs that:

cd ~
mkdir ~/.W2Coin
cat << "CONFIG" >> ~/.W2Coin/W2Coin.conf
listen=1
server=1
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
rpcport=21500
addnode=107.170.132.129
addnode=107.170.1.236
addnode=207.244.75.131
daemon=1
server=1
listen=1
testnet=0
CONFIG
chmod 700 ~/.W2Coin/W2Coin.conf
chmod 700 ~/.W2Coin
ls -la ~/.W2Coin

# always redirect client to the correct directory ~/.W2Coin
alias W2C='W2Coind -datadir=/root/.W2Coin'

# start server (press enter after 'W2Coin server starting')
W2C &

# see if the blockchain is syncing (right now "blocks" : 6674)
W2C getinfo
  
# most important RPC commands (try them one by one, no danger)
W2C getbalance
W2C getnewaddress forDonations

W2C listtransactions forDonations
W2C listreceivedbyaddress 0 true

W2C listaccounts
W2C getaddressesbyaccount forDonations
W2C getaddressesbyaccount ""

# for more RPC commands (explanations in the API calls list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list))
W2C help

# if this tutorial was useful, tip me some W2Coins ( OR write on a PostIt(tm): "Tip drakoin some coins" :-) )
# to my W2Coin address Wm77JzTxsr9YHchq75xMbhQRXCDAXpJ4EV by using this command:
W2C sendtoaddress Wm77JzTxsr9YHchq75xMbhQRXCDAXpJ4EV 500 ThanksToDrakoin ThanksForTutorial

# or please tip me now in other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me www.tiny.cc/drakoinhints


# stop the server:
W2C stop

# if it is still running:
ps ux | grep W2C
# ... then kill it the hard way:
killall W2Coind

# tip me!
# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on June 06, 2014, 05:53:37 PM
Get your own VPS server
The very basics, excessively detailed. You can do it!

12 steps ... take less than 12 minutes:


__________________________________________________________


1) Sign up at www.tiny.cc/digocean - thank you for clickthrough  ;)
2) Going through my link, you should get 10$ welcome bonus? Please tell me.
3) Perhaps there is a confirmation email? Forgotten. Login, anyways.
4) Press the big green "Create droplet" button on the right.

5) Make these choices, easy:

Hostname: paradise001 (anything you like)
Select Size: 512MB / 1CPU
Select Region: SF / NY / AMS / SING /DE - whatever is nearest to you.
Select Image: Linux Distributions ... Debian 8.1 x64
Settings: defaults
PRESS "Create Droplet"

6) wait for the email with the root password. Check spam folder. SAVE THE EMAIL.

7) Use ssh. If you are on Windows, use putty.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) and fill in:

Host Name (or IP address): look into in your root password email (see ^ 6)
Connection Type: ssh
Category ... Connection ... Data ... Auto-login username: root
Category ... Window ... Colours ... Default Background: Red=30 Green=0 Blue=0 (choose differently for each server)
Category ... Session ... Saved Sessions ...: paradise001
press Save

8 ) Press Open, and type in root password (from your root password email - see ^ 6)

9) Continue at "# step 2: prepare server (https://bitcointalk.org/index.php?topic=460178.msg11781022#msg11781022)" in posting #46

10) think about a reward for me ;-) BTC 1EyyjBMMHjMfx6M3Ngu4sn5M4QJ6HAtWFG or --> www.tiny.cc/drakointip or --> send me investment hints www.tiny.cc/drakoinhints.
11) please report back when you run into any trouble, or have ideas to improve this manual.

12) Sit back, and enjoy. Meditate. Listen to music. Go into nature. Make love ;-)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on August 26, 2014, 09:41:19 PM
Get your own VPS server
The very basics, excessively detailed. You can do it!

12 steps ... take less than 12 minutes:

1) Sign up at www.tiny.cc/digocean - thank you for clickthrough  ;)

[...details above...] (https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529)

__________________________________________________________

Newsflash:

Quote
We’re very excited to announce that now when you refer a friend to DigitalOcean, you’ll BOTH receive free credits.

Share your referral code link to give anyone a $10 credit to get started on DigitalOcean.

So when you use my referral, www.tiny.cc/digocean,
you will have $10 = two months smallest droplet
(or one month two droplets) for free.

Enjoy!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: rikkejohn on August 26, 2014, 09:50:01 PM
these offers are eveywhere, and you still have to pay 5 dollars to get started.


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: lobo13hf on August 31, 2014, 09:35:38 PM
Gonna try you ref link after my vps month is over, i have a question, i have install a pool on my VPS but how do i install another one on it? other coin differnt algo, can you tell how to make a subdomain if i have to on my server or different folder, i need the commands thanks...


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on September 27, 2014, 01:54:36 AM
these offers are eveywhere, and you still have to pay 5 dollars to get started.
Thanks. I didn't know that - because myself, I did start with paying, and didn't find that odd :-)
But 5$ is really not much. And imagine, besides whatever you do, you can run a tornode on it, and help the world.

Gonna try you ref link after my vps month is over,
Thanks, yes please do that. If you already have a D.O. account, you might need to log out, and start all over with a new email address, after clicking on my referral link, and that way help yourself to that 10$ welcome package.

i have a question, i have install a pool on my VPS but how do i install another one on it?
not sure that I understand you.

Have you installed a WALLET to your VPS (like my manuals above),
or actually POOL-SOFTWARE (like mpos or p2pool) ?  I have no clue about poolsoftware.

But I guess pools can operate on one server with many different coins in parallel, just by using a different PORTNUMBER for each coin, right?

other coin differnt algo, can you tell how to make a subdomain if i have to on my server or different folder, i need the commands thanks...
I have no domainnames for my D.O. droplets, just using the IP addresses, sorry cannot help, I guess.

About domainnames, I suggest you ask https://cloud.digitalocean.com/support - they are great!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on September 28, 2014, 08:20:19 PM
# monetaryunit (https://bitcointalk.org/index.php?topic=778322.msg9010092#msg9010092)d - your wallet in the cloud - new manual
# manual v5.31 = 11/Feb/2015 (EDIT: SCRIPTED VERSION OF THIS IS BELOW (https://bitcointalk.org/index.php?topic=460178.msg9009832#msg9009832))
http://www.monetaryunit.org/wp-content/uploads/2014/11/muelogo256.png (https://bitcointalk.org/index.php?topic=778322)

# complete instructions how to compile monetaryunitd from github sources
# which was forked from ?, like a lot of other altcoins. So this manual should work for many other coins, too.

# I succeeded with this on Ubuntu 12.04 and Debian 7.0 x64.
# With swapfile, it will work even on the smallest Digital Ocean 5$ droplet (0.5GB RAM) !
# What?  "droplet"?  Your own server for 5$ per month!
# A cheap linux virtual server (VPS) in the cloud, created in 55seconds
# Sign up at digital ocean http://tiny.cc/digocean NL USA Singapur - for my manual scroll up (https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529)
# You probably get 10$ welcome bonus if you go through my link before signing up.


# Create droplet: Choose 512MB; Region close to you; "Debian 7.0 x64".
# Wait for the email with the root password.
# To connect use ssh / putty.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (data... auto-login: root)

# change password (at digitalocean now automatic when logging in for the first time)
# passwd

# become superuser
sudo -i

# update all software (all the installed packages)
apt-get update; apt-get upgrade

# prep the system to be able to git & compile & build
apt-get install git make automake build-essential libboost-all-dev

# might be necessary for other tools & distros (for this wallet on Debian 7 it is not):
# apt-get install yasm binutils libcurl4-openssl-dev openssl libssl-dev

# compiling needs a large SWAP file:
sudo dd if=/dev/zero of=/swapfile bs=80M count=16
sudo mkswap /swapfile; sudo swapon /swapfile


# For some reason, bitcoind is stuck in an old database version db4.8,
# which is not supported by newest ubuntu / debian anymore, so we get it manually:

# Get db4.8 source, compile and install (takes 5 minutes)
cd ~
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar zxf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix; ../dist/configure --enable-cxx
make; sudo make install
rm -R ~/db-4.8.30.NC*   # delete the sources

# Link the libraries
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so

#
# (SERVER IS PREPARED. FROM HERE ON YOU CAN INSTALL OTHER WALLETS)
#



# where to find db4.8 tell your system  (needs to be redone after reboot)
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# Wallet sources from github, and
# build the headless server daemon "monetaryunitd" (takes 7 minutes)

 cd ~; git clone https://github.com/MonetaryUnit/MUE-Src

cd ~/MUE/src
mkdir obj; chmod a+x leveldb/build_detect_platform # fix 2 problems with these sources
make -f makefile.unix USE_UPNP=-
cp ~/MUE/src/monetaryunitd /usr/local/bin



# create config file - copy-paste all in one go. Make sure to change your password.

cd ~
mkdir ~/.monetaryunit
cat << "CONFIG" >> ~/.monetaryunit/monetaryunit.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
rpcport=29947
CONFIG
chmod 700 ~/.monetaryunit/monetaryunit.conf
chmod 700 ~/.monetaryunit
ls -la ~/.monetaryunit


# start server
# Should result in: "Monetaryunit server starting":

monetaryunitd


# Most important RPC commands:

# see if the blockchain is syncing (right now "blocks" : 142874)
monetaryunitd getinfo
  
# most important RPC commands (try them one by one, no danger)
monetaryunitd getbalance
monetaryunitd getnewaddress forDonations

monetaryunitd listtransactions forDonations
monetaryunitd listreceivedbyaddress 0 true

monetaryunitd listaccounts
monetaryunitd getaddressesbyaccount forDonations
monetaryunitd getaddressesbyaccount ""

# for more RPC commands (explanations in the API calls list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list))
monetaryunitd help


# if this tutorial was useful, tip me some MUE ( OR write on a PostIt(tm): "Tip drakoin some coins" :) )
# to my MUE address 7E5tkMCg1VjGwVXVr8SDb5DPCaZ6DkzSHa by using this command:
monetaryunitd sendtoaddress 7E5tkMCg1VjGwVXVr8SDb5DPCaZ6DkzSHa 111111 ThanksToDrakoin ThanksForTutorial

# or please tip me now in other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me (read www.tiny.cc/drakoinhints)


# stop the server:
monetaryunitd stop

# if it is still running:
ps ux | grep monetaryunitd
# ... then kill it the hard way:
killall monetaryunitd

# tip me!
# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)

# P.S.: About updating from an older version: https://bitcointalk.org/index.php?topic=460178.msg10426300#msg10426300


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on September 28, 2014, 11:11:21 PM
edit: v6.32 = 2015 February 11th
# Simpler MUE linux wallet install:
# I have made two scripts of the above (http://www.tiny.cc/linuxMUE), to simplify the whole process.

# STEP 1: http://tiny.cc/digocean then CREATE YOUR DROPLET AT DIGITALOCEAN
# Details are above (http://www.tiny.cc/linuxMUE), but these are the essentials:

# monetaryunit (https://bitcointalk.org/index.php?topic=778322)d - your wallet in the cloud - new manual
# manual v5.2
http://www.monetaryunit.org/wp-content/uploads/2014/11/muelogo256.png (https://bitcointalk.org/index.php?topic=778322)

# ... on the smallest Digital Ocean 5$ droplet (0.5GB RAM) ! [...]
# Sign up at digital ocean http://tiny.cc/digocean NL USA Singapur - for my manual scroll up (https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529)

# Create droplet: Choose hostname e.g. 'myLinux01'; 512MB; Region close to you; "Debian 7.0 x64".
# Wait for the email with the root password. To connect use ssh / putty.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (data... auto-login: root)

# change password (at digitalocean now automatic when logging in for the first time)
# passwd


EDIT: NEW VERSION v6.32 -->

# STEP 2: PREPARE SYSTEM (5 min) and MUE-WALLET (6 min):
These two scripts contain all the steps:
Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/walletSystemPrep.sh
chmod a+x walletSystemPrep.sh; ./walletSystemPrep.sh  # make executable, and run System Preparation

wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/walletInstallMUE.sh
chmod a+x walletInstallMUE.sh; ./walletInstallMUE.sh    # make executable, and run MUE Wallet Install

# STEP 3:  Try out the RPC COMMANDS to CONTROL THE WALLET
# ... in the above posting  #31 www.tiny.cc/linuxMUE (http://www.tiny.cc/linuxMUE)  scroll to the bottom third, for instructions.

# Enjoy :-)

# P.S.: About updating from an older version: https://bitcointalk.org/index.php?topic=460178.msg10426300#msg10426300


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on October 23, 2014, 04:41:32 PM
http://www.monetaryunit.org/wp-content/uploads/2014/11/muelogo256.png (https://bitcointalk.org/index.php?topic=778322)

Quarkminer Install for MUE monetaryunit (https://bitcointalk.org/index.php?topic=778322.msg9304714#msg9304714)
Scripts to install and run a quarkcpuminer on muepool.com

INSTALL Neisklar quarkminer (https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-Neisklar.sh) - works on most linux systems, including raspberryPi
Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/install-quarkminer-Neisklar.sh
chmod a+x install-quarkminer-Neisklar.sh; ./install-quarkminer-Neisklar.sh

RUN mueminer (https://github.com/drakoin/LinuxWallet/blob/master/mueminerstart.sh), comfortably in its own screen (so that you can log off, and later get back to it)
Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/mueminerstart.sh
chmod a+x mueminerstart.sh; ./mueminerstart.sh

That's it. Easy. Please give me feedback about this. Thanks.
If something doesn't work, please work line by line through the scripts (click on the links above) to find the line which causes an error. Thanks.

Of course, you want to change the POOLUSERNAME= to your own MUE address  ;)
Code:
nano mueminerstart.sh
Ctrl-X Y to save & exit nano


---

Faster?

I found forks of the Neisklar miner, namely by uncle-bob, and palmd. Both are utilizing sse2 which unfortunately isn't supported on RaspberryPi's CPU - but they do work on Cloud-VPS.
When run with cpulimit 50% on the smallest DigitalOcean-droplet ( http://tiny.cc/digocean for 10$ welcome bonus, thanks for clickthrough ... for my manual scroll up (https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529)) ... I get these approximate results:

Neisklar   21.3   khash/s
uncle-bob   41.6   khash/s
palmd   42.3   khash/s


If you want to try them yourself, I made scripts for you:

INSTALL palmd (https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-palmd.sh) quarkminer
Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/install-quarkminer-palmd.sh
chmod a+x install-quarkminer-palmd.sh; ./install-quarkminer-palmd.sh
whereis minerd  # in my case /usr/local/bin/minerd --> that's why:
sudo cp /usr/local/bin/minerd /usr/local/bin/minerd.palmd # make a copy then you can switch between all three forks

INSTALL uncle-bob (https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-uncle-bob.sh) quarkminer
Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/install-quarkminer-uncle-bob.sh
chmod a+x install-quarkminer-uncle-bob.sh; ./install-quarkminer-uncle-bob.sh
whereis minerd   # in my case /usr/local/bin/minerd --> that's why:
sudo cp /usr/local/bin/minerd /usr/local/bin/minerd.uncle-bob # make a copy then you can switch between all three forks


EDIT: palmd and uncle-bob actually result in identical binaries:
Code:
diff  /usr/local/bin/minerd.palmd  /usr/local/bin/minerd.uncle-bob -s
# Files /usr/local/bin/minerd.palmd and /usr/local/bin/minerd.uncle-bob are identical


Do you know of any other quarkminers that are worthwhile trying?
Do you have any suggestions what to improve in my scripts?
Do you have a job for me?

 :D

Reward me [MUE] 7JgWrpXtM67o4uWk7XVnMACMiTBZGGjjoF - thanks!


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: Mue on February 06, 2015, 10:33:13 PM
Hey drakoin, small update on this please as we have changed the source path.
It is now https://github.com/MonetaryUnit/MUE-Src
Thanks! :)

# monetaryunit (https://bitcointalk.org/index.php?topic=778322.msg9010092#msg9010092)d - your wallet in the cloud - new manual
# manual v5.2
...


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 11, 2015, 01:00:18 PM
Hey drakoin, small update on this please as we have changed the source path.
It is now https://github.com/MonetaryUnit/MUE-Src
Thanks! :)

Done :-)

I have updated https://bitcointalk.org/index.php?topic=460178.msg9007912#msg9007912 , and https://github.com/drakoin/LinuxWallet/blob/master/walletInstallMUE.sh so that https://bitcointalk.org/index.php?topic=460178.msg9009832#msg9009832 is up-to-date. Enjoy.



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 11, 2015, 01:14:10 PM
# P.S.: IF you are updating from an older version of MUE:
monetaryunitd stop

# it's always a good idea to backup the wallet.dat file (which holds your private keys!):
cd ~
cp .monetaryunit/wallet.dat .monetaryunit/wallet.dat.backup

# and you might want to delete, or at least rename the old files'n'folders:
mv MUE MUE-2014
sudo mv /usr/local/bin/monetaryunitd /usr/local/bin/monetaryunitd-2014

# and remove the old quickinstaller scripts (so that the above wget works like default)
rm walletSystemPrep.sh
rm walletInstallMUE.sh

# and, after the new compilation, simply edit out possibly duplicate lines from the .conf file:
nano ~/.monetaryunit/monetaryunit.conf


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: Mue on February 12, 2015, 10:44:16 AM
Hey drakoin, small update on this please as we have changed the source path.
It is now https://github.com/MonetaryUnit/MUE-Src
Thanks! :)

Done :-)

I have updated https://bitcointalk.org/index.php?topic=460178.msg9007912#msg9007912 , and https://github.com/drakoin/LinuxWallet/blob/master/walletInstallMUE.sh so that https://bitcointalk.org/index.php?topic=460178.msg9009832#msg9009832 is up-to-date. Enjoy.


Thank you, your work is really appreciated :)


Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 19, 2015, 05:17:54 PM
Get your own VPS server
The very basics, excessively detailed. You can do it!
12 steps ... take less than 12 minutes:
1) Sign up at www.tiny.cc/digocean - thank you for clickthrough  ;)

[...details above...] (https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529)

...


Get your own VPS server,
already starting at 5$ / month,
that is only 0.25 BTC / year.


And you can do fabulous things with it  :) Cloudmining, Wallets,
Linux learning, your own webserver, your private cloud ... anything.


When you go through my link, you will probably still get a 10$ welcome bonus!

--> www.tiny.cc/digocean

Thx.

__________________________________________________________



Title: Re: (LINUX) (MANUAL) compile altcoin wallet in linux / cloud
Post by: drakoin on February 20, 2015, 01:45:27 PM
CPU mining x13 on linux?

(N.B.: If you read this, and want to try it, but do not have Linux installed, just get a cheap VPS server for 5$/month (https://bitcointalk.org/index.php?topic=460178.msg10513565#msg10513565).)

Quote
I was searching for a linux x13 cpu miner and i saw one of your tutorial! :)
Thanks for asking.

Quote
But I am still at a total loss.
It can't be too bad if you got this far ;-)

Quote
I installed linux on my laptop
Congrats!

Quote
and now I am miner-less.
So I guess you had Windows before, and there you had a miner?
Which miner software did you use before?

Quote
Is it possible to mine cpu x13 ubuntu? Can you help?
Please?

Of course.

First of all: yes!

I was asked to write this tutorial here (for CPUmining of MUE which uses not X13 but the Quark-ALGO):
https://bitcointalk.org/index.php?topic=460178.msg9304572#msg9304572

You can manually work through the steps:
https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-Neisklar.sh
there is a lot of comments in that code, that should make it easy to understand.


But:

Which miner code is the fastest for X13 right now, I don't know.
Mining is such an arms race, that there are frequent improvements, and even "quantum leaps"  :-) .
Go and ask around in the forums "which is currently the fastest X13 miner for CPUs?"

Then, instead of  'https://github.com/Neisklar/quarkcoin-cpuminer'  in my example (https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-Neisklar.sh),
you take the code of that miner that was pointed out to you to be the currently best one.

Most of them are forked from the same base code, so probably my tutorial will work. If not, consult the README of that miner. (Do that anyways ;) )

Start mining:

Then when your compiling of that code has worked, here is my script to start a miner comfortably
so that it mines to my wallet, as a background process, with nicelevel 19, and 50% CPU usage limit:
https://github.com/drakoin/LinuxWallet/blob/master/mueminerstart.sh


Secondly, about your plan itself: CPU mining for X13 does not make much sense - it's very very slow.

CPUmining makes sense if

  • (a) you have thousands of CPUs (i.e. a botnet, if you have your trojan infect thousands of computers - but that is not very moral :-(
    (Actually: If you botnet owner are using my tutorials/scripts, consider to tip me some money *g* see below )

  • (b) if it is a coin with a mining algorithm for which there is no mining software for graphics cards (yet).
    Because a single graphics card contains 200 - 2000 processors (last time I checked). So compared to the GPU miners (who have even 4-6 graphics card per machine, so 800-12000 processors in one PC) ... your tiny little quad-core / octo-core one CPU will have such a small hashrate, so that your pool shares will be ridiculously low. Not worth, electricity wise.

  • (c) If you want to learn the technology itself. Then the efficiency doesn't play a role, of course. Go ahead. It's fun, definitely.

    Then you can quite as well try with MUE, which mines not with 'x13' but with the 'quark' algorithm.

Quickstart:

Code:
mkdir miner
cd miner
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/install-quarkminer-Neisklar.sh
chmod a+x install-quarkminer-Neisklar.sh; ./install-quarkminer-Neisklar.sh
whereis minerd

See the interface of the miner:

Quote
minerd --help
...

  -a, --algo=ALGO       specify the algorithm to use
                          scrypt    scrypt(1024, 1, 1) (default)
                          sha256d   SHA-256d
                          quark     Quarkcoin
...

So this "Neisklar-miner" supports only the ALGOs (scrypt, sha256d, quark).  Find one (in the forums, see above) which also supports x13.


Or -just to learn it- start mining MUE:

Code:
wget https://raw.githubusercontent.com/drakoin/LinuxWallet/master/mueminerstart.sh
chmod a+x mueminerstart.sh; ./mueminerstart.sh

of course, you then will want to change the wallet address that the money will end up in ;-)

Code:
nano ./mueminerstart.sh

Change line 10 ("POOLUSERNAME"), then press Ctrl-X Y to save and exit, and start the script again:

Code:
sudo killall minerd
./mueminerstart.sh

You can leave the screen by Ctrl-A D, and log out, or continue with other work.

To check the status, there are several ways:
  • ps aux | grep minerd
  • screen -r miner
  • top

Good?

Reward me
[MUE] 7JgWrpXtM67o4uWk7XVnMACMiTBZGGjjoF or
BTC 1M2zGd4LJTpt8fcsBTexFPQSq4gdYYHdA9 or
sign up for your own VPS www.tiny.cc/digocean
- thanks!


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on March 12, 2015, 03:43:41 AM
# COINNAME (https://bitcointalk.org/index.php?topic=983694.msg10745457#msg10745457)d - your wallet in the cloud - new manual
# manual v6.38 = 13/Mar/2015 --> 1/4/2015 COINNAMED
http://designreviver.com/wp-content/uploads/2009/11/LOGO4.gif (https://bitcointalk.org/index.php?topic=983694.msg10745457#msg10745457)

Step 1: buy your cheap virtual server
Using my link you should get 10 dollars welcome bonus (http://tiny.cc/digocean).

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur UK
Quickstart described above in posting #38 (https://bitcointalk.org/index.php?topic=460178.msg10513565#msg10513565); longer manual is linked from there.


Step 2: prepare the server
Described above in posting #31 (https://bitcointalk.org/index.php?topic=460178.msg9007912#msg9007912) until this line:
#
# (SERVER IS PREPARED. FROM HERE ON YOU CAN INSTALL OTHER WALLETS)
#

Step 3: compile & configure COINNAMEd

# where to find db4.8 tell your system  (needs to be redone after reboot)
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# Wallet sources from github, and build the headless server daemon "COINNAMEd" (takes 7 minutes)

git clone https://github.com/iGotSpots/COINNAME  #clone from github

cd COINNAME/COINNAME/src                        #  change directory to sourcecodefolder
mkdir obj                                         # repair missing folder

make -f makefile.unix USE_UPNP=-   # compile (takes many minutes, contact me if there are errors)

sudo cp COINNAMEd /usr/local/bin           # copy binary to the other binaries
cd ~                                                # change directory to home


# create config file - copy-paste all in one go.
# Make sure to change your password.

mkdir ~/.COINNAME
cat << "CONFIG" >> ~/.COINNAME/COINNAME.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
chmod 700 ~/.COINNAME/COINNAME.conf          # only this user can see password
chmod 700 ~/.COINNAME                            # only this user can see folder with wallet.dat
ls -la ~/.COINNAME


Step 4: usage of COINNAMEd

# start server
# Should result in "Monetaryunit server starting":
COINNAMEd

# Most important RPC commands:

# see if the blockchain is syncing (right now "blocks" : 69322)
COINNAMEd getinfo
  
# most important RPC commands (try them one by one, no danger)
COINNAMEd getbalance
COINNAMEd getnewaddress forDonations

COINNAMEd listtransactions forDonations
COINNAMEd listreceivedbyaddress 0 true

COINNAMEd listaccounts
COINNAMEd getaddressesbyaccount forDonations
COINNAMEd getaddressesbyaccount ""

# for more RPC commands (explanations in the API calls list)
COINNAMEd help


# if this tutorial was useful, tip me some COINNAME ( OR write on a PostIt(tm): "Tip drakoin some coins" Smiley )
# to my COINNAME address EtyfVMRR7TCbdqCe69K2k9zzBmiHjkMtZq by using this command:
COINNAMEd sendtoaddress EtyfVMRR7TCbdqCe69K2k9zzBmiHjkMtZq 1111 ThanksToDrakoin ThanksForTutorial

# or tip me now in other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me (read www.tiny.cc/drakoinhints)


# stop the server:
COINNAMEd stop

# if it is still running:
ps ux | grep COINNAMEd
# ... then kill it the hard way:
killall COINNAMEd

# tip me!
# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on April 01, 2015, 04:03:13 AM
temporary, provisional, tentative, interim...

# NEM
Linux Installation Manual

# Java 8: (is there a shorter way than this for debian installation of java8 ?)

# debian:
su -
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer screen -y
# switch the standard java to java 8:
sudo update-java-alternatives -s java-8-oracle
exit

# open question: How to automatically say yes to java license, without interaction necessary?




# download and verify Nix and Ncc:

wget http://bob.nem.ninja/nis-ncc-0.6.25.zip
wget http://bob.nem.ninja/nis-ncc-0.6.25.zip.sig

# open question: How to script an exit if signature is NOT fine?
gpg --recv-keys A46494A9
gpg --verify nis-ncc-0.6.25.zip.sig nis-ncc-0.6.25.zip


# unpack, and delete the zip
unzip nis-ncc-0.6.25.zip
rm nis-ncc-0.6.25.zip
cd package


screen -S Nis ./nix.runNis.sh
# (crtl-A D) for leaving that Nis screen

screen -S Ncc ./nix.runNcc.sh
# (crtl-A D) for leaving that Ncc screen



# to check what is going on:
ps aux | grep java
screen -ls
screen -r Nis
screen -r Ncc

# open browser and point to http://localhost:8989

Please do not forget to donate to me, drakoin, for this manual:  
NAVKYJ-ESROJR-R75TNT-VU6LTX-24RPYZ-5IQP7G-2HJS  
Thanks!



Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: jabo38 on April 01, 2015, 04:20:34 AM
here is a simplified guide for getting NEM going on Ubuntu.

http://blog.nem.io/ubuntu-installation-guide-standalone/


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on April 29, 2015, 11:23:34 PM
# Coven (https://bitcointalk.org/index.php?topic=1032465.msg11238926#msg11238926)d- your wallet in the cloud - new manual
# manual v6.42 Covend 22/5/2015
# this manual is copy-paste-able, that's what all the # are for, to mark them as comments
http://designreviver.com/wp-content/uploads/2009/11/LOGO4.gif (https://bitcointalk.org/index.php?topic=983694.msg10745457#msg10745457)

# Step 1: buy your cheap virtual server
# Using my link you should get 10 dollars welcome bonus (http://tiny.cc/digocean).

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur UK
# Quickstart described above in posting #38 (https://bitcointalk.org/index.php?topic=460178.msg10513565#msg10513565); longer manual is linked from there.

# Step 2: prepare the server
# Described above in posting #31 (https://bitcointalk.org/index.php?topic=460178.msg9007912#msg9007912) until this line:
#
# (SERVER IS PREPARED. FROM HERE ON YOU CAN INSTALL OTHER WALLETS)
#

# Step 3: compile & configure covend

# where to find db4.8 tell your system  (needs to be redone after reboot)
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"


# Wallet sources from github, and build the headless server daemon "covend"

# clone from bitbucket
# change directory to sourcecodefolder
git clone https://bitbucket.org/CovCOVEN/coven  
cd coven/src                        

# compile (takes many minutes, contact me if there are errors)
make -f makefile.unix USE_UPNP=-  

# copy binary to the other binaries, change directory to home
sudo cp Covend /usr/local/bin          
cd ~


# create config file - copy-paste all in one go.
mkdir ~/.Coven
cat << "CONFIG" >> ~/.Coven/Coven.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
# only this user can see password, and folder with wallet.dat
chmod 700 ~/.Coven/Coven.conf
chmod 700 ~/.Coven
ls -la ~/.Coven

# Make sure to change your password.
nano ~/.Coven/Coven.conf

# (CTRL-X Y to save file and end nano editor)


# Step 4: usage of covend

# start server
# Should result in "Coven server starting":
Covend

# for some reason the blockchain stopped at 1400, so I stopped and restarted, now all is fine:
Covend stop
Covend

# Most important RPC commands:

# see if the blockchain is syncing (right now "blocks" : 2247), and connected to which peers
Covend getinfo
Covend getpeerinfo  

# most important RPC commands (try them one by one, no danger)
Covend getbalance
Covend getnewaddress forDonations

Covend listtransactions forDonations

Covend listreceivedbyaddress 0 true
Covend listreceivedbyaddress
Covend listreceivedbyaccount 0 true
Covend listreceivedbyaccount

Covend listaccounts
Covend getaddressesbyaccount forDonations
Covend getaddressesbyaccount ""

Covend validateaddress CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4

Covend listunspent

# Do this with your full attention switched ON. Focus!
# Write it on a piece of paper! Store that paper well:
Covend encryptwallet ALONGBUTEASYTOREMEMBERPASSPHRASE

# then to later unlock it for 2 minutes, use this command:
Covend walletpassphrase ALONGBUTEASYTOREMEMBERPASSPHRASE 120


# for more RPC commands (explanations in the API calls list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list), and in more depth in the developer-reference (https://bitcoin.org/en/developer-reference#rpcs))

Covend help
Covend help signmessage

# if this tutorial was useful, tip me some coven ( OR write on a PostIt(tm): "Tip drakoin some coins"  ;) )
# to my coven address CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4 by using this command:
Covend sendtoaddress CfVTVDxKQQgKAcCn8u2B1n3Ph4afneL8n4 5 ThanksToDrakoin ThanksForTutorial

# or tip me now in other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me (read www.tiny.cc/drakoinhints)


# stop the server:
Covend stop

# if it is still running:
ps ux | grep Covend
# ... then kill it the hard way:
killall Covend

# tip me!
# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on April 29, 2015, 11:44:45 PM
Staking

See the above posting for how to create your own 24/7 staking node (https://bitcointalk.org/index.php?topic=460178.msg11238743#msg11238743).

Quote
Code:
walletpassphrase <passphrase> <timeout> [stakingonly]
Stores the wallet decryption key in memory for <timeout> seconds.
if [stakingonly] is true sending functions are disabled.

So:

# It has to be encrypted first (necessary only once in the lifetime of this wallet)
Covend encryptwallet ALONGBUTEASYTOREMEMBERPASSPHRASE

# and restarted
Covend

# then unlocked with stakingonly=true, let us say ... for more than 24 hours (60*60*24=86400)
Covend walletpassphrase ALONGBUTEASYTOREMEMBERPASSPHRASE 100000 true

# if you want to lock it before the 100000 seconds are over
Covend walletlock

# getstakinginfo
Covend getstakinginfo


This is how I understand it. Please help if it is not true, or complete.

I offer to leave this wallet running, so there is a staking node. To improve the network.
If you want to increase the Stake Weight of this node, send some COV coins there. Every bit helps.

COV address of this 24/7 staking node: CQfH2dwUcGXcxvfxU2nqoqGC4qcbSipvRX (http://cov.iquidus.co.nz/address/CQfH2dwUcGXcxvfxU2nqoqGC4qcbSipvRX)


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on May 05, 2015, 02:16:51 AM
What is the proper way in (debian) Linux to get the above (https://bitcointalk.org/index.php?topic=460178.msg11238838#msg11238838) (start the wallet, enable staking) all done automatically at boot time? Who can help me with that? Thanks!


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on July 03, 2015, 02:18:27 PM
# COV2 - covend (https://bitcointalk.org/index.php?topic=1100392.0)
# linux compilation instructions v7.0

# Thx to CV2 (https://bitcointalk.org/index.php?topic=1096038.msg11731731#msg11731731) for the rebirth, and the simpler libdb++-dev installation (https://github.com/covencoin/coven/blob/master/README-linux.txt), and to Schernikau (https://bitcointalk.org/index.php?topic=1100392.msg11775744#msg11775744) for the secp256k1 help!
http://designreviver.com/wp-content/uploads/2009/11/LOGO4.gif (https://bitcointalk.org/index.php?topic=1100392.0)
# this manual is copy-paste-able, that's what all the # are for, to mark them as comments

# Step 1: buy your cheap virtual server
# Using my link you should get 10 dollars welcome bonus (http://tiny.cc/digocean).

# your wallet in the cloud - compile and install from github sources
# Create your cheap linux virtual server (VPS) in the cloud in 55seconds
# Buy 5$ droplet e.g. at digital ocean http://tiny.cc/digocean NL USA Singapur UK DE
# Quickstart described above in posting #38 (https://bitcointalk.org/index.php?topic=460178.msg10513565#msg10513565); longer manual is linked from there.


# Step 2: prepare the server

# dependencies
apt-get update -y
apt-get install sudo unzip nano git make automake build-essential libboost-all-dev libssl-dev libdb++-dev -y

# swap file, so compilation also works on small droplets
sudo dd if=/dev/zero of=/swap bs=50M count=16
chmod 0600 /swap
sudo mkswap /swap
sudo swapon /swap

# secp256k1 (Optimized C library for EC operations on curve secp256k1), use older version a1d5ae1
git clone http://www.github.com/bitcoin/secp256k1
cd secp256k1
git checkout a1d5ae1
./autogen.sh
./configure
make
make install
cd ..

# tell Debian how to find those libraries:
export LD_LIBRARY_PATH=/usr/local/lib


# Step 3: compile & configure covend
# Wallet sources from github, and build the headless server daemon "covend"

git clone https://github.com/covencoin2/coven2
cd coven2/src

# fix problems in the sourcepackage
mkdir obj/crypto                                    
cd leveldb
chmod 755 build_detect_platform
make libleveldb.a libmemenv.a
cd ..

# compile
# takes many minutes (contact me if there are errors)

make -f makefile.unix USE_UPNP=-

# copy binary to the other binaries, change directory to home
sudo cp covend /usr/local/bin          
cd ~

# create config file - copy-paste all in one go.
mkdir ~/.coven2
cat << "CONFIG" >> ~/.coven2/coven.conf
listen=1
server=1
daemon=1
testnet=0
rpcuser=LOCALUSER
rpcpassword=VERYSECURESUPERLONGSUPERSAFEPASSWORD
CONFIG
# only this user can see password, and folder with wallet.dat
chmod 700 ~/.coven2/coven.conf
chmod 700 ~/.coven2
ls -la ~/.coven2

# Make sure to change your password.
nano ~/.coven2/coven.conf

# (CTRL-X Y to save file and end nano editor)


# Step 4: sync the blockchain

# start server
# Should result in "Coven server starting":
covend
covend getinfo # repeat this, until you see it has fully synced

# if the blockchain syncing gets stuck, stop and restart:
covend stop
covend

# if you cannot sync at all, choose a seednode manually:
covend stop
killall covend
covend -seednode=ONE.OF.THE.ADDNODES


# Step 5: usage of covend

# see if the blockchain is synced ("blocks"), and connected to which peers
covend getinfo
covend getpeerinfo  

# most important RPC commands (try them one by one, no danger)
covend getbalance
covend getnewaddress forDonations

covend listtransactions forDonations

covend listreceivedbyaddress 0 true
covend listreceivedbyaddress

covend listaccounts
covend getaddressesbyaccount forDonations
covend getaddressesbyaccount ""

covend validateaddress CcsbswP4493EifxDK4zPDzc3kDGBV8RCA8

covend listunspent

# encrypt wallet - needed for staking!
# Do this with your full attention switched ON. Focus!
# Write passphrase on a piece of paper! Store that paper well:
covend encryptwallet ALONGBUTEASYTOREMEMBERPASSPHRASE
covend

# then to later unlock it for 10 minutes, use this command:
covend walletpassphrase ALONGBUTEASYTOREMEMBERPASSPHRASE 600


# for more RPC commands (explanations in the API calls list (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list), and in more depth in the developer-reference (https://bitcoin.org/en/developer-reference#rpcs))

covend help
covend help signmessage

# if this tutorial was useful, tip me some coven ( OR write on a PostIt(tm): "Tip drakoin some coins"  ;) )
# to my coven address CcsbswP4493EifxDK4zPDzc3kDGBV8RCA8 by using this command

# send money (from unlocked wallet)
covend sendtoaddress CcsbswP4493EifxDK4zPDzc3kDGBV8RCA8 20 ThanksToDrakoin ThanksForTutorial

# or tip me now in BTC 1EyyjBMMHjMfx6M3Ngu4sn5M4QJ6HAtWFG or other currencies at www.tiny.cc/drakointip,
# or pass on profitable hints to me (read www.tiny.cc/drakoinhints)


# stop the server:
covend stop

# if it is still running:
ps ux | grep covend
# ... then kill it the hard way:
killall covend

# tip me!
# http://files.overclock.net/images/smilies/thumb.gif (https://bitcointalk.org/index.php?action=profile;u=184146;sa=showPosts)


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on November 03, 2015, 01:43:45 PM
Hi
thanks for your questions.

> Hi, i would like to mine some mue and have some questions.
Best is probably if you ask in their MUE thread, and/or join their slack.


> I am NOT familiar with linux,
A good moment to learn that. You'll see, it will be easier than you think now. And VERY rewarding.
Get yourself a VPS for 5$ per month, and you can immediately start. All the infos here in this thread.
e.g. https://bitcointalk.org/index.php?topic=460178.msg7169529#msg7169529

I am so happy that I made that step back then. It has been so useful, and in many respects, to have such a cheap, always on, virtual server.


> but i managed to get the palmd miner running,
congrats

> but it stopped my other minerd process
check all of their "nice levels" (NI)

Code:
top


>  and used 100%cpu.
Yes, the minerd will always use 100% cpu,
unless you use the free tool "cpulimit" (see below).


> I would like to know how i specify numbers of cores like in other minerds?
Not sure.

You can try to find the threads for the 'Neisklar', and the 'palmd' miners, and the 'uncle-bob' minerd forks - that were the ones that I described here how to install. Please post them here when you find them.

Does the "Neisklar quarkminer" behave the same?



> I would like to run2-3 cores at full speed without afecting my other mining processes.
Sounds as if you want to use 'cpulimit', to limit it to 60% - 70% of each cpu.

https://github.com/drakoin/LinuxWallet/blob/master/install-quarkminer-Neisklar.sh#L29
https://github.com/drakoin/LinuxWallet/blob/master/mueminerstart.sh#L52


I dimly remember that multicore cpu percentage is multiplied, so 4 cores max = 400%.
But you better do some research about that. My VPS is single-core.


>  This is a dedicated mining rigg with 4x xeon e5-4640 cpus.
Sounds like a powerful machine.

> 50% should mine xmg, some should mine mue
> and last should mine global boost or such.
As far as I understand it, if you run all minerd with the same "nicelevel" (look that up), the CPU time should be distributed evenly.

Additionally, you can limit per process ID (PID, look that up) ... using the suggested 'cpulimit'.



> Thank you in advance for your time, regards
Happy to help.

Here are several scripts: https://github.com/drakoin/LinuxWallet


If this ever works out for you, here is my donation address:
https://bitcointalk.org/index.php?action=profile


Enjoy

:-)


Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: drakoin on January 20, 2016, 02:35:39 PM
temporary, provisional, tentative, interim...
# NEM
Linux Installation Manual
...


upgrading to newest NEM
incl. blockchain bootstrap download



Code:
apt-get update && apt-get upgrade
mv NEMpackage NEMpackage_0.6.25-BETA # old

nis-ncc-0.6.73
Code:
wget http://bob.nem.ninja/nis-ncc-0.6.73.zip
wget http://bob.nem.ninja/nis-ncc-0.6.73.zip.sig
gpg --recv-keys A46494A9
gpg --verify nis-ncc-0.6.73.zip.sig nis-ncc-0.6.73.zip
unzip nis-ncc-0.6.73.zip
mv package NEMpackage

blockchain
Code:
wget http://bob.nem.ninja/nis5_mainnet.h2.db.zip
wget http://bob.nem.ninja/nis5_mainnet.h2.db.zip.sig
gpg --verify nis5_mainnet.h2.db.zip.sig nis5_mainnet.h2.db.zip
unzip nis5_mainnet.h2.db.zip

mv nem/nis/data/nis5_mainnet.h2.db nem/nis/data/nis5_mainnet.h2.db_DELETE # old chain
mv nis5_mainnet.h2.db nem/nis/data/

rm nis-ncc-0.6.73.zip* nis5_mainnet.h2.db.zip*


start
Code:
cd NEMpackage
./nix.runMon.sh

iceweasel http://127.0.0.1:8989/

more info on the official site (http://blog.nem.io/ubuntu-installation-guide-standalone/).



Title: Re: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)
Post by: Hhampuz on September 01, 2016, 10:15:15 AM
Hello! Are you still active?

Any clue on how to start mining Verium? It's in wallet one click mining, so I'm not really sure on how to go about it.

I don't really understand linux so trying to learn it aswell.

Thanks!