The officially official Devuan Forum!

You are not logged in.

#26 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-18 15:11:26

WOW! You're gonna test all possible configurations.  LOL smile

OK I got it all figured out.  It's so simple I can't believe it cause this much trouble. It can be summed up by saying the configuration is very specific. nopass is only allowed if it's exactly as it is in the file. So to sum this all up.

1. If you configure it with args then you have to use the args or it won't work
2. If you configure it with the full path you must use the full path - many graphical apps will need this. For example JWMKit.
3. The reverse is true if you configure as the command line only the command will not work if you do the full path.

So the args do work for me, but I tested without the args assuming it world work with or without them.
When I tested in the terminal it did not work because I did not use the full path as configured in my file.
This is why it worked with the scripts, and graphical apps, as they did use the full path.

So I will configure with multiple combinations.

full path with args
full path without args.
no path with args
no path without args

permit nopass user as root cmd poweroff args -f
permit nopass user as root cmd poweroff
permit nopass user as root cmd /sbin/poweroff args -f
permit nopass user as root cmd /sbin/poweroff

Does any one feel dumb now wink

To be fair I would expect it to know that poweroff is the same as /sbin/poweroff since /sbin/ is in the exec path.  Also I would expect the args to be optional.  Maybe requiring it to be exact adds extra security. I mean you could easily manipulate the exec path to hack the system. right?

In a way we were all correct, it's just the configuration wasn't specific enough for zappers setup where he wanted to use both the commandline (no path with args) and jwmkit (path, and no args)

#27 Re: Off-topic » The Joke Thread » 2024-09-18 00:33:54

. . . cricket sounds . . .

The party died without golinux here

#28 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-18 00:25:40

Oh,  One more important thing. This is my experience so I'm not saying this is how it is suppose to behave, just how it does for me.  The no pass commands work without a password when NOT started for the command line but if it do them from a terminal it still ask for the password. which is fine for my use case.

So it works with graphical apps, or a menu item, or .desktop file, etc.  Just not directly in the terminal.

#29 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-18 00:20:34

The system I tested on I only installed the standard system tools or utilities whatever it's called.  You know the tasksel menu on the devuan/debian installer. No DE or anything else. It was the only thing selected.

of course then I manually installed the xserver, jwm, and more.

#30 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-17 17:44:48

@bilhook

they are not lamentable words, I did actually do it for real

I don't think anyone doubts you.  It's just that it didn't work for them.  The colon worked for me when it should not have because of my system configuration. Things are like that sometimes.

#31 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-17 17:35:25

Thanks yeti!

You are correct,  use a colon for groups, and no colon for usernames.

Why did it work for me? you're not gonna believe it. I belong to a group with the same name as as my username. What are the odds. lol.

As I said I usually use groups instead of a username, and since my test with usernames worked with the colons I assumed that was the correct way.

Still my other 2 points are valid. use the full path and the args did not work form me.  .  . and yes I did test the args after removing the colon.

#32 Re: Hardware & System Configuration » [SOLVED] Anyone know how to get doas working properly on devuan? » 2024-09-17 14:34:05

This works for me.
1 use the full path for the commands
2 add a colon before the username
3
2 the args -f seems to fails, and I don't fully understand the syntax here so I left it out.  ** Note below

* Code edited for accuracy

permit nopass user as root cmd /sbin/poweroff

On another note, I never configure doas for a specific user, instead I use a group, for example the wheel, or sudo group.

** With a quick  look at the documentation,  I can see the args syntax works how I thought it did. So I don't know why it causes it to fail for me.

The original number 2 above was marked out due to inaccuracy. Thanks to yeti for his post below. Even though it worked for me it was not correct.

#34 Re: Hardware & System Configuration » [HOW-TO] Prevent laptop suspend / sleep on lid close » 2024-09-16 14:14:02

I've configured many laptops just as you have, and it works well. The only difference is I just reboot instead of reloading the services.

It may also be helpful to change the behavior of the power key so it does not trigger sleep

I do this by adding the following to logind.conf

HandlePowerKey=poweroff
PowerKeyIgnoreInhibited=yes

#35 Re: Off-topic » Something I realized, » 2024-09-05 14:04:36

OK! Who are you and what did you with the the real zapper. smile LOL

Seriously though, You have a good point. It's next to impossible to have an absolute stance on libre software and have a full functioning machine. To much hardware depends on blobs. The best you can do is minimize the usage of blobs, and try to use hardware that does not depend on them.

Not to mention being force to compromise on these issues when collaborating with others.  For example, on a recent project I've been force to use systemd.  Yuch!

#36 Re: Off-topic » Firefox is becoming too chrome like. » 2024-06-25 01:05:48

If it is simply FB rejecting it as @zapper has suggested then maybe try using a plugin to change the browsers useragent?

#37 Re: Other Issues » Another security concern » 2024-04-22 14:11:48

Warning! My Long winded opinion smile

Micronaut wrote:

Is anyone auditing their contents?

This question hits at the heart of the matter.  The truth is any type of software package, archive, etc can be used to spread malicious content. An appimage isn't any less secure than a .deb.  The real concern is not the format, it's the source. You really can't go wrong if it comes from the Debian/Devuan repository. I only use these formats as a last resort. To be honest they are probably safer than using random packages from the AUR. At least the portable formats attempt to sandbox the software. Just a thought, not defending these formats.

