marcan changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
rkjnsn has quit [Server closed connection]
rkjnsn has joined #asahi-alt
<Glanzmann>
leif: Thank you, I'll do it in the future the same way.
Glanzmann has quit [Quit: leaving]
ktz_[m] has quit [Server closed connection]
ktz_[m] has joined #asahi-alt
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-alt
Glanzmann has joined #asahi-alt
<Glanzmann>
Cy8aer[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.
<bluetail27>
I 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?
<bluetail27>
EndeavourOS, based on Arch Linux *
<Glanzmann>
bluetail27: 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'.
<mps>
I would create tarball of rootFS and boot from external device, then untar it on destination
<Glanzmann>
Than 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.
<bluetail27>
Can you explain the command a bit or do you want me to read some man pages? I don't understand the ssh host part
<mps>
Glanzmann: we like same workflow :)
<Glanzmann>
That involves, create the partition, format it, replace the uuids in /etc/fstab and get u-boot which does not look for a particular uuid.
<Glanzmann>
mps: Yep. :-)
<Glanzmann>
bluetail27: So the command above is creating a tar archive of the root parition and writes it using ssh to another host.
<bluetail27>
oh
<Glanzmann>
The numeric-owner is necessary because the running system might have other username:userid mapping than the system you're restoring from.
<mps>
earlier instead of ssh I used 'nc -l p 1234' on target machine
<Glanzmann>
bluetail27: Sometimes, I use netcat instead of ssh.
<bluetail27>
so replace "host" with whatever host it is. For instance bluetail@192.168.178.31
<Glanzmann>
mps and I think alike.
<Glanzmann>
mps: I always use openbsd netcat and use nc -l -p 12345 -w 60
<mps>
Glanzmann: hah, same as me
<Glanzmann>
bluetail27: Yes, but it should be of course another host.
<bluetail27>
how do you remember all those incantations? I have mine in snippet-box cause I dont remember unless I repeat it over and over
<mps>
( cd / && tar --numeric-owner --one-file-system -cf - . ) | nc target_ip 1234. iirc
<Glanzmann>
bluetail27: I have a file, called knowhow which I maintain since 20 years.
<Glanzmann>
bluetail27: And I have perl script which searches in that file:
<cy8aer>
@Glanzmann - just give a short featback. Then I know that my heisenbridge to irc is working 😉
<tpw_rules>
hi
<Glanzmann>
Perfect.
<cy8aer>
ok, seems to work. Nice tool this heisenbridge.
<Glanzmann>
I never used matrix. 1993 or so a master student of my father showed me irc, wasted many years since than in irc. :-)
<bluetail27>
Thanks Glanzmann. I will try to set it up.
<cy8aer>
You 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.
<Glanzmann>
bluetail27: 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.
<Glanzmann>
bluetail27: 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.
<cy8aer>
Glanzmann: 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
<cy8aer>
(I mean when running "./bootstrap"
<cy8aer>
Because I first tried to compile it by myself...
<cy8aer>
... and then contacted you
<Glanzmann>
I see.
<Glanzmann>
cy8aer: To be honest I build the whole thing these days on amd64 using a cross compiler.
<Glanzmann>
Because it is faster than on the m1 and the machine has better connectivity.
<Glanzmann>
cy8aer: I'll fix it.
<cy8aer>
yep, asumed it. So for arm64: There is something wrong with the cross compiler bridge.
<cy8aer>
👍️
<bluetail27>
Glanzmann it's amazing. Do you want me to extend on it to have arguments? e.g 'how m1 Bluetooth'
<bluetail27>
or was the idea to put it in a way that knowhow has always the suffix of the topic?
<Glanzmann>
cy8aer: I think I fixed the bootstrap.sh but I have to test it on arm64
<Glanzmann>
bluetail27: The how script lists all paragraphs that contain all keywords.
<bluetail27>
Yes thats right
<cy8aer>
I'll do. But now I rebooted and... Bluetooth is back again.
<bluetail27>
You sounded like you don't keep all knowledge in one file
<bluetail27>
but have a knowhow file for each system
<Glanzmann>
bluetail27: 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.
<Glanzmann>
cy8aer: Perfect.
<bluetail27>
Glanzmann 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
<Glanzmann>
bluetail27: Personally, I think it is overengineered.
<Glanzmann>
If it takes me more than 2 seconds to write something down, I'm not going to do it.
<Glanzmann>
A 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.
<Glanzmann>
But it might be that you work differently and like the snippet-box more.
<bluetail27>
the one downfall of snippet-box is that you cannot export your stuff
<bluetail27>
and thats a big no-no
<bluetail27>
Thats why I wanna get away
<bluetail27>
I could add this as a feature, but at the moment I'm not interested
<bluetail27>
Oh wait. I can just use the db file it generates :)
<cy8aer>
Glanzmann
<cy8aer>
> Cy8aer: What does 'git tag | grep -i asahi' say in build/u-boot?
<cy8aer>
> 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.
<cy8aer>
->
<cy8aer>
Oups should not edit in such a bridge, sorry.
<Glanzmann>
cy8aer: That will wor for sure. But the 'git fetch -a -t' should pick up the new tags.