Please follow the commands to installArch Linux
gpg --keyserver-options auto-key-retrieve --verify archlinux-2020.06.01-x86_64.iso.sig ###checking the Signature
dd bs=4M if=archlinux-2020.06.01-x86_64.iso of=/dev/sdc status=progress && sync ###iso to usb
ls /sys/firmware/efi/efivars ##check the firmware
wifi-menu
timedatectl set-ntp true ###setup time and date
lsblk ###list disks
fdisk -l ###find the disk
cfdisk /dev/sda ##installation disk partition the disks
mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda2 ###format the EXT4 partition
mount /dev/sda2 /mnt ###mount the root partition
mkdir /mnt/home ###make the home directory
mount /dev/sda3 /mnt/home ####mount the sda3 to home folder to use the user files
pacstrap /mnt base linux linux-firmware ##installing the linux
genfstab -U /mnt >> /mnt/etc/fstab ##generating fstab file
cat /mnt/etc/fstab ###display the fstab file
arch-chroot /mnt /bin/bash ###changing in to installed Arch
ln -sf /usr/share/zoneinfo/London /etc/localtime
hwclock --systohc --utc ###settime zone
then set locale to en_GB.utf8
echo LANG=en_GB.UTF-8 > /etc/locale.conf
echo MyPC > /etc/hostname
nano /etc/hosts add this 127.0.0.1 localhost.localdomain MyPC
pacman -S networkmanager ###installing Network Manager
systemctl enable NetworkManager ###enabling the NetworkManager
###Create password using passwd ####
pacman -S grub efibootmgr ##installing grub and EFI manager
mkdir /boot/efi
mount /dev/sda1 /boot/efi mounting the SDA1 in to efi partition
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
useradd -m -g users -G wheel -s /bin/bash <username>
then change password using passwd
pacman -S sudo
EDITOR=nano visudo ### uncomment the line %wheel ALL=(ALL) ALL
then exit and login with user account
sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile ##change the permission on swapfile
sudo mkswap /swapfile ### format swapfile
sudo swapon /swapfile #### turn swap
free -m ### check the swapfile enabled or not
###then edit the fstab file add below line###
/swapfile none swap sw 0 0
sudo pacman -S xf86-video-intel mesa
sudo pacman -S xf86-video-amdgpu mesa
sudo pacman -S nvidia nvidia-utils
sudo pacman -S xorg
sudo pacman -S xorg-server
sudo pacman -S xfce4 xfce4-goodies
startxfce4
sudo pacman -S lightdm lightdm-gtk-greeter
sudo systemctl enable lightdm
No comments:
Post a Comment