Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Add packages to Armbian image for my Orange Pi One (face_recognition python)

Featured Replies

Hi there!

 

Issue:

Installing required package for Python face_recognition takes almost 15-20 hours to install using my Orange Pi One. 

These are the commands I manually ran to my Orange Pi one:

https://gist.github.com/jmcausing/d89d659ae43dff8f5ea8feea95fe2de3

 

Goal:

I need a custom armbian image that has those package installed already.

 

I tried:

- Building armbian image using Virtual Box with ubuntu-22.04.1-live-server-amd64

- 30GB of Disk , 4GB of RAM and 6 CPUs

- Edited the /build/config/templates/customize-image.sh and added those commands (see gist link above) to install the required packages

- Run the command:

./compile.sh \
BOARD=orangepione \
BRANCH=current \
RELEASE=focal \
BUILD_MINIMAL=yes \
BUILD_DESKTOP=no \
KERNEL_ONLY=no \
KERNEL_CONFIGURE=no \
CARD_DEVICE="/dev/sda"

- Failed (sorry I didn't get the error) most likely I'm doing it wrong.

 

I also tried the Automated Build System:

- Fork the repo

- Edited the customize-image.sh and inserted my bash commands to install packages

- Created pull request (it was closed I was doing it wrong :( ) https://github.com/armbian/build/pull/4229#issuecomment-1257176031

 

May I ask for your guidance how can I achieve my goal, please?

 

 

7 часов назад, jmcausing сказал:

- 30GB of Disk , 4GB of RAM and 6 CPUs

30 GB is not enough for a virtual machine. You may run out of free space at the very end of the process.

 

https://github.com/armbian/build/blob/d57777caade0e3751d759b75239c5a66c3b28728/lib/debootstrap.sh#L78-L80

	# stage: user customization script
	# NOTE: installing too many packages may fill tmpfs mount
	customize_image

That's the first thing that came to mind. I have a 45 GB virtual machine image.

 

7 часов назад, jmcausing сказал:

- Edited the /build/config/templates/customize-image.sh

This script is a template for the user and is copied to the userpatches folder.
After that, in this folder, you can change it at your discretion. It is only your property and you can write whatever you want there.

Add debugging code there something like this:

 

apt-get install -y build-essential cmake gfortran |& tee -a $DEST/${LOG_SUBPATH}/custom.log

pip3 install dlib |& tee -a $DEST/${LOG_SUBPATH}/custom.log

 

See output/debug/custom.log

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.