Wednesday, 4 December 2024

virtually install new linux system!

Two identical SSDs. One to wipe, one running this system... Figured out by unplugging it that it is /dev/sda right now.

There is a `cp /dev/sda /media/.../trixie.raw` and back around all this, to get the size of the disk we are going to reformat and OS-ify virtually, with libvirt + qemy.

So I went into virt-manager and made a new machine, not the "Installation" process, but just defining two disks, the installer and the trixie.raw.

Check boot priority.

Installing doesn't have to be an emergency on a space station. Here I am, listening to music and choosing my language.

Advice for all the Choosables

Do go here and take the edu variant: https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/
It has a little more firmware included, eg that wireless thing, so it could save time.
It's separate due to legal paranoia, or angelic, ethical purism depending on how you look at it.

Not sure what else it does to your system, choosing edu. Otherwise you'd have to plug in a cable and install 

I am seeking a feature called XFS, so the testing version of debian, the next version, 13. Usually I run stable systems... They seem to have all crapped out.

American English keymap - this means $. I can't remember how to get this laptop keyboard to not say < when I type /.

I enjoy that New Zealand is one of only a dozen "countries or territories" in the world.

Hostname = s
 
Encrypted LVM... No XFS yet. Ubuntu has it here! But alas. My sound is very glitchy and I'm developing a very soundy webapp right now.

Encryption stops stolen hard drives being an open book to anyone who has them. It wouldn't be very ethical to enable that. You could have anyone's data, with all the sharing. One mustn't manufacture consent, haphazardly leak info and enable crime... 

Who knows what social engineering someone's network could be stung with if they lost a computer. Voice recordings are needed to inform a fake voice. Etc.

But do leave the passphrase with someones less likely to die than you. Good.

It will be  


Never hit cancel, or "Go back", to a list of steps in this process, as you will engage a "wants all the questions" mode. Good luck.

Sometimes they will invite you to hit cancel,

Sometimes "there was no installable kernel found in the apt sources. It is likely the system will not be bootable." I just kept going! Surely if it doesn't know where the kernel is, maybe it also doesn't know that it does know where the kernel is...

No gnome, yes xfce4 and some other windowers I might get around to learning.
You get around to it rebooting and you have to Force Off (in virt-manager), and remove the install CD because it still takes priority over the new OS. And Start it again!

It went good, I'm now at a terminal in xfce4!

new Debian + xfce

Note: this may not look like this any more:
Create icons for things you want quick access to:

Debian doesn't give you sudo by default so run this:

Then log out and in because that changed stuff that needs to occur on login...

This is how I get ssh access.

Then apt install openssh-server. Run `ip a` to see what your ip address is, pop it in your current /etc/hosts as 'v', then from the host:

s@s:~/pl$ ssh v
Linux s 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Dec  3 13:56:37 2024 from 192.168.122.1
s@s:~$ ll
-bash: ll: command not found
s@s:~$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
s@s:~$ flatpak install chromium codium
Looking for matches…

And you're away! With constant reauthentication prompts...
It's a via-ssh security policy! You must delete this part of this file:
The issue is with the subject.local == true condition on line 7 in /usr/share/polkit-1/rules.d/org.freedesktop.Flatpak.rules
To edit that you'll need to apt install - and learn the insert-type-escape-:wq-enter basics of:

vim 

And then here's more necessities to apt install:

easyeffects pipewire ffmpeg mplayer

Also, before making a mess that might not work out, you can snapshot the whole system at the lvm level by:
sudo systemctl isolate rescue.target
Vanishing you into a black void!
The filesystem is still mounted, since that is where the system is...
But as long as nothing much is happening...
sudo lvcreate -L 10G -s -n root_snapshot /dev/t-vg/root
And back:
sudo systemctl isolate rescue.target
Or if you are still working virtually and converted the target disk image to qcow2, you could use those snapshots.

The mess that might not work out:
apt install podman-compose
sudo ln -s $(which podman) /usr/local/bin/docker

In fact, just don't do any of the above. But know that it's possible.
This is how you get docker on debian trixie, from a docker.com software source, which is a big deal bug I guess :
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bookworm stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo adduser s docker # and relogin
in .bashrc
I do this from the comfort of my main computer via ssh.
A fork holds up the floppy laptop screen, asleep.



Soon it'll be a second monitor and a working mic.
My summer typewriter.
I wander off.
Good luck.


Saturday, 23 November 2024

Errors!

Errors! 

I'm not familiar with out the electric snake spills into the docker environ, but it seems to have lost its vite.

Explored via shell:

$ docker run -v .:/app -p 9005:5000 --rm -it --name cos99 jamola-cos-jamo bash

root@51905212b366:/app# npm run dev

(node:8) ExperimentalWarning: CommonJS module /usr/local/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/local/lib/node_modules/npm/node_modules/supports-color/index.js using require().

Support for loading ES Module in require() is an experimental feature and might change at any time

(Use `node --trace-warnings ...` to show where the warning was created)


> svelte-latest@0.0.1 dev

> vite dev



  VITE v5.4.11  ready in 1226 ms


So! Lets do this:

$ docker compose up --build

[+] Building 18.8s (21/21) FINISHED    

... 

And then it's fine!?






Monday, 18 November 2024

letz Congeo treadding

We are presenting a tree of things on the screen.

As many have done. Usually they stick to a two level tree, so you get a table! But sometimes you are representing a computation that seems to have more space in it than space typically has.

The phenomenon is printing out, and flooding the room with its printout.

The kommit part of this tree of things...


Kommit is a collection of states (of treeh, aka "the tree" in git) across time. The less significant shall squash together. Basically a similarity grouper, only thinking about grouping times for now.

Con.svelte represents each of the things in the tree, recursively. Each white C in the above figure is about where one starts.

It is represented by this set of things in a row:


Containers of stuff on the screen.

Giverto inflates fully into the space, to feel how much of it there is.

Takerto, the inner, is supposed to cling to the contents.

Then we can find wasted space in a nested-table display of the tree.

But it is, invisibly unless you hover over the above dom node, like this:


Not sure why html does this. Fix is:

<takerto
style="display:block;"

So that we can find this:

let see_what = () => {
let it = o_(C).map(n => {
return map(
(el) => {
return {el,x:el.offsetWidth,y:el.offsetHeight}
},
[n.y.el_giverto,n.y.el_takerto]
)
})
console.log("En kommit", it)
}

Here:


Showing the first two don't need as much space as the last one, but not as clearly as:


Here's a feng shui decider function:


import { hak,ex,dex,map,dec,haks,joint } from "$lib/Y/Pic"
import {o_,o_up} from '$lib/St.svelte'
function uninlineablelabelable(C) {
let el_size = (el) => el.offsetWidth * el.offsetHeight

$fail = 0
$it = o_(C).map(n => {
if (!(n.y.el_takerto && n.y.el_giverto)) return fail = 1
let use = el_size(n.y.el_takerto) / el_size(n.y.el_giverto)
return {el:n.y.el_giverto, use}
})
fail and return null
# it is Con/(Cont,Kom?,Conz)
# < all the possibilities
# eg Kom probably wants to overlay on Conz/Con*/Kom/...
let Conz = it.pop()
$doit = Conz.use > 0.6 && !it.some(c => c.use > 0.5) && "UNIN"
ex(Conz.el.style,
doit ? {display:'block', 'margin-left':'1em'}
: {display:'table-cell','margin-left':'none'}
)
it.push(Conz)
$it_uses = it.map(c=>dec(c.use,2))
console.log("Ennn kommit", it_uses)
return doit ? 1 : 0
}
export {uninlineablelabelable}

Which does inadvisable non-Sveltey style adjustments that omits the margin-left:


When we aren't just seeing:


Because indeed those properties stop existing... 

