An bash script to install Arch Linux
When you boot your machine it will show something like this
root@archiso ~ #So to show your ip adress (you need the interface name of your wifi adapter)
root@archiso ~ # ip addr showSetting up wifi
root@archiso ~ # iwctlThis command is gonna activate another command prompt that is specific to wifi it would look like this
[iwd]#After that type this command
[iwd]# station nameofyourwifi get-networkswhat this should do tell which wifi work on your area
Then you exit from this prompt
[iwd]# exitThereafter you should be back to archlinux prompt, so type
root@archiso ~ # iwctl --passphrase "yourwifipassphrase" station interfacename connect nameofwifinetworkTo test if this was sucessful do
root@archiso ~ # ip addr showIn order for you to use SSH you have to enable it
root@archiso ~ # systemctl status sshdif nothing come to do with the ssh server itself you can continue
root@archiso ~ # systemctl start sshdthat command it would make sure that ssh its listening for connections
As a result you will need to set a root password(by default ssh will not allow to connect with a root without password)
root@archiso ~ # passwdnote:This root password its just for the installer not the operating system
First start the arch linux installer
root@archiso ~ # archinstallNow you just need to go each section one by one to configure your installation
1 - Archinstall language(installer language not the operating system language)
2 - Mirrors
A mirror its where our software come from
So select your region its closer to you
3 - Locales
Review the options
4 - Disk Configuration
So use the option("Use a best-effort default partition layout")
Next choose the hardware you want to install arch linux to
So choose the filesystem(I recommend ext4)
Subsequently it will ask if you want a separate partition for /home so choose yes
This will make sure that your own personal data are their own folder
5 - Disk encryption
Leave at it is
6 - Bootloader
Leave at it is
7 - Unified kernel images
Leave at it is
8 - Swap
Leave at it is
9 - Root Password
Set your root password
10 - User Account
Create your own user account
11 - Profile
So choose what type of installation is this
After that choose the graphics driver(choose your gpu driver)
Next choose Greeter gdm
12 - Audio
Afterwards on audio choose Pipewire
13 - Kernels
Following that you need to choose the kernel on your system(I recommend 2 kernels)
14 - Additional packages
Leave at it is
15 - Network Configuration
Next choose Use NetworkManager
16 - Timezone
Consecutively find your desired Timezone
17 - Automatic time sync
It is import that this is enable if your gonna use sync utilities
18 - Optional repositories
Leave at it is
Finally you can go to the install option to install the arch linux
it will show the output of the settings you choosed if you want to automate in the future
you installed via archinstall
now youre ready to go
If need any help you can go to archwiki