Jump to content

How to Compile Denarius daemon on Android Phone no Root


Recommended Posts

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.


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


First install termux and hackers keyboard on your Android phone.

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.


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

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.


To watch the debug.log.

tail -f ~/.denarius/debug.log


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
Link to comment
Share on other sites

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


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 -d "txid=%s"

If all went well we can now start Kronos.

cd ~/kronos
npm start

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


  • Moon 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...