Skip to main content

Installation d'Alpine Linux

Récupérer l'ISO sur le site d'Alpine : 

https://www.alpinelinux.org/downloads/

Je prends par habitude la version standard

Installation

localhost:~# setup-
setup-acf              setup-bootable         setup-hostname         setup-mta              setup-timezone
setup-alpine           setup-disk             setup-interfaces       setup-ntp              setup-xen-dom0
setup-apkcache         setup-dns              setup-keymap           setup-proxy            setup-xorg-base
setup-apkrepos         setup-gparted-desktop  setup-lbu              setup-sshd

L’installation ce fait via la commande setup-alpine

localhost:~# setup-alpine
Available keyboard layouts:
af at be by cn dz fi ge hu in it kr lk md mm nl pl ru sy tr uz
al az bg ca cz ee fo gh id iq jp kz lt me mt no pt se th tw vn
am ba br ch de epo fr gr ie ir ke la lv mk my ph ro si tj ua
ara bd brai cm dk es gb hr il is kg latam ma ml ng pk rs sk tm us
Select keyboard layout [none]: fr
Available variants: fr-afnor fr-azerty fr-bepo fr-bepo_afnor fr-bepo_latin9 fr-bre fr-dvorak fr-geo fr-latin9 fr-latin9_nodeadkeys fr-latin9_sundeadkeys fr-mac fr-nodeadkeys fr-oci fr-oss fr-oss_latin9 fr-oss_nodeadkeys fr-oss_sundeadkeys fr-sundeadkeys fr-us fr
Select variant []: fr-azerty
* WARNING: you are stopping a boot service
* Caching service dependencies ... [ ok ]
* Setting keymap ... [ ok ]
Enter system hostname (short form, e.g. 'foo') [localhost]: alpine
Available interfaces are: eth0.
Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done') [eth0] eth0
Ip address for eth0? (or 'dhcp', 'none', '?') [192.168.1.59]
Netmask? [255.255.255.0]
Gateway? (or 'none') [192.168.1.1]
Configuration for eth0:
type=static
address=192.168.1.59
netmask=255.255.255.0
gateway=192.168.1.1
Do you want to do any manual network configuration? [no]
DNS domain name? (e.g 'bar.com') [] lab.lan
DNS nameserver(s)? [192.168.1.1 ]
Changing password for root
New password:
Bad password: too weak
Retype password:
passwd: password for root changed by root
Which timezone are you in? ('?' for list) [UTC] Europe/Paris
* Stopping sshd ... [ ok ]
* Starting busybox acpid ... [ ok ]
* Starting busybox crond ... [ ok ]
* Starting sshd ... [ ok ]
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony]
* service chronyd added to runlevel default
* Caching service dependencies ... [ ok ]
* Starting chronyd ... [ ok ]

Available mirrors:
1) dl-cdn.alpinelinux.org
2) uk.alpinelinux.org
3) dl-2.alpinelinux.org
4) dl-4.alpinelinux.org
5) dl-5.alpinelinux.org
6) dl-8.alpinelinux.org
7) mirror.yandex.ru
8) mirrors.gigenet.com
9) mirror1.hs-esslingen.de
10) mirror.leaseweb.com
11) mirror.fit.cvut.cz
12) alpine.mirror.far.fi
13) alpine.mirror.wearetriple.com
14) mirror.clarkson.edu
15) linorg.usp.br
16) ftp.yzu.edu.tw
17) mirror.aarnet.edu.au
18) speglar.siminn.is
19) mirrors.dotsrc.org
20) ftp.halifax.rwth-aachen.de
21) mirrors.tuna.tsinghua.edu.cn
22) mirrors.ustc.edu.cn
23) mirrors.xjtu.edu.cn
24) mirrors.nju.edu.cn
25) mirror.lzu.edu.cn
26) ftp.acc.umu.se
27) mirror.xtom.com.hk
28) mirror.csclub.uwaterloo.ca
29) alpinelinux.mirror.iweb.com
30) mirror.neostrada.nl
31) pkg.adfinis-sygroup.ch
32) mirror.ps.kz
33) mirror.rise.ph
34) mirror.operationtulip.com
35) mirrors.ircam.fr
36) alpine.42.fr
37) mirror.math.princeton.edu
38) mirrors.sjtug.sjtu.edu.cn
39) alpine.mirror.didstopia.com
40) ftp.icm.edu.pl
41) mirror.ungleich.ch
42) alpine.mirror.vexxhost.ca
43) sjc.edge.kernel.org
44) ewr.edge.kernel.org
45) ams.edge.kernel.org
46) download.nus.edu.sg
47) alpine.yourlabs.org
48) mirror.pit.teraswitch.com
49) mirror.reenigne.net

r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositories with text editor

Enter mirror number (1-49) or URL to add (or r/f/e/done) [1]:

