Save the menuconfig, prepare the most detailed emerge that would make Da Vinci jealous, and then go on a weekend trip only to get back and find it's 50% done.
But I really don't suggest to use it, unless you know what you are doing. It's not really the "Arch way" and you might need to change a couple parts in order to get it working.
For editing sudoers file - yes. But if you edit this file then next pacman update for sudo package will create .pacnew file. If all you need is to add new rule for your user or group, then better practice is to create extra file under sudoers.d folder. These extra files are kind of "appended" to main sudoers config file when its configuration is loaded in memory.
You see this kind of patten for a lot of other configurations - /etc/X11/xorg.conf.d, /etc/ld.so.conf.d, etc...
In short, it installs Arch Linux. Although if you don't know what it does, don't just go and paste this onto a real machine. Some stuff in this is really host specific
71 comments
Reminds me of this classic.
Holy shit I haven't seen a bash.org link in forever.
Ah, the good old times when men were men, women were men, and children were FBI agents.
I seldom get a chance to post one. Even then I usually can't find what I wanted to.
I used to legit do this on my Duron 1200Mhz box.
Save the menuconfig, prepare the most detailed emerge that would make Da Vinci jealous, and then go on a weekend trip only to get back and find it's 50% done.
Gods below I remember having a Duron 1200. It was a MASSIVE upgrade over the ancient P233 I'd had for like six years.
IT REALLY WORKED? IM SCREAMING
Username checks out
Will have to try I can’t live without trying that.
Did you run it?
Yeah it worked just fine, only forgot to enable networking :D
Haha I was trying to work out what was missing. Got ssh but no connection!
And people say the Ubuntu installer is easy ;)
Now that you know it works you just need to save it to a script for reuse. The penultimate in laziness.
No locale? No hostname? You're nuts!
I also like to leave dangerously.
Someone downvoted you for a pun they didn't get. Here's you +1 back. Haha.
What's the pun?
What the heck is vda?
It's a qemu vm, so I guess udev sees that it's a virtual disk and assigns it this way
Only virtio disk will be named
vda. If you choose other type of bus, the virtual disk could be namedsdaorhda(forscsidisk andidebus).Ahh thanks. Come to think of it I have run into that before, just been a while, heh.
Soo where is the script as text :))
Here you go
parted /dev/vda mklabel msdos && parted /dev/vda mkpart primary ext4 0% 100% && mkfs.ext4 /dev/vda1 && mount /dev/vda1 /mnt && pacstrap /mnt base vim sudo grub openssh && genfstab -U -p /mnt >> /mnt/etc/fstab && arch-chroot /mnt bash -c "grub-install --target=i386-pc /dev/vda && grub-mkconfig -o /boot/grub/grub.cfg && useradd -m -g users -G wheel,storage,power sysadmin && passwd && passwd sysadmin && systemctl enable sshd && EDITOR=vim visudo && exit" && rebootBut I really don't suggest to use it, unless you know what you are doing. It's not really the "Arch way" and you might need to change a couple parts in order to get it working.
Thank you. Of course i am not copy pasting directly, since i don't like using 1 partition. This is just for reminding me the commands i forget :)
WHAT YOU CAN PACSTRAP INDIVIDUAL PACKAGES
Yes
it will also accept a text file with one package name per line:
Uhm... Of course? Just because you usually append a group like base doesn't mean you can't use it with packages... It works very similar to pacman
that laziness requires a lot of mental power.
Laziness encourages intelligence. Automate the boring stuff!
Oh, cool, somebody rewrote the AIF ;)
Nice, it really shows just how freaking easy it is to install btw.
echo 'nice' && echo 'command' && echo 'bro'
Heck, throw in whiptail and you could probably write yourself a one-liner menu-driven installer!
Wow this seems so simple and efficient! Have to give this a try soon
Now add some lvm and luks on top of that :)
That is efficient, not lazy.
Why visudo? You could do
echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheelinstead, or smth similar.Isn't using visudo the best practice?
For editing sudoers file - yes. But if you edit this file then next pacman update for sudo package will create .pacnew file. If all you need is to add new rule for your user or group, then better practice is to create extra file under sudoers.d folder. These extra files are kind of "appended" to main sudoers config file when its configuration is loaded in memory.
You see this kind of patten for a lot of other configurations - /etc/X11/xorg.conf.d, /etc/ld.so.conf.d, etc...
Oh, didn't know sudoers.d was a thing. You live and you learn I guess
So what does this do?
In short, it installs Arch Linux. Although if you don't know what it does, don't just go and paste this onto a real machine. Some stuff in this is really host specific
Okay, I know what each of the commands do separately but not as a whole
would like to know as well. :D just short summary / annotation
Does the visudo section actually allow sudo to work?
Aren't you also supposed to unmount /mnt before rebooting?
In this case it opens vim to edit the sudoers file, so a bit of extra work, but it worked just fine. Oh and yes, I forgot to umount.
Isn't
&& exita no-op forbash -c?Oops! Didn't really think too much when I was writing this, I was just lazy :D
Arch don't install
dhclientby default, chrooting into it to use internet might not work withoutdhclientDo this with LFS and I'll be applauding goes back to compiling the 70th package..
Deleted before we saved it.
LOL!
(I've saved this so that I may join you:)
HOLY HELL IT WORKED. Thank you!