Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kostasereksonas/archrice

A shell script for installing a window manager-based graphical environment on Arch Linux
https://github.com/kostasereksonas/archrice

arch-linux archlinux automation bash bash-script configuration dwm linux rice suckless

Last synced: 2 months ago
JSON representation

A shell script for installing a window manager-based graphical environment on Arch Linux

Awesome Lists containing this project

README

        

# Archrice

Install Arch Linux and use the archrice configuration script to install programs and load configs.

Table of Contents
=================
* [Installation](#Installation)

# Installation

1. Download Arch iso from https://archlinux.org/download/ .

2. Write Arch iso to usb drive:
- `dd if= of=/dev/ bs=4M status=progress conv=fdatasync`

3. Reboot into Arch live usb.

4. Get name if network interface:
- `ip a`

5. Connect to the internet:
- `iwctl station connect `

6. Get name of the disk to install Arch to:
- `lsblk`

7. Partition the disk:
- `fdisk /dev/`

8. Partitions to create:
- /dev/1 - Boot partition, size: 500M
- /dev/2 - Swap partition, size: 8G
- /dev/3 - Home partiiton, size: rest of the drive

9. Create filesystems:
- `mkfs.ext4 -T small /dev/1`
- `mkswap /dev/2`
- `swapon /dev/2`
- `mkfs.ext4 /dev/3`

10. Mount filesystems:
- `mount /dev/3 /mnt`
- `mkdir /mnt/boot`
- `mount /dev/1 /mnt/boot`

11. Install base system:
- `pacstrap -K /mnt base base-devel linux linux-firmware vim texinfo man-db man-pages`

12. Generate fstab:
- `gensftab -U /mnt >> /mnt/etc/fstab`

13. Chroot into the new environment:
- `arch-chroot /mnt`

14. Set timezone:
- `ln -sf /usr/share/zoneinfo/Region/City /etc/localtime`
- `hwclock --systohc`

15. Set localization:
- Run `vim /etc/locale.gen` and uncomment locale: en_US.UTF-8 UTF-8
- `locale-gen`
- `echo "LANG=en_US.UTF-8" | tee -a /etc/locale.conf`

16. Set hostname:
- `echo "Arch" | tee -a /etc/hostname`

17. Set root password:
- `passwd`

18. Enable sudo for other users:
- `visudo`
- Uncomment line: `# %wheel ALL=(ALL:ALL) ALL`

19. Install and configure bootloader and network manager:
- `pacman -S grub networkmanager`
- `grub-install --target=i386-pc /dev/`
- `grub-mkconfig -o /boot/grub/grub.cfg`
- `systemctl enable NetworkManager.service`

20. Exit chrooted environment:
- `exit`

21. Unmount partitions:
- `umount -R /mnt`

22. Reboot:
- `reboot`

23. Login to the new install and start wifi network:
- `nmcli device wifi connect password `

24. Download configuration script:
- `curl -LJO https://raw.githubusercontent.com/KostasEreksonas/Archrice/main/archrice`

25. Make the configuration script executable:
- `chmod +x archrice`

26. Run the configuration script:
- `./archrice`