It will take some time to download and unzip the image, so be patient.

If there are problems with download, try direct link.

Fix apt package manager

Unfortunately, Ubuntu in “Linux on Dex” comes half-baked with broken aptitude manager. But luckily community figured out a way how to fix it.

Run the following set of commands in Terminal. It could happen that in a process of apt-get upgrade you’ll have to kill the hang process by pressing “Ctrl+C” several times.

sudo apt-get update

sudo apt-get upgrade

sudo purge-old-kernels

sudo apt auto remove

sudo apt autoclean

Install dependencies

Archiconda was initially built to support newer version of Ubuntu, so Python needs fresher libc library and other dependencies. We’ll grab it from Ubuntu 18.04 ARM64 distribution.

Create a conda user

Due to some problems on permissions management for the default dextop user, conda package manager can’t write in its own folder. Of course, its something that can be fixed, but easier to create dedicated conda user and manage environment using it. Create a user by adduser condauser and then add that user to sudoers by running sudo usermod -aG sudo condauser . The default root password for Linux on Dex is secret . Literally.

Provide permissions

Few more fixes needed (a common story with beta software). If you now try to ping any remote host, you’ll that you don’t have network permissions. Somehow freshly create users under “Linux on Dex” are not assigned for “network” group.

To fix that, you need to edit \etc\group file and fix groups inet and net_raw by adding condauser as following

inet:x:3003:root, condauser, dextop

net_raw:x:3004:root, dextop, condauser

Now you can change your current user to condauser by running su — condauser

Install Archiconda

Download and install ArchiConda. We are using not the latest version because we need some packages from the archiarm channel, which missing from 0.2.3 version.

Now let’s add update conda by running

conda update -n base --all

and add my channel containing missing packages like Jupyter Notebook

conda config — add channel gaiar

conda install -c gaiar jupyter

Install other packages

As jupyter is installed and conda has access to the channels containing aarch64 package distributions, we can install any required packages the way you got used to, as for example

conda install seaborn -y

Running Jupyter on your phone

Now are all set for running Jupyter on your phone, so let’s run Jupyter Notebook

jupyter notebook

If everything went fine with previous steps you will see something like