Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DAddYE/3879e6e7a8fbc6c55693 to your computer and use it in GitHub Desktop.
Save DAddYE/3879e6e7a8fbc6c55693 to your computer and use it in GitHub Desktop.

Partition hard drives

Use cfdisk command to create partitions. If you have 1 disk only, you need (at least) 2 partitions:

  1. Boot (/dev/sda1)
  2. Root (/dev/sda2)

Format hard drives

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2

Mount partitions

Mount Root partition:

mount /dev/sda2 /mnt

Create following folders:

mkdir /mnt/{boot,var,home}

Mount Boot partition:

mount /dev/sda1 /mnt/boot

Install base system

pacstrap /mnt base

Install Boot loader

pacstrap /mnt grub-bios

Configure the system

genfstab –p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
mkinitcpio –p linux
grub-mkconfig –o /boot/grub/grub.cfg
grub-install /dev/sda
passwd
exit

Perform post-install tasks

umount /mnt/boot /mnt

Reboot the machine:

systemctl reboot

Network

Interfaces are now prefixed with en (ethernet), wl (WLAN), or ww (WWAN) followed by an automatically generated identifier, creating an entry such as enp0s25.

Grab the adapter name:

ip link

Start the dhcp:

systemctl start dhcpd@en{your_adapt_id}.service

If it works, enable it at boot:

systemctl enable dhcpd@en{your_adapt_id}.service

Commands:

wifi-menu # allows to set up Wireless connection settings.
hostnamectl set-hostname # allows to set up new hostname
timedatectl set-timezone US/Pacific # Sets the time zone to US/Pacific (Timezones are located in /usr/share/zoneinf/)
vi /etc/locale.gen # contains all available locals, uncomment appropriate lines
locale-gen
localectl set-locale LANG="en_US.UTF-8"
systemctl enable dhcpcd@eth0.service # enables DHCP upon boot
systemctl start dhcpcd@eth0.service # starts DHCP
timedate set-local-rtc true # Sets hardware clock to local time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment