#Arch manual installation support

1608 messages · Page 2 of 2 (latest)

remote bane
#

200g???

#

Ohh

waxen osprey
#

Nah I just copied a format

remote bane
#

Fk

#

Forgot to write

#

Just give the commands

#

The next ones

waxen osprey
#

Ok.

#

Make sure you setup the partitions like that

#

mkfs.fat -F32 /dev/nvme0n1p1

#

cryptsetup luksFormat /dev/nvme0n1p2

#

cryptsetup open /dev/nvme0n1p2 cryptroot

#

mkfs.btrfs /dev/mapper/cryptroot

#

cryptsetup luksFormat /dev/nvme0n1p4

#

cryptsetup open /dev/nvme0n1p4 crypthome

#

mkfs.btrfs /dev/mapper/crypthome

#

mkswap /dev/nvme0n1p3
swapon /dev/nvme0n1p3

#

mount -o noatime,compress=zstd,space_cache=v2 /dev/mapper/cryptroot /mnt

#

btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@snapshots

#

umount /mnt
mount -o noatime,compress=zstd,space_cache=v2,subvol=@ /dev/mapper/cryptroot /mnt

#

mkdir -p /mnt/{boot,home}

#

mount -o noatime,compress=zstd,space_cache=v2 /dev/mapper/crypthome /mnt/home

#

btrfs subvolume create /mnt/home/@home

#

umount /mnt/home
mount -o noatime,compress=zstd,space_cache=v2,subvol=@home /dev/mapper/crypthome /mnt/home

#

mount /dev/nvme0n1p1 /mnt/boot

#

lsblk /dev/nvme0n1

#

Send me a screenshot

remote bane
#

Srrsrrry took me a LONG ass time to type

waxen osprey
#

Ahh perfect dude

#

pacstrap /mnt base linux linux-firmware

remote bane
#

Give me all the packages

waxen osprey
#

genfstab -U /mnt >> /mnt/etc/fstab

remote bane
#

Throw in chromium as well

waxen osprey
#

You can pick em up as your user

#

So no permissions are fucked

remote bane
#

Ohh

#

Ok

#

No errors plsplsplsplspls

waxen osprey
#

Smooth sailing now fluks should be happy

remote bane
#

What did u change that time?

#

So that luks wouldn't fuck me in the face

waxen osprey
#

Nothing we just did them in the correct order

#

Without the wrong /dev/

remote bane
#

So in the future, if I fuvk up like that I just have to reset my machine every time?

waxen osprey
#

No

remote bane
waxen osprey
#

You wont be doing anything on this scale of breakability

waxen osprey
#

I'll explain once we get to a usre

#

user

remote bane
#

And if so def gonna experiment on VMS

waxen osprey
#

cat /mnt/etc/fstab verify it

remote bane
#

Seems good

waxen osprey
#

arch-chroot /mnt

#

Aright good back where we were

remote bane
#

Check it

#

Should I wait for u to tell me to type since now it's chroot mode?

waxen osprey
#

Yes please

remote bane
#

Ok srysry

waxen osprey
#

Where are you from

remote bane
waxen osprey
#

I'll fill out the time zone info

remote bane
#

Ohh

#

I'm in USA

waxen osprey
#

Where would you like the timezone

remote bane
#

Pdt

#

Pacific daylight timezone

waxen osprey
#

So

#

LA would work

remote bane
#

Yea

#

Sorry should've said that frm the statt

#

Start*

#

Ohh yah we still in chroot btw

#

So uh take that into account

waxen osprey
#

ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
hwclock --systohc

#

We need to be

remote bane
#

to bee???

#

Also can I type

waxen osprey
#

Yeah sorry

#

nano /etc/locale.gen

#

Uncomment en_US.UTF-8 UTF-8

#

Remove the # in front of it

#

locale-gen

#

echo "LANG=en_US.UTF-8" > /etc/locale.conf

#

echo "arch" > /etc/hostname

remote bane
#

Is it just 1 dash or r u sure that it's 2

