Linux

jadi , in How can I run something that needs sudo at every login without having to do so manually?
@jadi@mastodon.social avatar

@ReCursing you can set your user to be able to run openvpn as root (sudo) without password
https://www.youtube.com/watch?v=rNxitwVtRvo

Supermariofan67 , in How can I run something that needs sudo at every login without having to do so manually?

For this in particular, look into setting up NetworkManager to do the openvpn configuration, it has that functionality built in. Otherwise, systemd unit file

tophneal ,

I don’t use open VPN so I don’t know for sure, but I think you’re right as the best way to go. Pretty sure I recall Network Manager having an option to set a vpn to be always on when a network connection is made and an option to save credentials.

tophneal , in How can I run something that needs sudo at every login without having to do so manually?
Godort ,

This is the way I would handle this.

nieceandtows ,

Yeah OP, look into this. It’s easy once you get the hang of it, and you don’t have to make your system vulnerable by making sudo password less.

exscape ,
@exscape@kbin.social avatar

You can make sudo password-less for a single command (including using specific arguments) though, so even if using sudo were the only solution, it wouldn't be that bad. For example, I have a sudoers entry that allows my user to decrypt my ZFS pool by executing a root-owned script (with permissions 700), but everything else requires a password.

ReCursing OP ,
@ReCursing@kbin.social avatar

That looks pretty straightforward. I'll look into doing that. And if I can;t make it work I'll go with the cron job option suggested by @Andromeda above

tophneal ,

Actually OP, for the easiest, safest option to your system I would say @Supermariofan67 hit the nail on the head. Use your network manager settings: forum.manjaro.org/t/…/46298

If it’s not already installed there’s an openvpn plugin: software.manjaro.org/…/networkmanager-openvpn

Atemu , in How can I run something that needs sudo at every login without having to do so manually?
@Atemu@lemmy.ml avatar

If you’re using NetworkManager, I’d recommend you to use it to create a VPN profile instead and connect to that on startup through the unprivileged nmcli.

UID_Zero , in How can I run something that needs sudo at every login without having to do so manually?
@UID_Zero@infosec.pub avatar

Look into editing the sudoers file. Add a line that allows you to run openvpn with the NOPASSWD option.

I strongly recommend not using that for everything, just the specific commands you need to run non-interactively.

ReCursing OP ,
@ReCursing@kbin.social avatar

I didn't know that was an option! Sounds generally insecure but if the other options here don't work out this should solve it. Thanks!

UID_Zero ,
@UID_Zero@infosec.pub avatar

It’s only as insecure as you make it. It’s an option, it needs to be used responsibly.

lurch , in How can I run something that needs sudo at every login without having to do so manually?

AFAIK you can allow it in the sudoers file to not need a password, if you keep the sudo.

idk how KDE autostarts, tho.

e_t_ Admin , in How can I run something that needs sudo at every login without having to do so manually?

Read the documentation on the sudoers file. You can specify particular commands to not require a password.

cmnybo , in FOSS monitor calibrator?

Gamma can be adjusted with xrandr.

If you want to do a proper color calibration, lookup “color management” for your distro or desktop environment. You can load an ICC color profile, but you will need a colorimeter or spectrometer to create one.

milkytoast OP ,
@milkytoast@kbin.social avatar

see idc about it being color accurate, just looking a big better. gamma is the main issue tho, so thanks

domi , in Parametric equalizer on Linux?
@domi@lemmy.secnd.me avatar

Check out Easy Effects. Flatpak version is available.

github.com/wwmm/easyeffects

remotelove , in Parametric equalizer on Linux?

Not sure if federation issue, but I see a triple post.

milkytoast OP ,
@milkytoast@kbin.social avatar

mm kin kept saying it didn't post lol. will delete copies

HorreC , in Ubuntu Touch OTA-4 Rolls Out to Linux Phone Users with Various Improvements
@HorreC@kbin.social avatar

I have a few PinePhones and its nice to have that kinda access to the hardware and the OS's are good, but they would not be something a normal person would use. Too much choice.

Bldck , in VPN and server on same machine? (VPN makes server inaccessible to public)

Are you using services running on the OS, Docker or VMs?

With Docker you can set the Network and have some containers traffic egress on the vpn while others have no WAN or direct access. You can have a container join multiple networks to have the best of both worlds.

With VMs, you can set the network interface

With the OS, you might be able to set network interface for each service, but I don’t know how

FarraigePlaisteach OP ,

Thanks, I didn't know about any of this before. I'm running services on the OS (Raspbian, on a Raspberry Pi 3B+).

Should I be looking into running the web server or the VPN from docker to get access to these features?

Snarwin , in Does Wayland really break everything?

It looks like the article's answer to the question in the title is essentially "yes, but someday, eventually, it won't."

Personally, I look forward to the day when "Wayland-and-Pipewire-and-Portals" is a mature platform, and I can switch over to it without too much fuss. Until that day comes, though, I'll be sticking with Xorg.

Pantherina , in Sorry for the little promotion here. Please check out our newly launched m/LinuxHardware magazine/community on Kbin. We are also in-talks with r/LinuxHardware from Reddit, not only partnering with them but bringing their mods here as well. Thank you!
TheArstaInventor OP , in Sorry for the little promotion here. Please check out our newly launched m/LinuxHardware magazine/community on Kbin. We are also in-talks with r/LinuxHardware from Reddit, not only partnering with them but bringing their mods here as well. Thank you!
@TheArstaInventor@kbin.social avatar

Update: m/LinuxHardware is now listed on r/LinuxHardware's sidebar as the alternative fediverse destination, we will continue to work closely to strenghten this new partnership.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines