commit
0eb0d7878d
|
@ -12,8 +12,8 @@ Tools provided here can be used on any plaform for any install modes (diskless,
|
||||||
|
|
||||||
Just add [**headless.apkovl.tar.gz**](https://github.com/macmpi/alpine-linux-headless-bootstrap/raw/main/headless.apkovl.tar.gz) overlay file at the root of Alpine Linux boot media (or onto any custom side-media) and boot the system.
|
Just add [**headless.apkovl.tar.gz**](https://github.com/macmpi/alpine-linux-headless-bootstrap/raw/main/headless.apkovl.tar.gz) overlay file at the root of Alpine Linux boot media (or onto any custom side-media) and boot the system.
|
||||||
|
|
||||||
With default network interface definitions (and SSID/pass file if using wifi), one may then access the system under `ssh` with:\
|
With default network interface definitions (and SSID/pass file if using wifi), one may then access the system under `ssh` with: `ssh root@<IP>`\
|
||||||
`ssh root@<IP>` (system IP address may be determined with any IP scanning tools such as `nmap`).
|
(system IP address may be determined with any IP scanning tools such as `nmap`).
|
||||||
|
|
||||||
As with Alpine Linux initial bring-up, `root` account has no password initially (change that after setup!).\
|
As with Alpine Linux initial bring-up, `root` account has no password initially (change that after setup!).\
|
||||||
From there, system install can be fine-tuned as usual with `setup-alpine` for instance (check [wiki](https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-alpine) for details).
|
From there, system install can be fine-tuned as usual with `setup-alpine` for instance (check [wiki](https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-alpine) for details).
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION="0.5"
|
VERSION="0.6"
|
||||||
|
|
||||||
# Redirect stdout and errors to console as rc.local does not log anything
|
# Redirect stdout and errors to console as rc.local does not log anything
|
||||||
exec 1>/dev/console 2>&1
|
exec 1>/dev/console 2>&1
|
||||||
|
@ -101,11 +101,17 @@ cat <<-EOF >> /etc/conf.d/sshd
|
||||||
rc-service sshd start
|
rc-service sshd start
|
||||||
|
|
||||||
## Prep for final post-cleanup
|
## Prep for final post-cleanup
|
||||||
|
## clears any installed packages and settings
|
||||||
cat <<-EOF > /tmp/.trash/post-cleanup
|
cat <<-EOF > /tmp/.trash/post-cleanup
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
logger -st ${0##*/} "Cleaning-up..."
|
logger -st ${0##*/} "Cleaning-up..."
|
||||||
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
|
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
|
||||||
mv /etc/conf.d/sshd.orig /etc/conf.d/sshd
|
mv /etc/conf.d/sshd.orig /etc/conf.d/sshd
|
||||||
|
apk del openssh
|
||||||
|
apk del wpa_supplicant
|
||||||
|
rm -rf /etc/wpa_supplicant
|
||||||
|
rm /etc/network/interfaces
|
||||||
|
rm /etc/hostname
|
||||||
rm /etc/modules-load.d/g_ether.conf
|
rm /etc/modules-load.d/g_ether.conf
|
||||||
rm /etc/modprobe.d/g_ether.conf
|
rm /etc/modprobe.d/g_ether.conf
|
||||||
rc-update del local default
|
rc-update del local default
|
||||||
|
|
Loading…
Reference in New Issue