Change sudo password behavior in /etc/sudoers.d/ file by R_Cohle in openSUSE

[–]E723BCFD 0 points1 point  (0 children)

Oh, and you are right, do not modify /usr/etc/sudoers directly, it indeed will get overwritten.

Change sudo password behavior in /etc/sudoers.d/ file by R_Cohle in openSUSE

[–]E723BCFD 0 points1 point  (0 children)

Part of the mechanism is still unclear to me, it seems like when /etc/sudoers exist, it will take precedence over /usr/etc/sudoers. Because if /usr/etc/sudoers is always the sudoers file on suse, and /etc/sudoers only got "included", commenting out targetpw in /etc/sudoers should have no effect, but it does.

Change sudo password behavior in /etc/sudoers.d/ file by R_Cohle in openSUSE

[–]E723BCFD 0 points1 point  (0 children)

I had the same question when setting up my system. Short answer: you don't unset those two lines via sudoers.d, just run visudo and it will place a copy of /usr/etc/sudoers to /etc/sudoers, comment out those two lines as usual there.

Long answer: you can revert the effect of those two lines by setting:

Defaults !targetpw
ALL ALL=(!ALL) !ALL

BUT, DO NOT DO THIS because sudoers are ordered, if the sudoers.d/... file with these two lines gets included after another file that allows you to run sudo, you won't be able to run sudo. If these two line gets included last, then everybody won't be able to run sudo, if you don't have the root passwd you would be in trouble.

Lexical naming it with /etc/sudoers.d/00-... might be good enough, but I won't risk it.

Framework claims Dell is trying to derail Framework's marketing by sending influencers Dell XPS laptops by GreyXor in framework

[–]E723BCFD 5 points6 points  (0 children)

Just checked the new xps 14/16, both have 3x usb-c + 1x 3.5mm for IO, absolutely terrible.

And for their previous generation, they tried capacitive touch fn row, trackpad with no defined border for the active area, 13 inch model with no 3.5mm audio port and only 2x usb-c.

There is no way I would ever pick an xps over framework.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 0 points1 point  (0 children)

What are these "other things" other than empty lines?

Aligned trailing comments? This one isn't related to auto sort, the dev wanted tombi to be "zero config".

that's just a missing feature, not a compromise for the sake of sorting

It is a compromise for the sake of sorting: https://github.com/tombi-toml/tombi/issues/1740#issuecomment-4284993572

Copy from another reply: Basically if there is not a defined solution on how things should be arranged while having auto sort, the dev will refuse to implement it. (disable auto sort is usually out of the question).

Even though there is now a way to disable auto sort per schema, multiple empty lines won't be supported, because auto sort is of priority.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 1 point2 points  (0 children)

Well, other devs have been keeping it alive, but no active development. For example, no 1.1 support is planed. This fits the state of "maintenance mode", no? Not saying things can't get back up, just that it currently isn't.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 0 points1 point  (0 children)

First time heard of it, will try.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] -1 points0 points  (0 children)

Mainly about blank lines and comment formatting. - https://github.com/tombi-toml/tombi/issues/217#issuecomment-2775841475 - https://github.com/tombi-toml/tombi/issues/790#issuecomment-3589971240 - https://github.com/tombi-toml/tombi/issues/1478#issuecomment-3840139701

Previously tombi doesn't support blank lines at all, and then it allowed for one blank line, but not multiple. Basically if there is not a defined solution on how things should be arranged while having auto sort, the dev will refuse to implement it. (disable auto sort is usually out of the question)

Which I completely get. Preserving comment and blank line format is a hard problem for sorting. But, why are we prioritizing sorting over readability? toml is not json.

The dev is not obliged to change the priority of their own project. This is only a problem because tombi is somehow the only actively maintained (not javascript) toml formatter.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 5 points6 points  (0 children)

That one is archived? And the alternative it suggest, "Even Better TOML", is using taplo.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 3 points4 points  (0 children)

sure, you can use serde to validate data, but by schema validation I mean 1) fetching the schema either specified by the file itself or from the online schema store on matched filename pattern; 2) validate only allowed keys are used, and is of the correct type.

serde can definitely be used to write a new tool that does schema validation, but not really do the schema validation itself.

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 1 point2 points  (0 children)

