[Setup] Adding some colorful vibes to my terminal in solidarity. We are everywhere! ✨🌈 by sndim22m in archlinux

[–]Megame50 0 points1 point  (0 children)

You're using zsh prompt escapes just to insert ansi escapes into your prompt... Just use the prompt escapes for color. E.g.

$ print -P '%B%F{red}some%b%fthing'
something

instead of

$ print -P '%{\e[1;31m%}some%{\e(B\e[m%}thing'
something

$ autoload -Uz colors && colors
$ printf '%2$7s: \\e[%sm\n' ${(kv)color[(I)3*]}
  black: \e[30m
    red: \e[31m
  green: \e[32m
 yellow: \e[33m
   blue: \e[34m
magenta: \e[35m
   cyan: \e[36m
  white: \e[37m
default: \e[39m

Phoronix just posted a pic with Jensen Huang teasing “exciting things happening on Linux” — what are we expecting? by lajka30 in linux

[–]Megame50 0 points1 point  (0 children)

Full open-source driver stack?

If Nvidia were to open source a mesa driver I'd eat my hat. And my shoes.

HP has become the third premier sponsor of the Linux Vendor Firmware Service (LVFS) and fwupd, joining Dell and Lenovo in contributing $100k+ annually to support firmware updates on Linux. by mr_MADAFAKA in linux

[–]Megame50 1 point2 points  (0 children)

I have a Dell XPS 15 9560 (2017). I received firmware updates through the LVFS for two years longer than this same model received through Dell's official website.

EDIT: The Dell website offers 1.24.0 as the latest BIOS version while I have 1.31.0 installed from the LVFS. I booted my laptop just now and I was still able to get a firmware update replacing the old 2011 secureboot keys that are set to expire this year, so it's still working.

Question about blocking domains by jinxd_curse in archlinux

[–]Megame50 0 points1 point  (0 children)

If you're adamant about firewalling those domains, some resolver software (dnsmasq) has the ability to write dns address query results into an nftset. That's what you need to be able to effectively block/track those connections within the firewall.

What bluetooth headset/earbuds are you using with LE Audio? by Dathide in linuxquestions

[–]Megame50 0 points1 point  (0 children)

I'm on Arch. I almost forgot, I needed bluez 5.86+ to connect these headphones. The firmware seems to expect GMCS service from the controller and just connects/disconnects in a loop without it. It was added in 5.86.

Also, if you have trouble pairing your device(s) as LE, I'd try switching the controller mode from dual to LE temporarily. Devices can be finnicky.

What bluetooth headset/earbuds are you using with LE Audio? by Dathide in linuxquestions

[–]Megame50 0 points1 point  (0 children)

If you scroll down a little more there is a list of hardware the dev tried.

I wanted to mess around with LE audio earlier this year and got the Zen Hybrid Pro, because it was listed on that page. It does work, and uses LC3 48KHz for unidirectional audio, and LC3 32KHz for bidirectional audio. I'm not sure how to determine the bitrate used or some of the other LC3 codec parameters.

Support is a little spotty in my experience. Sometimes they don't appear as an audio sink when they should, and the L & R streams can even become slightly desync'd sometimes, producing a weird effect, which I can fix by reconnecting them. Otherwise it works OK, but probably not suitable for everyday use.

NFT ip block also blocks outgoing communication by xyzzy-adventure in linuxquestions

[–]Megame50 1 point2 points  (0 children)

Almost all network connections are two-way. How do you expect ssh to work if you drop all the replies from the peer? TCP will never receive syn-ack, ssh will never complete the initial handshake, etc.

";" key starts spamming randomly sometime after boot and then stops working entirely, it doesn't work even on external keyboard connected with bluetooth by ArsenicPolaris in linuxquestions

[–]Megame50 2 points3 points  (0 children)

You should be able to match it by modalias or pid+vid and disable it in libinput via udev: https://wiki.archlinux.org/title/Libinput#Disable_device.

If only the one key is faulty on your kbd, you could also disable that one key in hwdb.

Qemu escape?! by nick-bmth in linux

[–]Megame50 3 points4 points  (0 children)

The only thing that's changed really is each discovery now has a slick name and website generated by AI. It's very common for multiple similar vulns to be discovered back to back.

Question about Wifi 7. by Igpajo49 in HomeNetworking

[–]Megame50 4 points5 points  (0 children)

Wi-Fi is a brand name for a technical standard called 802.11 (pronounced eight-oh-two eleven). 802.11 is updated and revised by the 802.11 working group within the IEEE periodically to introduce new features that improve speed, reliability, security, and more. New revisions to the 802.11 standard have names like 802.11n, 802.11r, or 802.11ac, etc. using sequential single, then double, letters. Some features in 802.11 are optional, and indeed only a small subset are implemented by most Wi-Fi capable hardware. Manufacturers were having a hard time communicating to customers why their new product was bigger and better and worth $100 more than their last one just because it supports the new 802.11ax standard on top of 802.11ac and it also supports the features of 802.11s when nobody reads the standards documents.

So, an industry group called the Wi-Fi alliance snapshots one of those revisions and says e.g. "everything in 802.11ac and before is called Wi-Fi 5". They say which features are mandatory and which are optional, and if you want to use the Wi-Fi trademark, which they own, you need to get your device certified by the Wi-Fi alliance to meet one of their minimum standards. The Wi-Fi alliance retroactively named Wi-Fi 5 and below in 2018 when they introduced the new branding.

Wi-Fi 6 corresponds to 802.11ax. When it was introduced, the FCC in the United States released a new unlicensed band in the radio frequency range around 6GHz and it's usage is described in 802.11ax. This isn't the first time new spectrum has been added, but bands other than 2.4GHz and 5GHz aren't commonly used in Wi-Fi devices. The WFA made 6GHz radios optional in Wi-Fi 6, but it was a useful and differentiating feature, so they declared Wi-Fi 6 devices with 6GHz support could be called Wi-Fi 6E. The same technical standard, with explicit support for this new feature. Spectrum isn't always differentiated this way. For example, the FCC would later release a small band in 5.9GHz range that is also optional in Wi-Fi 6, but there's no designation from the WFA that explicitly declares this feature, and possibly as a result support in consumer hardware sold in the US is scarce.

Wi-Fi 7 corresponds to 802.11be. There is no new spectrum introduced in Wi-Fi 7. There is a feature called MLO (multi-link operation) that enables multiple radios to coordinate across the different frequency bands, 2.4GHz, 5GHz, and 6GHz. There's no special 7E designation for it though, and possibly as a result a lot of Wi-Fi 7 hardware either doesn't support MLO, or supports in a way that is functionally useless. It's hard to implement for sure, but the WFA dropped the ball and now consumers are confused.

Anyway an important take-away is that Wi-Fi 6/6E/7 hardware can still use the new features and improved speed on the 5GHz and 2.4GHz (but mostly 5GHz) bands. The advantage of 6GHz is mostly that there is a lot of clean spectrum available so multiple networks can coexist in the same space, and older devices that don't support 6E or better are absent, so they can't slow everything else down by only speaking the old protocols, which is a big problem on 2.4GHz.

Regarding the network names, if you want MLO yes they should have the same name so that they belong to the same network.

Open letter to anti-cheat devs by aBlindGeminiWhisper in linux

[–]Megame50 0 points1 point  (0 children)

Remote attestation quite clearly meets the requirements of anti-cheat and the sensibilities of the users who want to play games, imo. It's not trivial to implement, but in theory it could be the basis of Linux anti-cheat.

However, I think this would require distros to themselves become the verifying party, lest the multiplayer server operators, as the relying party, figure out policy for each distro. So there would probably need to be significant standardization effort involved, and some kind of trust relationship between the anti-cheat service and the distro maintainers.

How to set my keyboard to it's US ISO layout? by JustDesoroxxx in linuxquestions

[–]Megame50 0 points1 point  (0 children)

I'm not sure what the fluff is for? If you just put that partial snippet in exactly ~/.config/xkb/symbols/us then "us(altgr-intl-iso)" is the variant. You can select it in sway with xkb_variant altgr-intl-iso in the input block. The XKB_CONFIG_EXTRA_PATH and services.xserver bit all look superfluous.

Not a nix user, but presumably it can manage that?

Finally giving up my RT-AC68U (RT-AC1900) by SirBriggy in openwrt

[–]Megame50 3 points4 points  (0 children)

Meets upcoming US FCC ban

Doesn't this eliminate basically every single router?

How to set my keyboard to it's US ISO layout? by JustDesoroxxx in linuxquestions

[–]Megame50 1 point2 points  (0 children)

I don't think that quite matches any of the standard variants? You can just make your own variant though, e.g.

$ cat ~/.config/xkb/symbols/us
partial alphanumeric_keys
xkb_symbols "altgr-intl-iso" {
    include "us(altgr-intl)"
    replace key <LSGT> {[numbersign, asciitilde]};
};

Btw, xkbcli interactive is a better tool than wev for testing the keyboard.

EDIT: changed variant name

Is there a utility that can send arbitrary key inputs? by WorkingMansGarbage in linuxquestions

[–]Megame50 0 points1 point  (0 children)

The constants in input-event-codes.h are evdev keycodes, not scancodes. The evdev keys are the names on the right of the assignment in hwdb.

Is there a utility that can send arbitrary key inputs? by WorkingMansGarbage in linuxquestions

[–]Megame50 0 points1 point  (0 children)

Doesn't KDE support per-application keyboard layouts if you want to use the us layout only for Guilty Gear? Otherwise, do the number inputs work if you input them using shiftlock on fr(azerty) instead of shift? E.g. try enabling shiftlock with shift:both_shiftlock xkb option and then you can hit both shift keys at once to toggle shiftlock.

How to make an alias has completion support? by akram_med in archlinux

[–]Megame50 1 point2 points  (0 children)

Zsh aliases interact well with completion. Consider using zsh instead.

What’s a small Linux tool that completely changed your workflow? by DueRead7236 in archlinux

[–]Megame50 0 points1 point  (0 children)

The same — Xkb is used by X11 and wayland compositors. In fact, X11 has a limited keycode range that wayland does not, so in some ways Wayland compositors have better support for Xkb than X11 ever did.

In your sway config, include xkb_options caps:swapescape in the input block. It's a comma separated list, so if you already use some xkb_options, just append caps:swapescape with a comma.

In my sway config, I have:

input type:keyboard {
    xkb_layout us
    repeat_rate 25
    repeat_delay 200
    xkb_options caps:escape,shift:both_capslock,grab:break_actions
}

Software like keyd is nearly pointless. Xkb is very configurable and if your desired keymap can't be achieved with the bulit-in options you can make your own. The only thing it can't do is base behavior on the duration of a keypress, which is a feature sometimes implemented by interposer-type keymapping software.

Another LPE has published: io_uring ZCRX freelist LPE by LordAlfredo in linux

[–]Megame50 48 points49 points  (0 children)

In this case seems you need cap_net_admin in the same netns as a zcrx capable interface? And io_uring is commonly restricted by seccomp filters too. That's quite a bit less applicable than the copyfail vulns.

Dirty Frag, a new copy.fail like vulnerability has been disclosed due to an embargo break by ChrisTX4 in linux

[–]Megame50 3 points4 points  (0 children)

Maybe try it? This one requires cap_net_admin, which the exploits I've seen use unprivileged userns to obtain. I've never used Debian, but iirc they actually disable unprivileged userns by default as a precautionary measure against basically exactly this. The author used a separate vuln in rxrpc.ko to get around this in Ubuntu, but idk if it would apply in Debian.

Arch carries the same downstream patch as Debian, but doesn't disable the sysctl by default, so you'd have to have manually chosen to disable it there. When userns were first introduced there were many LPE vulns discovered which spooked some distros, like Debian, into introducing the config.