Skip to content

Instantly share code, notes, and snippets.

@mantono
Last active September 24, 2017 12:31
Show Gist options
  • Save mantono/caf2d0c800772ffede6d3f3588e3499e to your computer and use it in GitHub Desktop.
Save mantono/caf2d0c800772ffede6d3f3588e3499e to your computer and use it in GitHub Desktop.
Install Arch - Basic commands adjusted for my need
#!/bin/zsh
# Set Swedish keymap
loadkeys sv-latin1
# Verfiy that we are using UEFI
ls /sys/firmware/efi/efivars
# Check that internet works
ping archlinux.org
# Update system time
timedatectl set-ntp true
# Setup disks
fdisk -l
#### A LOT OF STUFF IS MISSING HERE
#### AFTER INSTALL
useradd -m -g wheel -G audio -s /bin/zsh anton
# list network interfaces
ip link
# start network interface
ip link set INTERFACE up
# get a dynamic IP
dhcpcd INTERFACE
systemctl enable dhcpcd.service
# upgrade packages with pacman
pacman -Syu
# install ssh
pacman -S openssh
systemctl enable sshd.service
# Find wireless device (if existing/needed)
lspci -v|grep -i net
# OR
lspci -vnn -d 14e4:
# For Broadcom: https://wiki.archlinux.org/index.php/Broadcom_wireless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment