Created
July 23, 2022 10:20
-
-
Save KevinMX/3db4ae42e4d70b5da754ea2c9fabe41b to your computer and use it in GitHub Desktop.
Debian 11 bullseye auto reinstall via bohanyang/debi
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 | |
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh | |
export SSHPORT=12345 | |
export PASSWORD=12345678 | |
sudo ./debi.sh --cdn --network-console --ethx --bbr --user mx --password $PASSWORD --version 11 \ | |
--authorized-keys-url https://github.com/KevinMX.keys --timezone Asia/Shanghai --filesystem xfs \ | |
--install 'htop tmux git vim curl wget aria2 socat' --https --hostname daydream --firmware --grub-timeout 5 --ssh-port $SSHPORT | |
#Docker install (after reboot) | |
sudo apt update && sudo apt -y install lsb-release gnupg curl ca-certificates | |
sudo mkdir -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
sudo apt -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment