Yet another Arch install script
Hey there!
Edit : Reddit on mobile adds Luke Smith's photo, probably because of the link I added. This is not the same script as larbs.
I switched to Linux 1 year and 3 weeks ago. One of the first things I felt the need to do is make a list of all the packages I needed and maybe a small script to install them. Then I needed a way to store my dotfiles... Then I found Luke Smith's youtube channel and LARBS. That was when I started working on a script of my own. I forked LARBS - I didn't know bash and I had never written a script (or code) before, and it was a great starting point.
I know there are too many "archlinux install scripts" out there to count, but I couldn't find one that fit my needs. I also know that for some people there is no reason to re-install arch from scratch, however newbies like me get too exited sometimes and either break our install, or don't keep track of what have done.
Here it is then: https://github.com/ispanos/YARBS/blob/master/yarbs.sh
To sum up, it installs systemd-boot and the appropriate microcode for your cpu ( think ), creates a pacman hook to run `paccache -rk3` after every upgrade, installation or removal of a package, creates a swapfile, installs programs in given lists ( example ), clones a bare git repository of your dotfiles and a couple other thing you can find in the README file. I added a description today, but it's still a work in progress. Please use it in a VM if you want to try it, because I haven't actually tested it on a system with more that one drives connected.
I know the script is a bit on the bigger side. I tried to make things as clear as I could, but this is my first project. I just want to here your comments cause I'm a out of ideas on how to improve it at the moment. (Automatically setting the timezone for example would be cool.)
Thanks!
Edited 14 Jul 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 84 · 100% up
- Kind
- Text
- ID
- ccpogo
52 comments
The best thing about Linux and arch in particular is that you practically never need to reinstall it. If you can trace the problem you can get rid of it, unlike in windows. I am using both os right now and recently some random exe was hogging up my internet and i was getting high pings in game. Tried everything to stop, nothing worked.It did bot even allow me rename the exe as administrator... Went into linux and then renamed it from there... I am slowly and steadily changing my workflow to linux, windows only for game because i get better fps there.
I can appreciate that learning how to fix an issue instead of re-installing is superior. Sometimes, newbies like me, mess up or want to start over and try something new, without caring to go through every package and optional dependency they don't need anymore.
The script was a pet-project to learn bash. I started taking notes of how to install Archlinux and at some point it felt easier to just make a script that keep notes of every detail I needed. I don't format my pc often either, but that's the reason I'm sure I will forget all the details and I'll have to read all the wiki pages again (it will probably take me less time, but wont be as fun).
Deleted before we saved it.
Don't even need to have a separate partition. Just don't reformat during the install.
Depending on the games you play, you'll actually start to get better FPS on some games using DXVK on wine-proton. Especially with games that have a shader cache running (see Overwatch on Lutris for example).
On Windows I only got 120 FPS in Overwatch, using SLI (low graphic settings, 1440p, 2x 980 non-TI). Now in Linux, with that shader cache running, I'm flying on somewhere around 200 FPS on a single card with all low, just because the shaders are precompiled. The only downside is that I sometimes have to wait for those shaders to actually compile at the start of the game (which takes up to 5 minutes after a patch), but it's pure bliss.
Same goes for Star Citizen btw, you'll have some lags here and there on startup, but after around 20 minutes you'll get around 120fps in that (unfortunately still) buggy piece of a demo. It's freaking breathtaking and gets me all hesistant from upgrading my GPU.
Thanks for the info... Will look into it.
I have been using Larbs for some time and really like it. I am interested to see what you have created.
Does it install arch then run a version of larbs? Or is it just a fork of larbs?
Besides the initial partitioning, mounting the partitions and running pacstrap it does all the rest. If you want to do that part too you can check the "pre-yarbs.sh" script, in the same repo. Also its a bit more hands on that LARBS. Since you need to change the locale and timezone, you will need to edit the script - check the variables at the top. I was thinking about adding an extra step to choose the timezone and locale while you run the script, but I didn't need it.
I will definitely look at it. You might want to look at the void-installer script (if you know Luke’s stuff you might be familiar with Void Linux). Might give you an idea for accomplishing the locale, Timezone, LANG, etc.
A very interesting project that I will use/try to decide what time I wanted to re-install Arch (a very probable possibility), since this installation is my first experience in Arch (and even if it's going very well, I think I'll create a 'sooner or later) more stable and accurate installation.
Please read the wiki thoroughly to understand exactly what this script does, because its not the typical installation using grub and it sets some configs that you should make your own mind about, before using them. Of course I don't think any of the configs could be harmful or cause any problem, but you never know.
Thank you again for the warning. However, don't worry, I installed so many Distro Linux before choosing Arch in this Desktop that the computer would have already exploded for some time if was possible xD
In case you do reinstall later on: use btrfs. Thank me later.
I wouldn't do it in your first install though, as it's a bit more tricky then just partitioning (especially with systemd-boot and RAID).
I can appreciate these install scripts have their place but I reinstall Arch that infrequently and rarely get new hardware so when I do need to install again, I actually savour and enjoy the manual Arch installation process.
I have a list of 76-80 packages I install. Do you write them down one by one after a format?
I'm just joking, but its actually how I started with this script. Also it was fun. I was almost done, before I even switched to arch.
Nope, just pipe them to a text file
Every time I see someone mention Luke Smith on this place I cringe, kinda sad to see how many people in this community follow and like the guy
whys that who is he
A channer with bad opinions who happens to promote linux
I watch his videos on commands but when people wanna use his script and not just experiment with their system on their own it's kinda sad.
I never used his script outside of a vm. Not every wants or has time to experiment. We are a tiny minority; most people don't experiment with these kind of things, the same way the don't experiment with their screwdriver or their hammer.
Deleted before we saved it.
lol
This is a distribution of arch linux derivative of larbs called yarbs, not arch linux.
Change my opinion.
Its as much of a different distro as any other arch user's system. I agree in part, so I can't change your opinion about it. I actually wanted to make a post about it, on a different subreddit, but I am not an expert on this.
Is my arch installation a different distro?
Is your arch installation a different distro?
Did mine become a distro when I created an install script?
What if instead of a complete installer it was a single pacstrap command with 70 packages?
Is that a distro?
Does it have to include configurations in the script to make it a distro?
What if you have a pacstrap command and a git clond <dotfiles> ?
As far as larbs, even though I wanted to give credit to Luke, I kind of regretting the way I did it. Why? Well, because you can't expect my script to work like Luke's. Larbs provides a config files and a programs list that are curated is such a way that anyone could use them. Mostly because of the extensive documentation. On the other hand, I don't expect a lot of people to make since of my config files and programs lists and I specifically linked the script and not the whole repo. Anyone could use his/her personal dotfiles repo and packages list(s) to make it their own. Also every function was made in such a way so that it could be easy to replace it. (For example I added grub for BIOS/MBR yesterday, because I borrowed an old laptop and it was easier to add an if statement rather than manually installing arch, because systemd-boot wouldn't work.
This is a fun question!
I believe so, since we both took a base arch installation and forked it by installing stuff and customising it.
If I am asking for help with arch its usually because I have experienced a critical issue with the system (usually something widespread) if i am having problems with an application the arxh resources aee third party and the debeloper stuff my primary source.
If I installed via your build script YOU would be the primary reference to go ti first for problems (upstream of me) then if it's NOT you and an arch problem id expect YOU to go upstream and report it.
Tldr: Yes, arch is literally the kernel ans a couple scripts + base. Everything after tbat is customisation and distributing it makes it an arch derivative distribution.
Even automating a minimal install makes it a 3rd party distribution but if it does absolutely nothing else other than partition pacstrap base and use efistub (not grub) while telling the user this /dumping the config and stuff for them to hand over for support, I'd consider it arch, others may not. But if said script fails, its not an arch problem you dig?
This is cool. Until now the only Arch installer script I've used is the one by Mat Moul but I may give this is a shot in a VM.
If you don't add any flags or changes the variables in the script you will get my exact set-up, just a heads up.
Hey there, was going to try this out on my Rasberry Pi but sadly your systemmd-boot stuff is only supported with AMD or Intel it looks like from a quick breeze
The raspberry pi has a completely different architecture. You need to use a completely different ISO. It's not just systemd,it's literally every single package.
The one comment I would make is do you really want everyone’s system to think they are in Greece?
Don't worry, it will only affect your timezone, not your finances. I made that script for myself,the only reason I added the timezone and Lang variables is to make it easier for someone else to change that. The flags to change dotfiles repo and the package list were made for a friend of mine.
Deleted before we saved it.
Thanks