Arch Post-Installation Checklist: Difference between revisions
Jump to navigation
Jump to search
If you don't have the default `locale.gen` file |
mNo edit summary |
||
Line 1: | Line 1: | ||
= Passwords & User Creation = | |||
Make sure <code>root</code> has a password. | |||
Make sure you have a primary user set up. | |||
# useradd -m -u <id -ge 1000> -g users -G wheel,games,video,audio,optical,storage,scanner,power <user> | |||
# passwd <user> | |||
= Networking = | = Networking = | ||
Line 29: | Line 38: | ||
= SSH Setup = | = SSH Setup = | ||
Look for and edit the following lines: | |||
Port <port> | Port <port> | ||
Line 34: | Line 45: | ||
ListenAddress <ip4-address> | ListenAddress <ip4-address> | ||
ListenAddress <ip6-address> | ListenAddress <ip6-address> | ||
LogLevel VERBOSE | |||
PermitRootLogin prohibit-password | PermitRootLogin prohibit-password | ||
Line 57: | Line 70: | ||
= /etc/fstab = | = /etc/fstab = | ||
= | = Time Zone = | ||
# ln -sf /usr/share/zoneinfo/<region>/<city> /etc/localtime | # ln -sf /usr/share/zoneinfo/<region>/<city> /etc/localtime | ||
# hwclock --systohc | # hwclock --systohc | ||
= /etc/locale.gen = | = Localization = | ||
Un-comment your desired locales in <code>/etc/locale.conf</code>, then run | |||
# locale-gen | |||
If you don't have the default <code>/etc/locale.gen</code> file: | |||
# rm /etc/locale.gen | |||
# pacman -Syu glibc | |||
Edit <code>/etc/locale.conf</code> as you see fit | |||
LANG=en_US.UTF-8 | |||
LANGUAGE=en_US | |||
LC_COLLATE=POSIX | |||
LC_MESSAGES=C | |||
LC_CTYPE=en_US.UTF-8 | |||
LC_NUMERIC=en_US.UTF-8 | |||
LC_TIME=en_US.UTF-8 | |||
LC_MONETARY=en_US.UTF-8 | |||
LC_PAPER=en_US.UTF-8 | |||
LC_NAME=en_US.UTF-8 | |||
LC_ADDRESS=en_US.UTF-8 | |||
LC_TELEPHONE=en_US.UTF-8 | |||
LC_MEASUREMENT=en_US.UTF-8 | |||
LC_IDENTIFICATION=en_US.UTF-8 | |||
Set up <code>/etc/vconsole.conf</code> with a keymap and (optionally) a font: | |||
KEYMAP=us | |||
FONT=Lat2-Terminus16 | |||
= Network = | |||
Put a host name in <code>/etc/hostname</code> | |||
The edit <code>/etc/hosts</code> | |||
127.0.0.1 localhost.localdomain locahost | |||
::1 localhost.localdomain localhost | |||
127.0.1.1 <hostname>.localdomain <hostname> | |||
= Initramfs = | |||
Look for and edit the following lines: | |||
MODULES=([amdgpu|bochs_drm|cirrus|i915|nouveau|(nvidia nvidia_modeset nvidia_uvm nvidia_drm)] [ehci_pci usb_storage]>) | |||
HOOKS=(base udev autodetect modconf block [zfs] filesystems keyboard fsck [encrypt] keymap consolefont) | |||
COMPRESSION=lz4 |
Revision as of 22:01, 4 November 2019
Passwords & User Creation
Make sure root
has a password.
Make sure you have a primary user set up.
# useradd -m -u <id -ge 1000> -g users -G wheel,games,video,audio,optical,storage,scanner,power <user> # passwd <user>
Networking
systemd-networkd
Static Addressing
[Match] MACAddress=<mac-address> [Address] Address=<ip-address>/<mask> [Network] DNS=<ip-address> [Route] Gateway=<ip-address>
Dynamic Addressing
[Match] MACAddress=<mac-address> [Network] DHCP=yes [DHCP] UseMTU=true
SSH Setup
Look for and edit the following lines:
Port <port> AddressFamily <any|inet|inet6> ListenAddress <ip4-address> ListenAddress <ip6-address> LogLevel VERBOSE PermitRootLogin prohibit-password PubkeyAuthentication yes PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no UsePAM yes AllowUsers <space-separated-list-of-users> AllowAgentForwarding no AllowTcpForwarding no
Mirror Selection
# pacman -Syu reflector # reflector -c <country> -p https -l 5 --sort rate --save /etc/pacman.d/mirrorlist
/etc/fstab
Time Zone
# ln -sf /usr/share/zoneinfo/<region>/<city> /etc/localtime # hwclock --systohc
Localization
Un-comment your desired locales in /etc/locale.conf
, then run
# locale-gen
If you don't have the default /etc/locale.gen
file:
# rm /etc/locale.gen # pacman -Syu glibc
Edit /etc/locale.conf
as you see fit
LANG=en_US.UTF-8 LANGUAGE=en_US LC_COLLATE=POSIX LC_MESSAGES=C LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8
Set up /etc/vconsole.conf
with a keymap and (optionally) a font:
KEYMAP=us FONT=Lat2-Terminus16
Network
Put a host name in /etc/hostname
The edit /etc/hosts
127.0.0.1 localhost.localdomain locahost ::1 localhost.localdomain localhost 127.0.1.1 <hostname>.localdomain <hostname>
Initramfs
Look for and edit the following lines:
MODULES=([amdgpu|bochs_drm|cirrus|i915|nouveau|(nvidia nvidia_modeset nvidia_uvm nvidia_drm)] [ehci_pci usb_storage]>) HOOKS=(base udev autodetect modconf block [zfs] filesystems keyboard fsck [encrypt] keymap consolefont) COMPRESSION=lz4