waxen osprey
#

It should be two separate commands my fault

remote bane
#

Bash: nano, command not found

#

Ohh right. We never got the basic pkg

waxen osprey
#

Oh yeah we gotta rock vim

#

change nano to vim or exit chroot and grab nano

remote bane
#

How do I grab nano

waxen osprey
#

pacman -S nano

remote bane
#

Done

waxen osprey
#

then arch-chroot /mnt

remote bane
#

Nano still not found

#

Wtf

#

Vim also not found

waxen osprey
#

exit

remote bane
#

Yeh then it works

waxen osprey
#

pacstrap -i /mnt base base-devel

#

Might take minute

remote bane
#

Done

waxen osprey
#

Cool

#

chroot again

#

If we have to run pacman -S nano again

remote bane
#

Still not found

waxen osprey
#

Ok run pacman -S nano in chrot

#

chroot

remote bane
#

Hopefully I don't break anything

#

Done

waxen osprey
#

It wont

#

Promise

remote bane
#

Works now

waxen osprey
#

Ok so nano /etc/locale.gen

#

uncomment en_US.UTF-8 UTF-8

#

You can go I'm making sure everything is spot on

#

Once done lmk

remote bane
#

Ohh ok

#

Done

waxen osprey
#

locale-gen

remote bane
#

How do I save again?

#

Cntrl x

#

And then y yea?

waxen osprey
#

echo "LANG=en_US.UTF-8" > /etc/locale.conf

#

Yes ctrl+x y enter

#

echo "myarch" > /etc/hostname

#

nano /etc/hosts

remote bane
#

My arch is whatever name I want or?

waxen osprey
#

Yes

