Update Packages and OS
Run the command to update the installation
sudo apt update && sudo apt upgrade -y
If you are on a laptop
Battery saving
use tlp package for better battery savings
# Install tlp
# More info: https://linrunner.de/tlp/index.html
sudo apt-get install tlp tlp-rdw
# Start tlp
sudo systemctl enable tlp --now
Configure default settings
Timezone
Set timezone and check settings
# Set timezone to Asia/Singapore
sudo timedatectl set-timezone Asia/Singapore
# Check timezone settings
timedatectl
NTP Client
Add NTP server in /etc/systemd/timesyncd.conf file
# Configure ntp server address
sudo sed -i '/^#NTP=/a NTP=ntp.example.com' /etc/systemd/timesyncd.conf
sudo sed -i '/^#FallbackNTP=.*/a FallbackNTP=ntp.ubuntu.com' /etc/systemd/timesyncd.conf
# Restart NTP client service
sudo systemctl restart systemd-timesyncd
# Check NTP client setting is applied
systemctl status systemd-timesyncd
# Check time settings are applied
timedatectl timesync-status
Unattended Upgrade
# Install unattended-upgrades
sudo apt install -y unattended-upgrades
# Testing installation
# In the output, we're interested in seeing if there's any error
sudo unattended-upgrade -d -v --dry-run
# Enabling unattended-upgrades
# Click YES on the warning page
# Configuration can be found at /etc/apt/apt.conf.d/ folder
sudo dpkg-reconfigure --priority=low unattended-upgrades
Sudo without password
sudo visudo
# Add at the end of the line
[username] ALL=(ALL) NOPASSWD:ALL
Password Requirements
Proceed at your own risk
- Edit /etc/security/pwquality.conf
difok = 0
minlen = 6
dictcheck = 0