This episode walks you through installing Alpine from scratch using the setup-alpine wizard: keymap, hostname, networking, repositories, admin user, SSH, and choosing the sys or data disk schema. You'll also learn setup-disk, setup-xorg-base for a desktop, and the boot process with GRUB or Syslinux.

Now that you understand the architecture, it's time to put Alpine on a real device. Episode 3 walks you through a full installation using setup-alpine — an interactive wizard that asks for your system configuration step by step. The process is much faster than other distros: from booting the ISO to a ready-to-use system usually takes less than ten minutes.
You'll learn every wizard step, choose the sys or data disk schema, install to a permanent disk, and add a desktop if needed. This episode is the foundation for all the lab practice in this series, so follow it carefully.
Boot your VM from the Alpine ISO you downloaded in episode 0. You'll see a boot menu with options like boot system, diskless, and RAM. Choose the boot system option (or the default), wait for the boot process to finish, then log in as root with no password.
Verify that you're in the Alpine live environment:
cat /etc/alpine-release
lsblkThe lsblk output lists the disks. At this point no system is installed yet — everything runs from RAM.
Start the wizard with a single command:
setup-alpineThe wizard will ask you, in order:
us (or id if you use an Indonesian keyboard).alpine-lab.eth0 and choose DHCP or a static IP.Asia/Jakarta.lock root account — locking root access via SSH is recommended.When done, reboot and the system will boot from disk:
rebootRemember these setup-alpine options: in episode 8 we'll use it again for diskless and data modes.
When the wizard reaches the disk question, Alpine offers several installation modes. The two most important are:
For this series' lab, choose sys. If you're asked which disk do you want to use?, answer with the disk name like sda or vda:
setup-disk -m sys vda
setup-disk -m data sdaThe setup-disk -m sys vda command installs Alpine fully to the vda disk, while setup-disk -m data sda only prepares the data partition.
Depending on the architecture and disk, Alpine will install GRUB (on UEFI and most modern BIOS systems) or Syslinux (the classic lightweight bootloader on BIOS). For UEFI systems, make sure your VM firmware is set to UEFI so GRUB is installed correctly.
If you want a desktop environment in Alpine, there are two helper tools:
setup-xorg-base
setup-desktopsetup-xorg-base installs the X.Org foundation.setup-desktop guides the desktop environment selection — Alpine 3.24 offers GNOME 50, KDE Plasma 6.6, and lightweight desktops like Xfce.You need to add your user to the right groups before logging into the desktop:
adduser -G audio -G video armanThen install your chosen desktop, for example:
apk add xfce4
rc-update add dbus default
rc-update add lightdm defaultMake sure the dbus service and the display manager are enabled so the desktop appears at boot. For the server use cases in this series, you can skip the desktop section.
After rebooting, log in with the admin user you created and verify the installation:
cat /etc/alpine-release
uname -a
df -h /
sudo -i
apk upgradeThe df -h / output shows the root filesystem is now mounted from disk instead of RAM. Run apk upgrade to make sure all packages are at their latest versions — a habit we'll emphasize in episode 13.
Warning
If you chose to lock the root account during the wizard, all administrative tasks are done through the admin user using doas — not sudo. We'll cover doas in full in episode 6.
Episode 3 walked you through installing Alpine from booting the ISO to a ready-to-use system: running setup-alpine step by step, choosing the sys or data disk schema, installing the GRUB or Syslinux bootloader, and setting up a desktop if needed.
Key takeaways:
setup-disk -m sys writes the system to disk with an automatic bootloader.In the next episode, episode 4, we'll cover package management with apk — the basic update, add, del, and upgrade commands, the repository structure in /etc/apk/repositories, and apk search, apk info, and apk audit, along with the differences between apk v2 and v3.