#
…

2022-08-13

02:12rkjnsn has quit [Server closed connection]
02:12rkjnsn has joined #asahi-alt
08:01Glanzmannleif: Thank you, I'll do it in the future the same way.
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:17mpsGlanzmann: we like same workflow :)
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:17Glanzmannmps: Yep. :-)
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:18mpsearlier instead of ssh I used 'nc -l p 1234' on target machine
19:19Glanzmannbluetail27: Sometimes, I use netcat instead of ssh.
19:19bluetail27so replace "host" with whatever host it is. For instance bluetail@192.168.178.31
19:19Glanzmannmps and I think alike.
19:19Glanzmannmps: I always use openbsd netcat and use nc -l -p 12345 -w 60
19:19mpsGlanzmann: hah, same as me
19:19Glanzmannbluetail27: Yes, but it should be of course another host.
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:23mps( cd / && tar --numeric-owner --one-file-system -cf - . ) | nc target_ip 1234. iirc
19:24Glanzmannbluetail27: I have a file, called knowhow which I maintain since 20 years.
19:24Glanzmannbluetail27: And I have perl script which searches in that file:
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:28cy8aerok, seems to work. Nice tool this heisenbridge.
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: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:35cy8aer(I mean when running "./bootstrap"
19:36cy8aerBecause I first tried to compile it by myself...
19:36cy8aer... and then contacted you
19:36Glanzmanncy8aer: To be honest I build the whole thing these days on amd64 using a cross compiler.
19:37GlanzmannBecause it is faster than on the m1 and the machine has better connectivity.
19:37Glanzmanncy8aer: I'll fix it.
19:37cy8aeryep, asumed it. So for arm64: There is something wrong with the cross compiler bridge.
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:40Glanzmanncy8aer: I think I fixed the bootstrap.sh but I have to test it on arm64
19:40Glanzmannbluetail27: The how script lists all paragraphs that contain all keywords.
19:41bluetail27Yes thats right
19:41cy8aerI'll do. But now I rebooted and... Bluetooth is back again.
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:42Glanzmanncy8aer: Perfect.
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:44Glanzmanncy8aer: It sure does. But I'm still looking for a multithreaded zip. :-)
19:44cy8aer(this is my prove that the fan works)
19:44Glanzmannbluetail27: I add a keyword for example hpux solaris rhel debian ...
19:45bluetail27Glanzmann I understand now. Why do people use '...' ? Is it a replacement for 'sigh' ?
19:46GlanzmannI use '...' as a substitute for 'and so on'.
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:58GlanzmannWhat does 'type -a nano' say?
19:58bluetail27nano is /usr/bin/nano
19:58bluetail27nano is /bin/nano
19:59GlanzmannLooks good, can you run nano?
19:59GlanzmannWhat error message do you get when you run sudo 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:00cy8aerWhy do all people "sudo su" isn't it "sudo -i"?
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: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:05Glanzmannbluetail27: This is the quickstart for the m1-debian.
20:06cy8aerGlanzmann: Ah, "./bootstrap.sh"fails when checking out u-boot.
20:06cy8aer+ build_uboot
20:06cy8aer+ handle_crosscompile
20:06cy8aer+ '[' aarch64 '!=' aarch64 ']'
20:06cy8aer++ uname -m
20:06cy8aer+ test -d u-boot
20:06cy8aer+ cd u-boot
20:06cy8aer+ git fetch
20:06cy8aer+ git reset --hard asahi-v2022.07-2
20:06cy8aerfatal: ambiguous argument 'asahi-v2022.07-2': unknown revision or path not in the working tree.
20:06cy8aerUse '--' to separate paths from revisions, like this:
20:06GlanzmannYou need to create a file with multiple 'sections' which are devided using '--'
20:07Glanzmanncy8aer: Interesting. Probably 'git fetch' does not get the new tags by defalt.
20:07cy8aerTried "git fetch -a" which still creates the error.
20:07bluetail27thats the reason. In your knowhow file is separated with =
20:09Glanzmanncy8aer: Can you try, git fetch --all
20:09Glanzmannand if that does not work, git fetch -t
20:10bluetail27Glanzmann it didnt fix my issue
20:10bluetail27I feel dumb
20:10bluetail27how firefox returns everything
20:10cy8aercommit 7dc95db829341e93eab7f926ee6717142baa00dd (HEAD -> asahi)
20:10cy8aerGlanzmann: yes I did, "git reset" still fails. Git log shows
20:10cy8aerDate: Tue Mar 1 22:11:14 2022 +0100
20:10cy8aerAuthor: Mark Kettenis <kettenis@openbsd.org>
20:10cy8aer HACK: Disable keyboard check
20:10cy8aeris this the real HEAD?
20:10bluetail27I even replaced '=' with '-'
20:11Glanzmannbluetail27: Firefox has nothing todo with how.
20:11Glanzmannbluetail27: how is a perl script that is run from a terminal.
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:13GlanzmannThe entries need to be devided by '--<newline>'
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:16Glanzmannbluetail27: Maybe, no idea.
20:16Glanzmanncy8aer: What does 'git tag | grep -i asahi' say in build/u-boot?
20:17bluetail27It matches against full words
20:17bluetail27it doesnt match against a partial hit
20:17Glanzmanncy8aer: If it does not list two entries, can you try 'git fetch -a'?
20:17Glanzmannbluetail27: Yes, it only matches full words.
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:24Glanzmannbluetail27: Personally, I think it is overengineered.
20:25GlanzmannIf it takes me more than 2 seconds to write something down, I'm not going to do it.
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:26GlanzmannBut it might be that you work differently and like the snippet-box more.
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:51cy8aerGlanzmann
20:51cy8aer> Cy8aer: What does 'git tag | grep -i asahi' say in build/u-boot?
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:52cy8aerOups should not edit in such a bridge, sorry.
20:53Glanzmanncy8aer: That will wor for sure. But the 'git fetch -a -t' should pick up the new tags.
20:53cy8aerhm, too late, sorry.
20:53Glanzmannno issue, I'll keep an eye on it.
20:53cy8aerand yep, -t sounded promising
22:33Votes78 has joined #asahi-alt
…