Alpine Linux
Is a Linux distro that is lightweight
- Default account:
root
, with no password
Setup¶
- run
setup-alpine
sys
is standard hard-disk install modeadduser NAME
to add userapk add nano
to installnano
- Configure SSH
- Edit
/etc/ssh/sshd_config
- At the bottom, add
AllowUsers XXX
with XXX your user name - Reboot
- Edit
- Refer also to the post-install notes
- On VM, don't bother to install VM addons - just create an user, allow SSH user and connect to it
- If you use NAT, configure port forwarding with Host being the actual PC and Guest the VM
Sudo¶
- Un-comment community package in
/etc/apk/repositories
apk update
apk add sudo
visudo
- Uncomment the
%wheel ...
line to allowwheel
users to usesudo
- Exit
vi
- see Vi - Add yourself to the
wheel
group:addgroup $USER wheel
Docker¶
- See also Docker
- Un-comment community package in
/etc/apk/repositories
apk update
apk add docker
addgroup $USER docker
rc-update add docker boot
andservice docker start
to start docker daemon at boot
Other: - Awall - Firewall - OpenRC - Init system
Resize filesystem¶
- Install
apk add cfdisk e2fsprogs-extra
- Use
cfdisk
- Run
resize2fs /dev/sda*
- change*
with the partition number
Other nice tutorials¶
Management¶
Packets & Software¶
apk
is to tool used to manage packets, documentation:
* apk update
to update the index
* apk upgrade
to upgrade installed package
* apk add X
to add package X to system
* apk del X
to remove package X to system
* apk version X
to check version of X