-
Notifications
You must be signed in to change notification settings - Fork 0
Installing Python on Onion Omega
Francois Levaux-Tiffreau edited this page Dec 6, 2015
·
1 revision
So I lost the article I was writing… what a shame. Here's a lighter version.
The Onion Omega comes with only a few megs available on /
-- We need to expand this.
Onion Omega has a special partition, /overlay
, that contains the diff from the ROM. To change it form internal storage to USB Storage, follow these steps:
- Update the packages:
opkg update
- Plug a USB Storage Device (I use a 16GB Stick we won at GDG Basel Hackhaton)
- Install e2fsprogs:
opkg install e2fsprogs
- Format the device as a ext4:
mkfs.ext4 /dev/sda1
(change sda1 for your device) - Mount the device:
mount /dev/sda1 /mnt
- Copy content from /overlay to USB:
rsync -avv /overlay /mnt
. You will get errors, I'm unsure how to fix them yet, you might need to reconfigure a few things later. No big deal. - Create initial fstab:
block detect > /etc/config/fstab
- Edit
/etc/config/fstab
, change target to '/overlay' and enabled to '0'. - Reboot
- Update the packages:
opkg update
Because we now have a lot of space available, we can use the full python! Note: replace 'python' (2.7) with 'python3' if needed.
- Update the packages:
opkg update
- Install python:
opkg install python
- Install setuptools:
opkg install python-setuptools
- Install CA Certificates (or you will get a SSL_VERIFY_FAILED error):
opkg install ca-certificates
Now you're good to go!