? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

BinChan's ZeroNotes

Messy Notes about using ZeroNet and other things
All code published here are under CC-BY-SA licence, if not compatible, then MIT license X)

Follow in NewsfeedFollowing

TOC by date
TOC by tag
View in light theme

Latest comments:

Add new post

Title

21 hours ago · 2 min read ·
3 comments

tag:
Body
Read more

Not found

Installing ZeroNet py3 version by Termux on Android

on Jun 24, 2019 · 1 min read
tag: not tagged

How to install:

  1. Get Termux from F-droid
  2. Open Termux and run the one-line command below or do them one by one:
    pkg upgrade && pkg install clang curl make python-dev git grep c-ares-dev libev-dev openssl-tool automake pkg-config libtool libffi-dev && git clone -b py3 https://github.com/HelloZeroNet/ZeroNet/ ZeroNet-py3 && cd ZeroNet-py3 && pip install --upgrade pip && pip install virtualenv && virtualenv zeronet && source zeronet/bin/activate && python -m pip install -r requirements.txt

A qrcode for your convenience ;)


ZeroNet-Termux-oneline-cmd.png (0x0)

pkg upgrade
pkg install clang curl make python-dev git grep c-ares-dev libev-dev openssl-tool automake pkg-config libtool libffi-dev
git clone -b py3 https://github.com/HelloZeroNet/ZeroNet/ ZeroNet-py3
cd ZeroNet-py3
pip install --upgrade pip
pip install virtualenv
virtualenv zeronet
source zeronet/bin/activate
python -m pip install -r requirements.txt

Then run zeronet with python zeronet.py and open 127.0.0.1:43110 in your fav browser, done!

Next time when starting Termux we will need to active the virtual environment again, so cd ~/ZeroNet-py3 && source zeronet/bin/activate && python zeronet.py, you can invoke the last command by UP button btw. Also if you want to save some space after the installation you can remove build dependency packages with sth like pkg uninstall clang curl make python-dev git grep c-ares-dev libev-dev openssl-tool automake pkg-config libtool libffi-dev && apt autoremove.

Notes:

  • ZeroNet data are stored in /data/data/com.termux/files/home/ZeroNet-py3

  • From coincurve github page, the build dependencies are:
    On Debian/Ubuntu the necessary system packages are: build-essential automake pkg-config libtool libffi-dev python3-dev (or python-dev for Python 2) libgmp-dev (optional)
    But build-essential is a meta package and not necessary actually.

Refs:

Termux-ZeroNet
ZeroNet py3 branch readme

Change log:

[030719] Do a clean install on my Yotaphone2 (Android 5) and coincurve fail to build.. do it again on my Kindle Fire HDX (Android 6) and it works, so, guess this method only supports Android >= 6, also fix some errors in my recipe.

Sorry that I may have no time to reply to comment, so please do a (re)search first before asking question if you encounter any problem.

0 Comment:

user_name1 day ago
Reply
Body
Select user
  • Welcome to ZeroMessage!
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More