Skip to content

Latest commit

 

History

History
134 lines (103 loc) · 5.66 KB

README_US.md

File metadata and controls

134 lines (103 loc) · 5.66 KB

malpi

Arch Linux + Btrfs + Luks

A shell script, simple and amateur, to install Arch Linux on my personal computers. You can use and modify it as you like.


Demo

Start screen image

Watch the demo video.

Notes

  • It is advisable that you already know how to install Arch in the traditional way, following the installation guide available on ArchWiki, the purpose of this script is to speed up my installations and not skip steps in learning.
  • If you prefer you can partition your disk before launching this script.
  • You can first try it in a Virtual Machine if you prefer.
  • The console font will be changed while the script is running.
  • I have intentions of migrating this script to the whiptail tool.
  • The idea of ​​creating this script came from the desire to practice the shell language, nothing more.

Prerequisites

  • A working internet connection.
  • Logged in as 'root' user.

Obtaining the script

curl

curl -L stenioas.github.io/malpi/malpi > malpi

wget

wget stenioas.github.io/malpi/malpi

git

git clone https://github.com/stenioas/malpi

How to use

Important informations:

  1. This script assumes that you know your keymap and it will already be loaded.
  2. Only UEFI mode is supported.
  3. This script uses only two partitions, ESP and ROOT.
  4. The root partition will be formatted with the BTRFS file system.
  5. This script will create 4 subvolumes:
    • @ for /
    • @home for /home
    • @pkgs for /var/cache/pacman/pkgs
    • @snapshots for /.snapshots
  6. The EFI partition can be formatted in FAT32 if the user wants to.
  7. SWAP is not supported.
  8. NetworkManager is installed by default.
  9. Only Grub and Systemd-boot are available.
  10. This script can be cancelled at any time with CTRL+C.
  11. THIS SCRIPT IS NOT YET COMPLETE!
Tips:
  • A SWAP partition or SWAP file can be created after installing the system.
  • The home partition can be migrated to another disk or partition after installing the system.

First Step (Base installation)

Boot with the last Arch Linux image on a bootable device.

Then make sure you have Internet connection on the Arch iso. If you have a wireless connection the iwctl command might be useful to you. You can also read the Network configuration from the Arch Linux guide for more detailed instructions.

Finnaly, launch the script first step with the command below:

sh malpi -i

or

sh malpi --install

Then follow the on-screen instructions to completion.

Features
  • Set console font
  • Timedatectl set ntp as true timedatectl set-ntp true
  • Rank mirrors (by country)
  • Select disk and partitioning
  • Format and mount EFI and ROOT partitions
  • Select kernel version
  • Select microcode version
  • Install system base
  • Configure fstab
  • Configure timezone
  • Configure localization
  • Configure network(hostname file and hosts file)
  • Configure initramfs
  • Configure root password
  • Install bootloader

Second Step (Post installation)

Second step offers the post installation.

Launch the second script step, after succeeding in the first step, with the command below:

sh malpi -p

or

sh malpi --post
Features
  • Create and configure a new user
  • Enable multilib mepository
  • Install Xorg
  • Install video driver (Currently only intel and virtualbox available)
  • Install Desktop Environment or Window Manager (Optional)
  • Install Display Manager or Xinit (Optional)
  • Install extra packages (Optional)
  • Install Laptop Packages (Optional)
  • Install YAY (Optional)
  • Cleanup orphan packages

References


Btw, thank you for taking the time to get to know my project.!