From dcfb438f345edbd25e45d744911367544635284f Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 13 Mar 2023 19:54:52 +0100 Subject: [PATCH] arch linux: ntp added to sync time --- wiki/linux/arch-linux/installation.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wiki/linux/arch-linux/installation.md b/wiki/linux/arch-linux/installation.md index a8ad4b8..ae540f6 100644 --- a/wiki/linux/arch-linux/installation.md +++ b/wiki/linux/arch-linux/installation.md @@ -106,7 +106,7 @@ Now the created filesystems will be mounted for the installation. Now you need a working internet connection. Plug in your lan cable or use `wifi-menu` to get a wireless connection. -- `pacstrap /mnt base base-devel dosfstools gptfdisk lvm2 linux linux-firmware vim networkmanager` +- `pacstrap /mnt base base-devel dosfstools gptfdisk lvm2 linux linux-firmware vim networkmanager ntp` - `genfstab -Up /mnt > /mnt/etc/fstab` - creation of fstab - `arch-chroot /mnt` - Switch into the newly installed system - `echo ArchLinux > /etc/hostname` - Assign hostname. `ArchLinux` can be changed @@ -128,10 +128,9 @@ en_US.UTF-8 UTF-8 - `echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf` - set the keymap - `ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime` - set your timezone (select the first file accordingly to your location) -- `date +%Y%m%d -s ""` - set the current date (change - values accordingly) -- `date +%T -s ""` - set the current time (change values accordingly) -- `hwclock -w` - sync the current date and time with the hardware clock +- `ntpdate -q 0.de.pool.ntp.org` - sync the time and date with + [NTP](/wiki/linux/ntp.md) (note that a german time server is used and + depending on the needs a adjustments should be made) ## 8. Configure and create kernel-image