jmcausing Posted September 25, 2022 Posted September 25, 2022 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? 0 Quote
going Posted September 25, 2022 Posted September 25, 2022 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 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.