# 设置网络 $setup-interfaces (or '?' or 'none') [eth0] # 使用默认的[eth0],直接回车 (or 'dhcp' or 'none' or '?') [dhcp] # 使用默认的,直接回车 Do you want to do any manual network configuration? [no] # 使用默认的,直接回车 rc-service networking restart # 重启网络服务
# 更新软件仓库 $apk update $apk upgrade
# 设置远程登陆 $setup-sshd Which SSH Server ('openssh','dropbear','none')[openssh] # 使用默认的,直接回车 $vi /etc/ssh/sshd_config # 添加如下内容,允许root远程无密码登陆(注意,此方式仅适合与测试环境): PermitRootLogin yes PermitEmptyPasswords yes rc-service sshd restart
# 默认安装方式 $setup-alpine Select keyboard lauout [none] # 使用默认的,直接回车 Enter system hostname [localhost] # 使用默认的,直接回车 (or '?' or 'none') [eth0] # 使用默认的,直接回车 (or 'dhcp' or 'none' or '?') [dhcp] # 使用默认的,直接回车 Do you want to do any manual network configuration? [no] # 使用默认的,直接回车
Which timezone are you in? ('?'for list) [UTC] # 输入:Asia What sub-timezone of 'Asia' are you in? ('?'for list) # 输入:Shanghai
# 选择软件源(f为测速,自动选择) HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] # 使用默认的,直接回车 Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony] # 使用默认的,直接回车 Enter mirror number (1-46) or URL to add (or r/f/e/done) [1]: # 这里我们直接输入done,然后回车。因为我们手动修改过
Which SSH server? ('openssh', 'dropbear' or 'none') [openssh] # 使用默认的,直接回车
Which disk(s) would you like to use? ()[none] # 输入:sda How would you like to use it ('sys','data','lvm'...)[?] # 输入:sys