Install Ubuntu Linux 20.04 on Android TV box with LinuxDeploy

Yu
1 min readJul 21, 2022

--

I use a Zidoo Z9X TV box. Here are the steps:

  1. Root the device
  2. Follow LinuxDeploy official instructions to install OS. For me, I installed with Ubuntu Bionic (18.04), 4G file size, since disk type does not support more than 4G (if I choose more than 4G, it will fallback to default 2G)
  3. After installed the OS, login with ssh, switch to root user sudo -s
  4. Edit apt source file vi /etc/apt/sources.list, add updates line
    deb http://ports.ubuntu.com/ bionic-updates main restricted
  5. Run command apt update , apt install update-manager-core , apt upgrade -y
  6. Use do-release-upgrade to upgrade to Ubuntu 20.04, it would take several steps and some time, following the prompts is OK. Then verify system version with lsb_release -a

Install Certbot

Since snapd is hard to install, i use pip way. Before following the official instructions, we need to install some dependencies:

apt install build-essential python3-pip python3-venv python3-wheel  rustc libssl-dev libffi-dev cargo cmake

After installation, it works

# certbot — version
certbot 1.29.0

Setup apache2

Z9X may come with OpenWrt, to use Certbot, change web UI port to some other port other than 80, like

Change openwrt port

--

--

Yu
Yu

No responses yet