Arch Linux Time Synchronization - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
⏰ Arch Linux Time Synchronization Guide
Complete beginner-friendly guide to time synchronization on Arch Linux, including NTP, systemd-timesyncd, and timezone configuration.
Table of Contents
⏱ systemd-timesyncd
Enable timesyncd
Enable service:
# Enable timesyncd
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd
# Check status
timedatectl status
Configure timesyncd
Edit config:
# Edit config
sudo vim /etc/systemd/timesyncd.conf
Example:
[Time]
NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org
FallbackNTP=0.pool.ntp.org 1.pool.ntp.org
NTP Configuration
Install NTP
Install NTP:
# Install NTP
sudo pacman -S ntp
# Enable service
sudo systemctl enable ntpd
sudo systemctl start ntpd
Configure NTP
Edit config:
# Edit config
sudo vim /etc/ntp.conf
Add servers:
server 0.arch.pool.ntp.org
server 1.arch.pool.ntp.org
server 2.arch.pool.ntp.org
Time Zone
Set Time Zone
Configure timezone:
# List timezones
timedatectl list-timezones
# Set timezone
sudo timedatectl set-timezone America/New_York
# Check
timedatectl
Hardware Clock
Configure RTC
Set hardware clock:
# Set to UTC
sudo timedatectl set-local-rtc 0
# Set to local time
sudo timedatectl set-local-rtc 1
# Sync
sudo hwclock --systohc
Troubleshooting
Time Not Syncing
Check service:
# Check timesyncd
systemctl status systemd-timesyncd
# Check NTP
systemctl status ntpd
# Restart
sudo systemctl restart systemd-timesyncd
Wrong Time
Sync time:
# Force sync
sudo timedatectl set-ntp true
# Or
sudo ntpdate -s time.nist.gov
Summary
This guide covered time synchronization, NTP, timezone, and hardware clock configuration.
Next Steps
- Arch Linux System Configuration - System setup
- Arch Linux Installation Guide - Installation
- ArchWiki Time: https://wiki.archlinux.org/title/System_time
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.