Code Monkey home page Code Monkey logo

arch-install-script's Introduction

arch-install-script

My archlinux install script

Usage

$ git clone https://github.com/ctjhoa/arch-install-script
$ cd arch-install-script
$ ./install.sh

NOTE: You can automate config with cp install.conf.sample install.conf then edit it

Additional config

  • Touchpad
# /etc/X11/xorg.conf.d/30-touchpad.conf

Section "InputClass"
  Identifier "Elantech Touchpad"
  Driver "libinput"
  MatchIsTouchpad "on"
  Option "DisableWhileTyping" "on"
  Option "MiddleEmulation" "on"
  Option "Tapping" "on"
  Option "TappingButtonMap" "lmr"
EndSection

Prerequisite

Flash arch on a USB key

https://wiki.archlinux.org/title/USB_flash_installation_medium

Install arch

The following is just a simplified version of arch installation guide for my personal usage.

Full guide is here https://wiki.archlinux.org/title/Installation_guide

Note: Do not create boot partition if Windows is already installed (EFI partition already exists).

Useful pages:

PS: https://wiki.archlinux.org/title/archinstall could be an alternative in the future

Global steps:

  1. loadkeys fr
  2. timedatectl set-ntp true
  3. wifi-menu -o
  4. fdisk /dev/sda
    1. New 512M EFI System -> mkfs.fat -F32 /dev/sda1
    2. New 2G Linux Swap -> mkswap /dev/sda2 && swapon /dev/sda2
    3. New Linux filesystem -> mkfs.ext4 /dev/sda3
  5. mount /dev/sda3 /mnt
  6. mount /dev/sda1 /mnt/boot
  7. pacstrap /mnt base base-devel iwd intel-ucode git mesa
  8. genfstab -U /mnt >> /mnt/etc/fstab
  9. arch-chroot /mnt
  10. ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
  11. hwclock --systohc # hardware suppose to be in UTC
  12. passwd
  13. bootctl --path=/boot install
  14. Configure systemd-boot
# esp/loader/loader.conf
------------------------
default  arch
timeout  4
editor   no
# esp/loader/entries/arch.conf
------------------------------
title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=${blkid -s PARTUUID -o value /dev/sda3} rw
  1. Set the keyboard layout in console
# /etc/vconsole.conf
-------------------
KEYMAP=fr
  1. umount -R /mnt and reboot
  2. Install arch-install-script

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.