Jump to content
Sign in to follow this  
buzzkillb

How to Compile Denarius daemon on Android Phone no Root

Recommended Posts

322

469 posts
1203 BF$

A while back I forked Neo-Oli and switched in an Ubuntu 16.04 to make compiling a little easier on the phone. https://github.com/buzzkillb/termux-ubuntu Also want to add hackers keyboard from the Play Store for this. All can be done without rooting the phone. Compiling the daemon using make -f makefile.arm -j2 worked fine. Then manually installing Kronos to match the default denarius.conf also worked.

kronos-main-page.thumb.png.efde9f1bcc3bb1e9aa84b44314fe1db4.png

This turns out to be an more simple variation of a previous tutorial.

 

First install termux and hackers keyboard on your Android phone.
https://play.google.com/store/apps/details?id=com.termux
https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard

Switch your keyboard over to hackers keyboard as its just easier to use with the Termux terminal to start inputting commands. I opened a separate web browser on the phone to copy and paste commands in. A little tedious, but this shouldn't take more than 30 minutes max of copy pasta.

1574211416_Screenshot_20200808-142106(Custom).thumb.png.ee8748a441f7fb22ae1fed47ff5db46f.png

Once in Termux run this.

pkg install wget proot

Then lets get the Ubuntu 16.04 image.

mkdir -p ~/jails/ubuntu
cd ~/jails/ubuntu
wget https://raw.githubusercontent.com/buzzkillb/termux-ubuntu/master/ubuntu16.sh
bash ubuntu16.sh
start-ubuntu.sh

We are now inside of Ubuntu 16.04 inside of Termux inside of Android.

Update, Upgrade, Clone Denarius and Compile using a slight variation of https://denarius.wiki/wallet/compile/#daemon

sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y git unzip build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libgmp-dev libevent-dev autogen automake  libtool libcurl4-openssl-dev
git clone https://github.com/carsenk/denarius
cd denarius
cd src
make -f makefile.arm
sudo mv ~/denarius/src/denariusd /usr/local/bin/denariusd

Its a lot easier to grab pichaindata.zip and then start syncing. If you want to sync from block 0, type denariusd. Otherwise lets gets chaindata and unzip. https://denarius.wiki/wallet/chaindata/

cd ~
mkdir ~/.denarius
cd ~/.denarius
wget https://denarii.cloud/pichaindata.zip
unzip pichaindata.zip

Hopefully your phone or tablet has enough hard drive space to wget and unzip. Now run the daemon to wait for full sync.

denariusd

To watch the debug.log.

tail -f ~/.denarius/debug.log

denarius-daemon-debuglog.thumb.png.3a75b1ed974707dd4d7d9e10a0a33d65.png

Congratulations, you now have a full blockchain daemon running. But we really want to add Kronos so we have a nice and easy interface to use with this for on the go. Check next post on how to manually install that.

  • The D 1

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites
322

469 posts
1203 BF$

To install Kronos (Word in Progress for Steps)

cd ~
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
Exit Ubuntu terminal and open a new Ubuntu terminal then do this
source ~/.nvm/nvm.sh
source ~/.profile
source ~/.bashrc
nvm install v12
nvm use v12
npm install -g npm
cd ~/kronos
npm install
npm start
ctrl+c

1160447763_Screenshot_20200808-163830(Custom).thumb.png.0b8c146d0a7573c663b46922ad34a839.png

Then we want to match the premade denarius.conf rpcuser and rpcpassword.

cat ~/.denarius/denarius.conf

I copied the rpcuser first and then paste into here.

cd ~/kronos
nano .env

Do this for both rpcuser and rpcpassword, as the .env file needs to be able to talk to the Denarius daemon.

Now stop your daemon if you haven't as we need to modify the denarius.conf too.

denariusd stop
cd ~/.denarius
nano denarius.conf

And add this line to the bottom.

walletnotify=curl http://127.0.0.1:3000/walletnotify -d "txid=%s"

If all went well we can now start Kronos.

cd ~/kronos
npm start

From your phone / tablet browser go to 127.0.0.1:3000 create a user with password and see if it worked.

283437859_Screenshot_20200808-164029(Custom).thumb.png.e71b7f3bb695a0b4c9799efc2bd715fc.png

  • Moon 1

If you enjoy my content please consider donating to the Denarius creator - https://www.patreon.com/carsenk
Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...