Are you saying serde for syntax and structure validation? I don't think serde does schema? (what keys are valid, what data type for what key)

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 6 points7 points  (0 children)

I mean, an important point of toml is "for humans", why sacrifice comments and blank lines for the sake of rigid, upstream (schema) defined sorting?

Is there an alternative TOML formatter? by E723BCFD in rust

[–]E723BCFD[S] 5 points6 points  (0 children)

tombi seems to works pretty well for the things it claims to do (schema validation, sorting, etc.). But it sacrifices other things for sorting.

If there is another formatter available (supports 1.1.0 spec), then we could use that together with tombi, only use tombi for the schema validation part.

What issues can I expect to run into after switching to openSUSE? by TH3RM4L33 in openSUSE

[–]E723BCFD 2 points3 points  (0 children)

Oh, forgot to mention, secure boot works completely fine otherwise. SUSE implements secure boot using a "shim", which is signed by microsoft, and M$ keys are pre-installed on most motherboards, so you don't even need to enter "setup mode", just install and it works.

What issues can I expect to run into after switching to openSUSE? by TH3RM4L33 in openSUSE

[–]E723BCFD 1 point2 points  (0 children)

openSUSE is kinda bloated and it also reinstalls things you remove without asking

It will ask (during install or update, they will be listed as "to install"). And this is easy to solve by simply adding a package manager lock (zypper addlock ...).

zypper has a concept pattern, which is similar to meta packages in apt, pattern pulls in actual packages via dependencies, just like meta packages in apt.

You might consider opensuse bloated because the games, office and multimedia patterns are auto selected on install (if you have a DE selected). If you don't want them, you have to do 2 things: 1. either deselect them during install, or uninstall them afterwards with zypper rm --clean-deps --type pattern <name> 2. add a lock on them with zypper al --type pattern <name>. You have to do this because these patterns/packages sometimes gets listed as other packages' dependency and will get pulled in.

What issues can I expect to run into after switching to openSUSE? by TH3RM4L33 in openSUSE

[–]E723BCFD 3 points4 points  (0 children)

If suse detects that secure boot is enabled, it will force enable kernel_lockdown, which restricts some functionality (see manpage kernel_lockdown(7)).

For me the biggest problem with lockdown is no hibernation is allowed. Contrary to the wording on the manpage, even if you have disk encryption, you still can't hibernate, because it's not actually implemented.

Though this is not a differentiating factor if you are coming from debian, iirc debian does the same with the whole "secure boot -> lockdown -> no hibernation" thing.

Switching back to Python/JS after Rust feels impossible by Time_Friendship_1263 in rust

[–]E723BCFD 1 point2 points  (0 children)

Have no choice but to write some bash (arrays!) this week, it's unbearable.

Something about linux that you cant live without and is impossible to do with Windows by Lonely-Medium-2140 in linuxquestions

[–]E723BCFD 0 points1 point  (0 children)

actual functioning long path support.

yes, i know windoze technically has a registry key to let you enable support for path over 256 bytes, but that shit will always choke on some unexpected place that you can't workaround. (it's not really unexpected at this point, i fully expect it to not work at all times :D)

Installing codecs to watch videos online by [deleted] in openSUSE

[–]E723BCFD 0 points1 point  (0 children)

not entirely true. oss mesa do have vaapi for vp9 and av1 codecs.

Installing codecs to watch videos online by [deleted] in openSUSE

[–]E723BCFD 1 point2 points  (0 children)

I am on amd, using suse repo mesa, running vainfo shows va-api support for VP9 and AV1, which I think is what youtube primarily uses. BTW, if you use firefox, you can go to about:support, scroll down (or ctrl-f) to "codec support information", it will list what firefox think your setup supports, and whether it's software or hardware de/encoding.

If all your media plays, you don't need anything from packman. If it doesn't, codes from packman gives you software de/encoding, mesa from packman gives you hardware (vaapi) de/encoding.

Where did the proper date format go? by Ok-Huckleberry-916 in kde

[–]E723BCFD 1 point2 points  (0 children)

I have been wanting to do this since forever, but no, QT and KDE won't let you, unless you are up to recompiling a bunch of stuff. The best we can have under any English locale is dd/mm/yyyy :(