Pages:
Author

Topic: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS) - page 3. (Read 18676 times)

hero member
Activity: 826
Merit: 1000
see my profile
# dopecoind 2.0 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 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 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


#
hero member
Activity: 826
Merit: 1000
see my profile
# 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

hero member
Activity: 826
Merit: 1000
see my profile
# riecoin

# 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 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


#

hero member
Activity: 826
Merit: 1000
see my profile
#
# Updated sourcecode - what to do?
# The lemoncoin sources just got updated to 0.0.2, 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
hero member
Activity: 826
Merit: 1000
see my profile
#
# The manual works for c-notes, 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, 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://bitcointalksearch.org/topic/c-note-4-years-old-and-still-alive-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 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

#

hero member
Activity: 826
Merit: 1000
see my profile
#

# The manual works for maxcoin, 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, 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


#
hero member
Activity: 826
Merit: 1000
see my profile
#

# The manual works for lemoncoin, 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, 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


#
hero member
Activity: 826
Merit: 1000
see my profile
# 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

hero member
Activity: 826
Merit: 1000
see my profile
# 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://bitcointalksearch.org/topic/m.9007912
#
# Wallet quickstart autoinstaller script --> posting # 32 -->
# https://bitcointalksearch.org/topic/m.9009832
#
# cpuMiner --> posting # 39 -->
# https://bitcointalksearch.org/topic/m.10522742
#
# linux VPS for 0.25 BTC / year, detailed instructions --> posting # 38 -->
# https://bitcointalksearch.org/topic/m.10513565
#
#
# ------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------
# -- 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 (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


#
Pages:
Jump to: