]> git.tuebingen.mpg.de Git - micoforia.git/commitdiff
Update/improve man page examples.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 21 Jun 2023 10:47:56 +0000 (12:47 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 21 Jun 2023 10:57:10 +0000 (12:57 +0200)
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.

micoforia.suite.m4

index 2f91fc5c4f4ec6667182eaa6071fa05f0e9345bf..30dae2571d972a57224030d89dfd3ee62190abcc 100644 (file)
        .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
 
        .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