I believe the C** is being selectively replanted all the time...

It is generated by Co.ts, displayed and called back into in a Con.svelte** system, hosted by TestBetimes.

Anyway, I eventually found the ResizeObserver browser API, and applied to all things:


This is a pretty average result.
The kommit and times don't get next to each other...
With cytoscaping they would, since one is downstream of the other.

I write myself up:

mo Aug 5

  hmming about GiveTake.

 we

   might be no problem that transition animations dont work anymore

    because of all the sleeving of snippets that goes on

   since we want to scale the GiveTake gently

    and starting it from 0 etc would give the same effect

  so

   make that n.y.el_giverto etc persist...

mo Aug 26

 we

  use browser API ResizeObserver for GiveTake

 th

   is good, but GiveTake function is disappointing

   perhaps it wants using laterer?

    to detect the box model tearing apart, wasting space

    when we basically want to \n\t indent, rather than \t along the row

 fr

  cytoscaping everything seems like the only way

  got flowers again

mo Sep 2

  we need to use cytoscape to io layouts together with a few drags

   codemirror chunks position absolutely...

 tu

  we need codemirror to do io expressing

   rewrite iooia to make A as X was?

   or just a &Sarg kinda thing

   a way to load all dependencies as .svelte.ts

    so your text can travel to a running instance...

  also,

   storage needs sorting out...

   the history graph needs climbables, resyncs

    dragging from one branch to another?

 we

  pull out

 mo

  somehow brack again, with cytoscape?

  or just the Con** scape? since it has lateral .y.*

mo Sep 16

  nada

 th

  ...


Hope you LEARNT SOMETHING!?





Thursday, 14 November 2024

video stabilisation via ffmpeg

First

ffmpeg -i Greenart.mp4 -vf vidstabdetect=stepsize=32:shakiness=10:accuracy=15:result=transforms.trf -f null - 

ffmpeg -i Greenart.mp4 -vf yadif,format=yuv420p,vidstabtransform=zoom=2:optzoom=0 -c:v libx264 -c:a copy -b:v 5m Greenarts.mp4 

rm transforms.trf

 Lovely.





Saturday, 19 October 2024

Indian Dances

Mohiniyattam

https://www.youtube.com/watch?v=m_avP6toESU

Bharatanatyam

https://www.youtube.com/watch?v=JWhA3ldZcyY


The Difference

Is you. Could be that the dancers are doing the same thing separately or being one thing together.

Thursday, 10 October 2024

The Phone Ringing

 We all want to play music over the telephone!

the hub piece of a bamboo roundhouse, freshly fabricated black steel with one rainy night's rust on it

This steel jointing device illustrates the radiant vibe of real time action.
The technology creates an inside, where you can have a different kind of time... Better, more real...

I wonder if you've

seen anything for playing music together, on a call?

we loosen our sense of time until the latency doesn't bother us.
I'd like to go for audio quality too though, and record everything, multitrackily.
I think here|there would want mixing with an offset of the latency, sometimes, depending on:
whether they were playing in time with me
as I turned up there, $late*1
and they got back at $late*2
or vise versa
or perhaps having some sync animation to take as sheet music.

this is goddamn researchalicious.




seen any decent WebRTC things at all?

I desire a mixer y transporter y synchroniser for a personal area network of phones and tablets that is my stage gear...

Jitsi is FOSS, powers talk.brave.com, can be yours as long as you have https so WebRTC will come out of its shell.





What does apparently exist,

via https://writing.exchange/@ernie/113285588015442907

As y’all probably know I have not really found a recording process for Linux I’m really happy with. Nothing hits the sweet spot for me. But I think I’ve gotten somewhat closer. - Video: GPU Screen Recorder https://flathub.org/apps/com.dec05eba.gpu_screen_recorder - Audio: Noisetorch https://github.com/noisetorch/NoiseTorch - Audio-to-text: Buzz https://chidiwilliams.github.io/buzz/docs Still not perfect. But getting there.