News for hackers. Stuff that matters.
Re:OpenBSD 7.0 by umanwizard on Thursday October 14, 2021 @08:59AM (#28863640)
You’re obviously curious and want to try it, or you wouldn’t have posted that, so why not go for it? You have nothing to lose.

For me the coolest thing about OpenBSD is it’s the simplest OS that is still of practical use (i.e., not counting ones that are purely for research or education). So if you’re curious about how any part of the system works, it’s easy to just dive into /usr/src and figure it out. It’s also entirely configured via simple text files rather than some opaque systemd monstrosity.

Re:OpenBSD 7.0 by tazjin on Thursday October 14, 2021 @09:13AM (#28863799)
systemd is configured via simple text files
Re:OpenBSD 7.0 by umanwizard on Thursday October 14, 2021 @09:26AM (#28863936)
What simple text file is, for example, the list of WiFi SSIDs to try to connect to stored in?
Re:OpenBSD 7.0 by nix23 on Thursday October 14, 2021 @09:31AM (#28863990)
/etc/systemd/network/25-wireless.network

https://wiki.archlinux.org/title/systemd-networkd#network_fi...

But simple i would not call it...compared to bsd ;)

Re:OpenBSD 7.0 by coffeecat on Thursday October 14, 2021 @01:54PM (#28867612)
I believe this is incorrect. Systemd-networkd handles layer-3 routing and some amount of layer-2 stuff (MAC addresses, etc), but it doesn't handle wifi connections. Wifi connections are handled by wpa_supplicant (the older, and still more common wifi daemon) or iwd (newer, but not yet widely adopted).

The vast majority of users control wpa_supplicant indirectly through NetworkManager, so it's not widely known that it can be configured using simple text files. But it can! On Arch linux, the default config file location (for network card wlan0) is: /etc/wpa_supplicant/wpa_supplicant-wlan0.conf.

iwd is similarly straightforward to configure using text files. Using the CLI front-end is typically a nicer experience, since you get to pick the SSID from scan results and you get quick feedback if you mess up the password. But if you want to do it manually, just create one file per wifi network (containing SSID, password, etc) in /var/lib/iwd/.

Re:OpenBSD 7.0 by enriquto on Thursday October 14, 2021 @09:57AM (#28864252)
This file does not exist on my rather plain ubuntu 20.04 LTS.

I tried finding similarly named files, to no avail. Knowing the notorious ADHD of the systemd developership, I wouldn't be surprised if this file is moved, renamed, and uses a different format every six months.

Re:OpenBSD 7.0 by nix23 on Thursday October 14, 2021 @10:12AM (#28864473)
/lib/systemd/network

http://manpages.ubuntu.com/manpages/focal/man5/systemd.netwo...

or

find / -name '*.network'

But yeah, BSD's would have them at one place -> /etc ...linux-distro standardization is a terrible mess.

Re:OpenBSD 7.0 by SAI_Peregrinus on Thursday October 14, 2021 @12:27PM (#28866412)
That's not a systemd thing, that's a distro thing. The default path is where it gets put if it's part of the base system, if it's installed from a package or if the distro makers decide to change it (because maintainers forks of projects often change things) it'll be elsewhere. But the systemd project doesn't control that.

EG Debian's systemd fork puts it in /lib/systemd/network/ (and lots of other network files in /usr/lib/systemd/network/).

Re:OpenBSD 7.0 by mistrial9 on Thursday October 14, 2021 @09:56AM (#28864232)
How are remote updates in Ubuntu configured by text file under systemd?
Re:OpenBSD 7.0 by nix23 on Thursday October 14, 2021 @10:46AM (#28864978)
Remote Updates..systemd? Do you mean apt?

/etc/apt/apt.conf.d/

https://wiki.debian.org/UnattendedUpgrades

Re:OpenBSD 7.0 by tazjin on Thursday October 14, 2021 @10:07AM (#28864407)
I don't know, I don't use distributions with imperative state management.