#!/bin/sh
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88 | grep [email protected] || exit 1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF > user-data | |
#cloud-config | |
debug: True | |
disable_root: False | |
ssh_deletekeys: False | |
ssh_pwauth: True | |
ssh_authorized_keys: | |
- ssh-rsa XXX | |
# users: |
- Power up the printer, install cartridges
- Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
- Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
- check if printer is reachable on the network: ping 192.168.1.8
- create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp
- install driver from AUR: yaourt brother-dcpj4120dw
All of this should go into a directory that is available via HTTP and NFS. In variables.ipxe you can provide the HTTP root and NFS root paths, which are used later. Also there are some variables to set the default iscsi root (without the last part after the colon) and the initiator iqn. These are used to auto-fill the iscsi menu options.
You should tell iPXE to boot bootstrap.ipxe.
The bootstrap process reads a bunch of files and sets a bunch of variables. Of importance, it will read the file macs/XXXXXXX.ipxe