new-install

Notes on OS intalls
git clone https://git.bracken.jp/new-install.git
Log | Files | Refs | LICENSE

commit a4c52a42dbd4b4cea62149735b605aebc62b2a0c
parent e1a4e36dbb373a54e16437e0a9afddba50c63e82
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu, 29 Jul 2021 09:52:46 -0700

arch: update dhcpcd and ntpd instructions

Moves installation of dhcpcd and ntpd earlier in the install process.
Diffstat:
March_install.md | 76++++++++++++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 44 insertions(+), 32 deletions(-)

diff --git a/arch_install.md b/arch_install.md @@ -284,6 +284,49 @@ The file contents should just contain the IPv4 and IPv6 entries for localhost: 127.0.0.1 localhost ::1 localhost + +### Configure DHCP + +Arch, and most Linux distributions these days, use [systemd][systemd_guide] to +manage running daemons and logging. Now would be a good time do read up on it. + +Install [dhcpcd][dhcpcd_guide]: + + pacman -S dhcpcd + +Edit the configuration in `/etc/dhcpcd.conf` to add the interface to configure at the top of the file: + + interface eno1 + +Enable the service: + + systemctl enable dhcpcd.service + + +### Configure NTP + +Install [ntpd][ntpd_guide]: + + pacman -S ntp + +Then edit the `/etc/ntpd.conf`. It's recommended to add the `iburst` option at +the end of every `server` line in the config file. This triggers a burst of +packets only if it cannot obtain a connection on the first attempt. Do not use +the `burst` option, which sends a burst of packets on _all_ attempts and can +get you blacklisted. + +Finally, enable the service: + + sudo systemctl enable ntpd.service + + +Enable and start the NTP service: + + sudo systemctl enable ntpd.service + sudo systemctl start ntpd.service + + + ### Initramfs The initial ramdisk is a very small environment which loads various kernel @@ -440,38 +483,6 @@ First, we install core packages we can't live without: sudo pacman -S openssh -### Configure DHCP - -Arch, and most Linux distributions these days, use [systemd][systemd_guide] to -manage running daemons and logging. Now would be a good time do read up on it. - -First, we'll enable [dhcpcd][dhcpcd_guide], the system DHCP client: - - sudo systemctl enable dhcpcd.service - - -### Configure NTP - -To ensure the system clock remains synchronized to network time, we install -the `ntp` network time daemon: - - sudo pacman -S ntp - -Once installed, we edit the config file: - - sudo vi /etc/ntpd.conf - -It's recommended to add the `iburst` option at the end of every `server` line -in the config file. This triggers a burst of packets only if it cannot obtain a -connection on the first attempt. Do not use the `burst` option, which sends a -burst of packets on _all_ attempts and can get you blacklisted. - -Enable and start the NTP service: - - sudo systemctl enable ntpd.service - sudo systemctl start ntpd.service - - ### Configure auto-mounting USB devices Next, we'll set up automounting USB disks. Since many of these are FAT32 @@ -647,6 +658,7 @@ These instructions are out-of-date and probably a bad idea: [lvm_guide]: https://wiki.archlinux.org/index.php/LVM [systemd_guide]: https://wiki.archlinux.org/index.php/Systemd [dhcpcd_guide]: https://wiki.archlinux.org/index.php/Dhcpcd +[ntpd_guide]: https://wiki.archlinux.org/title/Network_Time_Protocol_daemon [mkinitcpio_guide]: https://wiki.archlinux.org/index.php/mkinitcpio [uefi_guide]: https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface [cups_guide]: https://wiki.archlinux.org/index.php/CUPS