DEV Community

Krushn Dayshmookh
Krushn Dayshmookh

Posted on

Installing Arch Linux, the scripted way.

As a proud user of Arch and taking pride in saying, "I use Arch, btw", I often found myself recommending it to my friends and colleagues. However many found the setting up of Arch Linux time consuming and confusing. At times they resorted back to me to help them install Arch on their computers. I always enjoyed the command line however it becomes rather boring when you find yourself doing the same task again and again. Some time later I found myself installing my system time and time again as I kept switching workstations between my internships and jobs.

So I finally decided to script my configuration to automate the task. I proudly present to you my highly opinionated Arch Install Scripts: https://github.com/krushndayshmookh/krushn-arch

The usage is pretty simple. Just boot into the live Arch Linux ISO, clone the repository and run the install.sh inside it.

Arch does not come with git preinstalled so you will have to install it with sudo pacman -S git

Here are the complete instructions for those looking to install Arch Linux with KDE.

  1. Download the latest Arch Linux ISO from https://www.archlinux.org/download/

  2. Flash it to a USB drive using a tool of your choice. I recommend Etcher if you're on Linux and Rufus on Windows.

  3. Boot using the USB drive

  4. Run the following commands on the terminal:


sudo pacman -Sy

sudo pacman -S git

git clone https://github.com/krushndayshmookh/krushn-arch --depth=1

cd krushn-arch

# please edit the hostname and username in the post-install.sh 

./install.sh

Enter fullscreen mode Exit fullscreen mode

That's it! The script should now setup your new Arch system for you. Just keep an eye for the prompts that pop up.

Hope you enjoy using Arch Linux!

Top comments (7)

Collapse
 
will_sn0w profile image

Unfortunately it doesn't work anymore. I'm stuck with this screen for about 2 hours now.

Collapse
 
krushndayshmookh profile image
Krushn Dayshmookh

I'm sorry, could you elaborate the problem?

Collapse
 
theapplegates profile image
Paul

The clone command wants a username and password. It seems to want to authenticate to GitHub. I have an account there but I have along, long, long, password using 1Password, and it makes it hard to download the script.

Thread Thread
 
theapplegates profile image
Paul

I entered the URL from the "code" button on your git page and this worked github.com/krushndayshmookh/krushn..., probably a typo on my end.

Collapse
 
owinterzz profile image
oWinterzz

Thanks a ton

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more