-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoinstall.yml
45 lines (45 loc) · 2.51 KB
/
autoinstall.yml
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
autoinstall:
version: 1
source:
id: ubuntu-desktop-minimal
interactive-sections:
- network
- keyboard
- storage
timezone: Europe/Madrid
locale: es_ES
packages:
- build-essential
- ca-certificates
- apt-transport-https
- gpg
- wget
- curl
- git
- golang-1.22
- python-is-python3
- nodejs
- npm
- pigz
snaps:
- name: discord
classic: false
updates: all
shutdown: reboot
late-commands:
- curtin in-target -- install -m 0755 -d /etc/apt/keyrings
- curtin in-target -- curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
- curtin in-target -- chmod a+r /etc/apt/keyrings/docker.asc
- curtin in-target -- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
- curtin in-target -- curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
- curtin in-target -- echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
- curtin in-target -- wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
- curtin in-target -- echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list
- curtin in-target -- wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
- curtin in-target -- sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
- curtin in-target -- echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
- curtin in-target -- rm -f packages.microsoft.gpg
- curtin in-target -- add-apt-repository ppa:deadsnakes/ppa -y
- curtin in-target -- apt update
- curtin in-target -- apt upgrade
- curtin in-target -- apt install cloudflare-warp cloudflared firefox docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin code python3.12 python3.12-venv