wiki/Archguide.md

74 lines
1.4 KiB
Markdown
Raw Normal View History

2019-04-23 02:14:47 +00:00
---
title: Arch Linux Install guide
description:
published: true
2019-06-01 21:39:37 +00:00
date: 2019-06-01T21:39:34.364Z
2019-04-23 02:14:47 +00:00
tags:
---
# Let's start.
This assumes your target disk is /dev/sda, you are running UEFI, you want rEFInd because it's cool, you are wired into ethernet for the install process, you use US keyboard, and mostly understand english
2019-06-01 21:39:25 +00:00
Alternatively, check out [our installer](https://git.fosc.space/fosc/fosc-arch-installer)
2019-04-23 02:14:47 +00:00
## Partitioning
cgdisk /dev/sda
/dev/sda1 200M (ef00) /boot
/dev/sda2 $REST_OF_HDD (8300) /
2019-06-01 21:39:25 +00:00
```
mkfs.vfat -F 32 /dev/sda1
mkfs.ext4 /dev/sda2
2019-04-23 02:14:47 +00:00
2019-06-01 21:39:25 +00:00
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
```
2019-04-23 02:14:47 +00:00
## Actual install
Install all packages needed (add what you need!)
`pacstrap -i /mnt base base-devel refind-efi xorg-server gnome gnome-extra firefox networkmanager htop zsh grml-zsh-config`
2019-06-01 21:39:25 +00:00
`genfstab -U /mnt >> /mnt/etc/fstab`
2019-04-23 02:14:47 +00:00
## Get in there to configure
2019-06-01 21:39:37 +00:00
`arch-chroot /mnt /bin/zsh`
2019-04-23 02:14:47 +00:00
2019-06-01 21:39:25 +00:00
```
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
2019-04-23 02:14:47 +00:00
locale-gen
2019-06-01 21:39:25 +00:00
```
2019-04-23 02:14:47 +00:00
## Users
2019-06-01 21:39:25 +00:00
```
2019-04-23 02:14:47 +00:00
passwd
chsh root -s /bin/zsh
useradd -m -G wheel -s /bin/zsh user
passwd user
2019-06-01 21:39:25 +00:00
```
2019-04-23 02:14:47 +00:00
## Enable services
2019-06-01 21:39:25 +00:00
```systemctl enable NetworkManager gdm```
2019-04-23 02:14:47 +00:00
## Bootloader
2019-06-01 21:39:25 +00:00
`refind-install`
2019-04-23 02:14:47 +00:00
## Kernel cmdline
Basically edit your boot options to be 'rw root=/dev/sda2', as sometimes rEFInd doesn't make this automatically
2019-06-01 21:39:25 +00:00
`nano /boot/refind_linux.conf`
2019-04-23 02:14:47 +00:00
## Git out
2019-06-01 21:39:25 +00:00
`exit`
`reboot`