#
::1             localhost
127.0.1.1       myarch.localdomain myarch```
#

passwd Sets the root password

#

pacman -S cryptsetup btrfs-progs

#

nano /etc/mkinitcpio.conf

remote bane
#

When do I exit chroot

#

Can I run those?

waxen osprey
#

Later

#

We are almost done

#

Run em baby

#

Insidde /etc/mkinitcpio.conf look for HOOKS=

#

Match it to this
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems btrfs fsck)

remote bane
#

It's taking forever to download

waxen osprey
#

Yeah we will rank your mirrors out of the iso

remote bane
#

It's missing encrypt

waxen osprey
#

Yeah make yours match it

remote bane
#

Ohh, all the hooks?

waxen osprey
#

Mhm those are all you'll need

#

mkinitcpio -P

remote bane
#

Holdon there's like 5 hooks and I have no copy pastr

waxen osprey
#

All good

#

We are about finished

#

Do you have a bootloader in mind or you don't care?

remote bane
remote bane
#

Also that right?

#

Can I save it, safely

waxen osprey
#

Looks good

remote bane
#

What's happening

#

Errors

#

Ohh fuck

#

Fuck I did encyrpt instead of encrypt

waxen osprey
#

Yup lol

#

pacman -S grub efibootmgr

remote bane
#

I may or may not have ran the other command already

#

D:

waxen osprey
#

Nah you're supposed to

#

The mkinitcpio?

remote bane
#

Ohh I was about to lose it if I had to redo it

remote bane
waxen osprey
#

Nope we still good

remote bane
#

What bootloader do you recommend?

#

I just had grub cause heard it's reliable

waxen osprey
#

I use GRUB or systemd-boot

remote bane
#

Grub it is!

waxen osprey
#

GRUB is nice

remote bane
#

Now what

#

So what did we just do

waxen osprey
#

nano /etc/default/grub

#

Installed grub

remote bane
#

Mkinitcpio

waxen osprey
#

Now we are going to configure it for btrfs

remote bane
#

K

waxen osprey
#

Creates your initial ramdisk environment

remote bane
#

Check that out

#

Uncomment that to enable booting from Luke encrypted devices

waxen osprey
#

Ok find GRUB_CMDLINE_LINUX_DEFAULT

remote bane
#

Found it

waxen osprey
#

Let's actually run UUID

#

Quit the nano session

remote bane
#

Uuid?

waxen osprey
#

and run blkid /dev/nmve1n1p2

#

Yeah unique id for partition incase disks swap identifiers again

remote bane
#

It's 0

waxen osprey
#

I need the UUID

remote bane
#

Mb

waxen osprey
#

GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=ff1e8357-6eee-4d19-97ad-af315692b812:cryptroot root=/dev/mapper/cryptroot rw rootflags=subvol=@" Confirm before you match the lines

#

UncommentGRUB_ENABLE_CRYPTODISK=y

remote bane
waxen osprey
#

yep

#

Remove the # in front of its line

remote bane
#

K

waxen osprey
#

Ok

#

Let's try and mount efi real quick for GRUB

remote bane
#

Done commands

#

Hopefully I did em right

waxen osprey
#

mount | grep /boot

remote bane
#

Done

waxen osprey
#

It return something?

remote bane
#

Yep

waxen osprey
#

Ok

#

grub-install /dev/nvme0n1

remote bane
#

Cannot find EFI directory

#

....

waxen osprey
#

Ok thats ok

#

We just need to add it. I was going for systemd-boot but GRUB is fine

#

umount /dev/nvme0n1p1

#

or umount /boot

remote bane
#

Did second one

#

Dont even wanna risk typos at this point

waxen osprey
#

ok mkdir -p /efi

remote bane
#

Done

waxen osprey
#

mount /dev/nvme0n1p1 /efi

remote bane
#

Not an error ....but

waxen osprey
#

Yeah thats fine.

remote bane
#

k

#

Now? @waxen osprey

waxen osprey
#

mount | grep /mnt

#

Verify we are good

remote bane
#

Returned nothing

waxen osprey
#

lsblk

#

and screenshot

remote bane
#

Still in chroot

waxen osprey
#

Yes that's why you didn't get a return just thinking if we really need to exit

#

Fuck it exit

#

Lets double check

#

mount | grep -E '/mnt|/efi|/home'

#

Should return 3 entries

#

nvme0n1p1 cryptroot crypthome

remote bane
#

Uhh oh

#

...

#

5

waxen osprey
#

Screenshot

remote bane
#

Ig u could say it gave back 2 extras...?

waxen osprey
#

First one is ok

#

The one im concerned with is the double /mnt points

remote bane
#

So how do I fix that...

#

Wanna just try and boot it?

#

It's 1:30 am and I still have hw to do

#

Ohh wait

#

I Could try unmounting

#

And then reassigning the /mnt

waxen osprey
#

cat /mnt/etc/crypttab

remote bane
waxen osprey
#

cat /mnt/etc/fstab

remote bane
#

@waxen osprey

waxen osprey
#

Idk how the hell we ended up with two root mount points

remote bane
#

Fk...

waxen osprey
#

You didn't accidently send one with / and /@

#

It's ok we can fix it

#

Just don't what the fuck happened there

remote bane
#

So like

#

How

#

Dude

#

Wanna just wing the boot

#

See what happens

#

Or we can try n fix this

waxen osprey
#

blkid /dev/mapper/cryptroot /dev/nvme0n1p1 /dev/mapper/crypthome /dev/nvme0n1p3 /dev/nvme0n1p4

remote bane
waxen osprey
#

Ok now we need to confirm UUIDs

remote bane
#

Huh

waxen osprey
#

cat /etc/crypttab

remote bane
#

@waxen osprey

waxen osprey
#

Alrighty then, let's fix this up

remote bane
#

How

waxen osprey
#

nano /etc/crypttab

remote bane
#

K

waxen osprey
#
# See crypttab(5) for details.

# NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).

# <device>       <UUID>                                    <key file>         <options>
cryptfs         UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9 /etc/mypassword2   swap_cipher=aes-cbc-essiv:sha256,swap_size=256```
#

Is what is should look like

remote bane
#

Uhh doesn't look like that at all

#

There's a whole name column

