Alpine setup scripts
This page summarizes the low-level behavior of the /sbin/setup-* scripts on the Alpine ISO (and in a normal Alpine install).
setup-alpine
This script accepts the following command-line arguments (you can run `setup-alpine -h` to see some of these entries).
- -a Create overlay file: this creates a temporary directory and saves its location in ROOT; however, the script doesn't export this variable so I think this feature isn't currently functional.
- -c FILE Create a new "answer file", with default choices. You can edit the file and then invoke `setup-alpine -f FILE`.
- -f FILE Use an existing "answer file", which may override some or all of the interactive prompts.
- -q Run in "quick mode" (not documented by `setup-alpine -h`). See below for details.
The script's behavior is to do the following, in order. Bracketed options represent extra configuration choices than can be supplied when running the auxiliary setup scripts manually, or by supplying an "answer file".
- `setup-keymap` [us us]
- `setup-hostname` [-n alpine-test]
- `setup-interfaces` [-i < interfaces-file] LINK
- `/etc/init.d/networking --quiet start &`
- if none of the networking interfaces were configured using dhcp, then: `setup-dns` [-d example.com -n "8.8.8.8 [more...]"]
- set the root password
- if not in quick mode, then: setup-timezone [-z UTC] LINK
- enable the new hostname (`/etc/init.d/hostname --quiet restart`)
- add networking and urandom to the "boot" rc level, and acpid and cron to the "default" rc level, and start the boot and default rc services
- extract the fully-qualified domain name and hostname from /etc/resolv.conf and `hostname`, and update /etc/hosts
- `setup-apkrepos` [-r (to select a mirror randomly)]
- if not in quick mode, then: `setup-sshd` [-c openssh | dropbear | none]
- if not in quick mode, then: `setup-ntp` [-c chrony | openntpd | none]
- if not in quick mode, then: `DEFAULT_DISK=none setup-disk -q` [-m data /dev/sda] LINK
- if not in quick mode, and the selected disk mode was "data" instead of "sys", then: `setup-lbu` [/media/sdb1]
- if not in quick mode, and the selected disk mode was "data" instead of "sys", then: `setup-apkcache` [/media/sdb1/cache]
setup-interfaces
An interfaces file has the format of /etc/network/interfaces, such as:
auto lo iface lo inet loopback
auto eth0 iface eth0 inet dhcp hostname alpine-test
setup-timezone
Can pre-select the timezone using either of these switches:
- -z <subfolder of /usr/share/zoneinfo>
- -p <POSIX TZ format>
setup-disk
To be added.
setup-bootable
Must be run manually, to be added.
setup-cryptswap
Must be run manually, to be added.
setup-xorg-base
Installs the following packages: xorg-server xf86-video-vesa xf86-input-evdev xf86-input-mouse xf86-input-keyboard udev.
Additional packages can be supplied as arguments to setup-xorg-base. You might need, for example, some of: xf86-input-synaptics xf86-video-SOMETHING xinit
setup-gparted-desktop
Uses openbox. Explanation to be added.
setup-mta
Uses ssmtp. Explanation to be added.
setup-alpine-web
Explanation to be added.
setup-acf
Explanation to be added.
setup-ads
Explanation to be added.