-
-
Save mswell/6ad5e3834adbd87157d3633711bc824e to your computer and use it in GitHub Desktop.
T490 arch install steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are the steps I take to install a fresh copy of Arch Linux on to a Lenovo Thinkpad T490 | |
# Spec: i7; 40gb RAM; | |
# This will go from the very start up to having a base installation ready to add you chosen window manager or desktop environment. | |
# Make a bootable usb stick with the latest version of Arch Linux on. | |
# Plug to into computer and boot. | |
# Connecting to Internet (wifi) | |
iwctl device list | |
iwctl station wlan0 scan | |
iwctl station wlan0 get-networks | |
iwctl --passphrase <YOUR_PASSPHRASE> station wlan0 connect <YOUR_SSID> | |
loadkeys br-abnt2 | |
# Partition the hard drive | |
cfdisk _/dev/disk_ | |
# Delete all old partitions using to ui | |
# Create a new partition of 300M in size | |
# Create a new partition of 16G in size | |
# Create a new partition of the rest of the disk (leave the size as what it puts in for you) | |
# Select "write" and type yes and hit enter for each partition | |
# Making the filesystems in the partitions | |
mkfs.ext4 /dev/nvme0n1p3 | |
mkfs.fat -F32 /dev/nvme0n1p1 | |
mkswap /dev/nvme0n1p2 | |
# Mount a prepare new boot directories | |
mount /dev/nvme0n1p3 /mnt | |
mkdir -p /mnt/boot/efi | |
mount /dev/nvme0n1p1 /mnt/boot/efi | |
swapon /dev/nvme0n1p2 | |
# Initial pacman setup | |
pacman -Sy archlinux-keyring | |
pacstrap /mnt base linux-lts linux-firmware base-devel grub efibootmgr networkmanager | |
genfstab /mnt > /mnt/etc/fstab | |
arch-chroot /mnt | |
# Timezone configuration | |
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime | |
hwclock --systohc | |
pacman -S vim | |
vim /etc/locale.gen | |
# uncommet the line with `en_GB.UTF-8 UTF-8 | |
# Save and exit | |
locale-gen | |
vim /etc/locale.conf | |
# Add "LANG=en_GB.UTF-8" | |
# Save and exit | |
vim /etc/vconsole.conf | |
# ADD "KEYMAP=uk" | |
# Save and exit | |
vim /etc/hostname | |
# Add your chosen hostname | |
# Save and exit | |
passwd | |
# Add and confirm root password | |
# Create non-root user | |
useradd -m -G wheel,audio,optical,storage,video <YOUR_NAME> | |
passwd <YOUR_NAME> | |
# Add and confirm your user password | |
visudo | |
# Uncomment the line with "%wheel ALL=(ALL)ALL" | |
# Save and exit | |
systemctl enable NetworkManager | |
grub-install /dev/sda | |
grub-mkconfig -o /boot/grub/grub.cfg | |
exit | |
umount -a | |
# I was unable to reboot / shutdown using the `reboot` or `shutdown` commands. Something about /proc not being mounted properly. | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment