Skip to content

Scripts for installing Arch Linux [ + desktop environment ] [ + LUKS home encryption ] with options to install & configure other useful tools

License

Notifications You must be signed in to change notification settings

nonoMain/nonoArch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nonoArch.git - Arch install script

This is a set of bash scripts meant to install an Arch machine with ease

Installation

Create a live boot with the arch ISO

Download the arch iso and load it onto a USB stick (I recommend you use something like Etcher)

Pre-run steps

  1. find the path to the disk you want to install arch on or the paths to the partitions you already have

e.g: fdisk -l

  1. set the EDITOR environment variable to your favorite terminal editor

e.g: export EDITOR=vim (vim is default, nano is good for beginners)

  1. read the docs that at the beginning of the setup file

there are multiple options other then the default so read all of it

Boot into the live boot and run:

# Make sure $EDITOR is a terminal editor you are comfortable with and is installed on the live boot
bash <(curl -sL bit.ly/nonoArchStepsSh)

Note: the above script is in here and can be replaced by:

# make sure you have the needed tools installed
pacman -Sy --noconfirm --needed curl unzip

# shortend link (full link is https://github.com/nonoMain/nonoArch/archive/master.zip)
curl -sL 'bit.ly/nonoArchMasterZip' -o nonoArch.master.zip

# Unzip the project archive
unzip ./nonoArch.master.zip

cd nonoArch-master

# Edit the 'setup.yml' file using a terminal text editor
$EDITOR ./setup.yml

# Run the installer
./nonoArch.sh

Install configurations

The script will install an entire system with a login manager and a desktop environment with my favorite programs and tools which can all be edited and configured here Note: in case you don't have your own dotfiles you can backup your configurations from your current machine using keeper and restore them after you installed your new machine (or in any other way you'd like of course, keeper is my biased recommendation)

Troubleshooting

Internet access

# You can test if you have internet connection by running
ping google.com

You need internet access in order to install a new system so make sure you have either Ethernet or wifi

If Ethernet isn't an option you can connect to wifi (if your machine has that ability) . Go through these 7 steps:

# No WIFI?!?!
# You can check if the wifi is blocked by running:
rfkill list
# If it says Soft blocked: yes then run
rfkill unblock wifi
# Enter into the network manager
iwctl
# find your device name
device list
station [device name] scan
# find your network
station [device name] get-networks
station [device name] connect [network name]
# enter your password and exit
exit

Information sources

  1. Arch wiki
  2. Nice install guide

Redo the installation

If the script crashed and the logs don't help you that much so I'd recommend to rerun the installation (not so time consuming) in order to rerun the script just run:

# You can see the disk you chose in the 'setup.yml' file
# Delete the entire disk that you installed the os on
# (if you installed it only on some partitions use fdisk to delete them)
sgdisk -Zo <path/to/the/disk>
# reboot the live system (it will lose all the installation files)
reboot
# now just rerun the installation command that specified at the beginning of this README.md

Scripts by order

The script that runs is nonoArch.sh and it executes the other scripts in this order:

  1. setup-live-env.sh - runs on the live environment as root
  2. partitioner.sh - runs on the live environment as root (optional, if you want to fully partition a disk)
  3. installer-live.sh - runs on the live environment as root
  4. installer-chroot.sh - runs on the installed system as root
  5. user.sh - runs on the installed system as admin user
  6. post-live-env.sh - runs on the live environment as root

More stuff you can do

for more useful stuff to do on your arch system look under here

Install noise suppression

install noise-suppression-for-voice and follow the insturctions

or if you use pulseaudio and want to save some time run this script to install noise-suppression-for-voice and configure it (make sure to fill the missing params inside the script)

Notes

  • This script is an improved version of an old Arch install script I had.
  • The script is installing arch in a way that I think is good and if you are not me this will very likely won't be well suited for you so I'd recommend looking at the way I did it and fork it to be as you desire,
  • I recommend using my repository mainly because of how light it is compared to other scripts that does the same stuff.

Credits

  • the project that my first arch installer was based upon was easy-arch
  • the project that I took design ideas (the bios grub support, the different desktop environments) from was ArchTitus
  • the ASCII art is from fsymbols

Nice alternatives

  • there are two ways you can look at it, if you want more minimal script that works great then defintley take a look at easy-arch
  • if you were looking to somethings even more comfortable and easy then use ArchTitus

About

Scripts for installing Arch Linux [ + desktop environment ] [ + LUKS home encryption ] with options to install & configure other useful tools

Topics

Resources

License

Stars

Watchers

Forks

Languages