Index

alpine linux

Alpine is a secure minimal os. if you want to deploy it on digital

https://git.alpinelinux.org/alpine-conf/

adell@adell:~$ cd git
adell@adell:~/git$ git clone https://git.alpinelinux.org/alpine-conf
Cloning into 'alpine-conf'...
remote: Enumerating objects: 4093, done.
remote: Total 4093 (delta 0), reused 0 (delta 0), pack-reused 4093
Receiving objects: 100% (4093/4093), 612.05 KiB | 1.61 MiB/s, done.
Resolving deltas: 100% (2646/2646), done.
adell@adell:~/git$ cd alpine-conf/
adell@adell:~/git/alpine-conf$ ls
copy-modloop.in       setup-alpine.in    setup-interfaces.in  setup-xen-dom0.in
dasd-functions.sh.in  setup-apkcache.in  setup-keymap.in      setup-xorg-base.in
lbu.conf              setup-apkrepos.in  setup-lbu.in         tests
lbu.in                setup-bootable.in  setup-mta.in         uniso.c
libalpine.sh.in       setup-desktop.in   setup-ntp.in         update-conf.in
LICENSE               setup-devd.in      setup-proxy.in       update-kernel.in
Makefile              setup-disk.in      setup-sshd.in
README.md             setup-dns.in       setup-timezone.in
setup-acf.in          setup-hostname.in  setup-user.in
adell@adell:~/git/alpine-conf$ cat setup-xen-dom0.in
#!/bin/sh

# simple script to setup basic xen dom0

# kernel modules
mkdir -p "$ROOT"/etc
for mod in xen_netback xen_blkback xenfs xen_pciback xen_wdt tun; do
	if $MOCK modprobe $mod; then
		grep -q -w $mod "$ROOT"/etc/modules 2>/dev/null || echo $mod >> "$ROOT"/etc/modules
	fi
done

# install packages
apk add --quiet xen

# setup and start services
for svc in xenstored xenconsoled xenqemu; do
	rc-update --quiet add $svc default
done

rc-service xenstored start
rc-service xenconsoled start
rc-service xenqemu start
adell@adell:~/git/alpine-conf$