===== Stali =====
**Prerequisites:**
First we wanna have an booted up live ISO to be equipped with all the necessary tools to install a proper linux
Then we need an ssh connection to copy and paste the commands from this guide onto the machine more easily:
vim /etc/ssh/sshd_config
---
PermitRootLogin yes
Now give yourself a personal IP Address:
ip addr add 192.168.1.10/24 dev eth0
ip link set eth0 up
rc-service sshd start
Now change to the terminal of the computer you are reading this guide and type/copy in:
ssh root@192.168.1.10 <- enter the live ISO pw
===== 1.0 =====
----
Prepare a disk partition for stali, we recommend formatting it with ext4fs.
fdisk /dev/sda
o → neue MBR-Tabelle
n → neue Partition 1 → +100M → Typ 83 → a → Bootflag
n → neue Partition 2 → Rest → Typ 83
w → schreiben
Format disks
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
===== 2.0 =====
----
These are the necessary command to build the latest linux kernel:
pacman -Sy wget make gcc binutils bc bison flex elfutils cpio perl tar xz zsh-completion
cd /tmp/kernelbuild
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.3.tar.xz
tar -xf linux-6.6.3.tar.xz
cd linux-6.6.3
make x86_64_defconfig
make -j$(nproc)
make modules_install INSTALL_MOD_PATH=/mnt/rootfs
make install INSTALL_PATH=/mnt/rootfs/boot
You can now see the exetubable kernel file under `/mnt/rootfs/boot/vmlinuz-6.6.3`.
===== 2.0 =====
----
syslinux.cfg erstellen:
cat > /boot/syslinux.cfg <
===== 3.0 =====
Mount the disk partition
; sudo su
# mkdir /mnt/rootfs-x86_64
# mount /dev/sdX /mnt/rootfs-x86_64
Clone rootfs-x86_64
# cd /mnt
# git clone http://git.sta.li/rootfs-x86_64
Setup the system
# cd /mnt/rootfs-x86_64/etc
# # adjust rc.init/exit, etc.
Prepare chroot
# mount -t proc proc /mnt/rootfs-x86_64/proc
# mount --rbind /sys /mnt/rootfs-x86_64/sys
# mount --rbind /dev /mnt/rootfs-x86_64/dev
Syslinux-MBR schreiben
dd if=/usr/lib/syslinux/bios/mbr/mbr.bin of=/dev/sda
exit
umount -R /mnt/sysroot
sync
reboot
===== 4.0 =====
----
Read more:
- https://sta.li