Sunday, March 19, 2023

Debian Server initial setup commands

Each time I setup a new Debian Server, I always do the same initial commands.  These commands will set the locale, date & time and base softwares.


SETTING LOCALE

dpkg-reconfigure locales


SETTING TIMEZONE

timedatectl
timedatectl list-timezones
timedatectl set-timezone Region/Location
for example: timedatectl set-timezone America/Chicago


UPDATING APT

apt-get update


UPGRADING OPERATING SYSTEM

apt-get upgrade
reboot
apt-get dist-upgrade


INSTALLING BUILD ESSENTIAL

apt-get install build-essential
apt-get install software-properties-common


No comments:

Post a Comment