Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)GN
Posts
32
Comments
666
Joined
2 yr. ago
  • Edit: OK, I looked at the docs, and they sure do make a broken symlink there. I still think it's worth a try to create a non-broken link, maybe the docs are wrong. I would expect they would put a little note there, that yes, you really do want to create a broken symlink (if so, why not a regular file?), but then again its kernel docs and those aren't the most friendly.

    I also thought you were OP for some reason, sorry.

    Edit2: If you look at the file listing later in the docs, you can see this:

     undefined
        
    ./configs/c.1/ncm.usb0 -> ../../../../usb_gadget/g1/functions/ncm.usb0
    
      

    Which does look like a real non-broken symlink, so I maintain the docs are wrong and you're not supposed to make a broken symlink.


    Original comment, silightly edited:

    You misunderstand. I suspect OP cannot create the symlink, because it would be a broken symlink, not because the symlink is relative. Maybe you cannot create broken symlinks in the sysfs for some reason.

    I was just trying to explain that a relative symlink is relative to the directory in which it resides. The target to the symlink should point to ../../functions/uvc.usb0 if you want it to point to something that exists. The ln command in OP's listing would result in a broken symlink, since the specified path is not relative to the c.1 directory. It is relative to the working directory, but that's wrong, that's not what ln expects you to put there.

    Maybe it needs to be a correct symlink, maybe that will solve the problem.

  • IDK how all that works but I will say that the result of this would (in a normal filesystem) create a link named configs/c.1/uvc.usb0 yes, but that link would point to functions/uvc.usb0 relative to its own dir. This doesn't exist and your symlink would be broken, presumably the special file system there doesn't like that.

    Edit: Apparently that's not the problem and you're totally supposed to run an ln command that should logically result in a broken symlink, thanks to kernel driver sysfs abuse.

  • Yeah no problem. I'd like to point out that this puts a hole in your firewall. If you have something exposed via udp, and an attacker knows about your --sport rule or figures this out, they can connect to it just by setting their source port to 5353. You can check what's listening on udp with ss -lun or sudo ss -lunp (for process info).

    Also, I have looked up what @[email protected] said about dig not supporting mdns and I think they are correct. With mdns, because of the multicast nature, you can get replies from multiple computers, and that's a pretty big difference to regular dns. How could it even reliably know it has gotten all the replies or if it should wait for more? It just sort of happens to work correctly if you get a single reply.

    Also, and I also looked this up, mdns lookups will to go through avahi-daemon on regular glibc distros. The libnss-mdns plugin description for glibc says this:

    nss-mdns tries to contact a running avahi-daemon for resolving host names and addresses and making use of its superior record cacheing. If Avahi is not available at lookup time, the lookups will fail.

  • As I said, I’m not sure about that.

    Still, dig won’t be listening on port 5353 for the answer, it’ll open some random port, so the firewall rule for 5353 will not apply. And the conntrack rule, is my guess, also doesn’t apply, because what I think the conntrack module does is:

    • Remembers about the outgoing connection (i.e. when dig sends its udp packet out): source port, destination IP and port
    • Check incoming packets against this info, and lets them through if they appear to be an answer

    Since the outgoing packet is going to multicast, and the incoming packet (I suspect) is coming from the IP of the machine that answers (a different IP therefore), conntrack wouldn’t be able to figure that out. The answer doesn’t match the outgoing packet that dig sends. Since this is just a hunch, I would try to confirm this by looking at the traffic in e.g. wireshark.

  • My hunch on what's going on: Dig opens up a different udp port (it has to, there would be avahi-daemon listening on 5353). So it sends out to the multicast address on 5353, but the answer comes back from the actual IP of whoever is answering, to whatever port dig is listening on, and the connection tracking is not smart enough to figure out this should be let through?

    You should look at the traffic with wireshark.

    Also maybe that's fine in practice? Do applications actually run their own mDNS queries? Maybe it all goes through avahi-daemon? That uses port 5353 so that would get an answer if it did the mDNS query instead of dig. But I'm not sure how this works, so that's just a guess.

  • Yeah you're right, thanks. I did figure this out on my own already, see my other comment:

    Oh yeah that, so technically (and I was confused about this), the p in s/from/to/p is not the same as the p command, it’s a flag for the s command that tells it to print the output.

  • Yeah no problem.

    What's maybe interesting is how sed came to be. Back in early days of Unix, they had ed as their editor (or, as some old manpage says, "Ed is the standard text editor.")

    Sed has basically the same commands as ed. You typed 3d to delete the third line, or 10,20p to print lines 10 to 20. They only had teletypes back then, which are basically a keyboard and dot-matrix printer with one of those continuous papers for output, prior to when hardware terminals with CRT screens were a thing.

    Anyway, someone thought it would be useful if you could put ed-style editing commands inside shell pipelines, and ed doesn't work for that. It is used for interactively editing files in place, and so gets commands from stdin. You can't pipe any files into it. So the "stream editor", sed, was born.

    Also interesting: There were improved modified versions of ed going around like em and later ex. The original vi was a "visual mode" extension for ex, and you can still run ex/ed commands from vi by typing : first, e.g. you can delete line 3 by typing :3d inside vi.

  • Oh yeah that, so technically (and I was confused about this), the p in s/from/to/p is not the same as the p command, it's a flag for the s command that tells it to print the output. You could do multiple commands like /re/ {s/a/b/;p} for the same result, by using a {} block.

    If you do, say, /re/ s/a/b/; p those would be separate command, the first does the thing on lines matching /re/, while the p has no address range (e.g. regex) associated with it, so it gets executed for all the lines.

  • What expressions?

    I mean awk is more powerful, it has variables, function, can do arithmetic and format strings, and such proper scripting language features. And the GNU awk manual is rather well written.

  • You can do something like this to emulate grep:

     undefined
        
    sed -n '/myregex/p'
    
      

    The -n suppresses auto-printing. That command should interpreted as: find line matching /myregex/ and then print (p) it.

    You can then combine this with s (substitute):

     undefined
        
    sed '/myregex/ s/from/to/ p`
    
      

    The complete command is then something like:

     undefined
        
    LANG=C df -h --output=avail,source | sed -n '/\/dev\/nvme0n1p2/ s/^\s*\([0-9.]\+[KMGT]\).*/\1/ p'
    
      

    Note that the output can be something like 2.3G, but in my locale that would be 2,3G which is why I added LANG=C.

    Easier IMHO is awk:

     undefined
        
    awk '/myregex/ {print $1}'
    
      

    prints the first field.

  • Permanently Deleted

  • There's some wrong things in this article, and a thing worth mentioning.

    Half-Life (and its mods like Counter-Strike) had Linux server versions, and a lot of dedicated servers ran on Linux, which I think is worth mentioning when talking about the history.

    Steam wasn't well received at first, people didn't like that there was now this special launcher/downloader you had to use. Mind you they moved their old games onto Steam, so it's not like you knew about this when you bought it. Also there weren't any games on there except Half-Life and related titles, like HL mods that got their own release.

    Contrary to what the article claims, MacOS does not support some outdated version of DirectX, it does not and never has supported DirectX at all. DirectX was only ever supported on Windows and XBox.

    DirectX also was not well received at first. Here's an old article from gamedev.net (2002):

    What later became known as DirectX 1.0 ended up not being very widely accepted. It was buggy, slow, badly structured, and overly complex.

    Of course, Microsoft wasn't about to just give up. They kept working at it, asking the community for ways to improve it. The first truly viable version of DirectX was DirectX 3.0. A few years later, they released DirectX 5 (skipping 4 entirely), which was the first truly useful version. Incremental improvements were made with version 6. Then came DirectX 7.0.

    DirectX 7 was the first one to actually be embraced by game developers. It worked well, making game programming reasonably easy, and a lot of people liked the interface.

  • Permanently Deleted

  • So, the Manhattan Project started. Manhattan Project was Microsoft's attempt at creating a set of APIs that would make the task of writing games for their platform significantly less painful. The questionable naming decision was, sadly, fully intentional: while Microsoft had most of the PC gaming on its side, the gaming industry as a whole was mostly dominated by game consoles from Japan.

    WTF Microsoft.

  • Since you say the thing is working fine on Windows, there's almost certainly a bug or several. I'd say probably a driver in the kernel, but could be something else. Changing distro or kernel version does sometimes help with that sort of thing, mainly because another distro may have newer or older kernels and other software, and bugs get both introduced and fixed every release.

    Freezing issues can have lots reasons, including buggy apps, RAM exhaustion due to memory leaks, bugs in the graphics drivers or graphics stack more generally, various blocking I/O things taking unexpectedly long due to network issues or faulty hardware or drivers.

    If you want a chance to figure this out, you probably need to run things in the terminal, like installing software updates through the apt and snap (?) cli utilities. GUIs are notoriously shit at reporting unexpected errors, whereas all sorts of programs (including GUI apps if you start them in a terminal) do regularly print warnings and error messages to stderr, which will show up in a terminal. This is because it's easy for the programmers to do that with just single printf() (etc.) line.

    For driver issues, looking at the kernel logs can sometimes show interesting things as well. I will say that, when looking at logs or terminal output, there often are warnings that are completely unrelated and/or harmless, and that's not necessarily obvious to the user.

    If this is a software issue, framework imho shouldn't advertise their stuff being able to run Ubuntu if they cannot stay on top of issues that are happening in this configuration.

  • This is actual RAM used by the desktop environments that is not available for cache. That is the number he gets from top, it doesn't include the disk cache. The DE won't use less RAM even when Firefox needs it, because it is not cache, it cannot be dropped if needed, you just have less RAM available for you applications (or for the actual cache, for that matter).

  • Jo, das ist offensichtlich. Die Gegenmeinungen hier leben in einer Traumwelt. Das ist vollkommen absurd, dass das Verfassungsgericht das so interpretieren würde, dass jemand als Entschädigung für eine enteignete Fabrik eine Schallplatte der Internationale vom Arbeiterchor Karl-Marx-Stadt bekommt, selbst wenn der Bundestag ein entsprechendes Gesetzt erlassen würde.

  • If we assume, for a moment, that your issue was in fact related to fluidsynth, which I kinda still think it might be, because of what fuser and the logs showed, it would be a good idea to undo your module blacklist thingy and reboot.

    If your slow boot issue persists, and you try to fix that tomorrow, then try looking at the bootup messages as described here:

    https://askubuntu.com/questions/25022/how-to-enable-boot-messages-to-be-printed-on-screen-during-boot-up

    If you reinstall pulseaudio to get back to where you were before, uninstall pipewire, those two shouldn't be running simultaneously.

    Good luck and keep me updated if you manage to fix it somehow.

  • DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz @feddit.org
    gnuhaut @lemmy.ml

    Zitate des BND-Sprechers:

    "Es werden dabei nicht zwangsläufig die eingegebenen exakten Begriffe untersucht, sondern auch Wortstämme oder auch nur einzelne Wörter der Abfrage", sagte der BND-Sprecher.

    "Die vermeintliche Korrelation mit diesen Artefakten und einem Russland-Bezug kann auch für zahlreiche andere Länder reproduziert werden, was eine Zuweisung zu Russland als wenig plausibel erscheinen lässt", hieß es.

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Berliner Sparkasse sperrt Konto der Jüdischen Stimme

    Am 25.03.2024 wurde unser Konto bei der Berliner Sparkasse mit sofortiger Wirkung gesperrt. In einem Schreiben teilt uns die Sparkasse mit, dass sie diesen Schritt vorsorglich unternommen hat und wir zur Aktualisierung unserer Kundendaten zahlreiche Vereinsunterlagen bis zum 05.04. einreichen sollen. Die Sparkasse ist als Körperschaft des öffentlichen Rechts an das öffentliche Recht gebunden und darf nicht willkürlich Konten sperren ohne es zu begründen, was sie nicht getan hat. Außergewöhnlich ist auch, dass zu den geforderten Unterlagen eine Liste unserer Mitglieder mit vollständigen Namen und Anschriften gehört.

    World News @lemmy.ml
    gnuhaut @lemmy.ml

    Berlin state bank freezes Jewish Voice account

    On 25 March 2024, our account with the Berliner Sparkasse was frozen with immediate effect. In a letter, the Sparkasse informed us that it had taken this step as a precautionary measure and that we should submit numerous internal documents by 5 April to update our customer data. As a public corporation, the bank is bound by public law and may therefore not arbitrarily freeze accounts without providing an explanation, which it did not. It is also highly unusual that the required documents include a list of our members with their full names and addresses.

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Kommentar in der Zeit fordert Israel-Unterstützung an Bedingungen zu knüpfen

    Angesichts der Angriffspläne auf Rafah muss die militärische und moralische Unterstützung Israels an konkrete Bedingungen geknüpft werden. Kritik allein reicht nicht.

    Langsam kommt etwas Realität auch in den deutschen Medien an, was da Israel eigentlich so macht.

    Kommentarspalte ist aber übel. Da wird Israel jegliche Verantwortung abgesprochen. Solange sich die Hamas nicht ergibt geht das Morden weiter, und die Hetzer halten das für absolut gerechtfertigt.

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Palästinensische Quellen melden den Tod eines Mädchens, das mit seinen Verwandten auf der Flucht aus Gaza-Stadt unter Beschuss geraten war. In einem dramatischen Notruf hatte sie zuvor um Rettung gefleht.

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml
    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Giftige PFAS reichern sich in der Umwelt an und belasten die Gesundheit. Nun sollen sie schrittweise verboten und ersetzt werden

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    KI-Verordnung: Grüne wollen automatische Gesichtserkennung akzeptieren

    In ihrem Koalitionsvertrag hatten sich SPD, Grüne und FDP darauf geeinigt, biometrische Erkennung im öffentlichen Raum europarechtlich auszuschließen.

    Grüne warnen vor unregulierter KI

    Dennoch plädierten inzwischen mehrere Grünen-Politiker dafür, der Verordnung auf EU-Ebene zuzustimmen. So sagte der Bundestagsabgeordnete Tobias Bacherle auf Anfrage von Golem.de: "Statt jetzt den AI Act auszubremsen und aufs Spiel zu setzen, muss die Bundesregierung ihrer Verantwortung nachkommen und sich klar für eine Verabschiedung des AI Act einsetzen. Nach jahrelangen Verhandlungen alles aufzuknöpfen, führt nicht zu einer besseren Verordnung. Es führt lediglich dazu, dass wir bei der dringend notwendigen Regulierung von KI sehr viel Zeit verlieren."

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Namibia beanstandet Deutschlands Unterstützung für den Völkermord des rassistischen israelischen Staates and unschuldigen Zivilisten in Gaza

    World News @lemmy.ml
    gnuhaut @lemmy.ml

    Zelensky: No way of predicting how the millions of Ukrainian refugees in European countries would react to their country being abandoned

    Curtailing aid to Ukraine will only prolong the war, Mr Zelensky argues. And it would create risks for the West in its own backyard. There is no way of predicting how the millions of Ukrainian refugees in European countries would react to their country being abandoned. Ukrainians have generally “behaved well” and are “very grateful” to those who sheltered them. They will not forget that generosity. But it would not be a “good story” for Europe if it were to “drive these people into a corner”.

    World News @lemmy.ml
    gnuhaut @lemmy.ml

    Ukraine expands conscription, removes medical exemptions for HIV, hepatitis, mental disorders and more

    Now, the words and figures "with the exception of articles 2-c, 4-c, 5-c, 12-c, 13-c, 14-c, 17-c, 21-c and 22-c" have been removed from the Regulation, i.e. everyone will be recognised as fit under the "controversial" articles:

    • 2-c – clinically treated tuberculosis;
    • 4-c – viral hepatitis with minor functional impairment;
    • 5-c – asymptomatic HIV carrier;
    • 12-c - slowly progressive and non-progressive with minor functional impairment and rare exacerbations of anaemia, blood clotting disorders, purpura, haemorrhagic conditions, other diseases of the blood and haematopoietic organs, and some disorders involving the immune mechanism;
    • 13-c - diseases of the endocrine system with minor functional disorders;
    • 14-c - mild, short-term, painful manifestations of mental disorders;
    • 17-c - neurotic, stress-related and somatoform disorders with moderate or short-term manifestations, with an asthenic state;
    • 21-c – slowly progressive diseases of the central nervous s
    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml
    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml

    Die geklauten Kohlakten – wie Geschichte manipuliert wird

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml
    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml

    Die WELT will noch mehr Ukrainer mobilisieren. Foto dazu: Schwarze Sonne

    Nachdem sich langsam herumspricht, dass der Krieg nicht so gut läuft, kommen jetzt solche Forderungen:

    Es gibt also nur einen Weg nach vorn: den Krieg ernsthaft so zu führen, wie es sich für einen nationalen Befreiungskampf gehört. Die Bevölkerung der Ukraine ist zwar zurückgegangen, liegt aber immer noch bei über 30 Millionen, sodass die Gesamtzahl der Streitkräfte bis zu drei Millionen betragen könnte.

    Bei so viel Menschenverachtung passt die Schwarze Sonne auf dem Foto eigentlich perfekt.

    DACH - jetzt auf feddit.org @feddit.de
    gnuhaut @lemmy.ml

    Der neue Deutsche Nationalismus mit Joshua Grad - 99 ZU EINS - Ep. 297

    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml

    Der neue Deutsche Nationalismus mit Joshua Grad - 99 ZU EINS - Ep. 297

    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml

    Was ist die EU? mit Hannes Draeger - 99 ZU EINS - Ep. 286

    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml
    Aufmüpfig @feddit.de
    gnuhaut @lemmy.ml

    Kompro-misswahl – Küppersbusch TV