arch linux: ntp added to sync time

master
tiyn 2 years ago
parent d8ce5b597d
commit dcfb438f34

@ -106,7 +106,7 @@ Now the created filesystems will be mounted for the installation.
Now you need a working internet connection. Now you need a working internet connection.
Plug in your lan cable or use `wifi-menu` to get a wireless 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 - `genfstab -Up /mnt > /mnt/etc/fstab` - creation of fstab
- `arch-chroot /mnt` - Switch into the newly installed system - `arch-chroot /mnt` - Switch into the newly installed system
- `echo ArchLinux > /etc/hostname` - Assign hostname. `ArchLinux` can be changed - `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 - `echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf` - set the keymap
- `ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime` - set your timezone - `ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime` - set your timezone
(select the first file accordingly to your location) (select the first file accordingly to your location)
- `date +%Y%m%d -s "<yyyymmdd>"` - set the current date (change - `ntpdate -q 0.de.pool.ntp.org` - sync the time and date with
values accordingly) [NTP](/wiki/linux/ntp.md) (note that a german time server is used and
- `date +%T -s "<hh:mm:ss>"` - set the current time (change values accordingly) depending on the needs a adjustments should be made)
- `hwclock -w` - sync the current date and time with the hardware clock
## 8. Configure and create kernel-image ## 8. Configure and create kernel-image

Loading…
Cancel
Save