Ubuntu Linux is a popular, open-source operating system based on Linux. It is designed to be easy to use, secure, and suitable for desktops, servers, and cloud environments. It is developed and maintained by Canonical Ltd.
In this blog post we will document basic Ubuntu Linux operational procedures.
OS Update Procedure
cat /etc/debian-version # because Ubuntu is based on Debian
root@acs-ubuntu-01:/etc#lsb_release -aNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.4 LTS Release: 24.04 Codename: noble root@acs-ubuntu-01:/etc#
# Removes conflicting or obsolete packages if necessary
# Reboot if needed
reboot
Typical procedure to add user
# Add user to group sudo and dpasek (if group does not exist, it is created)
# Change password
passwd dpasek
Procedure to change hostname
hostnamectl status
# Change hostname
Procedure to change IP and DNS Settings
ip a
# Check network configuration
cat /etc/netplan/50-cloud-init.yaml
root@acs-ubuntu-02:~#cat /etc/netplan/50-cloud-init.yamlnetwork: version: 2 ethernets: ens33: addresses: - "192.168.8.111/24" nameservers: addresses: - 192.168.4.5 search: - home.uw.cz routes: - to: "default" via: "192.168.8.254" root@acs-ubuntu-02:~#
# Change network configuration
# You get 120 seconds to confirm
# If you lose connection or do not confirm → system automatically rolls back
Procedure to set Time Servers
On Ubuntu Server, time synchronization is typically handled by systemd-timesyncd (default) or sometimes chrony in server environments.
Here is the standard procedure using systemd-timesyncd.
Check current time status
timedatectl
root@acs-ubuntu-02:~#timedatectlLocal time: Tue 2026-03-03 20:27:30 UTC Universal time: Tue 2026-03-03 20:27:30 UTC RTC time: Tue 2026-03-03 20:27:30 Time zone: Etc/UTC (UTC, +0000) System clock synchronized: yes NTP service: active RTC in local TZ: no root@acs-ubuntu-02:~#
Edit the time server configuration
Example configuration
[Time]
NTP=0.pool.ntp.org 1.pool.ntp.org
FallbackNTP=2.pool.ntp.org 3.pool.ntp.org
Enable NTP (if disabled)
timedatectl set-ntp true
Restart the time synchronization service
Check and Verify NTP time servers
Installation of basic tools for Unix administration
When Ubuntu Server is installed as minimal, there are not even basic tools for Unix administration. Let's install basic ones to be able to do effective administration.
- vi, vim
- ping
Conclusion
Hope these Ubuntu basic operational procedures helps someone.
No comments:
Post a Comment