#

@waxen osprey so do I delete all of that?

waxen osprey
#

Let me check the requirements for name real quick

remote bane
#

Where r u getting all this info from

#

Can barely find anything here

waxen osprey
#
# See crypttab(5) for details.

# NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).

# <name>    <device>                                    <password>          <options>
cryptfs     UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9   /dev/urandom        swap,cipher=aes-cbc-essiv:sha256,size=256```
#

Now after that cat /etc/fstab

remote bane
#

Are those supposed to be in hashtags

waxen osprey
#

Yeah they're fine

#

nano /etc/fstab

remote bane
#

Uncomment cryptfs or no?

#

Huh

#

After first uuid

#

It's just a /

#

I'm so confused

waxen osprey
#

Yeah this is actually kinda scuffed atm, the dual / root subdirectories fucked us at generating fstab

remote bane
#

Jolly

waxen osprey
#

It's ok I can fix it

#

Just gotta alot to type

#

Ok so we may need to revisit the crypttab

#

But let's do fstab first

#
# See fstab(5) for details.

# <file system>                          <dir>  <type>  <options>                                                                 <dump> <pass>
UUID=9c1e5ec-bf33-4fbd-8891-cd2efabe1aab /      btrf   rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=5,subvol=/          0      0
UUID=9c1e5ec-bf33-4fbd-8891-cd2efabe1aab /home  btrf   rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=256,subvol=/@home   0      0
UUID=0187-E33C                           /boot  vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/mapper/cryptfs                      none   swap   defaults                                                                  0      0````
#

Make it look just like that,

#

Here's the corrected crypttab ```# Configuration for encrypted block devices.

See crypttab(5) for details.

NOTE: Do not list your root (/) partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf).

<name> <device> <password> <options>

cryptfs UUID=539a5556-5b33-4b68-8a53-98da4f222b1f9 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256```

#

Make sure everything is on the correct line, don't get thrown off by word wrap

waxen osprey
#

It's for reading purposes

#

nano /etc/mkinitcpio.conf

remote bane
#

This is actual hell to type

waxen osprey
#

Confirm our hooks

#

I know I just did it off a screenshot lmao

#

You can type it or reboot and start over

#

Entirely up to you

remote bane
#

Not really much of a choice xD

#

cries in pain

waxen osprey
#

Me too

#

But I wont leave you until you're arch certified

remote bane
#

:D

remote bane
#

I'm on phone so I can't really get the spacing right

#

Nvm

waxen osprey
#

You got it?

remote bane
#

Yes

#

@waxen osprey

#

So

#

Just to clarify

#

The first argument

#

On the left

#

Has a hashtag

#

Right?

#

On both the files

waxen osprey
#

Nope

remote bane
#

Damn

waxen osprey
#

Remove the # in front of each entry

remote bane
#

No hashtags got it

#

Same for crypt tab? But only the one that I added

#

No hashtag

waxen osprey
#

Nope but the rest looks good

remote bane
#

Wait holdon

#

This is my cryptab

#

Does it look fine

waxen osprey
#

Lemme double check uuid

#

Spot on

remote bane
#

I'm ready

#

Aight what's the command now

waxen osprey
#

Ok let's check mkinitcpio

#

nano /etc/mkinitcpio.conf

#

Double check the HOOKS and FILES

#

FILES should have /etc/password1

remote bane
waxen osprey
#

If FILES doesn't have an entry make one

#

Perfect

remote bane
#

Has 1

waxen osprey
#

Oh no

#

HOOKS are wrong

remote bane
#

Huh

waxen osprey
#

The HOOKS are wrong

remote bane
#

Ohh wtf

#

OHH

#

I forgot to write it

#

Feck

#

Feck

#

Fvck

waxen osprey
#

Lmao

remote bane
#

Is there a way to copy paste?

waxen osprey
#

Well let's hope everything else got wrote

#

Not yet

remote bane
#

Can u retype the hooks pls

waxen osprey
#

HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems btrfs fsck)

remote bane
#

Finally

#

Finally

#

Please tell me that it's good

waxen osprey
#

You only had to change the uncommented one hahahahahaha

#

Goof ball let's continue

remote bane
#

.....

#

Yeah.... Let's continue indeed

waxen osprey
#

```mkinitcpio -P````

