Alpine Linux
Is a Linux distro that is lightweight
- Default account:
root, with no password
Setup¶
- run
setup-alpine sysis standard hard-disk install modeadduser NAMEto add userapk add nanoto installnano- Configure SSH
- Edit
/etc/ssh/sshd_config - At the bottom, add
AllowUsers XXXwith 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 updateapk add sudovisudo- Uncomment the
%wheel ...line to allowwheelusers to usesudo - Exit
vi- see Vi - Add yourself to the
wheelgroup:addgroup $USER wheel
Docker¶
- See also Docker
- Un-comment community package in
/etc/apk/repositories apk updateapk add dockeraddgroup $USER dockerrc-update add docker bootandservice docker startto 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