blob: 35577da08c924b7bec3beeb1b456ec5c4aab8062 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Install Ubuntu
- Download [ubuntu](https://ubuntu.com/download/alternative-downloads)
- Format a USB
- Unmount disk (on MacOS ex. `diskutil unmountDisk /dev/diskX`)
- Create bootable image from iso `sudo dd if=/path/to/image.iso of=/dev/diskX bs=4M status=progress`
- Boot the `ubuntu` live image from a bootable USB
- Connect to wireless network (if not connected via LAN)
- Set root password (which will be asked to run the install playbook)
- Set the host name `ubuntu-<MACHINE>-iso.local`
- Install and configure ssh
- `cp host_vars/ubuntu-<MACHINE>-iso.local.example host_vars/ubuntu-<MACHINE>-iso.local`
- Update the `host_vars/ubuntu-<MACHINE>-iso.local` file
- Run the playbook on the ansible controller
**Example:**
```bash
hostnamectl set-hostname ubuntu-<MACHINE>-iso
passwd
nmcli dev wifi connect <SSID> password <PASSPHRASE>
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y openssh-server
sudo systemctl restart ssh avahi-daemon
```
**Mac Example:**
On a machine with internet connection, download the Apple missing drivers dependencies
- Get the kernel version from the live ISO (ex. `uname -r`)
- Use the distro name and kernel version to download dependencies (ex. `./hacks/ubuntu/mac-drivers.sh noble 6.11.0-17-generic`)
- Copy downloaded dependencies (in `/tmp/bcmwl-drivers-<kernel-version>`) to the USB
On the Ubuntu Live ISO
```bash
sudo mkdir /media/usb
lsblk
sudo mount /dev/sdX1 /media/usb
cp -r /media/usb/bcmwl-drivers-<kernel-version> /tmp/bcmwl
bash /tmp/bcmwl/install-wl.sh
ip link
hostnamectl set-hostname ubuntu-macbook-iso
passwd
nmcli dev wifi connect <SSID> password <PASSPHRASE>
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y openssh-server
sudo systemctl restart ssh avahi-daemon
```
|