← 返回命令列表

Linux command

setup-alpine 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run the full interactive installer

setup-alpine

Quick mode

setup-alpine -q

Replay

setup-alpine -f [/path/to/answers]

Generate a template

setup-alpine -c [/path/to/answers.new]

Print

setup-alpine -h

说明

setup-alpine is the canonical first-boot installer shipped on every official Alpine Linux ISO. It runs from the live environment and guides the operator through the steps required to bring up a working Alpine system: keyboard layout, hostname, network interfaces, DNS servers, root password, timezone, HTTP proxy, NTP daemon, package mirrors, SSH server, and disk layout. Internally setup-alpine is a small POSIX shell script that orchestrates a number of dedicated setup-*_step_ helpers (such as setup-keymap, setup-hostname, setup-interfaces, setup-disk, setup-sshd, setup-ntp, setup-apkrepos, setup-lbu and setup-apkcache). Each helper can also be invoked stand-alone after installation to reconfigure that aspect of the system. Three install targets are offered when the disk step runs: sys for a traditional persistent installation, data for a diskless system whose state is backed up via lbu, and none to skip disk setup entirely. The result is a small, repeatable, and scriptable Alpine deployment.

参数

-a
Run in diskless ("alpine") mode: configure a running system without installing to disk.
-c _FILE_
Create an answer file at _FILE_ pre-filled with the current default answers, then exit.
-f _FILE_
Read answers from _FILE_ instead of prompting interactively (allows unattended installs).
-q
Quick mode: configure only keymap, hostname, DHCP networking, /etc/hosts and the default repositories.
-h
Show usage and exit.

FAQ

What is the setup-alpine command used for?

setup-alpine is the canonical first-boot installer shipped on every official Alpine Linux ISO. It runs from the live environment and guides the operator through the steps required to bring up a working Alpine system: keyboard layout, hostname, network interfaces, DNS servers, root password, timezone, HTTP proxy, NTP daemon, package mirrors, SSH server, and disk layout. Internally setup-alpine is a small POSIX shell script that orchestrates a number of dedicated setup-*_step_ helpers (such as setup-keymap, setup-hostname, setup-interfaces, setup-disk, setup-sshd, setup-ntp, setup-apkrepos, setup-lbu and setup-apkcache). Each helper can also be invoked stand-alone after installation to reconfigure that aspect of the system. Three install targets are offered when the disk step runs: sys for a traditional persistent installation, data for a diskless system whose state is backed up via lbu, and none to skip disk setup entirely. The result is a small, repeatable, and scriptable Alpine deployment.

How do I run a basic setup-alpine example?

Run `setup-alpine` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in setup-alpine?

Run in diskless ("alpine") mode: configure a running system without installing to disk.