Skip to content

Instantly share code, notes, and snippets.

@rikka0w0
Last active April 17, 2020 12:12
Show Gist options
  • Save rikka0w0/5c21900f6a6af74d745cd76fe33c7b7c to your computer and use it in GitHub Desktop.
Save rikka0w0/5c21900f6a6af74d745cd76fe33c7b7c to your computer and use it in GitHub Desktop.
Setup a ubuntu cross compiling environment for arm
# Install docker and create a container
sudo apt install -y docker.io
sudo docker pull ubuntu:18.04

# create a container, bind folder ~/licheepi on the host side to /root inside the container
sudo docker start -ti -v ~/licheepi:/root ubuntu:18.04 /bin/bash

Start the container with a shell:

sudo docker start -i <container name>

Fix home and end keys in container:

Copy /etc/inputrc from host to container

Enable apt install auto complete:

Run in container:

cp /etc/skel/.bashrc  ~
chmod +x /etc/profile.d/bash_completion.sh
apt-get install -y bash-completion

Comment out all in: /etc/apt/apt.conf.d/docker-clean and then pt update https://askubuntu.com/questions/735189/enabling-auto-completion-for-apt-get-install-in-docker-ubuntu-14-04/1026978#1026978
https://askubuntu.com/questions/86375/apt-get-autocomplete-package-name-is-broken \

Setup cross compiler (arm):

apt install -y sudo nano wget curl git python \
gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf\
make gcc binutils patch build-essential libssl-dev bc\
flex bison gawk libncurses5-dev gettext autoconf texinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment