#debootstrap — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #debootstrap, aggregated by home.social.
-
Which has me wondering whether I should even bother setting it up manually on this Bookworm debootstrap install I'm doing at the moment.
#Debian #debootstrap #Debian12 #DebianBookworm #systemd_boot
-
Creating Sandboxes with systemd-nspawn and debootstrap
Exploring new #Linux features is exciting, but it can be risky! I sometimes break my system while testing packages. To avoid this, I recently tried #systemd-nspawn with #debootstrap - it's a lightweight #container that works well for isolated testing.
#Debian users, this guide shows you how to get systemd-#nspawn up and running, no fuss.
Installing the packages
First things first, we need to install two packages:
systemd-containeranddebootstrap:sudo apt install systemd-container debootstrapdebootstrap lets you spin up a lightweight Debian right on your host, and systemd-container utilites such as systemd-nspawn and machinectl manage the OS in a lightweight container.
Create a Debian virtual machine
Let's generate a minimal Debian image called debian-testing with the following command:
sudo debootstrap --include=systemd,dbus stable /var/lib/machines/debian-testingTo verify successful installation, run
machinectl list-images. Look for 'debian-testing' in the output.Logging into virtual machine
Use the following command to start the debian-testing container.
sudo systemd-nspawn -D /var/lib/machines/debian-testingSince you're now inside your virtual machine, let's set a password for the root user. This will come in handy when you want to manage the container using machinectl.
To swiftly terminate the container, press the
Ctrl+]key combination three times in quick succession while inside the container.Running a graphical application in vm
To run graphical apps like Chromium within the container, we need to set up display sharing. First, gracefully shut down the container. Then, use this command to establish the connection:
xhost local:; sudo systemd-nspawn -E DISPLAY="$DISPLAY" -D /var/lib/machines/debian-testingNow that you're logged in, it's time to fire up Chromium! Just type the following commands to install and open it:
apt update apt install chromium chromium --no-sandboxReferences
- Tutorial: Systemd: The Adventure Continues - Lee Elston, The Linux Foundation: https://www.youtube.com/watch?v=-Tijw1SIXts. Slides: https://ossna2020.sched.com/event/c47t/tutorial-systemd-the-adventure-continues-lee-elston-the-linux-foundation
- https://wiki.debian.org/nspawn
- https://man7.org/linux/man-pages/man1/systemd-nspawn.1.html
- https://wiki.archlinux.org/title/Systemd-nspawn#Avoiding_xhost
- https://wiki.archlinux.org/title/systemd-nspawn
- https://man7.org/linux/man-pages/man1/machinectl.1.html
-
Wiederbelebung von 32-bit Hardware: Debootstrap
Ich möchte an dieser Stelle mal vielen herzlichen Dank sagen an die vielen Hacker, die sich in den unterschiedlichsten Bereichen um freie Software und die Adaption von #Hardware (besonders älterer) bemühen.
Im konkreten Fall speziell bei T o b i a s _ N a w r o c k i aus #Bochum und den Leuten, die #Debootstrap unter #Debian an den Start gebracht haben.
https://www.tobaste.de/tag/alix/
Dank Euch sind meine beiden #Alix 2D13 wieder mit aktueller und sicherer Software ausgestattet und einsatzbereit! https://libranet.de/display/0b6b25a8-195e-d207-4499-a14058187527