---
Alpine
- What is Alpine Linux?
- Key Features
- Why is it Popular?
- Use Cases & Real-World Applications
- How to Get Started
- Questions
---
Alpine Linux
----
## Alpine Linux
- minimal Linux distro
- lightweight
- secure
- perfect for
- containers
- cloud computing
- embedded systems
----
#### "A Linux-Powered Network Engine"
- Created in 2005 by Natanael Copa
- Core Principles:
- Minimalist (~5MB size)
- Security-first approach
- No systemd, uses OpenRC instead
- Uses
----
## Key Features
- Lightweight & Efficient
- Base image is only 5MB
- Uses fewer resources than traditional Linux distributions
- Security-Focused
- Position-independent executables (PIE)
executable gets new random RAM assigned
- Stack-smashing protection (SSP)
detects and prevents buffer overflow attacks
- Runs with least privilege model for better security
- Uses grsecurity patches
set of security-focused patches for the Linux kernel
- PaX - security system for Linux kernel to prevent exploiting memory bugs in programs
---
Package Manager
----
## Package Manager
- Uses apk (Alpine Package Keeper) Package Manager
- Simple and fast package management system
- Example commands:
```
apk update
apk add nano
apk del nano
```
- Rolling Release & Stability
- Regular updates with stable and edge versions
---
Why Alpine Linux popular?
----
## Why is Alpine Linux Popular?
- Containers & Docker
- Alpine is one of the most used Docker base images
- Faster container deployments due to smaller size
- Security & Hardening
- Many security-conscious organizations choose Alpine
- Great for Embedded Systems & Networking
- Used in IoT, routers, and networking appliances
- Lower memory and CPU footprint than traditional distros
- No systemd (Minimalism)
- Preferred by users who want a simpler, cleaner init system
----
## Use Cases
- Containerization & Cloud
- Used in Docker, Kubernetes, and cloud-native environments
- Example: Many microservices run on Alpine-based containers
- Embedded Systems & Networking
- Used in routers, IoT devices, firewalls (e.g., OpenWRT alternatives)
- Security-Critical Environments
- Adopted in security-conscious organizations (e.g., Cloudflare, Google)
- Minimalist Workstations & Servers
- Can be used as a lightweight server OS
---
Get started with Alpine
----
### Get Started with Alpine
- Installing Alpine Linux
- Run Alpine in a VM
- Install it on hardware
- Try Alpine in Docker:
```
docker run -it alpine sh
```
- Resources
- Official Website: [alpinelinux.org](https://alpinelinux.org)
- GitLab: [gitlab.alpinelinux.org](https://gitlab.alpinelinux.org/alpine)
- Docker Hub: [alpine](https://hub.docker.com/_/alpine)
---
Alpine in docker container
----
### Example with docker
```bash
$ docker run -it --name linuxnijmegen alpine sh
```
- docker run
Starts a new container.
- -it
- -i (interactive mode): Keeps the container’s standard input (STDIN) open, allowing you to interact with it.
- -t (allocate a pseudo-TTY): Provides a terminal session inside the container.
- alpine
Specifies the Alpine Linux image from Docker Hub.
If the image isn’t already downloaded, Docker will pull it automatically.
- sh
Runs the sh shell (Alpine’s default shell) inside the container.
----
### re-open closed container
```bash
$ docker start -ai linuxnijmegen
```
- docker start
Starts the stopped container.
- -a
Attaches to the container’s output (so you can interact with it).
- -i
Keeps the container's STDIN open for interaction.
----
### Using apk Package Manager
```
apk update
apk add bind-tools
apk dell bind-tools
dig
apk add cmatrix
cmatrix
apk add asciiquarium
asciiquarium
apk add figlet
figlet "Linux Nijmegen rulez!"
```
---
Questions?
----
## Photo Credits
- https://unsplash.com/photos/photo-of-mountain-covered-of-snow-during-cloudy-sky-jGlqOzrhn9k
- https://pixabay.com/photos/notebook-paper-pages-open-731212/
- https://unsplash.com/photos/snow-capped-mountain-with-sea-of-clouds-qJvpykJ5SKs
- https://unsplash.com/photos/brown-wooden-box-lot-pDsmoI5j3B8
- https://unsplash.com/photos/a-group-of-people-standing-outside-a-building-R72P3yZyYJ8
- https://unsplash.com/photos/a-stack-of-books-R52YghRa_Ik
- https://unsplash.com/photos/blue-and-red-cargo-ship-on-dock-during-daytime-SInhLTQouEk
- https://unsplash.com/photos/man-in-black-crew-neck-t-shirt-and-beige-pants-sitting-on-white-and-blue-stairs-XY0uyBhZWCA