Skip to content

Latest commit

 

History

History
127 lines (81 loc) · 2.73 KB

README.md

File metadata and controls

127 lines (81 loc) · 2.73 KB

Arch Configuration by Codesmith28

Introduction

This repository is inspired by the Arch Linux configuration from stephan-raabe/dotfiles - v2.9.1 with additional dotfiles and configurations.

To install that version of dotfiles use the following link:

git clone -b 2.9.1 https://github.com/mylinuxforwork/dotfiles.git

Installation

After installing the minimal configuration from archInstall, follow these steps to integrate additional configurations:

  1. Clone this repository to your local machine. Assuming you have installed the base configuration in your home directory:

     git clone https://github.com/Codesmith28/archConfig.git ~/Downloads/arch/archConfig
  2. Navigate to the downloaded folder and view the content:

     cd ~/Downloads/arch/archConfig
  3. Copy / Move the contents accordingly and run the setup scripts.

Packages

All the packages are available under setupScripts directory.

  1. To install basic packages, run the following command:

    ./packages.sh
  2. To setup ssh keys, run the following command:

    ./ssh.sh
  3. To setup the development environment, run:

    ./dev.sh

Backup

You can also backup your current configuration by running:

./backup.sh

Fixing Grub

Grub not showing up

After the minimal installation, you may face the issue of the grub not showing up. Thus, we click on yes for post installation configuration and then run the following commands sequentially:

pacman -Sy grub efibootmgr dosfstools mtools
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Then exit and shutdown the system and then boot it up again.

Windows not showing up in Grub

If you have Windows installed and it is not showing up in the grub, then run the following commands sequentially:

  • Install os-prober, if not already installed:

    pacman -S os-prober
  • Edit the file etc/default/grub and add the following line:

    GRUB_DISABLE_OS_PROBER=false
  • Update the grub configuration:

    grub-mkconfig -o /boot/grub/grub.cfg

How to revive arch linux after any windows updates?

  1. Boot into the arch linux live usb.

  2. Connect to the internet and update all the packages as follows:

    pacman -Sy
  3. Mount the root partition of the arch linux to /mnt and the boot partition to /mnt/boot like:

    mount /dev/nvme0n1p5 /mnt
    mount /dev/nvme0n1p6 /mnt/boot
    arch-chroot /mnt
  4. Run the grub-install and grub-mkconfig commands as mentioned above.