Alpine Linux

From Braindump
Revision as of 05:42, 11 August 2023 by Jan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://pkgs.alpinelinux.org/packages?name=openssl&branch=edge&arch=x86_64

https://pkgs.alpinelinux.org/contents?branch=edge&name=openssl&arch=x86_64&repo=main

https://git.alpinelinux.org/aports/tree/main/openssl/APKBUILD

ip link set eth1 up
ip addr add 10.0.0.48/24 dev eth1
ip route replace default via 10.0.0.7
/etc/network/interfaces
auto eth0
iface eth0 inet dhcp
vi /etc/resolv.conf
nameserver 10.0.0.7

https://mirrors.alpinelinux.org/

vi /etc/apk/repositories
http://alpine.mirror.far.fi/edge/main
apk add openssh-server
service sshd start

rescue

mount -t proc none ${chroot_dir}/proc
mount -o bind /sys ${chroot_dir}/sys
grub-mkconfig -o /boot/grub/grub.cfg
mount /dev/sda2 /media/new_root
chroot /media/new_root

ef02 / flag bios_grub

21686148-6449-6E6F-744E-656564454649

grub-install --target=i386-pc /dev/sda
efibootmgr -v
parted --list
wget http://nl.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.12.9-r6.apk
mv apk-tools-static*.apk apk-tools-static.tar.gz
tar xvzf apk-tools-static.tar.gz sbin/apk.static

InitRamFS

Great for XEN, iPXE or USB Stick booting

find . -print0 | cpio --null --create --verbose --owner root:root --format=newc | lz4c -l > ../initramfs.img.lz4
xl create -f /etc/xen/alpine.hvm -c