Giter Club home page Giter Club logo

arch-installation-script's Introduction

dotfiles

This is not a patented method. It depends on each person's needs. Therefore, there is no way to install a partition for swap here.

image

Table of Contents

Arch Installation

Update the System Clock

timedatectl status
timedatectl set-ntp true

Partition the Disks

lsblk
cfdisk

Format the Partitions

mkfs.ext4 /dev/root_partition
mkfs.fat -F 32 /dev/efi_system_partition

Mount the File Systems

mount /dev/root_partition /mnt
mount --mkdir /dev/efi_system_partition /mnt/boot

Install Essential Packages

pacstrap -K /mnt base iwd dhcpcd base-devel linux linux-firmware neovim networkmanager network-manager-applet grub efibootmgr linux-headers mtools git xdg-user-dirs

Select a Mirrorlist

reflector --verbose --protocol https --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
pacman -Syy

Configure the Systems

genfstab -U /mnt >> /mnt/etc/fstab

Chroot

arch-chroot /mnt

Time Zone

ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc

Localization

Edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 and other needed locales. Generate the locales by running:

locale-gen

Create the /etc/locale.conf file, and set the LANG variable accordingly:

LANG=en_US.UTF-8

Network Configuration

Create /etc/hostname with the name your host:

nameFromYourHost

Create /etc/hosts:

127.0.0.1   localhost
::1         localhost
127.0.0.1   nameFromYourHost.localdomain nameFromYourHost

Enable Network Manager

systemctl enable NetworkManager

Install GRUB

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Set the root Password

passwd

Create a New User

useradd -mG wheel yourUsername
passwd yourUsername
export EDITOR=nvim

Edit /etc/sudoers run “visudo” and uncomment the following line:

### Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL

Exit, Umount, and Reboot

exit
umount -a
reboot

(optional) Mounting Disk Partition

# /dev/sda2
UUID=******b49-******-4******-******30-******949c	/         	ext4      	rw,relatime	0 1

# /dev/sda1
UUID=******-******      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda2
UUID=f******-9***-4***-9***-******92949c	/         	ext4      	rw,relatime	0 1

# /dev/sda1
UUID=******-******      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda3
/dev/disk/by-uuid/12***d*a-****-****-****-************ff /home/renology ext4 defaults 0 2

DWM Installation

I use dwm-flexipatch

arch-installation-script's People

Contributors

aritlh avatar

Stargazers

Paul Koop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.