2023-04-30 14:14:19 +02:00
|
|
|
Howto `debootstrap` a bare minimal Debian Desktop from scratch
|
|
|
|
==============================================================
|
2023-04-30 14:04:17 +02:00
|
|
|
|
2023-04-30 14:05:08 +02:00
|
|
|
- partitioning and filesystem
|
|
|
|
- create a root partition and swap partition
|
|
|
|
- `mkfs.ext4` and `mkswap`
|
|
|
|
- run debootstrap
|
2023-04-30 14:06:30 +02:00
|
|
|
- `debootstrap bullseye /mnt/ http://ftp.de.debian.org/debian`
|
|
|
|
- bind mound `dev` `proc` and `sys`
|
|
|
|
- `for m in dev proc sys ; do mount /$m /mnt/$m ; done`
|
|
|
|
- chroot into the new environment and run bash
|
|
|
|
- `chroot /mnt/ /bin/bash`
|
2023-04-30 14:13:52 +02:00
|
|
|
- give the machine a good hostname
|
|
|
|
- `echo mycrazyhostname > /etc/hostname`
|
|
|
|
- install basic stuff, like linux kernel, grub and networking-scripts
|
2023-04-30 14:20:25 +02:00
|
|
|
- `apt update ; apt install linux-image-generic grub-pc ifupdown man console-data locales`
|
|
|
|
- do locales settings
|
|
|
|
- `dpkg-reconfigure locales`
|
|
|
|
- install X-Server and window manager
|
2023-04-30 14:23:00 +02:00
|
|
|
- `apt install --no-install-recommends xserver-xorg jwm xdm xterm`
|
|
|
|
- ensure grub is installed
|
|
|
|
- `grub-install /dev/sdXY ; update-grub`
|
2023-04-30 14:23:40 +02:00
|
|
|
- set root password
|
|
|
|
- `passwd root`
|
|
|
|
- create a user
|
|
|
|
- `adduser coolusername`
|
2023-04-30 14:31:26 +02:00
|
|
|
- create fstab with content
|
|
|
|
- `/dev/sdXY / ext4 defaults 0 1`
|
2023-04-30 14:24:19 +02:00
|
|
|
- exit chroot and `reboot`
|