Pages:
Author

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

hero member
Activity: 2268
Merit: 507
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...
hero member
Activity: 644
Merit: 500
these offers are eveywhere, and you still have to pay 5 dollars to get started.
hero member
Activity: 826
Merit: 1000
see my profile
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  Wink

[...details above...]

__________________________________________________________

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!
hero member
Activity: 826
Merit: 1000
see my profile
Get your own VPS server
The very basics, excessively detailed. You can do it!

12 steps ... take less than 12 minutes:


hero member
Activity: 826
Merit: 1000
see my profile
# W2Coind - 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 (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)
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!
#
hero member
Activity: 826
Merit: 1000
see my profile
Heartbleed (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?
hero member
Activity: 826
Merit: 1000
see my profile
# Groestl coind

# 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, and the recent posting with explanations #16.

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




# 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

# 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
hero member
Activity: 826
Merit: 1000
see my profile
Here is a strong opinion about not putting wallets onto VPS, and good reasons:

https://bitcointalksearch.org/topic/m.6043485

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

hero member
Activity: 826
Merit: 1000
see my profile
This was the first launch H20 coin. Don't know yet what applies to the relaunch version.


# h2o coin

# 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 during the chaotic start.
# Hopefully all problems are solved here with this manual.

# To understand, what the following commands are doing
# read the first posting #1,
# and the newest posting with explanation #16

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

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

# 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, and the newest posting with explanation #16
# 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
hero member
Activity: 826
Merit: 1000
see my profile
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 :-)
member
Activity: 83
Merit: 10
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!!
member
Activity: 83
Merit: 10
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!!!!!!
hero member
Activity: 826
Merit: 1000
see my profile
#
# myriadcoind
#
# 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 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


#


# P.S.: Mining myriadcoin with an external qubit cpuminer - instructions now online
hero member
Activity: 826
Merit: 1000
see my profile
#
# insanitycoin

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


#
hero member
Activity: 826
Merit: 1000
see my profile
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
member
Activity: 83
Merit: 10
Another question, what's the default port this runs on for outside connections?

Thanks
member
Activity: 83
Merit: 10
OK, I believe it was a memory issue. I was able to get it working by following the instructions from dopecoind

THANKS!!!!!!!!!!
member
Activity: 83
Merit: 10

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!!
hero member
Activity: 826
Merit: 1000
see my profile
# 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.
Pages:
Jump to:
© 2020, Bitcointalksearch.org