Diskussion:Install-Party/Debian: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(20 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 42: | Zeile 42: | ||
sda5_crypt /dev/sda5 none luks | sda5_crypt /dev/sda5 none luks | ||
</pre> | </pre> | ||
---- | |||
anders | |||
<code>cat /etc/default/grub</code> | |||
<pre> | |||
####GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |||
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash kopt=root=/dev/mapper/debian--vg-root" | |||
</pre> | |||
<pre> | |||
</pre> | |||
<pre></pre> | |||
; | |||
: <code>cat /etc/crypttab</code> | |||
: <code>cat /etc/fstab</code> | |||
<pre> | |||
####/dev/mapper/debian--vg-root / btrfs subvol=@,defaults,noatime 0 0 | |||
/dev/mapper/debian--vg-home / btrfs subvol=@,defaults,noatime 0 0 | |||
/dev/sda1 /boot ext2 defaults 0 2 | |||
####/dev/mapper/debian--vg-home /home ext4 defaults 0 2 | |||
UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /home btrfs subvol=@home,defaults,noatime 0 0 | |||
UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /var btrfs subvol=@var,defaults,noatime 0 0 | |||
UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /.snapshots btrfs subvol=@snapshots,defaults,noatime 0 0 | |||
/dev/mapper/debian--vg-swap_1 none swap sw 0 0 | |||
# UNCONFIGURED FSTAB FOR BASE SYSTEM | |||
proc /proc proc defaults 0 0 | |||
</pre> | |||
* [https://meet-unix.org/2017-04-14-fde_with_uefi.html (irgendeine Anleitung) full disk encryption on debian 9] | |||
: <code>sudo btrfs subvolume list -p /target</code> | |||
: <code>btrfs subvolume set-default VOL-ID /target</code> | |||
== chroot in ein debian mit lvm und btrfs == | |||
<pre> | |||
sudo mkdir /mnt/3b | |||
sudo mkdir /mnt/3b/boot | |||
sudo mount /dev/sda2 /mnt/3b/boot | |||
sudo mkdir /mnt/3b/home | |||
sudo mount /dev/lap-vg/home /mnt/3b/home | |||
sudo mount /dev/lap-vg/root /mnt/3b | |||
sudo mkdir /mnt/3b/boot/efi | |||
sudo mount /dev/sda1 /mnt/3b/boot/efi | |||
sudo mount -t proc none /mnt/3b/proc | |||
sudo mount -o bind /dev /mnt/3b/dev | |||
sudo mount -o bind /run /mnt/3b/run | |||
sudo chroot /mnt/3b /bin/bash | |||
</pre> | |||
== gezielt installierte Pakete == | |||
: <code>apt list --manual-installed</code> | |||
: <code>apt-mark showmanual</code> | |||
== mirrored boot devices with btrfs raid1 == | |||
* https://www.complang.tuwien.ac.at/anton/btrfs-raid1.html | |||
* https://mutschler.dev/linux/ubuntu-btrfs-raid1-20-04/ | |||
* https://unix.stackexchange.com/questions/647008/debian-is-possible-to-boot-with-a-btrfs-raid1-degraded | |||
https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path | |||
: <code>dpkg-reconfigure grub-efi-amd64</code> | |||
<s>https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/</s> | |||
: <s><code>dnf reinstall grub2-common</code></s> | |||
== nach einer Installation von [[PVE]] == | |||
* <s>https://forum.proxmox.com/threads/73926/</s> | |||
* https://forum.proxmox.com/threads/129443/ | |||
* https://pve.proxmox.com/wiki/Developer_Workstations_with_Proxmox_VE_and_X11 | |||
* https://forum.proxmox.com/threads/120180/ | |||
* https://forum.proxmox.com/threads/55938/ | |||
* https://forum.proxmox.com/threads/133736/ | |||
* https://forum.proxmox.com/threads/148660/ | |||
* https://pve.proxmox.com/wiki/Service_daemons | |||
* https://forum.proxmox.com/threads/119936#post-664352 | |||
* https://benheater.com/bare-metal-proxmox-laptop/ | |||
==== Vergleich zwischen PVE / LMDE (und Debian) ==== | |||
{| class="wikitable" style=width:100% | |||
|- | |||
! style=width:33% | PVE | |||
! style=width:33% | LMDE | |||
! style=width:34% | Debian | |||
|- | |||
! colspan="3" | Netzwerk Konfiguration | |||
|- | |||
| colspan="3" | /etc/network/interfaces | |||
|- | |||
| | |||
| | |||
| | |||
|- | |||
| colspan="3" | /etc/hosts | |||
|- | |||
| | |||
| | |||
| | |||
|- | |||
! colspan="3" | Netzwerk Dienst | |||
|- | |||
| | |||
systemctl status networking.service | |||
| | |||
systemctl status NetworkManager.service | |||
| | |||
|- | |||
! colspan="3" | Pakete Konfiguration | |||
|- | |||
| colspan="3" | | |||
/etc/apt/sources.list | |||
/etc/apt/sources.list.d/ | |||
|- | |||
| | |||
| | |||
/etc/apt/sources.list.d/official-package-repositories.list | |||
| | |||
|- | |||
| colspan="3" | | |||
(ohne Abhaengigkeiten) installierte Pakete | |||
apt-mark showmanual | |||
apt list --manual-installed<!-- https://tecadmin.net/how-to-list-manually-installed-packages-in-ubuntu/ --> | |||
|- | |||
| | |||
| | |||
| | |||
|- | |||
| colspan="3" | | |||
|- | |||
| | |||
| | |||
| | |||
|- | |||
|} | |||
: dpkg --get-selections | |||
auf lmde | |||
: dpkg --set-selections | |||
auf debian (pve) | |||
: apt-get dselect-upgrade | |||
auf debian (pve) | |||
==== PVE (to Debian) to LMDE ==== | |||
ala https://forum.proxmox.com/threads/133736/ , nur richtig(er) | |||
apt -y install linuxmint-keyring | |||
/etc/apt/sources.list.d/official-package-repositories.list |
Aktuelle Version vom 24. Juli 2024, 21:20 Uhr
(default) crypted disk layout[Bearbeiten]
- während der Installation
SCSI1 (0,0,0) (sda) | |||||
---|---|---|---|---|---|
#1 | primary | 254.8 MB | F | ext2 | /boot |
#5 | logical | Rest | K | crypto | (sd5_crypt) |
Encrypted volume (sd5_crypt) | |||||
#1 | Rest | K | lvm | ||
LVM VG `hostname`-vg, LV home | |||||
#1 | Rest - root - swap | f | ext4 | /home | |
LVM VG `hostname`-vg, LV root | |||||
#1 | 30.0 GB | f | ext4 | / | |
LVM VG `hostname`-vg, LV swap_1 | |||||
#1 | 4.2 GB | f | ext4 | swap |
- nach der Installation
cat /etc/fstab
/dev/mapper/debian--vg-root / ext4 errors=remount-ro 0 1 /dev/sda1 /boot ext2 defaults 0 2 /dev/mapper/debian--vg-home /home ext4 defaults 0 2 /dev/mapper/debian--vg-swap_1 none swap sw 0 0
cat /etc/crypttab
sda5_crypt /dev/sda5 none luks
anders
cat /etc/default/grub
####GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash kopt=root=/dev/mapper/debian--vg-root"
cat /etc/crypttab
cat /etc/fstab
####/dev/mapper/debian--vg-root / btrfs subvol=@,defaults,noatime 0 0 /dev/mapper/debian--vg-home / btrfs subvol=@,defaults,noatime 0 0 /dev/sda1 /boot ext2 defaults 0 2 ####/dev/mapper/debian--vg-home /home ext4 defaults 0 2 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /home btrfs subvol=@home,defaults,noatime 0 0 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /var btrfs subvol=@var,defaults,noatime 0 0 UUID=69b9bfbd-51fa-451a-b687-5d5bf7f2a404 /.snapshots btrfs subvol=@snapshots,defaults,noatime 0 0 /dev/mapper/debian--vg-swap_1 none swap sw 0 0 # UNCONFIGURED FSTAB FOR BASE SYSTEM proc /proc proc defaults 0 0
sudo btrfs subvolume list -p /target
btrfs subvolume set-default VOL-ID /target
chroot in ein debian mit lvm und btrfs[Bearbeiten]
sudo mkdir /mnt/3b sudo mkdir /mnt/3b/boot sudo mount /dev/sda2 /mnt/3b/boot sudo mkdir /mnt/3b/home sudo mount /dev/lap-vg/home /mnt/3b/home sudo mount /dev/lap-vg/root /mnt/3b sudo mkdir /mnt/3b/boot/efi sudo mount /dev/sda1 /mnt/3b/boot/efi sudo mount -t proc none /mnt/3b/proc sudo mount -o bind /dev /mnt/3b/dev sudo mount -o bind /run /mnt/3b/run sudo chroot /mnt/3b /bin/bash
gezielt installierte Pakete[Bearbeiten]
apt list --manual-installed
apt-mark showmanual
mirrored boot devices with btrfs raid1[Bearbeiten]
- https://www.complang.tuwien.ac.at/anton/btrfs-raid1.html
- https://mutschler.dev/linux/ubuntu-btrfs-raid1-20-04/
- https://unix.stackexchange.com/questions/647008/debian-is-possible-to-boot-with-a-btrfs-raid1-degraded
https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path
dpkg-reconfigure grub-efi-amd64
https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/
dnf reinstall grub2-common
nach einer Installation von PVE[Bearbeiten]
Vergleich zwischen PVE / LMDE (und Debian)[Bearbeiten]
PVE | LMDE | Debian |
---|---|---|
Netzwerk Konfiguration | ||
/etc/network/interfaces | ||
/etc/hosts | ||
Netzwerk Dienst | ||
systemctl status networking.service |
systemctl status NetworkManager.service |
|
Pakete Konfiguration | ||
/etc/apt/sources.list /etc/apt/sources.list.d/ | ||
/etc/apt/sources.list.d/official-package-repositories.list |
||
(ohne Abhaengigkeiten) installierte Pakete apt-mark showmanual apt list --manual-installed | ||
- dpkg --get-selections
auf lmde
- dpkg --set-selections
auf debian (pve)
- apt-get dselect-upgrade
auf debian (pve)
PVE (to Debian) to LMDE[Bearbeiten]
ala https://forum.proxmox.com/threads/133736/ , nur richtig(er)
apt -y install linuxmint-keyring
/etc/apt/sources.list.d/official-package-repositories.list