Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
YawgNetWiki
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Installing Arch Linux
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=LiveCD= * [https://archlinux.org/download/ Download] the latest Archlinux ISO Image * Copy image to USB drive ** Use [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] in Windows ** OR use the following on linux: dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync * Reboot and choose boot device in BIOS and boot the USB drive =Presetup= ==Boot== The following guide is for UEFI systems, see [[Installing Archlinux (Legacy)]] for MBR. If you have an existing UEFI bootloader somewhere, identify it and mount it somewhere to confirm you can find the efi/ folder. Once properly identified, make note of this partition's device name (ex. /dev/sdb1) and unmount it. If you do not have a UEFI partition and are starting fresh, ensure you partition/format ~300-500MB for one, it helps a lot in multi-boot environments. ==Disk setup== ===Partitions=== Swap is pretty much optional but if you want Hibernate, it's needed * /dev/sda1 ** /boot - 300MB - EFI Filesystem * /dev/sda3 ** swap - 8.8G - Linux swap * /dev/sda2 ** / - therest - Linux filesystem It's also helpful to mount separate drives as your /home or /opt directories. I tend to put Steam/Lutris libraries in /opt and have a drive dedicated to my home folder and configs. Other system mounts I tend to put in /mnt or get automounted once I get to a desktop * use fdisk /dev/sd(diskletter) * Delete any old partitions ('''''!!!EXCEPT EXISTING UEFI PARTITIONS!!!''''') * Create new partitions like the one above ** For the above, make sda1 then sda3 * Ensure types are set appropriately * Write the partition and exit * Repeat for any other disk being used that needs erasing ===Format and Mount=== * Format target disks (cmd /dev/sda1-3) ** mkfs.ext4 for / and any others ** mkswap and swapon for swap ** mkfs.fat -F32 for NEW EFI partitions or /boot * Mount devices and directories ** mount /dev/sda2 /mnt ** mkdir -p /mnt/boot && mount /dev/sda1 /mnt/boot * Additional mounts can be done now with a modification of the following: ** mkdir -p /mnt/opt && mount /dev/sdb1 /mnt/opt * Or Network Shares/CIFS stuff as well ** mkdir -p /mnt/mnt/share && mount -t cifs //shareserver/ /mnt/share/ ==Update installer sources== ===Repos=== See [https://wiki.archlinux.org/index.php/Official_repositories Official] and [https://wiki.archlinux.org/index.php/Unofficial_user_repositories Unofficial] repos ====Multilib==== Needed for gaming on Steam echo "[multilib] Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf ====Valveaur==== For Valve's maintained Arch repo and f-sync patch for the kernel echo "[valveaur]" >> /etc/pacman.conf echo "Server = <nowiki>http://repo.steampowered.com/arch/valveaur</nowiki>" >> /etc/pacman.conf Update pacman keys pacman-key -r 8DC2CE3A3D245E64 --keyserver hkp://keyserver.ubuntu.com && pacman-key --lsign-key 8DC2CE3A3D245E64 ====Kernels==== =====linux-amd-znver2===== <pre> [linuxkernels] Server = http://nhameh.ovh/$repo/$arch SigLevel = Optional TrustAll</pre> =Install and Configure= ==Installation== To install the system, we use pacstrap <target> <packages> pacstrap /mnt base{,-devel} linux{,-headers,-firmware} nano ntfs-3g sudo git amd-ucode grub efibootmgr os-prober * base/-devel ** Base system and development tools * linux/-headers/-docs ** Now is a good time to setup [https://wiki.yawg.wtf/index.php?title=Installing_Archlinux#Repos Repos] on the new install in /mnt ** This is the kernel and headers (+docs) ** Alternatives: linux-zen, [https://aur.archlinux.org/packages/linux-vfio/ linux-vfio<sup>AUR</sup>], linux-fsync, [https://aur.archlinux.org/packages/linux-pf/ linux-pf<sup>AUR</sup>], linux-lts, [https://aur.archlinux.org/packages/linux-pds/ linux-pds<sup>AUR</sup>] Note: this presumes ntfs partitions being used and an AMD CPU, you might need to modify that for other systems ===Additional packages=== More packages can be found at [[Arch Packages]] ==Configure== ===Hostname=== echo "$yourhostname" > /mnt/etc/hostname echo "127.0.0.1 $yourhostname.localdomain $yourhostname" >> /mnt/etc/hosts ===Mounts/FSTAB=== genfstab -U -p /mnt >> /mnt/etc/fstab ===Locale=== echo "en_US.UTF-8 UTF-8" > /mnt/etc/locale.gen =Post install and chroot= Now we chroot into the new install and finish setting things up: arch-chroot /mnt ==Chroot== ===Language and Timezones=== ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime locale-gen export LANG=en_US.UTF-8 ===Kernel=== mkinitcpio -P ===Users=== * Change Root passwd ** passwd * Create local user ** useradd -m -G wheel $user && passwd $user ** Uncomment the Wheel group line in /etc/sudoers ===Services=== Enable any necessary services systemctl enable sddm systemctl enable NetworkManager systemctl enable bluetooth ==Grub== Replace /boot below with your efi directory folder if different grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch grub-mkconfig -o /boot/grub/grub.cfg ==Yay== Sometimes we need AUR packages: cd /home/$user && git clone https://aur.archlinux.org/yay.git && chown -R $user yay/ && cd yay su $user makepkg -si cd .. && rm -rf yay/ ===Recommended Packages=== ====Nvidia Beta==== nvidia{-beta,-beta-dkms,-utils-beta,-settings-beta} opencl-nvidia-beta lib32{-nvidia-utils-beta,-opencl-nvidia-beta} ====Misc==== Mostly my firmware and overclocking things, but Downgrade is a life saver for when updates go wrong aic94xx-firmware wd719x-firmware downgrade zenmonitor zenpower-dkms zenstates-git cpupower-gui python-nvidia-ml-py3-git python-py3nvml =Exit chroot and Cleanup= Leave chroot exit Unmount any extra drives first then unmount /mnt <pre>umount /mnt/boot umount /mnt/home umount /mnt</pre> You can now reboot =Specific Scripts= <pre> curl https://yawg.wtf/arch/.$buildname/0_start.sh > 0_start.sh && chmod +x 0_start.sh</pre> [[Category:Archlinux]]
Summary:
Please note that all contributions to YawgNetWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
YawgNetWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Installing Arch Linux
Add topic