Overall description: Alpine Installation from a official disc/iso burned into DVD/CD to a new computer with or without UEFI and will be single only boot, means that any thing in the computer and their disc will be erased to put Alpine Linux as main system
This document will guide you to install Alpine into a new empty or just fresh PC or Laptop hardware computer, use if you have a BIOS or UEFI based hardware and only wants Alpine Linux into it.
Warning This method is in disuse today in favor of usbstiks and imgs.
Feels lost here? check How to use this guide section of this document
Download the source medium to install and put into your home documents in a modern computer. There are more hardware medium sources to download, like the arm and i386, but ISO CD/DVD images are only to PC/Laptops that are i386 and amd64, so by downloading the x86 (32bit) flavor will be same for both cases, but UEFI need 64bit, so change to the x86_64 (amd64) if your computer is the most modern and lasted hardware today.
The source medium to install for UEFI or modern hardware
are just 64-bit only, the download URL will be as following format:
http://dl-cdn.alpinelinux.org/alpine/v<VERSION>/releases/<ARCH>/alpine-standard-<VERSION>.0-<ARCH>.iso
where ARCH
and VERSION
could be:
<ARCH>
could be one of:
<VERSION>
could be one of:
EXAMPLE if you plan to using 3.17 version the available links to download will be:
http://dl-cdn.alpinelinux.org/alpine/v3.17/releases/x86_64/alpine-standard-3.17.0-x86_64.iso
http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/ppc64le/alpine-standard-3.12.1-x86.iso
http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/ppc64le/alpine-standard-3.10.1-ppc64le.iso
Usin Graphical download way: Just point the web browser to that url and the
download of the iso file will start. A file with .iso extension
type, with name like "alpine-standard-3.17.0-x86_64.iso"
(if amd64) or
like alpine-standard-3.12.1-x86.iso
(if i386); will be downloaded
commonly into the Download directory of your home documents filesystem.
Usin Command line method way: in unix-like terminal execute:
wget -c -t8 --no-check-certificate http://dl-cdn.alpinelinux.org/alpine/v3.17/releases/x86_64/alpine-standard-3.17.0-x86_64.iso
,
and where you run the command, in that place/dir will be downloaded the file.
After downloading the source media file from Alpine download page put the blank disc into the input optical drive named DVD/CD Rom and open your CD/DVD recording program, choose to “burn from iso file” and wait the process will end.
In detail if you downloaded with Graphical download (using a web
browser), the source media file will be into the Download directory. If
you downloaded with Command line method your source file probably
will be in your root document home (or just $HOME
of your Linux
install or MAC install filesystem).
In Linux, assuming the blank disc is in the optical drive, the command to record/burn the downloaded source media file is :
$ umount /dev/sr0;cdrecord -v -sao dev=/dev/sr0 alpine-standard-3.10.0-x86_64.iso
If your blank media is a DVD or BD disc the command will be then :
$ umount /dev/sr0;growisofs -dvd-compat -Z /dev/sr0=alpine-standard-3.10.0-x86_64.iso
Note
growisofs
has a small bug with blank BD-R media. It issues an error message after the burning is complete. Programs like k3b then believe the whole burn run failed.}}
When the machine start, you must be sure to choose the optical drive (commonly named CD/DVD Rom drive), so the disc/iso will boot and after a while a command line shell will show you:
Note When starting Alpine it will ask for the login, just typing root and pressing enter allows you to start:
Warning Tip: If your system is not configured to boot from a USB drive, it must be configured in the BIOS, ‘'’ask/search to your vendor or technical support’’’, Toshiba computers need to hit F1 to choose boot medium, DELL must hit F11 to choose medium for example, and so and so}}
For this use case, unlike other installation systems, Alpine’s is automatic on the disk, and mounts several partitions depending on the case, as in this document the procedure is automatic, at least four partitons will be created by the installer and these will be configured as needed, if it is UEFI or BIOS, always the automatic setup will do that.
Warning The drive will be assumed to be fully used since alpine setup in this guide will be on its own and single setup only, it will not be necessary to partition or format as the installer will do it. Assumes a minimum 4 gig disk where swap will be 2 gigs in sizes.
Warning if you do not download the extended ISO it may require internet.!!!
After entering the root environment and gets the console prompt installation media, you must perform these commands, that will:
export BOOT_SIZE=500
export SWAP_SIZE=2048
export BOOTLOADER=grub
setup-alpine
This will start some questions, these are in the following order:
eth0
one that is the network cable and answer dhcp
.8.8.8.8
and none
for the domainsys
to install the system on disk.sda
as the entire hard drive present will be used.After answering sys
to the questions about the drive, and since there will only
be one drive, answering sda
on which drive to use, this will create and leave
your hard drive as follows:
/dev/sda1
as BOOT in 500Mb in /boot
/dev/sda2
as SWAP in 4Gb/dev/sda3
as ROOT in 200Gb in /
(approximately or rest of space available)In a few minutes everything will be ready to use ofering a console when boot new system.
After all of the scripts in the setup end, a “reboot” will be offered, just type “reboot” and press enter, remove the boot media and newly installed system will be booted.
You cannot see a graphical window system? take it easy and get calmed down.. in Alpine all are made by the right way.. so if user need a desktop.. user can install a desktop
Please follow the guide alpine-tutorial-wifi-routering.md, you will need to download the needed packages manually from another device and then but it on the installed Alpine computer using USBstorage external device.
If you cannot setup a internet connection you cannot install Alpine linux, unless you used 64bit intel/amd and “extended” iso install media. Most of the packages need to setup this procedure are not included in standard images, specially those for ARM devices like RasberryPi ones becouse WIFi setup.
This guide structure all the commands in blocks, each block its separated by a line spaced, so you must type each line as is.. and hit enter, so you noted that then you typed each separated clocks of commands, copy/type only blocks separated by an empty line, all new(next) lines are made by just enter. the terminal will detect if must execute or not.
This guide is for install process, many parts will need you understand minimal knowledge of linux.
This guide assumed you have a serial port allowed in the targeted computer, also its important you shuold understand the way of the configuration in this guide.
Warning Some Linux or/and Mac terminals have security cut/paste locks, so if you paste, the first line will be preceded by garbage, check always the first char of your paste.
CC BY-NC-SA: the project allows reusers to distribute, remix, adapt, and build upon the material in any medium or format for noncommercial purposes only, and only so long as attribution is given to the creators involved. If you remix, adapt, or build upon the material, you must license the modified material under identical terms, includes the following elements:
https://codeberg.org/alpine/alpine-wiki/src/branch/main#license