Skip to content

Commit

Permalink
Raise inotify watches limit
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjaap authored Mar 1, 2025
1 parent 1eca5f1 commit fd8cf70
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions autoinstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,30 +76,35 @@ autoinstall:
- curtin in-target -- resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

# Install Brave
- curtin in-target --target=/target -- wget -qO- https://dl.brave.com/install.sh | sh
- curtin in-target -- wget -qO- https://dl.brave.com/install.sh | sh

# Installing Warp
- curtin in-target --target=/target -- /bin/bash -c "wget --content-disposition -O /warp.deb 'https://app.warp.dev/download?package=deb' && dpkg -i /warp.deb"
- curtin in-target -- /bin/bash -c "wget --content-disposition -O /tmp/warp.deb 'https://app.warp.dev/download?package=deb' && dpkg -i /tmp/warp.deb"

# Raise inotify watches limit
- curtin in-target -- sh -c 'echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf'
- curtin in-target -- sh -c 'echo "fs.inotify.max_user_instances=512" >> /etc/sysctl.conf'
- curtin in-target -- sh -c 'sysctl -p'

# Installing 1password-cli
- curtin in-target --target=/target -- wget -O /tmp/1password.asc https://downloads.1password.com/linux/keys/1password.asc
- curtin in-target --target=/target -- gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg /tmp/1password.asc
- curtin in-target --target=/target -- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | tee /etc/apt/sources.list.d/1password.list
- curtin in-target --target=/target -- mkdir -p /etc/debsig/policies/AC2D62742012EA22/
- curtin in-target --target=/target -- wget -O /etc/debsig/policies/AC2D62742012EA22/1password.pol https://downloads.1password.com/linux/debian/debsig/1password.pol
- curtin in-target --target=/target -- mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22
- curtin in-target --target=/target -- wget -O /tmp/debsig.gpg https://downloads.1password.com/linux/keys/1password.asc
- curtin in-target --target=/target -- gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg /tmp/debsig.gpg
- curtin in-target --target=/target -- apt update
- curtin in-target --target=/target -- apt install -y 1password 1password-cli
- curtin in-target -- wget -O /tmp/1password.asc https://downloads.1password.com/linux/keys/1password.asc
- curtin in-target -- gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg /tmp/1password.asc
- curtin in-target -- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | tee /etc/apt/sources.list.d/1password.list
- curtin in-target -- mkdir -p /etc/debsig/policies/AC2D62742012EA22/
- curtin in-target -- wget -O /etc/debsig/policies/AC2D62742012EA22/1password.pol https://downloads.1password.com/linux/debian/debsig/1password.pol
- curtin in-target -- mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22
- curtin in-target -- wget -O /tmp/debsig.gpg https://downloads.1password.com/linux/keys/1password.asc
- curtin in-target -- gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg /tmp/debsig.gpg
- curtin in-target -- apt update
- curtin in-target -- apt install -y 1password 1password-cli

# Install oh-my-zsh
- curtin in-target --target=/target -- sh -c "$(wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- curtin in-target -- sh -c "$(wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Install nvm
- curtin in-target --target=/target -- wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
- curtin in-target -- wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

# Installing Gnome extensions
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]
#- curtin in-target -- gnome-extensions enable [email protected]
#- curtin in-target -- gnome-extensions enable [email protected]
#- curtin in-target -- gnome-extensions enable [email protected]

0 comments on commit fd8cf70

Please sign in to comment.