Skip to main content

Overview to an VIM editor

  Vim is a versatile text editor that can be used for a wide range of tasks. Its power and flexibility make it a popular choice among developers, system administrators, writers, and anyone who works extensively with text files. Here are some common uses of Vim: Code Editing: Vim is often used by programmers for editing source code. Its syntax highlighting, code folding, and extensive keyboard shortcuts make it efficient for writing and editing code in various programming languages. Text File Editing: You can use Vim for editing plain text files, configuration files, log files, and more. Its search and replace functionality is particularly useful for making bulk changes in text documents. System Administration: System administrators often use Vim to edit configuration files, scripts, and other system-related text files on Linux and Unix-based systems. Writing and Note-taking: Some writers and note-takers prefer Vim for distraction-free writing. It offers features like spell-chec...

Perfect Minimalistic Arch Installtion by Ayu -/

 

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

  1. 1G for /boot/efi parition ( 1G for multiple kernal ) - /dev/sda1

  2. 190G for root partition - /dev/sda2

  3. 9G for swap space - /dev/sda3

  • After making partition, Format it

  1. For boot partition -

mkfs.fat -F32 /dev/sda1
  1. For root partition -

mkfs.ext4 /dev/sda2
  1. For swap Partition -

mkswap /dev/sda3
  • Now, update your pacman repository

pacman -Syy
  • Mounting Root and Swap partition System -

  1. 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
  1. Uncomment the below line -

#en_IN.UTF-8 UTF-8

  1. 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

Popular posts from this blog

File System Hierarchy and Permissions - Linux

  File System Hierarchy: The Unix-like file system hierarchy is a structured organization of directories and files. It starts from the root directory ("/") and branches out into various subdirectories. Here are some of the most important directories and their purposes: / (Root Directory): The top-level directory in the file system hierarchy. Everything on the system is under this directory. /bin (Binary): Contains essential system binaries (executable files) required for system booting and repair. /boot: Contains boot-related files, including the kernel and bootloader configuration. /dev (Devices): Contains device files representing hardware devices, such as hard drives, keyboards, and serial ports. /etc (Etcetera): Houses system-wide configuration files and scripts. /home: User home directories are stored here. Each user has their own subdirectory here. /lib (Library): Contains shared libraries needed by system programs and applications. /mnt (Mount): Used for tempor...

Overview to an VIM editor

  Vim is a versatile text editor that can be used for a wide range of tasks. Its power and flexibility make it a popular choice among developers, system administrators, writers, and anyone who works extensively with text files. Here are some common uses of Vim: Code Editing: Vim is often used by programmers for editing source code. Its syntax highlighting, code folding, and extensive keyboard shortcuts make it efficient for writing and editing code in various programming languages. Text File Editing: You can use Vim for editing plain text files, configuration files, log files, and more. Its search and replace functionality is particularly useful for making bulk changes in text documents. System Administration: System administrators often use Vim to edit configuration files, scripts, and other system-related text files on Linux and Unix-based systems. Writing and Note-taking: Some writers and note-takers prefer Vim for distraction-free writing. It offers features like spell-chec...

What is kernal and its types and uses?

A kernel is the central component of an operating system that manages all the resources and communicates with both software applications and hardware devices on a computer. In simple terms, it acts as an intermediary between the user’s requests and the computer's hardware. A kernel provides a variety of services to other parts of the operating system and to applications, including memory and process management, interrupt handling, and system calls. It also acts as a bridge between the hardware and software components, translating requests from the software into actions performed by the hardware.  There are different types of kernels, including monolithic kernels, microkernels, and hybrid kernels.  Monolithic kernels are designed to be large and comprehensive, providing all the basic system functions in a single, unified binary file.  Microkernels, on the other hand, are designed to be small and modular, with each component of the system being implemented as a separate pr...