This is a repository to save my personal preferences in a simple setup that can be executed to install arch fast
Here is a quick guide that you can think of to know ways that you can use this repository
- Download the setup.sh script into a pendrive and boot into the machine
- Setup git on the machine and donwload the repository via https git link
Here is a tutorial of how you can setup arch before you can run the setup script
Before you start the instalation you should test if you have internet connection
ping google.com
Load the keyboard keys with
- Run
loadkeys br-abnt2
Here are the steps to make the partitions in the instalation disk
- Run
fdisk -l - Run
fdisk /dev/disk-to-install-arch
Now you need to format the disk partitions that you will use to install arch linux
- Efi:
mkfs.fat -F 32 /dev/efi-partition - Root:
mkfs.ext4 /dev/root-partition - Swap:
mkswap /dev/swap-partition
And mount the disks with the following mounting table
- Root:
mount /dev/root-partition /mnt - Efi:
mount --mkdir /dev/efi-partition /mnt/boot - Swap:
swapon /dev/swap-partition
Install the packages to make just arch linux work by itself with this command
pacstrap -K /mnt base linux linux-firmware neovim dhcpcd networkmanager grub efibootmgr gitwe will install on the /mnt, where /root-partition is mounted
Generate the fstab is important to the system know how mount the disks on the system boot
genfstab -U /mnt >> /mnt/etc/fstabor just run the scriptgen-fstab.sh
To go inside the system just run
arch-chroot /mnt
Here are some file editions that you need to do
- Edit
/etc/locale.gen - Uncomment
en_US.UTF-8 UTF-8 - Run
locale-gen
- Edit
/etc/locale.conf - Add
LANG=en_US.UTF-8to the file
- Edit the file
/etc/vconsole.conf - Add
KEYMAP=br-abnt2and save it
- Edit
/etc/hostname - Set your hostname there like
linus
We should run mkinitcpio -P to set the initramfs
Set the root password with this command passwd
To enable the network you should run this command
systemctl enable NetworkManager dhcpcd
Now there are two commands that you should run to set the bootloader
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUBgrub-mkconfig -o /boot/grub/grub.cfg
Now just exit the chroot with the command exit and reboot the system with reboot