User Tools

Site Tools


arch-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
arch-install [2020/10/21 23:28] gwsadminarch-install [2020/10/27 20:24] gwsadmin
Line 1: Line 1:
-======   How to install Arch Linux   ======+====== How to install Arch Linux ======
  
-======   ======+//**If you are having issues with this Arch Linux install DO NOT ask help in the forum, please look at THEIR wiki for more information** //
  
-====== Coming Soon ======+   * Add Keyboard 
 + 
 +<code bash> 
 +Loadkeys uk 
 + 
 + 
 +</code> 
 + 
 +  * Using fdisk: 
 + 
 +<code bash> 
 +fdisk -l (lists out the partitions) 
 +fdisk /dev/sda 
 +In fdisk, "g" for GPT 
 +In fdisk, "n" for add new partition 
 +n fdisk, "t" to change partition type 
 +In fdisk, "w" (write table to disk) 
 + 
 + 
 +</code> 
 + 
 +**Remember – +260M for EFI and +2GB for swap** 
 + 
 +  * Make filesystem 
 + 
 +<code bash> 
 +mkfs.fat -F32 /dev/sda1 
 +mkswap /dev/sda2 
 +swapon /dev/sda2 
 +mkfs.ext4 /dev/sda3 
 + 
 + 
 +</code> 
 + 
 +  * Base Install 
 + 
 +<code bash> 
 +mount /dev/sda3 /mnt (mounts it to mnt on live image) 
 +pacstrap /mnt base linux-lts linux-firmware 
 +genfstab -U /mnt>> /mnt/etc/fstab 
 + 
 + 
 +</code> 
 + 
 +  * 
 + 
 +Chroot: 
 + 
 +<code bash> 
 +arch-chroot /mnt (change into root directory of our new installation) 
 +ln -sf /usr/share/zoneinfo/REGION/CITY /etc/localtime 
 +hwclock --systohc (sets the hardware clock) 
 +pacman -S nano 
 +nano /etc/locale.gen 
 +locale-gen 
 +nano /etc/hostname 
 +nano /etc/hosts 
 + 
 + 
 +</code> 
 + 
 +==== Users and passwords: ==== 
 + 
 +<code bash> 
 +passwd (set root pass) 
 +useradd -m ‘username’ (make another user) 
 +passwd ‘username’ (set that user's password) 
 +usermod -aG wheel,audio,video,optical,storage ‘username’ 
 + 
 + 
 +</code> 
 + 
 +  * Add Sudo: 
 + 
 +<code bash> 
 +pacman -S sudo 
 +EDITOR=nano visudo 
 + 
 + 
 +</code> 
 + 
 +==== Add GRUB: ==== 
 + 
 +<code bash> 
 +pacman -S grub 
 +pacman -S efibootmgr dosfstools os-prober mtools (if doing UEFI) 
 +mkdir /boot/EFI (if doing UEFI) 
 +mount /dev/sda1 /boot/EFI 
 +grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck (if doing UEFI) 
 +grub-mkconfig -o /boot/grub/grub.cfg 
 + 
 + 
 +</code> 
 + 
 +==== Add Networking: ==== 
 + 
 +<code bash> 
 +pacman -S networkmanager 
 +systemctl enable NetworkManager 
 + 
 + 
 +</code> 
 + 
 +==== Add SSH Server, make package, GIT and Firewall ==== 
 + 
 +<code bash> 
 +sudo pacman -S openssh 
 +systemctl enable sshd 
 +systemctl start sshd 
 + 
 +sudo pacman -S base-devel git ufw 
 + 
 + 
 +</code> 
 + 
 +==== Before Reboot: ==== 
 + 
 +<code bash> 
 +exit the chroot by typing "exit" 
 +umount /mnt (unmounts /mnt) 
 +reboot (or shutdown now if doing this in VirtualbBox) 
 + 
 + 
 +</code> 
 + 
 +**Reboot:**  //Remember to detach the ISO in VirtualBox before reboot. // 
 + 
 +**To add a desktop environment, please look at the [[https://wiki.archlinux.org/index.php/desktop_environment|Arch wiki ]]for which ones are official**
  
  
arch-install.txt · Last modified: 2023/05/17 22:52 by 127.0.0.1