I'm not going to limit myself to only the software provided in my distro’s repository, but on the flip-side I am skeptical, and examine foreign packages carefully.  A stance I believe many, if not most people take.  JWMKit is not in the Debian repository, but I can proudly say it is used by many. Quite a number of users directly use the packages provided on my sourceforge. I am very transparent and not only provide the project code, but also the methods used to create packages.  I think this kind of transparency encourages trust between users and developers.

My concern for these formats is more about not wanting to have corporate junk pushed onto me, and having unnecessary service running in the background. As for the security of these formats I think it’s an issue that can be resolved by pooling the resources of the community.

...but to be honestly I’m still hoping snaps and flatpaks fail.

#38 Re: Devuan » this morning... » 2024-04-05 23:40:38

And the best simulator is probably microcap, but it’s under Win.

Having to use wine is not the best solution, but at least microcap has a free license.  Public Domain Mark 1.0 Universal

Forgot about Fritzing. I used to use it and liked it very much. From what I understand it now has a simulator built in.

#39 Re: Devuan » this morning... » 2024-04-05 13:44:59

I find that searching the AUR is a great way to find software, and there are a lot of circuit simulator listed. Just follow the links to the upstream source (github, etc). You may even find a few are already available in debian.

AUR Search for circuit simulator

While not a simulator, my favorite circuit tool is DIY Layout Creator.  It's excellent for designing you own guitar pedals and it should be since originally that was it's intended purpose.

DIY Layout Creator

#40 Re: Devuan Derivatives » JWM KIT love fest » 2024-04-03 23:08:32

I have replied to the email.

I like the current UI design. It's so simple with large buttons, so I'd have to put a little thought on how to present the new options without cluttering it.

As i said in my email I have other things occupying my time, so this will have to wait until I find the time.

#41 Re: Off-topic » The Joke Thread » 2024-03-13 14:34:30

Q: Why did the old man let out a groan?
A: He was catching up on the Devuan forum joke thread.

#42 Re: Desktop and Multimedia » multimedia repo not available and nvidia driver not installable » 2024-03-09 18:57:20

I'm going to back up the proposals to removing the multimedia repo.  I view the repo as a solution to a problem that no longer exist. There once was a time where the multimedia repo was a must have for audio/video codec, dvd playback, etc. That is no longer the case. Even if you are a musician or other media artist you would be better off using something like the KXStudio repo. No that's not a promotion of the KXstudio repo, just my thought on the subject.

#43 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-02-27 15:06:37

@Iggy64 Great work!

I wonder if this has something to do with why Firefox is silent with sndio when using alsa-sndio? Firefox creates a sndio stream and you can control it. It's just silent. I'll have to test if I can use libasound's pre-amp with it.

Thanks for reporting back with your findings. I believe you've provided some useful information.

#44 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-02-26 04:22:53

The-Amnesiac-Philosopher wrote:

2. Open your file manager as root, got to /usr/share/applications and open the Firefox application with your text editor.
    Find the line Exec=

3. Insert apulse after the = sign in that line; such as Exec=apulse firefox

Wouldn't the .desktop file can be overwritten with updates or reinstall? Doing it this way should prevent this and does not require root permission.

- copy the file firefox.desktop (or firefox-esr.desktop) to $HOME/.local/share/applications/
- open the newly copied desktop file into your text editor and add apulse to the start of the EXEC= line.

#45 Re: Off-topic » The Joke Thread » 2024-02-09 22:17:39

WOW!
Quickfur, that has to be the ultimate Geek/nerd joke. Dare I say a dad geek joke?

#46 Re: Devuan Derivatives » JWM KIT love fest » 2024-02-09 22:14:20

Thanks for the reply.  I hope you found the info useful. Most of the issues are just about polishing the menus and such. Let me know if I can provide any kind of info regarding the amixer issue. Also any help you might need with JWMKit.

#47 Re: Off-topic » terminal title parameter » 2024-02-09 20:25:21

@quickfur
I had the thought of creating a dictionary for terminals and the parameter.  If a terminal was not in the dictionary just don't set the title. For now I think I'll just not set the title.

@The-Amnesiac-Philosopher
To be clear this is not about "general" settings for the terminal, but for a creating a launcher that starts the terminal and a specific task.

My goal was to set the title to the name of the task the terminal would be running. To clarify I mean the actual name, not the executable name.   Most terminal will set the title to the executable name. Which is close enough. So it's not worth writing a bunch of code to implement.

#48 Re: Devuan Derivatives » JWM KIT love fest » 2024-02-09 12:58:14

It's a good amount of stuff. I hope you don't mind, but I sent an email.

#49 Re: Off-topic » terminal title parameter » 2024-02-09 12:55:42

I know that doesn't help you, but I'm not sure what you're trying to accomplish?

Not everyone uses the same terminal, so if I share code with others that launches the user's default terminal emulator then that code needs to be compatible with as many terminals as possible, hopefully all of them.  If the parameters used are not consistent across all terminals then the code will break.

Setting the title is only cosmetic and is not that important.  For the sake of compatibility I guess I'll just leave ti out for now.

#50 Re: Off-topic » terminal title parameter » 2024-02-08 16:06:58

Having read the man pages for several terminal emulators I have come to the conclusion that there is no standard.  Which really is sad. Most of them do support either -T or -t. Simply recognizing both upper and lower case T for the argument would be a giant leap forward.

Board footer

Forum Software