Git Product home page Git Product logo

arceryz / archlinux-installer-script Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 4 KB

Arch Linux install script. Only performs the minimal steps for booting into arch. 75 lines of script with full progress messages and tutorial.

Home Page: https://wiki.archlinux.org/title/installation_guide

License: MIT License

Shell 100.00%
arch-linux archlinux archlinux-installer grub install-script linux linux-installer minimal shell tutorial

archlinux-installer-script's Introduction

archlinux-installer-script

This installer script is meant to be used from a bootable usb when you install Arch Linux. This script tries to only do what is necessary to get up and running with an Arch console on your machine. The script is configured for EFI only, but you can change two lines to turn it into a BIOS install (disk formatting and grub installation). Refer to the arch install guide so that you know what you're doing.

The script does the following setup:

  • Partition drive in order: 512MiB Boot, 14G Swap, 50G Root, Home (remainder).
  • Format partitions.
  • Mount partitions to /mnt.
  • Create directories on /mnt.
  • Call pacstrap on /mnt to install the following packages:
    • Core linux linux-firmware base base-devel efibootmgr grub
    • System vim git man networkmanager
  • Generate fstab in /mnt/etc/fstab.
  • arch-chroot to the installation and do the following:
    • Generate locale for en_US.UTF-8.
    • Set timezone to Europe/Amsterdam (change later).
    • Synchronize time with hwclock --systohc.
    • Enable networkmanager with systemd.
    • Set root password to 123 (change later).
    • Set hostname to archer.
    • Create /boot/grub directory.
    • Create Grub config with grub-mkconfig.
    • Install Grub with grub-install.
  • Outside of chroot: unmount and notify user of completion.

Install guide

To get internet you need to use the iwctl wifi manager or plug in ethernet cable.

iwctl
[iwd]# device list
[iwd]# station <DEVICE> scan
[iwd]# station <DEVICE> get-networks
[iwd]# station <DEVICE> connect <SSID>

When you have internet you can download the script with curl:

curl -LO "https://raw.githubusercontent.com/parcevval/archlinux-installer-script/master/archstrap.sh"

Once you have the script you can run it. Arguments for the command are automatically printed. If arguments are incorrect, the script will tell you. Be sure that you want to wipe your drive and type y to proceed.

chmod +x archstrap.sh
./archstrap.sh /dev/sda
Are you certain? (y/n)
y
...

At the end you will be greeted with a message giving you the root login credentials: username root and 123 as password. Change these later.

archlinux-installer-script's People

Contributors

arceryz avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mustafaozver

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.