Skip to content

Instantly share code, notes, and snippets.

@coder4web
Last active June 29, 2023 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coder4web/41ec99e372bad653e2b5acb0642a81d9 to your computer and use it in GitHub Desktop.
Save coder4web/41ec99e372bad653e2b5acb0642a81d9 to your computer and use it in GitHub Desktop.
Debian initial setup (v10 - v12)
#!/bin/sh
apt-get update && apt-get upgrade
apt install -y dialog
# ------------------------
# INITIAL
# ------------------------
# see https://gist.github.com/coder4web/5fe1bb155d8957558911
dpkg-reconfigure locales
date
dpkg-reconfigure tzdata
# ------------------------
# ESSENTIALS
# ------------------------
apt install -y mc nano screen
apt install -y apt-transport-https bzip2 gnupg2 htop localepurge logrotate rsync sudo xz-utils
apt install -y curl dnsutils wget net-tools
#apt install fio iperf3
#sysv-rc-conf
# ------------------------
# VCS
# ------------------------
apt-cache policy git && apt-get install git
git --version #2.39.2
git config --global pull.rebase false
# ------------------------
# UPDATE AND CLEAR
# @see https://gist.github.com/coder4web/53fe17d49a0366d43087
# ------------------------
apt-get update && apt-get upgrade
apt-get remove bind9* apache2* samba*
apt-get autoremove && apt-get clean && apt-get autoclean
# ------------------------
# MONIT
# ------------------------
uname -a
cat /etc/debian_version
df -H
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment