9/21/2023 0 Comments Install arch linux![]() ![]() Now create your own password, type to provide your desired password. To create a new user, type in: ~ # useradd -m -G wheel,users -s /bin/bash pkumar To Set the root password run the below command, ~ # passwd root Now Install Boot loader using the below pacman command ~ # pacman -S ~ # grub-install ~ # grub-mkconfig -o /boot/grub/grub.cfg Step 12) Set Root Password & create a new user Now add it to the host file found in /etc/hosts Or ~ # hostnamectl set-hostname ~ # exec bash Here am using Linuxbuzz as a hostname: ~ # echo linuxbuzz > /etc/hostname Once you uncomment the preferred language then run below command, ~ # ~ # echo LANG=en_US.UTF-8 > ~ # export LANG=en_US.UTF-8 Step 11) Set Hostname and Install bootloader All you need to do is open the file with the help of the vi editor and just remove the comment from the language of your preferred choice. The local settings for your system and the language settings can be found in in the file /etc/locale.gen. To configure the hardware clock, type: ~ # hwclock -systohc -utc Step 10) Configure Your Locale Settings ![]() To see all the time zones, type ~ # ls /usr/share/zoneinfo Ln -sf /usr/share/zoneinfo// /etc/localtime ~ # ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime To set the timezone, type in the following command: Execute the beneath command ~ # arch-chroot /mnt /bin/bash Step 9) Set the Proper Timezone Now change root to the new system that has been installed which means you need to change the root for the process running right now and also for all the child processes running. Once the base packages are installed, generate the fstab file using the genfstab command ~ # genfstab -U /mnt > ~ # cat /mnt/etc/fstab Once the above command is executed successfully, we will get output something like below: To install the base package, type in the following command: ~ # pacstrap /mnt/base base-deve1 Some of the things contained in the base package are USB utilities, vi editor, file system tools, libraries, C library etc. The Arch linux base package contains everything to run your system. Now it’s time to mount these partitions: ~ # mount /dev/sda1 ~ # mkdir ~ # mkdir ~ # mkdir ~ # mount /dev/sda2 ~ # mount /dev/sda3 ~ # mount /dev/sda5 /mnt/tmpĪs of now we have created partitions and, let’s install base OS packages. To create a filesystem, type in the following commands: ~ # mkfs.ext4 ~ # mkfs.ext4 ~ # mkfs.ext4 ~ # mkfs.ext4 ~ # mkfswap ~ # swapon /dev/sda6 Now we have created all the 5 partitions, time to format them using mkfs command and swap partition will be formatted with mkswap command. Press ‘t’, select the 6th partition and set “82” as toggle id. Similarly, create /tmp and Swap partition of 5GB and 2 GB respectively as logical partitions. ![]() Similarly create partitions for home, var of 12 GB and 10 GB as primary partition. Only for the last sector you need to specify the partition size (10GB for /root) And by default the first sector will be allocated automatically, so just press enter to continue. Now type “n” in the command line for a new partition and after that type in “p” for a primary partition. To start creating a new partition, type the following command: ~ # ~ # fdisk dev/sda In my case I have around 40 GB hard disk and will create following partitions on it. Next step is to prepare your partitions as the installation requires a mounted partition on the root directory, a swap file along with a home, var and tmp file system. ![]() Select “Boot Arch linux (x86_64)” and hit enter, it will load the temporary os and you will get prompt after automatically root login Step 5) Prepare Your Own customize Partitions Now when your system boots from the USB, you’ll be shown with the installation welcome screen with 6 options including Now make sure to change the boot sequence to boot from the USB and restart the system Step 4) Install Arch Linux ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |