===== Android Termux ===== {{:qortal_official_logo_transparent_.png?400|}} Below is a guide for setting up an Android phone as a Qortal node. **Please note:** this is not for the average user. If you setup your Android as a node, it will require a lot of resources and potentially burn up your hardware. So please consider if this is a device you can afford to experiment with? Also, the phone will need to be left at home for a steady wifi and power connection, otherwise it will require a good data service plan and battery power supply which is less than ideal. We have two mobile apps in the works that will be much simpler to use, and probably safer. Modifying the hardware as this guide will, is not for the average user to tamper with. Use at your own risk: - Install Latest Termux Universal from https://github.com/termux/termux-app/releases - Use Android notification to enable Wakelock for Termux - Update all dependencies in Termux: pkg update -y - Set a new root password for your Termux install: passwd - Install Handy Tools (we will need later): pkg install openssh termux-tools proot-distro -y - Identify your local IP: ifconfig - Start SSH server on port 8022: sshd - SSH into your phone using the IP address (replace "localIP" part in the following code with the correct IP address): ssh root@ -p 8022 - Install Alpine Linux to isolate what is are running from Android: proot-distro install alpine - Connect to running Alpine Linux image: proot-distro login alpine - Add more surprise tools that will help later: apk add openrc openjdk14 tmux git - Open a Termux session to persist our processes if using SSH: tmux - Add a user and group to run qortal server: adduser -g -D "qortal" qortal - Switch to newly created user: su - qortal - Switch directory to user home: cd - Download official packed node from Qortal repository: curl -L https://github.com/Qortal/qortal/releases/latest/download/qortal.zip --output qortal.zip - Unzip this file: unzip qortal.zip - Clone the proper settings.json file: git clone https://github.com/DrewMPeacock/TermuxQortal.git - Remove settings file from unzipped folder: rm qortal/settings.json - Move the settings.json file into place: cp TermuxQortal/settings.json qortal/settings.json - Change to our new qortal directory: cd qortal - Start Qortal: ./start.sh