#[solved] Can't get into arch something about xorg I think
1 messages · Page 2 of 1
yea
okay yeah do that
quit
and then
mkfs.ext4 /dev/sda3
this formats root to ext4 file system
mkfs.fat -F 32 /dev/sda1
which formats your boot
mount /dev/sda3 /mnt which will mount your root
mkswap /dev/sda2 which makes your swap partition an actual swap partition
swapon /dev/sda2 so now we're using the swap and from here on out using it, even after install
mkdir /mnt/boot making a dir for your boot partition
mount /dev/sda1 /mnt/boot mounting the boot partition
let me know when you are there
there
vim
ok good
me to
too*
now we need to pacstrap
pacstrap /mnt base base-devel linux linux-firmware neovim man-db man-pages texinfo
actually I use neovim lol
you don't need to add neovim if you just use vi
idk what to add for vim or vi
I mean
I don't know man, I'm sorry
I have a great neovim set up
I have no idea for vi or vim
I only use neovim
I think vi is defaulted in
can probably just exclude it
neovim works the same as vim, it won't hurt you anyway
just has more features
right, but it's installing the kernel and whatever else
no it doesn't matter
maybe put nano in
you need a text editor anyway if shit breaks
w/e
it's the pacstrap, this is the most important part of install actually
I put man pages and shit in there
base is needed, linux andn linux-firmware is needed
base-devel is developer stuff, like c compiler and everything important
i did this on my first install
just put the neovim in bro, it's not that bloated
I can remote in and help ya haha
okay
I can work with vim
that's fine
add the man pages shit I added too though
why
no but what are the man pages
yeah that looks good but the others are man pages
omg you don't know man pages?
that's the docs on your pc
for anything man
any c lib
there are man pages for every program and command
this is man pacman
if you don't have internet, you need man pages
manual pages
bro
it's where you can find anything you want
thorough documentation
in the man pages
ok
also there is the tldr program, but you need to install that later
damn the screenshot must have lagged
we were on the pacstrap right?
did you pacstrap already?
yea its doing the thing
ok brb
https://github.com/yenaras/laptop.config/blob/main/docs/systemd_arch_install.md btw I'm following my old docs on this
and arch wiki install guide
Need to rename the title honestly, because systemd boot is not as related to systemd as it presumes
yea doesnt everyone hate systemd
And also archive it because it says work in progress when I don't even have that laptop anymore
No
I love systemd
pacstrap done
Okay sorry I'm out back smoking again give me a minute lol
You know why people hate systemd though
Because Linux philosophy
A program should do one thing
And do it well
Well systemd is simple enough but it does a lot
It's process 1
But the idea is everything should be seperate
Anyway this is for another day
I'll be back to my PC in 2 minutes
okay back at pc
systemd boot actually has nothing to do with systemd, it use to be called gummiboot
was developed by Germans and is a completely different thing
so where were we
pacstrap is done
now we need to gen your fstab
is boot mounted?
and root
show me lsblk
need to make sure we're mounted up first
okay great
now
genfstab -U /mnt >> /mnt/etc/fstab
hopefully no output from it
right?
no output yea
is this for timezones or?
west coast
yea
okay so you need to do like ln -sf /usr/share/zoneinfo/America/Cali* /etc/localtime the star idk you need to tab autocomplete that shit
you can explore that folder for accuracy if you want
yea lol
is all of cali the same time zone?
let me know when you got it figured out, then we can move on
to setting your hardware clock
what command do you use for vim? vi or vim?
yea but the locations are confusing
i dont think they have just cali
it doesn't matter that much, it's for time
just use cali then
w/e is in cali
not like we are trying to get your fingerprint here
just the correct time
okay
just find your damn time zone
west coast time zone
is it 6 pm there?
6:22
yea
PST
i tried typing just california and got no output
okay hang on
is there supposed to be output
yeah like
wait a minute let me check my folder to see what you need to do
wow there is actually no california option lmao
yeah do la
no output
multiple indiana options, cuz we use to refuse to comply with the day light savings lol
that's good
it's okay
no output is good
now lets set the hardware clock
hwclock --systohc
no output
good
sec
now edit the locale
vi /etc/locale.gen
and uncomment the lines that say en_US, should be two of them
you can /search for them
write and quit?
ok
done?
yea
it said the two things
ok
now you need to make the locale.conf file and export the lang variable
right
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
two different commands there
do them seperate
lmk when done
done
mk now we should configure the hostname
do you got an idea what you want your pc hostname to be
either way it doesn't matter to me, do this
should i keep it the same
idc
echo <host-name> > /etc/hostname
it's gotta be in the hostname file
w/e you want your pc hostname to be
I don't want you to share it with me
not to be rude
just don't want people here to hack you
lmk when that's done
I don't want to know what it is
yeah
it really doesn't matter
lmfao
right
is it the thing that shows up before command prompt
cuz ive already posted that in images in this channel
the things I had him do before were worse to leak
come on
lets finish this
I want to go to bed
is it different than the thing that has my home directory in it
ok i did the thing
this
ok
no
stop
he's not there yet
chill
yes
really
no
he hasn't even configured a user
shghhhhhhhhh
stfu
I got this man
go away
lmao
ily
hack me later
i Love you but fuck off
pm me
❤️
okay now
where were we
now you need to make a file called /etc/hosts
actually it's already there
mkdir?
you need to edit it
no just vi
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch-pc
like that
then after that you set the root password for the system
passwd
then you add your user after that
put this into hosts file?
and then go back to terminal and type passwd
or if you got a better idea from your job
idk
right
that's a good default
unless you got a job that requires something else
huh
whats betwween the number and localhost
tab?
what is arch-pc
so i can replace with anything?
wait
it should match the other file though
like my hostname
so has to match this
it really isn't that that big of a deal
only for some things
right
that thing
depends on what you wanna do
we should move on from that, but yes you should match those
imma go smoke lol
I can't
I gotta go back to jail soon
brb
I'll be on my phone out there though
Okay hang on
I'm smoking and pissing out back now but I know you need to smoke your user next
Make not smoke
Auto correct is dumb af
I'll give you the right commands when I get back inside
sorry I'm back
so where are you
set passwd
everybody chimed in and it overwhelmed me
havnt made user
you set root passwd?
yea root
ok
now we need to make your user
useradd -m -g users -G wheel,storage,power -s /bin/bash username
replace username with your username
no
ok now what
hang on my cat is being a bitch infront of my monitor
you made your username?
I fucked her off
yea
done
okay you use vim right?
yea
EDITOR=vi visudo
ive been typing vim not vi tho
and uncomment this line
and its been working
would EDITOR=vim vimsudo work?
it said vimsudo command not found
sorry
yea
right
i edited file
mhm
ok
show me lsblk again
cuz systemd boot need to be on /boot, not /boot/efi
for what I know anywah
okay
so now
bootctl --path=/boot install
touch /boot/loader/entries/arch.conf
findmnt -fn -o PARTUUID /dev/sda3 >> /boot/loader/entries/arch.conf
it said file system "/dev/sda1" is not on a gpt partition table
reboot?
I'm sorry I actually don't know
arch can work on mbr or uefi
but idk what you had before
mbr is ancient tech
its a pretty old laptop btw if that matters
hmmm
i got for 50 bucks on ebay
arch wiki has a command to run
to see if it's efi
that
what dude said just there
run what @tender parrot just said
it output lots of stuff
okay so it's efi
if nothing it's not
@tender parrot I need help here lmao
so we backuped their home dir
original install was broke, no interface for ethernet or wifi
now reinstalling
and now I'm drunk
halfway through reinstall
no
I was sober before determining reinstall necessary
what gui
hmm
okay well I was helping them switch from grub to systemd boot
no
me no
just that I prefer it
no otherwise
if you can guide them with grub then great
I don't know grub like systemd boot
you saw where we left off though right?
all that was fine
ok
man we are a weird bunch lol
arch users I mean
brb gonna smoke again
yeah it is but I hate grub
systemd boot is better
his issue is with neither
it broke anyway man
we are fresh installing
I backed his stuff up on a usb he went and bought
Can you catch me up on the issue
so do i have to install grub first
bruh
pacman -S grub?
sudo pacman -Rsn grub
more like it
lol
hang on man
don't do anything
wait
brb
honestly if anyone has any grub suggestions for my friend, I was joking
you can tell him w/e advice you have for him
I just prefer systemd boot
but I have to brb
and he can make his own choice
yall are badass
idc if we disagree on software
Grub is shit lately though imo, having to fix everyone's installs
We are hijacking this guy's thread though
Give me like 10 minutes to smoke and finish fixing his os and then we can talk shit to each other lmao
with systemd boot?
Yesh
but like
Bro I got you
complicated
i may or may not have done pacman -S grub
what does the sn do
Let me piss and get back to my PC
okay now I'm back
you wanna know what that sn does
yea
removes shit that can cause issues later
like
when you wanna remove a package
-R sometimes isn't enough
well it removes the package, but not the stuff the depends on it
where did we leave off anyway
are you in a gui environment yet?
well where are you
do i use the sn
idk where are we
everyone butted in and hijacked your thread
last I remember you set the host name
and its like gpt or something
what's the last command you ran
well i did pacman -S grub but you didnt tell me to do that
this thing
after that was ls /sys/firmware/efi/efivars
do i do -Rsn or just -R for grub tho
you did instal grub? wtf
lmao
-Rsn
remove all that shit
so you did do some shit after lmao
you don't trust me haha
it's okay
grub is shit
i also installed NetworkManager btw
I'm not a pirate lmao
I want what is best for you
okay so where are we now
you need a boot loader right?
systemd boot
so does this not matter
and i never did these things
all 3 of those commands
cuz first didnt work
so what do now
I was trying to guide you where I am, I'm system d boot
man I think I'll have to help you tomorrow
add me
i already did
well outside this chat I'll have to help you tomorrow as a friend I guess, idk
I"m drunk right now bro
yea ok
sorry
what do i do with computer overnight
turn it off
hit power button?
i mean it has a battery
unplug everything
take out battery?
why no
unplug it all
battery is hella easy to take out
ok w/e
unplug it
take the battery out
w/e
unplug is always the best option
no power = no data
I'm going to bed, gn
gn
❤️
Man I wanna help more but check the GitHub I linked earlier, it will guide you through the steps
I'm too fucked up ATM and I gotta go to bed
Bet I can fix it tomorrow when I sober up though
I'm up now lol
sorry, I drank too much last night
did you get your boot loader set up?
um no
@echo zephyr
whenever i try grub I get an error about efi so i guess we doin systemd boot
also do i have to boot into the usb now and chroot into /mnt
ok
and mount /mnt and /mnt/boot
sda3 to /mnt and sda1 to boot?
yes
you might need to mkdir /mnt/boot after you mount root
reading up where I got too drunk in this thread is embarrassing lmao
i cd into /mnt and there is a boot folder
ok so just mount sda1 to /mnt/boot
then arch-chroot in to /mnt, cuz we already pacstrapped and genfstab right?
we can do it again if you want to make sure
is there a way to check without doing again
i mean yea
you can check for the presence of fstab
we definitly did
cat /mnt/etc/fstab
it says vfat
ok
did we set the local time?
yea
and the hardware clock?
idk
hwclock --systohc
probably
okay
if you do it twice is that bad
check to make sure
2 of them
generation complete
echo LANG=en_US.UTF-8 > /etc/locale.conf
won't hurt if we already did it, will override
ok
export LANG=en_US.UTF-8 you need to do this anyway for the current load of the iso
current terminal shell I mean
back
wb
then you need to set your host name in /etc/hostname can be whatever, mine is arch-pc
echo arch-pc > /etc/hostname
again?
yea forgot quite a bit lol
don't remember much
yeah haha, just now remembered what I had for dinner
did you edit /etc/hosts?
wheel thing?
no
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch-pc
``` /etc/hosts should look like this
o
that's the sudo file
no i did that too yea
yea
added your user?
yea
and user passwd?
yea
ok hang on
now do bootctl --path=/boot install
this will install systemd boot in your /boot
then we need to configure it
let me know if that runs successfully
hmm show me ls /boot
grub is there lol
it said target not found: grub
okay
so do the bootctl again
bootctl --path=/boot install
then we need to make an entry for your operating system
well that's a problem
it should be
okay so just exit
lets fix that first
we maybe need to start over actually
cuz it should be a GPT file system
hang on I'm gonna take a break and use the bathroom and smoke
didn't realize it wasn't GPT
Sorry i should have had the foresight to check the partition table first, I just assumed it was GPT already since it's UEFI
We have to start all over now
It shouldn't take 2 hours, but we can do it later if you want
ok
I'm still smoking right now though, on mobile atm
u mount <what go here>
ok
done
cfdisk
sec
actually
cfdisk /dev/sda
I need to plug in a usb to check the options
can i post image
well actually just quit cfdisk
we need something else I think to make a partition table, like parted
parted /dev/sda
in that menu do mklabel gpt
it says type help to view a list of commands
okay type help if you want
you can either do mklabel gpt or mktable gpt
does the same
I'm in help menu rn lol
it gave warning i assume i say yes
existing disk label will be destroyed data will be destroyed blah blah
yes
ok now what
it said information: You may need to update /etc/fstab'
that's okay we will
sda1 512m?
then 16g
EFI System?
basically sda1 should be efi 512mb, swap should be 16gb, the rest linux file system
yeah mbr is shit
make sure to write
before quitting
mkfs.ext4 /dev/sda3
formats root to ext4 file system
mkfs.fat -F 32 /dev/sda1 formats boot to fat 32
it says it contains a ext4 file system last mounted on /mnt on mon nov 21
it's okay
proceed anyway
yea
ok
i mean it had a bunch of errors but we ignored it lol
yeah lol
probably permission issues
it's ok
so now do mount /dev/sda3 /mnt
then we will make the swap and swap on it
mkswap /dev/sda2
swapon /dev/sda2
ok
k
pacstrap /mnt base base-devel linux linux-firmware vim man-db man-pages texinfo
yeah
sorry I was a stay at home dad for 3 years, and my fiance cheated on me and I moved back in with my mom, and my mom is talking to me in the background so I'm distracted lol
quit a good paying job cuz my fiance asked me to x.x
when that finishes, we need to gen the fstab
genfstab -U /mnt >> /mnt/etc/fstab
u can put a few more commands after if u want
ok
less waiting for both of us
after you gen fstab we chroot in
arch-chroot /mnt
then we set the timezone again
for me it would be this
ln -sf /usr/share/zoneinfo/America/Indiana/Indianapolis /etc/localtime
hwclock --systohc for the hardware clock
vi /etc/locale.gen and uncomment the two lines again
locale-gen to generate it
echo LANG=en_US.UTF-8 > /etc/locale.conf assuming you're in the US
or use the US format
export LANG=en_US.UTF-8
echo arch-pc > /etc/hostname set hostname, replace arch-pc with whatever you want. Has to be consistent in /etc/host though
vi /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch-pc```
something like that
set root pw
passwd
make your user
useradd -m -g users -G wheel,storage,power -s /bin/bash username
set user password
passwd username
edit visudo
EDITOR=vi visudo
uncomment wheel line
like this line
%wheel ALL=(ALL) ALL
we can move on after that lmk when you're there
I'm gonna take a quick break
Only thing after that is bootloader
Grub or systemd boot
Yeah it should
I can help you easier with systemd boot though cuz I know it better
And it's more precise and faster booting
Up to you
I can help with grub too if you want
would systemd boot break less
but be harder to get help cuz less people use it
ok sure systemd boot
wait is it %wheel ALL=(ALL:ALL) ALL
yes, just delete the # infront of it
ok
w/e was there before
you know lets make sure the shit is right actually
do this pacman -S gdisk
then run gdisk /dev/sda
when you're in it, type t in the prompt
1
EF00
w
y
ok whatever i did it
sec I gotta move something for my mother
ok
then do bootctl --path=/boot install again to make sure
yea
ok
vi /boot/loader/entries/arch.conf
edit it to look like this, and I'll give you a vim tool to import the partuuid
brb
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=<part-hash-goes-here-without-the-angle-brackets> rw```
ok
in vim you can :r! findmnt -f -o PARTUUID /dev/sda3
to import that partuuid
back
wb
so title is just what it shows in boot menu
can be anything
the rest needs to be exact
let me know when you're done with that file
o
okay
now we need to edit the default loader.conf
vi /boot/loader/loader.conf
default arch
timeout 4
console-mode max
editor no
below the commented stuff?
the first one is just the loader
delete everything in the file and replace it
timeout is the number of seconds it waits to boot the default
in boot menu
so it's gonna default boot arch
wait 4 seconds, you can change that
don't change the others
ok
now you need to make sure internet works when you reboot
pacman -S networkmanager dhcpcd
systemctl enable NetworkManager
systemctl enable dhcpcd
or if you have a better preference
like I think I use systemd.resolved now
other than that, what desktop environment or window manager do you use?
i3
ok you might wanna install that now
or just reboot and see if you can get in, but you need to exit chroot, umount and poweroff first
exit
umount -a
poweroff
what is it gona boot into
when do we instal login manager
after you poweroff, unplug the iso usb
how
cuz i put the usb at the top and now its not plugged in so does it just disapear
shouldn't show up then
it'll try to boot the USB but notice it's not there and go on to the next entry in the list
yeah
The user you created
You should only really use root if you absolutely have to
yea im in
okay sorry but I need to brb, check for internet
didnt work
okay you need to configure network manager