#

Cross fingers

remote bane
#

Error

waxen osprey
#

pacman -Syu linux

remote bane
#

Error

waxen osprey
#

Holy shit.

remote bane
#

😭

waxen osprey
#

oh

#

chroot

#

Skip the download

remote bane
#

How do I enter it

waxen osprey
#

run mkinitcpio -P

#

arch-chroot /mnt

remote bane
#

Same error

#

FUCK

waxen osprey
#

Ok now pacman -Syu linux

remote bane
#

Already done

waxen osprey
#

Run it again

remote bane
#

K

#

Building a lot of shit

waxen osprey
#

Yep

remote bane
#

OHH

#

YES

#

NO ERRORS ON MKIN

#

ITS GOING

#

ohh there's an error

waxen osprey
#

grub-install --target=x86_64-efi --efi-directory=/boot /dev/nvme0n1

remote bane
waxen osprey
#

Ahh fuck

remote bane
#

Lots of missing firmware

waxen osprey
#

Nope no errors

remote bane
#

It finished tho

waxen osprey
#

Warnings are ok

#

Run the grub-install above

remote bane
#

Ok

waxen osprey
#

grub-mkconfig -o /boot/grub/grub.cfg

remote bane
#

....what the fuvk

waxen osprey
#

Now I know you made that bitch an EFI partition

remote bane
#

Huh

#

What did I do

waxen osprey
#

The type

remote bane
#

Yeh I made it EFI

#

At the very beginning

waxen osprey
#

Yeah I remember lol

#

Dammit man that really sucks

remote bane
#

It sucks more for u

#

U wasted 8 hours tryna help me 😭

waxen osprey
#

Didn't waste shit

#

alright

#

lets try some shit real quick

#

umount /boot

remote bane
#

Not booted already

#

Still in chroot

waxen osprey
#

exit

#

umount /mnt/boot

remote bane
#

Not mounted

waxen osprey
#

mkfs.fat -F32 /dev/nvme0n1p1

#

parted /dev/nvme0n1 set 1 esp on

remote bane
#

You may need to update fstab, it says

waxen osprey
#

Its ok

#

You got it mounted and parted?

remote bane
#

Yea

waxen osprey
#

mount /dev/nvme0n1p1 /mnt/boot You got this?

#

Ahh ok mount her up

remote bane
#

Mounted

#

Srry I cannot process anything rn

waxen osprey
#

arch-chroot /mnt

remote bane
#

K

waxen osprey
#

grub-mkconfig -o /boot/grub/grub.cfg

remote bane
#

HOLY SHIT

#

IT WOTKED

waxen osprey
#

And then prayls /boot/EFI/GRUB

remote bane
#

NO ERRORA

waxen osprey
#

WE aint out of the woods yet g

remote bane
#

Uhh....

waxen osprey
#

Thank god.

remote bane
#

succ...esss?

#

SUCCESS!!!

#

What did you do to make it work 😭

#

Also is arch on my ssd now, officially

waxen osprey
#

Yeah it's on there let's hope our fstab is good

#

ls /boot/vmlinuz-linux /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img

#

Confirm all exist

remote bane
#

Yep

#

Returned nothing

#

No errors

#

But no results either

#

@waxen osprey . So, if I reboot now and boot into my ssd... Will it boot

waxen osprey
#

ls /boot

#

Can't yet we arent finished

remote bane
waxen osprey
#

Let's do something real quick

#

exit chroot

remote bane
#

Ok

waxen osprey
#

cp /mnt/etc/fstab /mnt/etc/fstab.backup

remote bane
#

What does that do

waxen osprey
#

pacstrap -K /mnt btrfs-progs nano networkmanager

