In the first part we were setting up the Android TV box and got Linux running on it natively.
https://steemit.com/crypto/@madmac/staking-on-an-android-tv-box
Please don't forget to update your packages by doing
sudo apt update && sudo apt upgrade
To continue you can either connect an USB keyboard and use the TV screen or more conveniently log into the TV box from your computer by using SSH. I suggest PuTTY for this.
Although you can run this all as root, I'd suggest to create a separate user account. Either this was done automatically during the first start, you could use this user, or create a new one and add it to the sudo group:
adduser <username>
adduser <username> sudo
There are a few dependencies that need to be installed to complete the build environment. This differs a bit for each Linux distribution as they come with different packages preinstalled. Should you get an error message about something missing during compilation, please install that package manually and rerun the process.
sudo apt install libboost-all-dev libdb++-dev libminiupnpc-dev libqrencode-dev libevent-dev
(put all in one line)
There may be a few more requirements if you want to compile the QT (GUI) version. Here the headless daemon is covered only.
You may also have to downgrade libssl-dev to the Jessie version (if using Debian Stretch).
Details here: https://github.com/stratisproject/stratisX/issues/33
The coin we are using for this exercise is CrocodileCash. That is a small community type of coin. I chose it because of its very short blocktime of 30 sec, it is staking like crazy, and you should see first results soon. But you can of course replace it with any other Bitcoin based coin, the build process and usage is the same.
More information you can find here:
https://bitcointalk.org/index.php?topic=2076948.0 (old announcement)
https://bitcointalk.org/index.php?topic=2326144.0 (new thread)
Now we need to clone the GIT repository
git clone https://github.com/RangaBoom/CrocodileCash.git
This creates a subdirectory in your user's home folder. Change to this directory
cd CrocodileCash
chmod +x src/leveldb/build_detect_platform
Showtime! It's actually very simple and just a one-liner to build the wallet
cd src && make -f makefile.unix
It takes a while to compile everything, so grab a cup of coffee and let it run in peace :). When finished you should find Crocodilecashd in your src directory. As a last step remove unnecessary overhead code from the binary
strip Crocodilecashd
That should compact and shrink the executable. Now you can move the file (only this single binary is needed) to a convenient location, I use usually /usr/local/bin, but you could also test and run it from the src directly. It will create its structure in you home directory including a fresh wallet.
In part 3 I will cover how to setup and use the wallet for staking. Stay tuned :)
Should you get compilation errors pointing to leveldb and atomic_pointers.h, please replace src/leveldb/port/atomic_pointer.h with this patched version from the Bitcoin source and compile again.
https://github.com/bitcoin/bitcoin/blob/master/src/leveldb/port/atomic_pointer.h
Eventually you may have to go to src/leveldb and compile manually
make libmemenv.a libleveldb.a
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Just double checked that with Ubuntu and Debian (both server). There are issues with libssl on Debian 9, you need to downgrade to the Jessie version (1.0 instead 1.1) which leads to other issues. Please use Ubuntu instead.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
In general, it’s easy here to order a TV box yourself Switchonshop I think this is a very interesting option with delivery, so you can take a closer look.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit