Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tldr arch linux installation guide #4

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

stinethebean3
Copy link
Member

WIP Do Not Merge. Comments welcome.

2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
2-Operating-Systems/1-arch.md Outdated Show resolved Hide resolved
@lrvick lrvick requested a review from daurnimator April 28, 2019 22:39
loadkeys de-latin1
```

5. If needed: Change rotation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't obvious: rotation of what?

Also I've never had an issue with wrong rotation before. Is this something you've experienced?


7. Connect to the internet

1. Select and join a wireless network with `wifi-menu`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need instructions for non-wireless too :P


```
sgdisk \
-Zo `# zero out any existing partitions` \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting: you probably didn't want backticks around the comments here

# decrypt drive and expose as /dev/mapper/cryptroot
cryptsetup open /dev/mmcblk0p2 cryptroot

# make journaled ext4 partition in decrypted root device
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait... why are we recommending ext4?
btrfs is a much better choice for most people I can imagine reading things.

11. Select the Mirrors

```
pacman -Sy reflector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing pacman -Sy to a new user is dangerous. I would recommend you separate it into pacman -Syu and then pacman -S reflector


```
pacstrap /mnt base sudo dialog wpa_supplicant iw vim git \
pcsclite libu2f-host chromium arandr compton i3-wm i3status \   dmenu kitty nitrogen slock xorg xorg-xinit xf86-video-intel \   ccid opensc openssh haveged pulseaudio pulseaudio-alsa \   pulsemixer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manual line wrapping is off here


```
pacman -S \
sudo `# "super user do": run commands as root` \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting (backticks around comments)

21. Create a user with super user rights

```
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could just uncomment existing line rather than appending.

# Create the hostname file
hostnamectl set-hostname computername

# Specify new hostname for the network
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I don't bother with this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just echo 'HOSTNAME' > /etc/hostname?

1. Shutdown

```
exit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to be indented differently

mkfs.ext4 -j /dev/mapper/cryptroot
```

10. Mount the file systems
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's expand on this a little. Do more of the ELIA5. I had someone run through this and /dev/mmcblk0p1 tripped them up a bit. Maybe put an example above with a breakdown of /dev/mmcblk0 and /dev/mmcblk0p1. Since these strings are a little long, someone may not catch that immediately.

Explanation:

```
pacman -S \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the command above for installing packages is pacstrap but the explanation uses pacman

```
# Get name of wireless device
ip addr # Usually starts with wl such as "wlp1s0"
systemctl enable netctl-auto@wlp1s05
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either needs a sudo or a clarification that you should be root at this point. maybe do step 25 first as the user then escalate back to root then run this command or just add sudo here and on 26

Copy link
Member

@daurnimator daurnimator Jun 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? systemctl should attempt elevation if you're not root. But also, most things in this guide require/assume root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants