Bitcoin Forum
May 03, 2024, 10:00:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: LINUX: wallet & miner in linux / cloud / raspberryPI (MANUALS, SCRIPTS)  (Read 18612 times)
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
April 01, 2015, 04:03:13 AM
Last edit: April 01, 2015, 04:22:44 AM by drakoin
 #41

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!


no sign of a signature
1714730408
Hero Member
*
Offline Offline

Posts: 1714730408

View Profile Personal Message (Offline)

Ignore
1714730408
Reply with quote  #2

1714730408
Report to moderator
1714730408
Hero Member
*
Offline Offline

Posts: 1714730408

View Profile Personal Message (Offline)

Ignore
1714730408
Reply with quote  #2

1714730408
Report to moderator
1714730408
Hero Member
*
Offline Offline

Posts: 1714730408

View Profile Personal Message (Offline)

Ignore
1714730408
Reply with quote  #2

1714730408
Report to moderator
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714730408
Hero Member
*
Offline Offline

Posts: 1714730408

View Profile Personal Message (Offline)

Ignore
1714730408
Reply with quote  #2

1714730408
Report to moderator
jabo38
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001


mining is so 2012-2013


View Profile WWW
April 01, 2015, 04:20:34 AM
 #42

here is a simplified guide for getting NEM going on Ubuntu.

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

drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
April 29, 2015, 11:23:34 PM
Last edit: May 22, 2015, 01:06:41 AM by drakoin
 #43

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

# Step 1: buy your cheap virtual server
# Using my link you should get 10 dollars welcome bonus.

# 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; longer manual is linked from there.

# Step 2: prepare the server
# Described above in posting #31 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, and in more depth in the developer-reference)

Covend help
Covend help signmessage

# if this tutorial was useful, tip me some coven ( OR write on a PostIt(tm): "Tip drakoin some coins"  Wink )
# 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!
#

no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
April 29, 2015, 11:44:45 PM
Last edit: April 30, 2015, 02:00:58 PM by drakoin
 #44

Staking

See the above posting for how to create your own 24/7 staking node.

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

no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
May 05, 2015, 02:16:51 AM
 #45

What is the proper way in (debian) Linux to get the above (start the wallet, enable staking) all done automatically at boot time? Who can help me with that? Thanks!

no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
July 03, 2015, 02:18:27 PM
 #46

# COV2 - covend
# linux compilation instructions v7.0

# Thx to CV2 for the rebirth, and the simpler libdb++-dev installation, and to Schernikau for the secp256k1 help!
# 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.

# 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; 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, and in more depth in the developer-reference)

covend help
covend help signmessage

# if this tutorial was useful, tip me some coven ( OR write on a PostIt(tm): "Tip drakoin some coins"  Wink )
# 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!
#

no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
November 03, 2015, 01:43:45 PM
 #47

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

:-)

no sign of a signature
drakoin (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
January 20, 2016, 02:35:39 PM
 #48

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.


no sign of a signature
Hhampuz
Legendary
*
Online Online

Activity: 2856
Merit: 5915


Meh.


View Profile
September 01, 2016, 10:15:15 AM
 #49

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!

Pages: « 1 2 [3]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!