Finding fastest mirror...
0.11 http://dl-cdn.alpinelinux.org/alpine/
0.05 http://uk.alpinelinux.org/alpine/
0.19 http://dl-2.alpinelinux.org/alpine/
0.06 http://dl-4.alpinelinux.org/alpine/
0.05 http://dl-5.alpinelinux.org/alpine/
0.1 http://dl-8.alpinelinux.org/alpine/
0.1 http://mirror.yandex.ru/mirrors/alpine/
0.23 http://mirrors.gigenet.com/alpinelinux/
0.06 http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/
0.07 http://mirror.leaseweb.com/alpine/
0.08 http://mirror.fit.cvut.cz/alpine/
0.11 http://alpine.mirror.far.fi/
0.31 http://alpine.mirror.wearetriple.com/
wget: server returned error: HTTP/1.1 404 Not Found
0.48 http://linorg.usp.br/AlpineLinux/
0.91 http://ftp.yzu.edu.tw/Linux/alpine/
0.63 http://mirror.aarnet.edu.au/pub/alpine
0.13 http://speglar.siminn.is/alpine/
0.11 http://mirrors.dotsrc.org/alpine/
0.08 http://ftp.halifax.rwth-aachen.de/alpine/
0.59 http://mirrors.tuna.tsinghua.edu.cn/alpine/
0.42 http://mirrors.ustc.edu.cn/alpine/
wget: download timed out
0.65 http://mirrors.nju.edu.cn/alpine/
0.64 http://mirror.lzu.edu.cn/alpine/
0.13 http://ftp.acc.umu.se/mirror/alpinelinux.org/
0.41 http://mirror.xtom.com.hk/alpine/
0.32 http://mirror.csclub.uwaterloo.ca/alpine/
0.2 http://alpinelinux.mirror.iweb.com/
0.06 http://mirror.neostrada.nl/alpine/
0.05 http://pkg.adfinis-sygroup.ch/alpine/
0.24 http://mirror.ps.kz/alpine/
0.46 http://mirror.rise.ph/alpine-linux/
0.11 http://mirror.operationtulip.com/alpine/
0.03 http://mirrors.ircam.fr/pub/alpine/
0.04 http://alpine.42.fr/
0.19 http://mirror.math.princeton.edu/pub/alpinelinux/
wget: download timed out
0.06 http://alpine.mirror.didstopia.com/
0.13 http://ftp.icm.edu.pl/pub/Linux/distributions/alpine/
0.46 http://mirror.ungleich.ch/mirror/packages/alpine/
0.19 http://alpine.mirror.vexxhost.ca/
0.31 http://sjc.edge.kernel.org/alpine/
0.18 http://ewr.edge.kernel.org/alpine/
0.06 http://ams.edge.kernel.org/alpine/
0.4 http://download.nus.edu.sg/mirror/alpine/
0.27 http://alpine.yourlabs.org
0.22 http://mirror.pit.teraswitch.com/alpine
0.21 http://mirror.reenigne.net/alpine/
Added mirror mirrors.ircam.fr
Updating repository indexes... done.
Which SSH server? ('openssh', 'dropbear' or 'none') [openssh]
* rc-update: sshd already installed in runlevel `default'; skipping
* WARNING: sshd has already been started
Available disks are:
sda (21.5 GB VMware, VMware Virtual S)
Which disk(s) would you like to use? (or '?' for help or 'none') [none] sda
The following disk is selected:
sda (21.5 GB VMware, VMware Virtual S)
How would you like to use it? ('sys', 'data', 'lvm' or '?' for help) [?] ?

You can select between 'sys', 'data', 'lvm', 'lvmsys' or 'lvmdata'.

sys:
This mode is a traditional disk install. The following partitions will be
created on the disk: /boot, / (filesystem root) and swap.

This mode may be used for development boxes, desktops, virtual servers, etc.

data:
This mode uses your disk(s) for data storage, not for the operating system.
The system itself will run from tmpfs (RAM).

Use this mode if you only want to use the disk(s) for a mailspool, databases,
logs, etc.

lvm:
Enable logical volume manager and ask again for 'sys' or 'data'.

lvmsys:
Same as 'sys' but use logical volume manager for partitioning.

lvmdata:
Same as 'data' but use logical volume manager for partitioning.

The following disk is selected:
sda (21.5 GB VMware, VMware Virtual S)
How would you like to use it? ('sys', 'data', 'lvm' or '?' for help) [?] sys
WARNING: The following disk(s) will be erased:
sda (21.5 GB VMware, VMware Virtual S)
WARNING: Erase the above disk(s) and continue? [y/N]: y
Creating file systems...
Installing system on /dev/sda3:
/mnt/boot is device /dev/sda1
69% ########################################################################################################

=> initramfs: creating /boot/initramfs-lts
/boot is device /dev/sda1

Installation is complete. Please reboot.