Install and post-install scripts - From zero to ready to use (minimal setup)
I wrote these scripts to speed up my future Arch installs. They are heavily opinionated and made for my own needs. Still, I thought they could be of use to someone.
I tried to keep the "stack" as minimal and modern as possible. Even though you'll end up with only about 520 packages installed (for a fully usable and complete setup), some packages may be completely unnecessary for many people (inkscape, for example). However, they can simply be removed from the post-install script before running.
The install script is completely independent and you'll end up with a basic ArchLinux install. You can just install a desktop environment on top of it and it'll work, for example. The post-install script has several dependencies from the install script though, such as systemd-boot.
Hope you guys enjoy it! Feedback is always welcome (these scripts are intentionally basic)
Github repository: https://github.com/exah-io/minimal-arch-linux
https://i.redd.it/qyno4xn9uic31.png
Install script features
- LVM on LUKS (/boot is not encrypted)
- LUKS2
- systemd-boot (with Pacman hook for automatic updates)
- Automatic login (with systemd)
- SSD Periodic TRIM
- Intel microcode
- Automatic sort of mirrors list by speed, synced within the last 12 hours and filtered by HTTPS protocol (Reflector with Pacman hook)
Post-Install script features
- UFW (deny incoming, allow outgoing)
- TLP (default settings)
- swaywm:
- autostart on tty1
- waybar: onclick pavucontrol (volume control) and nmtui (ncli network manager)
- swayidle and swaylock: automatic sleep and lock
- Alacritty terminal
- rofi as application launcher
- slurp and grim for screenshots
- zsh:
- powerlevel9k theme
- History
- Load NVM on first invocation (npm, npx, node, nvm)
- GTK theme and icons: Qogir
- Other applications: firefox, keepassxc, git, openssh, vim, alacritty, thunar (with USB automonting), NVM (with node.js LTS), tumbler, evince, gimp, inkscape, thunderbird, upower, htop, code oss, nnn and a few others
Much of the ricing was shamelessly stolen from u/aemino amazing's post: https://www.reddit.com/r/unixporn/comments/9y9w0r/sway_first_rice_on_my_super_old_macbook_air/ . I just made a few changes and put everything together for a zero to ready to use Arch setup.
About this post
- Posted
- Archived
- Score
- 96 · 100% up
- Kind
- Image
- ID
- chuala
25 comments
Some one needs to learn about
--noconfirm.Hi, Can you explain what that does?
It's similar to
apt-get -yYes
Ahah thanks for the tip!
I have similar kind of scripts that work on Ubuntu, Debian, and Arch.
The main install.sh script calls some of the others. You want a sort of base install, headless, and then maybe desktop, maybe Docker, etc.
I have scripts to install those, nodejs, neovim with my chosen packages, docker, i3 gaps, etc.
Also in my dotfiles are all sorts of config for ~/.config, ~/(.files...), .vim, .tmux, etc.
They are at https://github.com/mschwartz/dotfiles.
I get lots of ideas by looking at other dotfiles repos, including the various apps like vim, tmux, mutt, ranger, etc.
Thanks for sharing!
https://www.atlassian.com/git/tutorials/dotfiles changed my life.
I prefer an actual clone, not a bare repo. I want to easily update my dotfiles at will, commit them, update dotfiles on the other systems.
r/swaywm
Yes (: the latest versions have been super stable! Apart from some issues with full screen sharing (haven't had any issue with single window sharing) it's been perfect
See I have a 1080p display and a 15 inch mac pro, when using xorg it was suck a pain to scale both properly, and often apps were unusable because the scaling was incorrect for some elements. Swaywm does this with a simple per monitor DPI setting that's already baked in. I love it. It's strange how so many people claim Wayland compositors are so bad.
Amazingly documented! Great work
Thanks a lot! There's still room for improvement, but I think it's already understandable as is
Legend!!!
:o Really glad you enjoyed it!
Hello! Great post, I saved it for when I try to install and run Arch again. Some noob questions. This here:
Will allow me to do this? (when I'm booting from the USB):
If not, how can I run the script from the live USB?
And also, why are you blacklisting bluetooth in your post-install script? should I skip this step if I want to use bluetooth?
Hey! Both install methods would work and the effort is mostly the same. Increasing the cowspace partition step actually came from a PR from someone here.
The install script is actually meant to be run from the live USB.
Definitely remove the blacklisting step if you intend to use bluetooth. My laptop's bluetooth radio was consuming quite a bit of battery and I've never used it.
Let me know if you have any other questions! Also, please refer to the requirements section of the Readme (the script is super easy to adapt and get rid of those requirements though)
Great! Thanks, still I’m not very clear on how can I run the script from the USB boot, I’m catching up with many things I don’t know from GNu/Linux. What would be the “step by step” to achieve running this script?:
Are there LVM features that people use regularly besides having LUKS encrypted volumes?
Nope