Last active
November 16, 2025 13:28
-
-
Save askmrsinh/1d4c8cb9f22fb51ae970f5fe0b1f50c4 to your computer and use it in GitHub Desktop.
Post-installation scripts.
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
| #!/bin/bash | |
| sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y | |
| sudo dpkg --configure -a && sudo apt --fix-broken install | |
| sudo rpi-eeprom-update -a | |
| sudo apt install vim zsh git gparted -y | |
| sudo apt update && sudo apt install --only-upgrade rpi-connect | |
| rpi-connect on | |
| rpi-connect signin # complete sign in by visiting https://connect.raspberrypi.com/verify/XXXX-XXXX | |
| sudo reboot |
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
| #!/bin/bash | |
| ## https://docs.docker.com/engine/install/debian/ | |
| sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-doc podman-docker containerd runc | cut -f1) | |
| sudo apt update | |
| sudo apt install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| sudo tee /etc/apt/sources.list.d/docker.sources <<EOF | |
| Types: deb | |
| URIs: https://download.docker.com/linux/debian | |
| Suites: $(. /etc/os-release && echo "$VERSION_CODENAME") | |
| Components: stable | |
| Signed-By: /etc/apt/keyrings/docker.asc | |
| EOF | |
| sudo apt update | |
| sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
| ## enable cgroups memory & swap accounting in /boot/firmware/cmdline.txt | |
| sudo docker info | grep -i cgroup | |
| mkdir ~/Homelab |
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
| #!/bin/bash | |
| ## zsh | |
| sudo apt install zsh -y | |
| ## ohmyzsh | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| ## powerlevel10k | |
| git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k" | |
| sed -i.$(date +%Y%m%d%H%M%S) 's/ZSH_THEME="robbyrussell"/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc | |
| ## To customize prompt, run `p10k configure` (in a local terminal) or edit ~/.p10k.zsh. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment