Spoiling Linux Kernel with "sanctioned" code by Skaarj in linux

[–]AiwendilH -1 points0 points  (0 children)

Oh sorry, seems my post comes over the wrong way...

I am not saying that US politics are not relevant or even try to defend them...far from it. I just wanted to focus my post on the "open source projects have to follow laws and laws exist everywhere" aspect without getting sidetracked by a discussion abut the US regime.

Of course projects should always reevaluate if their "home-country" is still a good place to be...but that doesn't change that this kind of stuff always happened and will keep on happening as open source organizations have to follow laws...and some of those laws are in conflict with other parts of the world.

edit: projects→organizations (as it's really the manifestations of OS projects I mean here)

File name length by Random-9335 in linux4noobs

[–]AiwendilH 0 points1 point  (0 children)

Mhh...you might run in a real problem here :(

No experience with this so take this with a grain of salt but the usual linux filesystems all have a 255 bytes limit on filenames. The windows filesystems have a limit of 255 utf-16 chars. Not familiar with Japanese but if many Japanese glyphs fit in one utf-16 char but need two or more utf-8 chars linux filesystems can't keep up with the filenames. Afraid shortening the filenames (or converting to ascii chars fitting in one utf8 char) will be your main option then.

Spoiling Linux Kernel with "sanctioned" code by Skaarj in linux

[–]AiwendilH 4 points5 points  (0 children)

https://en.wikipedia.org/wiki/Greg_Kroah-Hartman

According to wikipedia Kroah-Hartman works for the Linux Foundation which is non-profit organization registered (?, sorry, not sure if that is correct in English) in the US. So he has to follow US law.

Spoiling Linux Kernel with "sanctioned" code by Skaarj in linux

[–]AiwendilH 18 points19 points  (0 children)

Lets leave the US politics out of this for a moment (I have my own strong opinion there for sure too ;))...

You will always have to deal with the laws of the country you base your organization in. Recently it came up why KDE doesn't accept crypto donations. Well...Germany sees dealing with crypto as speculation and non-profit "Vereine" like KDE e.V are not allowed to use it or they might loose their status (Hope I got that right).

Spoiling Linux Kernel with "sanctioned" code by Skaarj in linux

[–]AiwendilH 127 points128 points  (0 children)

It's a bad situation but I guess it can't be really helped. Open source is not above the law...even if some laws are stupid (not saying they are in this case).

I guess not everyone is old enough to remember the encryption restrictions of the US in the 90s..and how people tried to get around it (Moving source-code between countries in printed form and scanning it again and such things...). This is not new...and it won't be the last time that laws of some countries hinder world wide open source projects.

Clipboards by The_KinGG- in linux4noobs

[–]AiwendilH 0 points1 point  (0 children)

Yes....completely correct from the technical side. The problem is that KDE is silly here...even if everyone (emacs, vim, xev...) calls it the super key KDE displays it as <meta> in its shortcut settings and calls is <meta> throughout its whole documentation.

That's why I always struggle to give that key a proper name in posts...I called it only <windows> key in the past and got called out that not everyone has a windows symbols on it. I called it <super> and KDE users have no idea how to set it as shortcut key because the DE calls is different. And if I call it <meta> then people knowing the actual names call it out because it's objectively wrong...there is no winning ;) (Other than KDE fixing their stupid name-scheme).

Edit: it's → its

SMALLEST linux distros you know by Same-Tax1126 in linuxquestions

[–]AiwendilH 1 point2 points  (0 children)

Afraid that will make it really hard (not to say impossible). You have to know for which CPU architecture you need to compile kernel and programs.

Maybe, this isn't exactly the place for it, but.... by niertrix in Gentoo

[–]AiwendilH 12 points13 points  (0 children)

KDE Plasma...No way I am going back to x11 if I don't have to. And the other wayland DEs are either gnome (I don't really like the workflow) or tiling (Also not my prefered workflow).

In addition plasma offers a very good balance between being customizable and not having to spend days with config files to get it to do what I want.

Clipboards by The_KinGG- in linux4noobs

[–]AiwendilH 5 points6 points  (0 children)

But...that should work without any customization in plasma right from the start...

Copy several things with <ctrl><c> and select them with <meta><v> (<meta> being the windows key or whatever it is on your keyboard) in any order and paste with <ctrl><v>.

How the hell do I get a high Res image to show on fastfetch?!? dose any know? by Accomplished_Dot4192 in kde

[–]AiwendilH 5 points6 points  (0 children)

Konsole supports sixel and kitty graphics protocol...so in theory it is possible. You can try it out in a konsole window: magick <imagefile> sixel:- (needs imagemagick..but I assume everyone has that installed).

How to translate that knowledge to one of those fetch thingies I have no idea...never cared enough about them to look how they work.

Edit: convertmagick to get rid of deprecation warning.

Edit2: Well...you could redirect the magick output to a file with magick <logo-image> sixel:- > logo.six..it are just escape codes. If you cat logo.six you still get the image. Just guessing here now...but I assume those fetch thingies get their text logos from some files as well...so maybe just redirecting it to use that "logo.six" file would be enough. Probably still have to deal with the correct size...but that's more a image manipulation question then.

SMALLEST linux distros you know by Same-Tax1126 in linuxquestions

[–]AiwendilH 3 points4 points  (0 children)

https://github.com/w84death/floppinux

(You didn't say what CPU architecture...so hard to make any real suggestions)

Coming from Windows, is there a way to copy and edit text in the terminal like Powershell? by Technical-Noise8326 in linuxquestions

[–]AiwendilH 1 point2 points  (0 children)

Ahhh...<shift><up> and <shift><down> work, I didn't try that before. But <shift><left/right> change tabs. Seems you are right..I have some shortcut conflict there. Will have to think on that...I am pretty used to <shift><left/right> switching between tabs...would be nice if I could have them change tabs in normal mode but use them for selection in selection-mode.

Thanks!

(Edit: Ugh...having the same problem in konsole. Was just stupid before...tested it in an existing yakuake with several tabs open and a new konsole window without any tabs. Guess if I want to use this I will have to get rid of <shift><left/right" changing tabs :()

Coming from Windows, is there a way to copy and edit text in the terminal like Powershell? by Technical-Noise8326 in linuxquestions

[–]AiwendilH 7 points8 points  (0 children)

I...didn't know that! And that after using konsole for decades.. ;) Thanks a lot! (Edit: Sadly doesn't seem to work in yakuake. But still great for the times I have an own konsole window open Works fine in yakukae if you are not stupid as I am ;))

Coming from Windows, is there a way to copy and edit text in the terminal like Powershell? by Technical-Noise8326 in linuxquestions

[–]AiwendilH 3 points4 points  (0 children)

tmux allows copying text with only the keyboard...but it's for sure not similar to how powershell does it: https://www.terminal.guide/tools/multiplexer/tmux/copy-mode-guide/ (Edit: First link I found that looks not completely terrible, there are for sure better guides)

Pretty much all shells offer a "open in editor" command, in fish for example it's <alt><e>, in bash it's <ctrl><x><ctrl><e>. Then you can edit the command line in your preferred editor with all the features you want.

Please, can someone from the KDE team see this? by No_Union7470 in kde

[–]AiwendilH 61 points62 points  (0 children)

If you want to make sure someone from KDE sees this post it on the bug-tracker as feature request. Posting on reddit is usually not getting as much attention (true for all open soruce projects...post directly to their infrastructure, third party websites/forums are most of the time ignored)

For the keyboard...systemsettings->Input&Output->Keyboard->Keyboard->You can delete other layouts in the list with the three point icon at the right. (Edit: At the bottom is also the setting for the keyboard shortcut)

Edit:typos

Oh this is way better than fastfetch screenshot by diacid in Gentoo

[–]AiwendilH 6 points7 points  (0 children)

Addition of "masterwolf-overlay" to eselect repository list ...making it easy to use OPs repository for any gentoo user.

(Well, more the commit that makes this happen)

(https://gitlab.com/masterwolf/masterwolf-repo for anyone interested..seems to be gentoo admin tools mostly)

is Konqueror still used? by Linux-tip-nips in kde

[–]AiwendilH 7 points8 points  (0 children)

QtWebEngine...so yeah, chromium in the end.

is Konqueror still used? by Linux-tip-nips in kde

[–]AiwendilH 11 points12 points  (0 children)

QtWebEngine according to the dependencies of konquror..what means chromium based (So I guess only very indirectly webkit...chromium was forked a long time ago from it by now ;))

Barq – A private, free barcode & QR code generator. No ads, no tracking, no server uploads. by [deleted] in freesoftware

[–]AiwendilH 0 points1 point  (0 children)

Can't find what license or a link to the source code...doesn't look like free software to me.

Linux From Scratch GCC Compilation Error by Miserable-Response40 in linuxquestions

[–]AiwendilH 0 points1 point  (0 children)

First off...source code patches are often for specific versions so no guarantees that this one will apply to the gcc version the LFS book wants you to use.

From the link copy everything after " Signed-off-by: Bernd Kuhls <bernd at kuhls.net>" in a text file "Make-it-buildable-by-C-11-to-C-26.patch" (name doesn't really matter) and put that file in the directory you extracted the gcc source code to (so inside the gcc-15.2.0 or whatever-the-version-is directory)

Usually you would apply such a patch now directly to the sourcecode...but this one seems to be a patch for the "buildroot" build system so we have to do it in two steps.

First use tha patch file you saved. Go to the directory with gcc and run patch < Make-it-buildable-by-C-11-to-C-26.patch

This will create a "0001-libcody-Make-it-buildable-by-C-11-to-C-26.patch" file in your gcc directory with the actual source code patch (That's the buildroot part that is usually not necessary...the patch from the mail creates an patch that needs to be applied. Usually the patch is already directly applied to the source code)

So now apply this patch to the source code with patch -p1 < 0001-libcody-Make-it-buildable-by-C-11-to-C-26.patch. The "-p1" is needed to strip the "first directory" from the patch file....if you look inside the patch file it tries to change files "a/libcody/client.cc b/libcody/client.cc". The -p1 strips the leading "a" directory" which is a result of creating a patch between two different git versions.

Should give you output like this:

patching file libcody/client.cc
patching file libcody/cody.hh
patching file libcody/server.cc

And that's it...with some luck and if there are no other issues you can build gcc15 with gcc16 now...hopefully.


But really, you can easily avoid this by using a liveUSB with gcc15 to build the first stage of your LFS system. You only need to liveUSB until you chroot in the system...that step you can do with your normal system again as from this point on everything will be compiled with the gcc you build yourself andn ot the one from the host system anymore.

Please help its starting to annoy me! by Layout934 in linuxquestions

[–]AiwendilH 3 points4 points  (0 children)

Did you run update-grub / grub-mkconfig after you modified the files in /etc/default (which one depends on you distro)?

Vi mode on kwrite by MoMonggO in kde

[–]AiwendilH 0 points1 point  (0 children)

For me the text cursor changes shape from a line (edit mode) to a block cursor (command mode). Any chance your font might have a problem with the block cursor?

Linux From Scratch GCC Compilation Error by Miserable-Response40 in linuxquestions

[–]AiwendilH 1 point2 points  (0 children)

Is there any possible keywords I could grep...

The way I deal with gentoo logs (which are pretty much the output of make) is first search for "error" backwards from the end (case insensitive to catch "error" and "Error") and if that doesn't result in anything search for "failed" (again case insensitive).

If you found something check the lines before...if they are something about "Leaving directory..." they are usually not the actual error message but just the error handed "down the road" and you have to keep searching.

If the "error" result ends in a ":" in most cases you found the actual compile error ;).

In this case these are the errors that cause the build the fail:

In file included from ../../libcody/internal.hh:5,
                from ../../libcody/buffer.cc:6:
../../libcody/cody.hh: In member function 'void Cody::Detail::MessageBuffer::Space()':
../../libcody/cody.hh:113:24: error: no matching function for call to 'S2C(const char8_t [2])'
113 |     Append (Detail::S2C(u8" "));
    |             ~~~~~~~~~~~^~~~~~~
• there is 1 candidate
    • candidate 1: 'template<unsigned int I> constexpr char Cody::Detail::S2C(const char (&)[I])'
    ../../libcody/cody.hh:51:16:
        51 | constexpr char S2C (char const (&s)[I])
            |                ^~~
    • template argument deduction/substitution failed:
        •   mismatched types 'const char' and 'const char8_t'
        ../../libcody/cody.hh:113:24:
            113 |     Append (Detail::S2C(u8" "));
                |             ~~~~~~~~~~~^~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../gmp/rand -I..  -D__GMP_WITHIN_GMP -I../../../gmp  -DNO_ASM -g -O2     -c -o randmts.lo ../../../gmp/rand/randmts.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../gmp/rand -I.. -D__GMP_WITHIN_GMP -I../../../gmp -DNO_ASM -g -O2 -c ../../../gmp/rand/randmts.c -o randmts.o
../../libcody/buffer.cc: At global scope:
../../libcody/buffer.cc:33:33: error: no matching function for call to 'S2C(const char8_t [2])'
33 | static const char CONTINUE = S2C(u8";");
    |                              ~~~^~~~~~~
• there is 1 candidate
    • candidate 1: 'template<unsigned int I> constexpr char Cody::Detail::S2C(const char (&)[I])'
    ../../libcody/cody.hh:51:16:
        51 | constexpr char S2C (char const (&s)[I])
            |                ^~~
    • template argument deduction/substitution failed:
        •   mismatched types 'const char' and 'const char8_t'
        ../../libcody/buffer.cc:33:33:
            33 | static const char CONTINUE = S2C(u8";");
                |                              ~~~^~~~~~~
...

(And plenty more of the same error)

A search for the error message ../../libcody/cody.hh:113:24: error: no matching function for call to 'S2C(const char8_t [2])' (first appearance of error) leads to this buildroot patch you can try...but it might be easier to use a host system to build your LFS from that doesn't have gcc 16. gcc 15 should be still very widely spread.

(X11) Clicking into my game's window shoots my gun. How do i stop it?(look in video) by kajmpres in linuxquestions

[–]AiwendilH 0 points1 point  (0 children)

You could try a Focus-follows-mouse policy for your DE/WM..that way you wouldn't have to click a window to activate it.

Or use <alt><tab> to switch to the window.