From: Andre Noll Date: Wed, 21 Jun 2023 10:47:56 +0000 (+0200) Subject: Update/improve man page examples. X-Git-Url: http://git.tuebingen.mpg.de/?p=micoforia.git;a=commitdiff_plain;h=261c2e6a9b310dbd0607572482de95b56db3540d Update/improve man page examples. Debian12 was just released and Ubuntu-18.04 is no longer supported, so update the debootstrap commands to download more recent versions instead. Also remove the command to set up the network and sshd, as this can also be done from inside the container. --- diff --git a/micoforia.suite.m4 b/micoforia.suite.m4 index 2f91fc5..30dae25 100644 --- a/micoforia.suite.m4 +++ b/micoforia.suite.m4 @@ -637,31 +637,29 @@ .EE .RE .IP \(bu 2 - Download a Debian10 root file system to - .IR /var/lib/micoforia/debian10 , - set the root password and let micoforia set the hostname + Download a base Debian12 installation with all packages of priority + required and important, including apt: .RS 6 .EX - .B debootstrap --variant=minbase buster /var/lib/micoforia/debian10 http://deb.debian.org/debian/ - .B chroot /var/lib/micoforia/debian10 passwd - .B rm -f /var/lib/micoforia/debian10/etc/hostname + .B debootstrap bookworm /var/lib/micoforia/debian12 http://deb.debian.org/debian/ .EE .RE .IP \(bu 2 - Download a minimal Ubuntu-18.04 root file system to - .IR /var/lib/micoforia/c1 , - set the root password and configure the - .I eth0 - interface, using a static IP address: + The same for Ubuntu-22.04: + + .RS 6 + .EX + .B debootstrap jammy /var/lib/micoforia/ubuntu-22.04 http://de.archive.ubuntu.com/ubuntu + .EE + .RE + .IP \(bu 2 + Set the root password of the container + .I c1 .RS 6 .EX - .B debootstrap --include openssh-server --include ifupdown bionic /var/lib/micoforia/c1 http://de.archive.ubuntu.com/ubuntu .B chroot /var/lib/micoforia/c1 passwd - .B printf 'auto eth0\(rsniface eth0 inet static\(rsnaddress 192.168.137.2/24\(rsn' \ - >> /var/lib/micoforia/c1/etc/network/interfaces - .B echo 'PermitRootLogin yes' >> /var/lib/micoforia/c1/etc/ssh/sshd_config .EE .RE .IP \(bu 2 @@ -669,13 +667,22 @@ .RS 6 .EX - .B micoforia --container c1 --start --foreground + .B m7a start --foreground c1 + .EE + .RE + .IP \(bu 2 + Start the container in the backround and run a shell: + + .RS 6 + .EX + .B m7a start c1 + .B m7a enter c1 .EE .RE .IP \(bu 2 Attach to .I tty1 - of the running container: + of the running container (type CTRL+a q to detach): .RS 6 .EX