Follow these simple step and you'll have your playboy PC...
First make bootable drive of an Arch Linux (use Rufus) format in GPT style
Then make sure you have UEFI mode enabled in BIOS
Boot through your USB
Now, check your internet connection using
ping -c 3 google.com
Check disks and partition
lsblk
Make Partition -
cfdisk
Make 3 partition, Let's suppose you have 200GB of Space then, you can make following parititon style
1G for /boot/efi parition ( 1G for multiple kernal ) - /dev/sda1
190G for root partition - /dev/sda2
9G for swap space - /dev/sda3
After making partition, Format it
For boot partition -
mkfs.fat -F32 /dev/sda1
For root partition -
mkfs.ext4 /dev/sda2
For swap Partition -
mkswap /dev/sda3
Now, update your pacman repository
pacman -Syy
Mounting Root and Swap partition System -
Mount Root
mount /dev/sda2 /mnt
Install Base pacakges
pacstrap -K /mnt base base-devel linux-lts linux-firmware amd-ucode sudo nano vi
Configure the File system
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
Setting Timezone
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
hwclock --systohc
Localization
nano /etc/locale.gen
Uncomment the below line -
#en_IN.UTF-8 UTF-8
save and exit
Generate Locale -
locale-gen
Add Language to locale.conf
echo "LANG=en_IN.UTF-8" > /etc/locale.conf
Set Hostname
echo arch > /etc/hostname
set hosts -
nano /etc/hosts
Add these line & save it, use "TAB" for spacing
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
Install and Enable Network Manager
pacman -S networkmanager
systemctl enable NetworkManager
Set Root Password
use cmnd "passwd" and set password for your hostname
Add user --
useradd -m -G wheel -S /bin/bash ayu
Set pass for it, use "passwd" and save it
Give sudo (superuser) permission for user
EDITOR=nano visudo
Uncomment the following line -
# %wheel ALL=(ALL&ALL) ALL
save and exit
Install GRUB Bootloader ---
pacman -S grub efibootmgr
Create directory where EFI partition will be mounted
mkdir /boot/efi
Now mount EFI partition you had created before (/dev/sda1)
mount /dev/sda1 /boot/efi
Install GRUB like this --
grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
you can replace id "GRUB" with your own custom name
grub-mkconfig -o /boot/grub/grub.cfg
Installing some basic tools ---
pacman -S git make cmake wget curl
Finally you can exit the fakeroot and rebbot the sytem and then we'll install WM or DE
exit
umount -l /mnt
shutdown now
Comments
Post a Comment