2022-08-13
02:12rkjnsn has quit [Server closed connection]
02:12rkjnsn has joined #asahi-alt
08:12Glanzmann has quit [Quit: leaving]
13:08ktz_[m] has quit [Server closed connection]
13:08ktz_[m] has joined #asahi-alt
16:50psykose has quit [Remote host closed the connection]
16:51psykose has joined #asahi-alt
19:04Glanzmann has joined #asahi-alt
19:09GlanzmannCy8aer[m]: The issue appears to be that previously it was automatically selected, but now it is no longer and I have to do it explicitly.
19:14bluetail27I am on Arch Linux, based on EndeavourOS. I have setup a cronjob for all my dotfiles already. However, I want to re-deploy my system a couple of times. How would I go? Backup -> Restore? Writing a installer script and test it in a VM? Somehow export the current configuration into a bootable iso? Which approach is feasible?
19:14bluetail27EndeavourOS, based on Arch Linux *
19:15Glanzmannbluetail27: What I always do, is take a backup of the whole system (tar --numeric-owner --one-file-system -cf - / | ssh host 'cat > /var/tmp/mini-date.tar'.
19:16mpsI would create tarball of rootFS and boot from external device, then untar it on destination
19:16GlanzmannThan once I'm finished with testing and want the old system back, I choose in the asahi installer u-boot environment, boot debian live, and do the rest manually.
19:17bluetail27Can you explain the command a bit or do you want me to read some man pages? I don't understand the ssh host part
19:17GlanzmannThat involves, create the partition, format it, replace the uuids in /etc/fstab and get u-boot which does not look for a particular uuid.
19:18Glanzmannbluetail27: So the command above is creating a tar archive of the root parition and writes it using ssh to another host.
19:18GlanzmannThe numeric-owner is necessary because the running system might have other username:userid mapping than the system you're restoring from.
19:19bluetail27so replace "host" with whatever host it is. For instance bluetail@192.168.178.31
19:20bluetail27how do you remember all those incantations? I have mine in snippet-box cause I dont remember unless I repeat it over and over
19:25bluetail27Is it open source? :D
19:26cy8aer has joined #asahi-alt
19:28cy8aer@Glanzmann - just give a short featback. Then I know that my heisenbridge to irc is working 😉
19:29GlanzmannI never used matrix. 1993 or so a master student of my father showed me irc, wasted many years since than in irc. :-)
19:30bluetail27Thanks Glanzmann. I will try to set it up.
19:31cy8aerYou need to know irc - otherwise this bridge does not work. It is like a connection bot where you put the the irc stuff natively into it. And then it creates the rooms in your matrix account. Fully transparent.
19:31Glanzmannbluetail27: If you need help, let me know, maybe I do a video recording of it, because it is quiet cumbersome, but quickstart.txt in the m1-debian repository has some hints.
19:31bluetail27Well
19:32Glanzmannbluetail27: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob_plain/refs/heads/master:/files/quickstart.txt
19:33Glanzmannbluetail27: You can also do multiple linux installs on one system, but I never do it that way, I always backup the one i want to keep ling time, wipe it, run the installer with the temporary one, and restore my old.
19:35cy8aerGlanzmann: oh two things with m1-debian - f477e5eddfbaf1b0787a5d7a1f4d33a224714b15 (that is the patch before your bluetooth-corrections): On M1 it tries to install "libc6-dev-arm64-cross" which fails for me. Switching it to "libc6-dev"works but then it fails when building u-boot
19:36Glanzmanncy8aer: To be honest I build the whole thing these days on amd64 using a cross compiler.
19:38bluetail27Glanzmann it's amazing. Do you want me to extend on it to have arguments? e.g 'how m1 Bluetooth'
19:39bluetail27or was the idea to put it in a way that knowhow has always the suffix of the topic?
19:41bluetail27Yes thats right
19:41bluetail27You sounded like you don't keep all knowledge in one file
19:41bluetail27but have a knowhow file for each system
19:42Glanzmannbluetail27: No, I really do the file is almost 1 MB big. I also have a seperate git repository for some lengthy tutorials. But most of the stuff is in my 'knowhow' file.
19:43bluetail27Glanzmann how do you keep a good oversight when there are multiple OS? For instance, on ARCH you don't use apt-get... Right? So you would have pacman -S for similar reasons... And then it may not be applicable to ARCH but to debian / other OS. You might require to git clone from the AUR archive
19:44cy8aerGlanzmann: Your "bootstrap.sh" is one of the few situations where the fan comes on 😉 "-j 10"...
19:45bluetail27Glanzmann I understand now. Why do people use '...' ? Is it a replacement for 'sigh' ?
19:46bluetail27Do I require to set something in the application Terminator to get the colored ANSI you had setup in perl?
19:47Glanzmannbluetail27: No, I don't think so. You can also kill it, I added it later on to highlight the search terms.
19:55bluetail27Glanzmann for some reason suddenly only sudo su works, sudo nano filename does no longer work. What can I do?
19:56bluetail27I'm so confused ... whats going on
19:58bluetail27nano is /usr/bin/nano
19:58bluetail27nano is /bin/nano
20:00bluetail27oh wait... its working now. It used to decline my password
20:00bluetail27I see no reason for it to happen at all
20:02GlanzmannI also modify my sudoers config, to preserve the ssh agent and display: https://pbot.rmdir.de/5BE2TKbHPHYj7SzbAu8cAA
20:02bluetail27In your knowhow file, is there any order?
20:03cy8aerGlanzmann: Yes in scripts it makes sense, but "-i" is interactive. That was just a meta question.
20:03Glanzmannbluetail27: Nope, in the early days I tried to keep stuff together, these days I only add paragraphs.
20:04bluetail27wait
20:04bluetail27does it mean it prints 1mb always?
20:04bluetail27perhaps I did something wrong
20:04bluetail27but it highlights the hit in red
20:05Glanzmannbluetail27: Nope, it only prints the paragaphs that contain all keywords, see: https://pbot.rmdir.de/ifzc4xH8QZLZoorkq3W6mw
20:05bluetail27I know
20:06cy8aerfatal: ambiguous argument 'asahi-v2022.07-2': unknown revision or path not in the working tree.
20:07bluetail27thats the reason. In your knowhow file is separated with =
20:10bluetail27Glanzmann it didnt fix my issue
20:10bluetail27I feel dumb
20:10bluetail27how firefox returns everything
20:10bluetail27I even replaced '=' with '-'
20:12bluetail27this is the script
20:12bluetail27this is the knowhow file
20:12bluetail27I replaced '=' with '-' trying to fix that its printing everything upon 'how firefox'
20:13bluetail27I know its too invasive
20:13Glanzmannbluetail27: The how file has to look like that: https://pbot.rmdir.de/RLtz7DTr36-vVpxW1sdMwQ
20:14bluetail27wait
20:14bluetail27could it be the reason cause I copied it to the clipboard and then pasted?
20:14bluetail27I try to curl your file
20:16bluetail27okay, now my knowhow file is exactly as yours
20:17bluetail27wait...
20:17bluetail27It matches against full words
20:17bluetail27it doesnt match against a partial hit
20:18GlanzmannBut you can modify the perl code to not require full words, but because my file got to big, I prefer it that way these days.
20:18bluetail27makes sense
20:22bluetail27Glanzmann do you see something as https://github.com/pawelmalak/snippet-box suited for a ton of info? Or even think its better?
20:26GlanzmannA lot of my fellow students at university, they enhanced the 'how' to support latex for mathematical formulas or support subsections, but they never used it and got back to the original version. They once even spend an entire day to recorgize the file into sections and subsections.
20:27bluetail27the one downfall of snippet-box is that you cannot export your stuff
20:27bluetail27and thats a big no-no
20:27bluetail27Thats why I wanna get away
20:28bluetail27I could add this as a feature, but at the moment I'm not interested
20:34bluetail27Oh wait. I can just use the db file it generates :)
20:51cy8aer> Nothing. I do have an idea: I cloned the whole stuff months ago. Probably the refreshing does not work. I will delete "u-boot" and try it again.
20:53Glanzmanncy8aer: That will wor for sure. But the 'git fetch -a -t' should pick up the new tags.
22:33Votes78 has joined #asahi-alt