remote bane
#

Ohh btw did we ever do snapshots on this installation

waxen osprey
#

Copies the current fstab

#

WE did I just made them less so it's more manageable

remote bane
#

I see

waxen osprey
#

Yes, root and home

waxen osprey
#

genfstab -U /mnt >> /mnt/etc/fstab

remote bane
#

Returned nothing

waxen osprey
#

After that```arch-chroot /mnt

remote bane
#

Yep

waxen osprey
#

passwd

#

Set root password

#

systemctl enable NetworkManager

#

Enable this so we don't take any chances.

#

exit

#

umount -R /mnt

#

swapoff -a

#

reboot

remote bane
#

Swapoff -a command not found

#

Nvm

#

Wrong syntax

#

Okay

#

Rebooting

waxen osprey
remote bane
#

Now what

waxen osprey
#

Oh ok

remote bane
#

Ssd

#

Or usb

waxen osprey
#

Now make sure you boot into the correct ssd

#

And you should see a GRUB bootloader

remote bane
#

HOOOOO

waxen osprey
#

With an Arch Linux entry

remote bane
#

YOU DID IT

#

YOU DID ITTTT

waxen osprey
#

No you fucking did it

#

Now we still need to make a user and shit

remote bane
#

I just copied and somewhat understood the concept

#

Ohh fk

#

It booted but

#

Ohh

#

Wait

waxen osprey
#

Well you did a pretty advanced setup for your first time.

remote bane
#

It's just taking centuries to boot

waxen osprey
#

Yeah dude no one runs btrfs or encryption out of the box

#

Dammit

remote bane
#

Were those not the correct uuids

waxen osprey
#

Unless I typed em wrong

remote bane
#

I should've cross checked

#

Any way to unfuck it up now?

#

Cause like I know how to do it now and I can just scroll through this form to reinstall it

waxen osprey
#

Yeah boot back into live environment

remote bane
#

How do I reboot

waxen osprey
#

Alt + Ctrl + Del or reboot

remote bane
#

Like on the SSD?

waxen osprey
#

Nah usb

remote bane
#

Fresh reinstall?

waxen osprey
#

Nooo

#

Just need to fix UUIDS

remote bane
#

Aight

#

I'm in

#

Ok, what's the to do list boss

#

How do I view the uuid

waxen osprey
#

do blkid

remote bane
#

Which id is actually important?

#

Ohh

waxen osprey
#

Ok now send fstab

#

/etc/fstab

remote bane
#

K

waxen osprey
#

just cat it and send another one

remote bane
#

Cat isn't working on etc fstab

#

Ohh

#

There's just nothing there

#

Istg I wrote the files

#

I'm not being gaslit by this software

waxen osprey
#

cryptsetup luksOpen /dev/nvme0n1p2 cryptroot

#

mount -o subvol=/ /dev/mapper/cryptroot /mnt

#

```mkdir -p /mnt/home````

#

mount -o subvol=/@home /dev/mapper/cryptroot /mnt/home

#

mkdir -p /mnt/boot

#

mount /dev/nvme0n1p1 /mnt/boot

#

genfstab -U /mnt > /mnt/etc/fstab

remote bane
waxen osprey
#

mkdir?

remote bane
#

I did

waxen osprey
#

Double check your typing

remote bane
#

It's like 3am, u mind if we continue this tomorrow? At this pace we aren't gonna make much progress @waxen osprey

waxen osprey
#

Don't mind at all

remote bane
#

Rly sorry for wasting ur timeD:

#

Just reboot right?

waxen osprey
#

Didn't waste my time

#

You're learning

remote bane
#

Yeh

#

Ty bro

waxen osprey
#

We can ensure the mounts whenever you get back on

#

generate our fstab and boot in

remote bane
#

I'll see u tomorrow, gn. Hopefully it's done tomorrow

#

Yessir

#

Lemme send u a friend req

waxen osprey
#

Yeah totally

remote bane
#

Ty, gn

waxen osprey
#

Gn bud