Outrageously Fun Server Install Methods And Scripts!
Thinking of various outre server install methods and scripts made me smile this morning!
Do you know of an outrageously fun install script? Extra points if it installs lots of different OSes in lots of different environments. Extra points if it's short, clear, readable, and installs exactly one OS! Extra points if it's really fun, for example dd
an image to a disk, boot it, and everything auto-installs. Extra points for *BSD, Plan9, Hubris, etc. Extra points if it's Linux.
https://github.com/leitbogioro/Tools
https://github.com/bohanyang/debi/blob/master/debi.sh
https://www.devuan.org/os/documentation/install-guides/daedalus/bookworm-to-daedalus
https://git.devuan.org/farmatito/migration
https://busybox.net/kill_it_with_fire.txt
view-source:https://busybox.net/kill_it_with_fire.txt # For Chrome browser
https://github.com/alpinelinux/alpine-chroot-install
https://gist.github.com/atlury/417208b63a56d901b2f0c6f7a720eed6
https://gist.github.com/thde/5312a42665c5c901aef4
I hope everyone gets the servers they want!
Comments
Are you on crack?
Install NixOS on the same partition (in place!), from your existing non-NixOS Linux distribution using NIXOS_LUSTRATE.
“Booting” into NixOS via kexec is also fun.
Automated Linux from Scratch
I have fond memories of customizing/automating the hell out of my Windows XP installs using nLite.
It's pronounced hacker.
Maybe I have to try NIXOS_LUSTRATE. I am guessing it might work on a remote server. @terrorgen
What about booting via kexec on a remote box?
I tried doing LFS using the bleeding edge sources. I got through building the kernel plus gcc and the rest of the toolchain. It was fun! I made a little script that automated the build so the binaries kept pace with the source development. There were only a couple of days when something didn't compile.
I remember having to buy Windows XP and Word for my daughter when she was in elementary school. We tried several times using open source editors instead of Word. But there always were some files generated by the teacher or by other students which the open source editor wouldn't read or wouldn't format properly. The other students and the teacher had problems trying to read or format some files generated by the open source editors. At the time I was using Plan 9 and NetBSD and Crux. So, yeah, fond memories for me too!
Thanks for your comment!
I hope everyone gets the servers they want!
I have sucessfully used NIXOS_LUSTRATE on a remote server, can't recall which one. There's also nixos-in-place, which I used on a Virmach box that didn't support custom ISOs.
Yup, that's exactly what the documentation mentions as one of the use cases.
And your story reminded me that I would print my college papers using a dot matrix. Mind you, this was the late 90s, so I was just being "nerd cool". 🤓
It's pronounced hacker.
I NIXOS_LUSTRATE all the time when there isn't an ISO already in the control panel and I am too lazy to ask for one.
The all seeing eye sees everything...
Want to walk through it with me on one of my servers just for fun?
I hope everyone gets the servers they want!
The manual is pretty straightforward. I guess most people will encounter a hiccup because they are not familiar with how to write the system config files.
Do you want to try yourself first and ask when you reach a roadblock?
I remembered alpine also have a LUSTRATE process.
The all seeing eye sees everything...
Okay, I need to read up a bit on Nix and on LUSTRATE and kexec. Also about Alpine LUSTRATE. Thanks for the tips, guys!
I hope everyone gets the servers they want!
I usually just use the default config file plus a line to enable ssh, a line allowing root login with password, and another line to set the initial root password. I think that is also what the manual recommends.
Once you get your system LUSTRATEd with NixOS, then you can mess with additional configs.
The all seeing eye sees everything...
Google led me to https://www.reddit.com/r/AlpineLinux/comments/psw88k/comment/hdsnl0j/
I hope everyone gets the servers they want!
https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
Cheers
The all seeing eye sees everything...
Boss, what's the best link about Nix for my first read?
I hope everyone gets the servers they want!
This is probably the best for now: https://nixos-and-flakes.thiscute.world/
The all seeing eye sees everything...
Hi! I looked at the beginning of this, and then I looked at a few bits more. Nice work from a friendly guy! Clear explanations. Thanks for the link!
I hope everyone gets the servers they want!
@Nekki @jqr @terrorgen
Is it me or is only members with triangle (or butt-plug) shaped display pics are responding to this thread?
Websites have ads, I have ad-blocker.
Oh, this is terrible. Why did you point it out? We have to have you eliminated now.
/me deploys the butt-plug trinity squad
It's pronounced hacker.
I'll see your squad and raise you... erm... whatever this is....
Websites have ads, I have ad-blocker.
I hope everyone gets the servers they want!
If that is a butt plug... It's gonna freaking hurt.
The all seeing eye sees everything...
Yes, but how long is the person gonna be alive before he/she/they/it is dead?
Websites have ads, I have ad-blocker.
It is the will of @OlesFans.
Wed Dec 6 05:51:45 PM UTC 2023
root@sn ~ # cat /etc/debian_version
12.2
root@sn ~ # wget -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh'
root@sn ~ # wc InstallNET.sh
4862 33414 277780 InstallNET.sh
root@sn ~ # chmod a+x InstallNET.sh
root@sn ~ # date -u
Wed Dec 6 06:04:42 PM UTC 2023
root@sn ~ # bash InstallNET.sh -fedora 39 -raid 0
Do you just boot a livecd on the server and use the script?
Team push-ups!
The server was installed with Debian and booted from NVMe disk. It wasn't from a Live CD.
I hope everyone gets the servers they want!
If I have an existing Debian install with raid 0 on 4 disk - I can just run the script for a fresh install?
Team push-ups!
yawns
Free Hosting at YetiNode | Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Well . . . yes . . . but, I read the script back when it was about 3.4K lines. As you can see, it's grown to almost 5K.
I can't recommend running the script without reading it.
Note that reading it is not the same as understanding it. Haha, I can't recommend running the script without understanding it.
The script seemed to have worked for me multiple times on different servers and with different starting OSes and different new OSes being installed. The script seemed to be able to be run multiple times, reverting the newly installed OS to the previously installed OS, etc.
I don't think I've tried the script with more than 2 disks. I have tried RAID 0 with two disks.
A while back I posted results from several trials over at Nodeseek. Sorry I don''t have the links handy. The guy behind the script posts from time to time over at Nodeseek, but I haven't seen him post there recently.
Also, I want to say "Good morning!" to @Astro, @AuroraZero, and other guys! It's a lovely morning here in the Winter desert! Bright yellow sunshine! ☀️ Not too hot. No more broiler oven for a few months until Summer returns. ☀️Hope you all have a great day!
I hope everyone gets the servers they want!
@Not_Oles good morning! Here is another small script for you
https://github.com/opiran-club/VPS-Optimizer
Team push-ups!
I haven't tried this yet, but Hetzner's installers are on GH here