Boot Arch linux image from USB. Use rufus to burn it windows, or dd in linux.
dd if=~/Download/arch.iso of=/dev/sdb bs=4M status=progress oflag=direct
* Install base packages distro
Partition
cfdsik -> sda1 100-200MB efi , sda2 20GB
mount /dev/sda2 /mnt/linux
Install:
- from arch: pacman -Sy debootstrap
- from debian: apt install debootstrap
Install debian: debootstrap --arch amd64 stable /mnt/linux
Install devuan: debootstrap --arch amd64 stable /mnt https://pkgmaster.devuan.org/merged
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /run /mnt/run
chroot /mnt /bin/bash --login (for proper $PATH)
arch-chroot --- does auto mount/bind those but doesn provide the login paramer and $PATH will be wrong so dont use it.
Apt remove cron-daemon-common
Apt install systemd-standalone-sysusers devuan-keyring ca-certificates apt install cron-daemon-common
Dpkg --configure -a Apt install openrc
apt install nano apt-file
/etc/fstab
/dev/sda2 / ext4 rw,relatime 0 1
Set Time Zone:
ln -sf /usr/share/zoneinfo/Europe/Bucharest /etc/localtime
date
apt install debconf
dpkg-reconfigure tzdata
dpkg-reconfigure locales
apt install sudo
passwd --- create password for root or you cant login after reboot
apt install grub-efi-amd64
copy /usr/lib/modules/uname -r/ /mnt/linux/.... same path
mount /dev/sda1 /boot/efi
grub-install --boot-directory=/boot/efi --efi-directory=/boot/efi --target=x86_64-efi
ln -s /boot/initrd-xxxx initrd
WIFI
nano /etc/apt/sources.list - add non-free-firmware
apt update
apt install iproute2 net-tools rfkill iwd ifupdown
#apt install firmware-misc-nonfree --- othter wifi boards - realtek asus
apt install firmware-iwlwifi --- mostly intel wifi boards
apt install pciutils lsutils
/etc/resolv.conf
nameserver 1.1.1.1
nano /etc/hostname
Go to directory /usr/share/kbd/consolefonts - and ls to see all available fonts
then setfont iso01-12x22.psfu.gz
or any other fonts you like from there
dpkg-reconfigure console-setup
sudo dpkg-reconfigure gdm3
sudo dpkg-reconfigure lightdm
https://www.linuxfromscratch.org/
ArchLinux - https://wiki.archlinux.org/title/Installation_guide
https://wiki.debian.org/Debootstrap
No comments:
Post a Comment