Search the Community
Showing results for tags 'daemon'.
Found 4 results
Earlier I compiled the Denarius daemon on my phone using Termux Ubuntu, no rooting of the phone required. Kronos interface allows a full wallet interface to send, receive, run a FortunaStake (masternode), and stake Denarius coins. A while back I forked Neo-Oli and switched in a 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. An example of tail -f debug.log. Above to to test Kronos first would see the syncing from block 0 wallet would work. Example showing this worked. Then I removed that sync and downloaded pichaindata.zip from https://denarii.cloud/ and this time was curious if I could get into the main menu now that I was fully sync'd. At first I had some lag to use the mobile wallet, but no problem logging in from my PC on the same local network. using the Kronos terminal tab to neofetch the OS and also show tail -f debug.log. That worked, so next I tried connecting the Keepkey hardware wallet using a USB A (mini) to C adapter. And then the local phone web browser worked. To my surprise Kronos using the phone's web browser saw the Keepkey hardware wallet. For now I was able to use my previous seed I had setup on my PC and was able to check the small balance I had sent a few weeks ago. At the end I was able to compile the Denarius daemon on mobile ARM (Android) phone, no rooting of the phone required. This allow for a full wallet node running directly on the phone. To interact with the wallet I can go to 127.0.0.1:3000 on mobile Chrome browser (Brave also worked), or go to the phone's local IP network address and login directly from my PC or laptop. Denarius daemon currently requires about 2gb of ram, so next on the list of things to find is a tablet, and it may be possible to attach an external nvme or ssd drive to the tablet and run chaindata from there. Much more testing ahead. A suggestion as Kronos is still in super alpha. Once Keepkey hardware wallet signing and sending is possible, allow the option to broadcast to electrumx server, the local daemon IP, or a random daemon on the network.
How to compile QT and daemon on various versions of Ubuntu. Ubuntu 16.04 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 git checkout master git pull cd src make -f makefile.unix sudo mv ~/denarius/src/denariusd /usr/local/bin/denariusd denariusd QT 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 libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default libcurl4-openssl-dev git clone https://github.com/carsenk/denarius cd denarius || exit git checkout master git pull qmake "USE_QRCODE=1" "USE_UPNP=1" denarius-qt.pro make ./Denarius
Docker can be used to run a denariusd wallet daemon. It can also run multple FortunaStakes very easily. No need to mess with compiling or downloading binaries. My github has some basics for the docker image I created. https://github.com/buzzkillb/denariusDocker First install docker on ubuntu. Don't forget to usermod your user account to run docker commands without using sudo. https://docs.docker.com/install/linux/docker-ce/ubuntu/ Once docker-ce is running lets grab my docker image. docker run --name=denariusd --rm -t -v ~/.denarius:/data -P buzzkillb/denariusd First thing we notice is that we need a denarius.conf in the ~/.denarius folder. Lets make one with what we need. nano ~/.denarius/denarius.conf rpcuser=usernamechangeme rpcpassword=passwordchangeme Save and now run the above command again. docker run --name=denariusd --rm -t -v ~/.denarius:/data -P buzzkillb/denariusd Was that easy or what? Now to run this in the background add -d flag. docker run --name=denariusd --rm -t -d -v ~/.denarius:/data -P buzzkillb/denariusd With the output not being shown. Lets watch the printtoconsole lines in the docker container. docker logs denariusd -f To list all your containers. docker ps To stop your container. docker stop denariusd You can run more than 1 container of denariusd, example below docker run --name=FS01 --rm -t -d -v ~/FS01:/data -P buzzkillb/denariusd Have fun!
I bought a Raspberry Pi 3 a while ago and got it recently. So of course I decided to run my denarius wallet on it, so it can stake always without my computer being on. The operating system is Raspbian Stretch, so I assume this tutorial will work for debian stretch as well. Start by opening a terminal and paste the following code to install dependecies: sudo apt-get update sudo apt-get upgrade -y sudo apt-get install autoconf libtool libssl1.0-dev libboost-all-dev libminiupnpc-dev -y Because compiling can take up a large amount of RAM and the raspberry Pi only has 1 gigabyte of it, let us create a swapfile: cd / fallocate -l 4G swapfile chmod 0600 swapfile mkswap swapfile swapon swapfile Now, because the daemon requires Berkeley database version 4.8 to work, we need to download, compile and install it since that is not included in the software repositories. cd ~/Downloads wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz tar -xzvf db-4.8.30.NC.tar.gz cd db-4.8.30.NC/build_unix/ ../dist/configure --enable-cxx make sudo make install Now, let us download the denarius source code and compile it. cd ~/Downloads git clone https://github.com/carsenk/denarius.git cd denarius/src Because we use a custom Berkeley library, we need to specify its location in the makefile, so go ahead and open that up using nano: nano makefile.unix look for this line: DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(CURDIR)/json $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) Change it to this line: DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(CURDIR)/json $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH) /usr/local/BerkeleyDB.4.8/include/) Press CTRL+O to save the file, press enter to verify the filename, then press CTRL+X to exit nano. Now we are ready to compile it! When you have typed in this command, prepare to wait for a while, maybe grab a good book or go to the denarius gitter chat to socialize. Compiling took 63 minutes on my Pi, it will depend on your swapfiles read/write performance and if you have overclocked your Pi. make -f makefile.unix -j4 LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" Now since we are using a custom library, we need to tell the operating system to let programs use that. To do that, we need to edit the file /etc/ld.so.preload: nano /etc/ld.so.preload Add the following line to the file, then save and exit, like before: /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so and reboot: sudo reboot Now, your denariusd is ready to run and you set it up like you always would.