View Single Post
Old 01-11-2018, 08:24 AM   #1
sogaiu
Addict
sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.sogaiu can decode base 64 without using a pencil.
 
Posts: 209
Karma: 83543
Join Date: Jan 2018
Device: none
Termux on Onyx Boox Max 2 (and Note?)

Termux:

an Android terminal emulator and Linux environment app that works directly with no rooting

seems to work on Onyx Boox Max 2 devices -- I presume that the same will hold on the Note devices too. (IIUC, the minimum requirements for Termux are currently Android 5.x.)

Example installation and use:
  1. Install termux and hacker's keyboard (e.g. via f-droid)
  2. Start termux
  3. Pinch zoom to adjust font size

For getting git, vim, and emacs to work:
  1. Start termux
  2. Install by: pkg install git vim emacs

For getting python and jupyter to work:
  1. Start termux
  2. Install wget and gnupg2: pkg install wget gnupg2
  3. Get repository setup script: wget https://its-pointless.github.io/setup-pointless-repo.sh
  4. Run script: bash setup-pointless-repo.sh
  5. Install some termux packages: pkg install scipy numpy clang python-dev fftw libzmq libzmq-dev freetype freetype-dev libpng libpng-dev pkg-config
  6. Install some bits via pip: LDFLAGS=" -lm -lcompiler_rt" pip install matplotlib pandas jupyter
Step 6 kept failing here due to network issues but breaking the command up into three pieces seemed to work better.

For browser access to a jupyter notebook, haven't had luck with IceCat, but Lightning seems to work fine.

For jupyter notebook extensions:
  1. Start termux
  2. Install libxml2-dev and libxslt-dev: pkg install libxml2-dev libxslt-dev
  3. Set up work-around symlink: ln -S $PREFIX/include/libxml2/libxml $PREFIX/include/libxml
  4. Install extensions via pip: LDFLAGS=" -lm -lcompiler_rt" pip install jupyter_contrib_nbextensions
  5. Copy .js and .css: jupyter contrib nbextensions install --user

--------

On a related note, I had problems while installing python(-dev?):

PermissionError: [Errno 13] Permission denied: '/'

on a rather different device, but found a work-around at:


I believe it was:

$PREFIX/bin/python -m ensurepip --upgrade --default-pip

--------

References:

https://wiki.termux.com/wiki/Package...e_the_dream.29
http://www.leouieda.com/blog/scipy-on-android.html
http://jupyter-contrib-nbextensions....t/install.html
https://github.com/termux/termux-packages/issues/1142

Last edited by sogaiu; 01-21-2018 at 06:04 AM. Reason: updated to include jupyter notebook extensions instructions
sogaiu is offline   Reply With Quote