Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pc-magas/printserver_packer_rpi
Raspberio Pi printserver
https://github.com/pc-magas/printserver_packer_rpi
Last synced: 19 days ago
JSON representation
Raspberio Pi printserver
- Host: GitHub
- URL: https://github.com/pc-magas/printserver_packer_rpi
- Owner: pc-magas
- License: apache-2.0
- Created: 2024-09-03T19:35:32.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T18:16:39.000Z (2 months ago)
- Last Synced: 2024-09-06T02:09:22.807Z (2 months ago)
- Language: Shell
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raspberry pi Printserver with HP Laser 100 series support (Under development)
This builds an image for a printserver. Upon this image is isntalled:
* cups
* cockpit
* avahi## Building the image By yourself
### Prerequisites
* Git
* Packer
* Packer ARM Builder Plugin### Dependencies
Before we start building, you need to install the required dependencies on your host machine(Ubuntu 18.04/20.04 LTS). Just follow the steps given below to set up the build environment:Install the required binaries on the host machine.
sudo apt update
sudo apt install git wget zip unzip build-essential kpartx qemu binfmt-support qemu-user-static e2fsprogs dosfstoolsDownload the Packer from the official website and configure it on your host machine
Alternatively, you can install Packer using apt packer managers. Follow the instructions from official Hashicorp documentation - https://learn.hashicorp.com/tutorials/packer/get-started-install-cli?in=packer/docker-get-started.Also a usefull quick-start guide is https://linuxhit.com/build-a-raspberry-pi-image-packer-packer-builder-arm/
### Building ARM image
For building the ARM image, the Packer uses the provisioners to mount the image on your local file system and to make changes in the base ARM image.
Clone the codebase from the GitHub repository and follow the instructions for building ARM images using Packer. Go to the `raspberry-pi-os-image-builder` directory and execute the Packer build command.
# Clone GitHub repository
git clone https://github.com/pc-magas/printserver_packer_rpi.git
cd printserver_packer_rpi
sudo packer build packer-raspberry-pi-os-lite.jsonVerify the file location and size once Packer build is completed. Archive the output image file to reduce the size on disk.
# Check file location and size
ls -la output-arm-image/image# Check file size
du -hs output-arm-image/image# Create zip archive
zip -r rpi-arm-image.zip output-arm-image/imageUse the Raspberry Pi Imager or any other tool to create a bootable SD card.