alpine linux sysprep

alpine linux and dnc

assuming xen dom0

warning & post-install hotfix

aline linux boots the non-xen menu option by default, hence hvc0 won’t work just yet.

(eventually switch to console #2 and avoid the hvc0 errors)

cd /boot/
cp -pi extlinux.conf extlinux.conf.dist
vi extlinux.conf
serial 0 115200
console 1
nohalt 1

default menu.c32
prompt 0
timeout 100

menu title SYSLINUX
menu autoboot boot # seconds

xen.gz noreboot=true loglvl=info guest_loglvl=info smt=1 ept=exec-sp
vmlinuz ... mitigations=off

(move the MENU DEFAULT line into the xen label)

and reboot at once

reboot

casual post-install

mv -i /etc/motd /etc/motd.dist

cat /etc/hostname
cat /etc/hosts

apk update
apk add \
    bash \
    bash-completion \
    cfdisk \
    curl \
    ethtool \
    findutils-locate \
    hdparm \
    man-pages \
    mii-tool \
    vim \
    wget

ln -sf /usr/bin/vim /usr/bin/vi
cat > /root/.vimrc <<EOF
set mouse=
set paste
syn on
EOF

ls -lF /etc/profile.d/aliases.sh # no exist
cat > /etc/profile.d/aliases.sh <<EOF
alias ll='ls -alhF'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
EOF
source /etc/profile.d/aliases.sh

that’s it, you’re good to go already, unless you want a full-blown DNC-capable cluster

resources

moar

https://www.f1-consult.com/linux/linux-disk-write-caching/

https://serverfault.com/questions/857271/better-performance-when-hdd-write-cache-is-disabled-hgst-ultrastar-7k6000-and


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun