Download
https://www.alpinelinux.org/downloads/
Check the image with sha256sum
.
Check the image with GPG.
wget https://www.alpinelinux.org/keys/ncopa.asc
gpg2 --import ncopa.asc
gpg2 --verify alpine-standard-3.12.0-x86_64.iso.asc
Install
- Boot the image.
- Login as
root
. - Run
setup-alpine
. - Keyboard, hostname, network, timezone, proxy, NTP, mirrors, SSH.
- To setup the storage choose the disk and select
sys
for using the entire drive as system storage. - Reboot.
A diskless mode is available.
https://wiki.alpinelinux.org/wiki/Tutorials_and_Howtos#Post-Install https://wiki.alpinelinux.org/wiki/Alpine_newbie_apk_packages
Manual network via iproute2
Add an IP
Bring up the interface
Add a route
Add a DNS server
Test
Network via ifupdown
vim /etc/network/interfaces
---
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.0.12.30/24
gateway 10.0.12.1
dns-nameservers 1.1.1.1 8.8.8.8
pre-up echo "search home.local\nnameserver 1.1.1.1\nnameserver 8.8.8.8" > /etc/resolv.conf
#post-down ifconfig $IFACE down
Manually setup repos
apk package manager
List installed packages
Packages contents
Add community repo