Skip to content

Installing Alpine Standard 3.22.1

Media and operating system download

To create the desktop, the Alpine ISO is needed, available on the official website: https://www.alpinelinux.org/downloads/

  1. Go to the Alpine website.
  2. Look for the standard version and the ISO for the x86_64 architecture.
  3. Copy the URL and upload the ISO to IsardVDI from Media (see Media).

The version used in this guide is: alpine-standard-3.22.1-x86_64.iso (the latest at the time of writing this guide, released on 15 July 2025)

When the ISO is downloaded, in Media, click Create new desktop on the Alpine ISO and fill in the form with these values:

  • vCPUs: 1
  • Memory (GB): 0.5 GB
  • Disk size (GB): 40 GB
  • Videos: Default
  • Boot: CD/DVD
  • Networks: Default, Wireguard VPN
  • Operating system template: debian12 (or the most similar one available)

Click Create desktop. The desktop is created with the ISO attached as media.

OS Installation

Once the desktop is powered on, boot information and the login screen appear:

Log in as the root user, which does not ask for a password.

Before performing the installation, the keyboard layout will be English.

With a Spanish layout keyboard, the single quote ' types a hyphen (-). Tab can also be used to autocomplete and so type setup-alpine.

To start the installation, run setup-alpine and follow the wizard steps to configure the network, time zone, etc.

  1. Keymap: choose the keyboard layout.

  2. Hostname: define the device name.

  3. Interface: the wizard asks how to configure each interface.

    • Accept the default configuration by pressing Enter at all prompts.

  4. Root Password: set a password for the administrator user.

    • This will be the password set in the template.

  5. Timezone: specify the time zone.

  6. Proxy: if needed, enter the URL of the proxy server.

    • In this case, press Enter to keep the default value: none.

  7. APK Mirror: choose the Alpine package server. There are several servers in different parts of the world to better distribute the load and offer more speed, filtered by region. The simplest is to choose the 'f' option, which compares the servers and picks the fastest one for the system.

  8. User: create a user named isard (with the password you want to set in the template).

  9. Disk & Install: indicate the disk where the operating system is installed.

    • Choose the one that appears by typing its name ('vda'). The wizard then asks how the selected disk is to be used.

    • To see the disk usage modes and installation types, type a question mark (?):

    • Choose the traditional installation, which creates two partitions: one for boot information (/boot) and another for the system (/).

    • Type the 'sys' option. The wizard asks for confirmation to erase the disk content and create the two partitions on it.

  10. Reboot by running:

    reboot
    
  11. Power off the desktop.

  12. Edit the desktop, remove the ISO from Media and set Boot to Hard Disk. Click Save changes.

When the desktop is powered on again, Alpine Linux boots from the disk.

Essential configuration for use

  1. Add the created user to the administrators group.
# Run the following command to operate as an administrator; it will prompt you for the password.
su -

# Step 1: Configure official repositories
echo "https://dl-cdn.alpinelinux.org/alpine/v3.22/main" > /etc/apk/repositories
echo "https://dl-cdn.alpinelinux.org/alpine/v3.22/community" >> /etc/apk/repositories

# Step 2: Update apk
apk update

# Step 3: Install sudo
apk add sudo

# Step 4: Add the 'isard' user to the 'wheel' group
addgroup isard wheel

# Step 5: Allow the 'wheel' group to use sudo
# Uncomment the line in sudoers if it is not already done
sed -i 's/^# %wheel/%wheel/' /etc/sudoers

# Step 6: Switch back to the isard user and verify the execution of a command with special permissions.
su - isard
sudo apk update
  1. Prepare the desktop for SSH connection through the Wireguard VPN network.

  2. To connect from your own computer, the user VPN tunnel must be set up: see VPN.

For it to work, run the following commands inside the machine:

  • To allow SSH access, enable the eth1 interface and configure it to obtain an IP address via DHCP: bash ip link set eth1 up udhcpc -i eth1 ip route add 10.0.0.0/14 via 10.2.0.1
  • To allow login as the root user, modify the following line of the /etc/ssh/sshd_config file: bash PermitRootLogin yes

Alpine as a router

To configure Alpine as a router, see the Alpine Linux-based router guide.