This is a distrobox container that has CUPS preinstalled. This container doea not require root privleges for this to work.
First create the container using distrobox
distrobox create -i ghcr.io/dnkmmr69420/archlinux-cups:latest -n cups --init -H ~/.local/share/cups-home -p
experimental command
distrobox create -i ghcr.io/dnkmmr69420/archlinux-cups:latest -n cups -H ~/.local/share/cups-home --init -p --unshare-netns -a "-p 1631:631"
Enter the container
distrobox enter cups
Update all packages. Paru is already preinstalled.
paru
Start some services
sudo systemctl enable --now avahi-daemon
sudo systemctl enable --now cups
Run this command in the terminal to start the gui
system-config-printer
base arch image: https://github.com/ublue-os/arch-distrobox