Difference between revisions of "Alpine Linux"
(→Features) |
(→Virtualization Box) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
The lightweight [[OpenRC]] is the [[init system]] currently used by Alpine Linux.<ref>{{Cite web|url=https://wiki.alpinelinux.org/wiki/Alpine_Linux_Init_System|title=Alpine Linux Init System - Alpine Linux|website=wiki.alpinelinux.org}}</ref> Unlike many distributions, Alpine does not use [[systemd]]. | The lightweight [[OpenRC]] is the [[init system]] currently used by Alpine Linux.<ref>{{Cite web|url=https://wiki.alpinelinux.org/wiki/Alpine_Linux_Init_System|title=Alpine Linux Init System - Alpine Linux|website=wiki.alpinelinux.org}}</ref> Unlike many distributions, Alpine does not use [[systemd]]. | ||
− | == | + | ==Virtualization Box== |
− | + | This is to set up Alpine as a virtualization box. First, install the necessary packages for KVM: | |
− | + | ||
− | + | apk add qemu-system-x86_64 qemu-gtk netcat-openbsd libvirt-daemon dbus polkit qemu-img | |
− | + | ||
− | + | Next, enable libvirtd to start at boot: | |
− | + | ||
− | + | rc-update add libvirtd | |
− | + | That's it. Now you'll see, using below, the services enabled: | |
− | + | ||
− | + | rc-update -v show | grep "default" | |
− |
Latest revision as of 12:13, 20 September 2021
Alpine Linux is a Linux distribution based on musl and BusyBox, designed for security, simplicity, and resource efficiency. It uses OpenRC for its init system and compiles all user-space binaries as position-independent executables with stack-smashing protection.
Because of its small size, it is commonly used in containers providing quick boot-up times.
History
Originally, Alpine Linux began as a fork of the LEAF Project. The members of LEAF wanted to continue making a Linux distribution that could fit on a single floppy disk, whereas the Alpine Linux wished to include some more heavyweight packages: Squid and Samba. They also added security features and a newer kernel.
Features
Alpine uses its own package-management system, apk-tools,<ref>Template:Cite web</ref> which originally was a collection of shell scripts<ref>Template:Cite web</ref> but was later rewritten in C.<ref>Template:Cite web</ref> Alpine currently contains most commonly used packages such as GNOME, Xfce, Firefox, and others.
Alpine Linux can be installed as a run-from-RAM operating system. The LBU (Alpine Local Backup)<ref>Template:Cite web</ref> tool optionally allows all configuration files to be backed up to an APK overlay file (usually shortened to apkovl), a tar.gz file that by default stores a copy of all changed files in /etc (with the option to add more directories). This allows Alpine to work reliably in demanding embedded environments or to (temporarily) survive partial disk failures as sometimes experienced in public cloud environments.
A hardened kernel was included in the default distribution for up to and including Alpine 3.7, which aids in reducing the impact of exploits and vulnerabilities. All packages are also compiled with stack-smashing protection to help mitigate the effects of userland buffer overflows.
By default, it includes patches that allow using efficient meshed VPNs using the DMVPN standard.
It has reliably had excellent support of Xen hypervisors in up-to-date versions, which avoids issues as experienced with Enterprise Distributions. (The standard Linux hypervisor KVM, is also available.)
It allows very small Linux containers, around 8 MB in size, while a minimal installation to disk might be around 130 MB.<ref name="about"/>
Alpine Configuration Framework (ACF): While optional, ACF is an application for configuring an Alpine Linux machine, with goals similar to Debian's debconf. It is a standard framework based on simple Lua scripts.<ref>Template:Cite web</ref>
It previously used uClibc as its C standard library instead of the traditional GNU C Library (glibc) most commonly used. Although it is more lightweight, it does have the significant drawback of being binary incompatible with glibc. Thus, all software must be compiled for use with uClibc to work properly. As of 9 April 2014,<ref>Template:Cite web</ref> Alpine Linux switched to musl, which is partially binary compatible with glibc.<ref>Template:Cite web</ref>
The lightweight OpenRC is the init system currently used by Alpine Linux.<ref>Template:Cite web</ref> Unlike many distributions, Alpine does not use systemd.
Virtualization Box
This is to set up Alpine as a virtualization box. First, install the necessary packages for KVM:
apk add qemu-system-x86_64 qemu-gtk netcat-openbsd libvirt-daemon dbus polkit qemu-img
Next, enable libvirtd to start at boot:
rc-update add libvirtd
That's it. Now you'll see, using below, the services enabled:
rc-update -v show | grep "default"