Skip to content

Instantly share code, notes, and snippets.

@schleumer
Last active April 14, 2021 07:24
Show Gist options
  • Save schleumer/6080319 to your computer and use it in GitHub Desktop.
Save schleumer/6080319 to your computer and use it in GitHub Desktop.
My ArchLinux setup

Steps to set up a Arch Linux

Install vim <3

pacman -Syu

pacman -S vim

Create partition

fdisk /dev/sda

Format partition

mkfs.ext4 /dev/sda1

Mount that shit up

mount /dev/sda1 /mnt

Change mirror position

vim /etc/pacman.d/mirrorlist

Do the pacstrap

CLI only systems

pacstrap -i /mnt base base-devel vim mariadb apache php grub-bios os-prober openssh

GUI systems

pacstrap /mnt base gnome xorg-twm xorg-xclock xterm xf86-input-synaptics xorg-xinit xorg-server xorg-utils xorg-server-utils vim openssh grub-bios upower

Generate fstab, else your system will not bootup(mr. obvious)

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

Do the chroot

arch-chroot /mnt

Uncomment ur damn language on that file(remove #)

vim /etc/locale.gen

create locale.conf file

BRBRBRBR

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

export LANG=pt_BR.UTF-8

Generate locales

locale-gen

¿Horas?

ln -s /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime

Install grub

grub-install --target=i386-pc --recheck /dev/sda

Put other OSes

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

Leave the body with no fingerprint

exit

umount /mnt

reboot

Yo! It's up

Now, let's enable internet, cuz' we don't live without it

This is for DHCP only, google yourself for WIFI

Run

ip link

Get your device, mine is enp0s3

systemctl enable [email protected]

systemctl start [email protected]

If you run into a virtual machine

systemctl enable sshd.service

systemctl start sshd.service

Reboot, and be happy.

@darthsithius
Copy link

This is better than the Arch wiki , thanks!!

@trickybestia
Copy link

It's the best installation guide I ever saw. Thanks! :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment