67 points · by nhgiang · 4y ago · 168 comments
You might say: Let's rewrite it in Rust to ensure memory safety - well, rust support is on the way and while I think it is a good thing, it will not fix everything.
In my opinion writing a completely new kernel would not benefit from the huge effort and experience that has gone into the current kernel - so it must be inferior in many ways for a long time.
If you ask for the things Linux needs the most "polish", in my opinion this would be mostly about the desktop and the community of hating each others work. Many projects are fighting each other instead of working together to fix things, but this also might be a good thing in terms of "competition". The things I would work at are:
UI
Security
Apps
And this also is all on the way. The current version of Fedora for example shows many improvements for the daily desktop user. Wayland / Gnome is getting ready to really be acceptable and flatpak does so for apps. Only security is a bit of a todo... but it will always be.I remember the "Linux Touchpad like Mac" article that made me believe again, that people really care... and nowadays with libinput, gnome and libinput-config, the touchpad really works... it is still hack-ish, not anywhere like macOS, but pretty good, and I'm a nitpicker on this.
Linux as a desktop has come so far, KDE is great for people who prefer the windows-like workflow, and Gnome for people who prefer a mac-like workflow.
(Keyword there is like, for everyone who is about to nitpick)
The dumbest thing is as you said the infighting over the same things.. that and the "This is better because it's harder, and thus I'm better than you because I'm using the harder option". Those need to go away. Like Arch could offer the user a choice at the start.. do a manual install or use arch-install (the guided option).. that would go a long way.. also put the AUR helpers in the main repo... Why i have to manually install Yay every new install... It's beyond me.
Flatpak is amazing, Gnome is amazing, Linux app support now is amazing. Proton is amazing.
Seriously it's just remove the two barriers of entry 1. The "Linux is hard" rhetoric which turns users away 2. The easier install of applications (this is happening with flatpak and other things)
That said. My point wasn't that Arch is hard or something. But that Arch could do some small things to make it much easier to have wider adoption... Its an example. There's things that other distros could do to solve this too.
The amount of "you use Ubuntu? That's a babys distro, I use Gentoo because I'm smarter!"
That shit needs to go.
What can be improved:
Having a hook daemon is kind of crazy to overcome the missing config
Two finger (rightclick) stop scrolling does not work, one finger (leftclick) does
touchpad accuracy could be better
More instructions for fedora, see: https://www.reddit.com/r/Fedora/comments/qn0o9w/adjust_touch...[1]: https://gitlab.com/warningnonpotablewater/libinput-config.gi...
2. Fix Linux's misinterpretation and broken implementation of fsync
3. Remote thread management (like CreateRemoteThread)
4. Get rid of the fundamentally-broken notion of SUID bits and grant privileges via control flow (instead of via data)
5. More handles/FDs, less IDs/paths/etc.
6. If insisting on POSIX, provide a decent implementation of POSIX async I/O
7. Better I/O model in general (including completion-based I/O) [yes, io_uring is going in this direction]
8. Revamp/remove signals
9. Set the official user/kernel boundary at the library level (like ntdll on Windows, glibc on Linux) rather than at the syscall level
10. Lots of other stuff I can't think of right now
I know writing grant proposals sucks and everyone wants to be having fun developing software, but if you pull in enough money initially you can pay people to write more grants and make things self sustaining in terms of funding. For how essential linux is to modern society there should be more paid people working on it full time.
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/17...
considering Ubuntu pulls shit like this I'd say their lust for money has already repeatedly been a problem for users.
I know that the reason why RHEL is preferred over Ubuntu or other distros is the fact RHEL has a paid license and provides regular updates to even "dead" or EoL libraries and packages.
Having said that, I wish more companies would take that dive. I've been in situations where the company would not sign a waiver so we had to essentially re-create a functionality that a FOSS library already provides.
Don't everyone apply at once!
The Linux kernel has a rule not to break users, and for the most part, it is followed. This is not followed in userland where glibc and GNU GCC C++ library do break users with they accidentally do not follow the spec. GUI libraries like GTK and QT break binary and source compatibility every decade or so. Windows tries it's best to keep it and that makes people want to invest in it.
Now LGPL libraries, it is very difficult to write a self contained proprietary GUI binary on Linux. This is desirable because of the above, GUI libraries like to break compatibility every decade so you want to include your own so it can run in the future. Sublime has to write their own GUI frontend. Most proprietary developers use electron.
A solution to both is Iced, but it hasn't been out that long. Likely will try writing a small app in it later. Mit Licensed. Wayland and Vulkan support. https://github.com/iced-rs/iced
I do think it's a bit harder when the spec is an external standard rather than just a de facto standard of your existing behavior. The kernel doesn't claim or aim to be fully POSIX compliant, so they "just" need to guarantee that they don't break their existing functionality. This isn't a small task by any means, but C and C++ compilers need to do this on top of ensuring that their behavior also conforms to the standards; it's essentially another guarantee they have to uphold beyond what Linux has to deal with. I don't have anywhere close to enough expertise to make any assertions of whether they've done a good job at upholding even the base guarantee of backwards compatibility though, so this point might be moot.
I don't know if this feature still exists in modern versions since memory has increased so much but I always found it to be neat that some developers thought about this.
I've ended up in a couple of situations where servers are so hammered it takes five minutes just to get a ssh session up and running because some process took up all CPU/RAM and was barely able to do anything in the server itself. Something like that could maybe help.
If you disable memory overcommit, Chrome based browsers won't even start.
I remember praising mac os memory management back in the days when you could just go to "Applications" folder and open everything at once without a hiccup.
Today, even rebooting with "reopen apps" option is a nightmare.
windows has policies that prioritize maintaining user interface and foreground app responsiveness.
Kernel thread for interactive applications in focused window would then have higher priority than background applications improving responsiveness. I am not sure what manipulated the priority, but I assume Xsun (X Window server) did it.
For a while you could actually use windows USB wifi drivers (Ndiswrapper) under linux, but it turned out to be unnecessary eventually.
Having your drivers in tree allows the developer changing said API to update everything in tree that depends on said API which they are changing.
people complain about NPM but at least the dependency resolution works
Controversial, but I'd probably take QUIC or http3 & try to build distributed capabilities on that. Having fast QUIC in kernel, & available to userspace would be very much "heading towards where the puck is going".
It's notable how bad Linux async i/o & others had been. Uring (its much more than io_uring these days) has totslly rewritten the rules, has been a giant leap into modernity. But it's so new! Leaning into uring style completeable syscalls would be essential.
eBPF has shown that programmability of the kernel space opens hella doors. Trying amplify this winning wpuld be great.
The past 10 years have really seen Linux grow all kinds of fast excellent capabilities, griw into itself. The above uring & ebpf examples are high examples of this. DMA-BUF has gone from up-and-comer to become the core win for much of the kernel, for how desktops & media processing are fast & good & flexible. It'll be interesting to see, but I have a hard time imagining more big boom events that push us way forward again continuing.
Every disagreement leads to a new snowflake distribution, fragmenting the community.
Hence why the Year of Desktop Linux ended up being taken by a browser, a managed language runtime and running inside of VMs.
Desktop Linux is another story though. On one end, you have GNOME devs who try to imitate macOS without the UX design knowledge and taste, and KDE that is buggy and crashes a lot. If these teams merged they could create something that will rival Windows. I guess fragmentation and lack of good desktops it is.
Similarly, GNU Info pages when well-written man pages suffice. Split by topic - there's already a mechanism for this.
I don't want to compile a basic utility like `curl` or something and then discover that somebody decided it has hard dependencies on graphical libraries and applications (even if once- or twice-removed).
KDE is superb these days, after the slump that was KDE 4. However even KDE developers seem think that a tic-tac-toe game needs to have its board abstracted as libtiktaktoe in case anybody else ever needs to use it.
I had thought that Wayland might be an improvement. It seems to be a regression. I recently learned that the trade-off for avoiding tearing in Wayland is increased latency compared to X11/Xorg. I don't want to care about my graphical display manager. X is not perfect, but it is tried-and-true, and it does not leave me struggling to share my screen in Zoom, or have legible fonts in my creative applications.
Systemd: Binary log files. I should be able to configure my system with `sed` and `awk` scripts that easily modify text configuration files.
On this note, applications should use plain text files for their data more often. For example, web browsers could use a hierarchy of text files, each representing a web page in history, or a bookmarked site. Sqlite is good, but a database is simply unnecessary in many cases, because filesystems are very optimized and perfectly useable for many cases. This encourages hacking and interoperation. I could comfortably browse through my bookmarks in a mature native file system explorer of my preference, instead of struggling with a tricky scrolling menu within a browser. If I want to change browsers or computers, there is no more export/import of links and then they get messed up anyway.
DBus: I'm not sure why the same functions could not be implemented robustly as a standard structure of named pipes.
SELinux: A tremendous gift so often squandered by being disabled with the global flag.
Pulseaudio, Pipewire, Wireplumber.
SQLite is very good indeed. It's fast and offers a nice querying API. You can use SQLitebrowser if you want to browse this data outside the browser UI, and we could always have a FUSE filesystem for sqlite database if we really wanted to be able to browse this data with a file manager. Since SQLite is used everywhere, the effort would be shared. One of the many good things about SQLite is that it is (de-facto) standard, way more than regular configuration files.
> Systemd: Binary log files. I should be able to configure my system with `sed` and `awk` scripts that easily modify text configuration files.
Configuration files are still regular text files, and are way easier / simpler than before systemd / upstart. You are also a command away from having a text representation of the logs, and that's journalctl, which can be piped into the regular unix tools, so I have not found an actual situation where it matters.
Not the kernel but deployment of binary apps is almost impossible because of a fragmented platform and distros not providing a universal set of guaranteed, ABI compatible libraries.
The early Linux project was a punk concept of its era. Linus very clearly started out as wanting to make a Unix-like kernel on commodity x86 PCs of the time. It was a personal, workstation hack for motivated tinkerers. Things like server and supercomputer usage were not imagined yet.
I'm not even sure what a moral equivalent project idea might look like today. It was a typical hacker blend of wanting to emulate something that was scarce/expensive using less expensive resources. Today, the smartphone might be the equivalent commodity platform. Both iOS and Android might be equivalent to the MS/DOS+Windows hegemony. But there isn't any equivalent of the balkanized and expensive Unix vendor market for phones, which technical students might aspire to. Linux didn't set out to rewrite the popular commercial OSs of the day from Apple and Microsoft.
The system call interface has no capability operations.
On the other hand, window managers under linux are freaking awesome (no pun intended).
Linux did not proactively foster standards on anything beyond the kernel.
Sure many would shout "not their job!" but here we are in 2022, every disagreement in an obscure chat channel or a forum only 500 people on the planet know exists leads to a new distro, or a fork of a high-profile library, or yet another pre-built KDE/GNOME configuration claiming usability / accessibility and whatnot. Fragmentation abounds, egos are flying around. Feels like a kids club arguing with another kids club about which Transformer toys are the coolest.
Like, come on already. Agree on a common goal and start pursuing it. Moderate aggressively -- if somebody is being a dickhead just boot them out. Done. (Would have saved at least 17 people no less than 10 hours each, judging by several random encounters I witnessed some years ago.)
---
Non-exhaustive list:
- We need strong schema for cooperation between tools. A tool like `jc` that strives to parse various UNIX tools outputs and convert them to JSON shouldn't even exist yet I find it indispensable for most of my throwaway scripting or homegrown data-science needs.
- We need less copying between user space and kernel space.
- We need to start moving away from "everyting is a file" and have some standardized SQL-like interface to the OS (or any other query language that makes sense for the task; people will adapt).
- We need less Python scripts being responsible for, well, almost everything. It's collectively embarrassing and makes a ton of distros very brittle (upgrade from 2.7.X to 2.7.Y and hilarity ensues).
- We need to start bundling more things into the OS by default. People love standards and that's the (apparently inconvenient) truth. Endlessly parroting "freedom!" has gotten us nowhere as it's very clearly visible by the state of anything non-kernel related in Linux land.
---
A lot of things from the 70s and 80s still make sense today. But some no longer do and we should recognize that and start moving forward because that old way of doing things is actively hampering progress of the entire IT area.
And no I truly don't care if I get automated out of my job as a result. At one point the area has to progress further. We are in an evolutionary cul-de-sac.
---
It really does seem that non-kernel Linux work is mostly picked up by very immature people who don't seem to be professional programmers at all.
`jc` is trying to parse some UNIX tools' output and turn it into JSON but that's a hack (though a very useful one).
We shouldn't still be parsing plain text in 2100. Tools must speak a common language.
Linux did everything right, if you want a kernel that looks and behaves like Linux. If you want a kernel that does something differently, see the other replies in this thread. All of these things (such as a stable driver ABI) would radically change Linux, and are probably very bad ideas.
> Or, if you have enough funding to write a new kernel, what would you do differently?
I'd make an open-source kernel inspired by the best parts of Windows NT. Not a direct clone of 30+ years of legacy APIs (ReactOS), nor an emulator trying to fit the square peg of Linux into the round hole of Windows (WINE).
See this about the multi monitor stuff on macOS: https://news.ycombinator.com/item?id=31361974
It looks good, it's fast and feels professional. The jankiness I used to associate with desktop Linux just isn't there. It's actually stable and reliable, whereas on macOS, I'd run into issues with Bluetooth, or with WindowServer or some other opaque macOS service hogging 100% of CPU time for no apparent reason. Linux tends to have better hardware support, as well, especially for older hardware that might have older drivers that don't support modern macOS.
I'm of the opinion that if someone's needs, even a layman's needs, can be satisfied with ChromeOS, then Plasma Desktop with a browser would satisfy them, too.
The closest I have seen to creating a good experience was Ubuntu Unity.
I noticed it being used in universities, and in the office I used to work at.
I'm disappointed that the Unity project wasn't taken forward, and it seems to me that Gnome just reimplemented it, but missed many best parts of the original.
Many years ago, around 2006-2008, my PC exclusively ran Slackware after saying goodbye to XP. It wasn't really beefy, so I installed FVWM. I could do all the university assignments on it. Internet browsing, multimedia, USB plug n play, printing etc etc worked fine. Guess my use cases were kinda minimalistic.
These days I mostly work on Mac, but still have a headless Linux PC running for personal tinkering. Probably I need to have another taste of Linux desktop experience :D
Try out modern Plasma/KDE, it's actually really nice. I say this as someone who has disliked KDE for a very long time before using Plasma.
This fragmentation has real downsides, too. I have an odd multimonitor setup with one vertical monitor and two horizontal monitors. I can configure this in KDE's settings, but the login shell is a separate application and needs to be fixed by googling the solution and changing some config file. I've never had a Linux distro that, when I configure the default monitor when logged in, also uses that setting when logged out. In all my years of using Windows this has never happened!
In some ways, this is one of the ways in which a company controlled project has more of a chance to succeed than a community-built open source project. They have a financial incentive to stick to one plan and do it well, rather than develop a dozen competing products and brute-force a good solution. The user-facing areas of Linux that do the best are projects like Android, Ubuntu, and Pop OS, all of which have a company that keeps them in line.
This is to say nothing of the google-centric UI of Linux. Don't know how do do something? Google the answer, sifting through multiple possibly out-of-date forum posts, or excavate through man pages to find the answer. In other operating systems, you can confidently rely on the OS helping you out, but not Linux. This behavior is often dismissed as "hand-holding". Well, I suppose I want my hand to be held then! I don't want to waste time finding the answer online, I want the OS to show me to the answer so that I can find it for myself. I can never remember the correct syntax for systemctl commands; I don't use them often enough to memorize them. So I have to look them up every time. Windows, meanwhile, has provided a GUI (that I know will exist on every Windows machine) that I can use to stop and start these things. In fact, Windows has provided a tool that I can easily use to troubleshoot the system, without having to google for commands first, that is easily accessible. Meanwhile the Linux answer is "here, learn how these dozens of commands and how these dozens of config files work; if you encounter enough problems you'll start to memorize stuff." The stench of Stockholm Syndrome is strong.
People complain about the difference between Program Files and Program Files (x86) in Windows. Well let me introduce you to the dozen different places to install an executable in Linux! Also, half of them are sim-linked to the other half in an effort to decrease confusion (they seem to have failed there).
Yes there are problems with Windows. The registry should have been an actual database, dark mode isn't os-wide, and most of the settings still haven't been corralled away from winforms into the new settings app (though you can't seriously be suggesting that Linux's "put a config file anywhere in whatever file format you like" system is better). I want to like Linux but every time I try it I end up having frustrating problems that take way longer to solve than they would on Windows.
Edit: Holy moly, sorry for the accidental essay. Hadn't realized how long this had become
Also I am running into all kinds of problems every day with Windows and end up on Google all the time with way worse answers, no way to deeply debug most things and worst no way to fix them myself. I am way to often depending on some big capitalistic company to fix my problems and hope they feel like doing it. Linux is DIY capable. If I have the abilities and time to fix something I can most of the time do it myself.
Also to answer some of your questions: - you want to use Pulseaudio, alsa has no usecase on a desktop - and use vim or neovim if you are into plugins. vi is just an old editor which got replaced by vim.
"DIY capable" to me is code for "we didn't finish designing the system, so you have a bunch of choices to make that you wouldn't need to make on another OS." Yes Linux is great for those that love to tinker. But I don't, I just want a PC that works the way I expect it to.
You'd be surprised how many people still swear by alsa-only. Other people prefer jack, and now you can add pipewire to the mix... plus the few people who like OSS4. At least old school OSS is dead for good.
Thanks to PipeWire, I can use my midi keyboard with no delay, still use my browser and music player at the same time, all this without having to tweak any configuration, messing with Jack and/or PulseAudio.
So the end result is the same, I can change the mouse speed in both OSes. But Windows definitely required no prior research, whereas Linux may or may not have required research depending on how the user set up their machine. And if I was new to Windows, I could google "how to change mouse speed on Windows" and get a straightforward answer. You could argue that on linux, I should have googled "how to change mouse speed in Ubuntu/Pop OS/KDE Neon/etc". The problem with that is that sometimes I can use generic Linux instructions, and sometimes I use distro-specific instructions. People actually point non-Arch users to the ArchLinux wiki!
Incidentally, I looked at the general recommendations page on the ArchLinux wiki [1], and found it seems to recommend alsa as a default and pulseaudio if you want some more complex features. Maybe this is wrong, maybe there are differing opinions in the community. Again, there's no way in Windows that you would run into two competing ways for sound to be sent from programs to your headphones/speakers because of the unifying force of the company. (Personally, I've always wondered why audio isn't just part of X11 or Wayland, since X11 and Wayland seem to control everything else the user interacts with.)
I also know from personal experience that Vim vs NeoVim is a complicated discussion and full of a lot of drama over the maintainers of Vim being hard to work with - yet another problem that wouldn't happen at Microsoft because you have a management structure that can deal with these sorts of problems without defaulting to the lazy open-source solution of "just give the customer more options."
1: https://wiki.archlinux.org/title/General_recommendations#Sou...
It works mostly, until it fails without hints and is a mess to fix
As an example, the popular Focusrite Scarlett 3rd gen works on Linux with the only missing feature being toggling the physical buttons via software.
Audio interface drivers aside, the adoption of Pipewire seems to have made Linux a decent platform for audio production.
As professional artist I still cannot use linux for work unfortunately (no 10bit support, no professional SW compatibility, GPU drivers mess, crazy difficult settings of VM dGPU passtrough, etc.).
1. concurrency 2. variable naming 3. off-by-one errors
The L in ALSA stands for Linux.
CoreAudio is much better.
A more competitive operating system would be based on Gentoo. After all one of the most, if not, the most popular os for laptops is Chrome, or was at some time at it was based on Gentoo if I read that correctly. Correct me if I'm wrong.
To make it more friendly to users of Debian (and all it's children) I think it would be great apt commands ran transparently to compile, optimize, and install and remove software without breaking things.
Because of the time involved system vendors like Dell can make a repo for each system they offer if from top to bottom the build process is coordinated.
In between hardware and basic os design, a fully fledged desktop is desireable for new machines and I think KDE's desktop is sane enough to work well even if it does consume more memory. But everything is perfectly optimized. A new system could boot in just 7 seconds or less. There would be no snap, or weird repos you have to trust with your life with.
AppImages for apps would be fine if the system would always know where they are and how to update them.
I know basically nothing about gentoo and how to install and use it. I just know it is a major pain in the ass. But the thing is, this is the only way to make a professional operating system for the general public. Google proved this with Chrome OS.
Making everyone become a master at using portage and understanding what all these options is not needed if the blanks are filled out in advance and doing something like:
sudo apt install thunderbird sudo apt uninstall snap
Being able to do that, boot quickly, stable systems tailored by the manufacturer, its really full stack control. The Ubuntu Stack is looking really nasty recently. I hate having to rely on it.
Making a good operating system should be as easy as going to a vending machine, pressing buttons on a screen, and out pops a usb stick which is brain dead simple to install without destroying everything in your system. Perhaps a packet comes out from the machine that explains how to avoid data loss.
The vending machine would be like menus at a store. You select what kind of cpu you use and you can be as nerdy about it as you like your make and model of computer. It could be like something you would find at MicroCenter. A little kiosk that Dell would make to cook up a custom system and put it on a fast disk that some one at the store can help the elderly preinstall it.
The musicians store kiosk spits out usb drives that are preloaded with vetted software. Paid for software can be selected and the music store gets a cut of the royalty. Whatever goes on that disk just works. Can we just do?
The Game store sells USB drives that contain only one game. It has just what it needs to play a game on the system type you select.
Staging development could help improve software quality. It is always frustrating on ubuntu trying to find the latest and greatest. Wouldn't it be nice if that software was also byte code optimized? Maybe its only 10% better. But we have limited electricity and every little bit savings helps.
Quality is ensured so if your system isn't listed then too bad for you. However you could try your hand at compiling your own from a middleware distro that had a similar kiosk interface but more options and warnings of what may or may not happen with your selections. What the kiosk pops out is always 100%.
A kind of royalty system can circulate the kiosk service for different stores. System makers can get involved on the demands of stores that wish to serve up desktop systems.
There is always a demand for newer better software and if the integration is always simple, people are willing to pay for usb sticks.
Linux as an ideology is like all ideologies, they are flawed. We just want software that doesn't disrespect us. We want a clear relationship with our venders. We do not wish to be warped into a mind stealing model of business. People would use kiosk software not because the software is all organic free range GNU software. They use it because they trust it and it does what they want it to do.
I am saying this as a person with a computer science degree and worked in the field for a while, although I no longer do. My point being is that I have more experience than the average user, but still think it is very, very difficult.
I could spend a lot of time learning it, and do it fine, but I just don't have the time. I have other larger issues to deal with.
I started off with MS-DOS, so I am VERY used to command lines. But I hate them now. I just cannot bear them. And for a lot of stuff, you have to string a bunch of fucking command lines together. It wouldn't be bad if I was a sysadmin and doing the same thing over and over and just automate it. However, I only usually need to do things one time, so it is a real pain to have to type these long lines of command lines, where it is easy to make a mistake when typing it in, when in windows, all I have to do is click and move an icon for one-time operations.
There's so much on linux that sure, I know how to look stuff up and do it, but it's just a pain, when these things I KNOW can be automated by someone else and put into a GUI or somewhere. Some kind of apps included in the distro.
One thing that has seems to have got better is downloading actual linux. It used to be:
Download beta Download v1.e384 Download v93d8920r4 Download v72.dist Download v.alpha
and it would go on for about 20 different versions. that sucked ass big time.
Just give me a button that says "Download"
I totally understand the purpose of putting all the versions there. But it is stupid. Just put "Download" and another button that says "Choose which version of download you want" / expert"
And most do this now, so it is great. But as recently as a few years ago, none of the distros were clear as to which one should be downloaded.
.
When it was the very last moment, very last day to use Windows 7, I decided to switch to Linux permanently. But, as I did it, I found four apps that I HAD to use, did not work on Linux. I tried to do emulation and stuff, but it just become too big of a nosebleed, because there was no button that automatically would load an emulator, that I found, and that with a bunch of other stuff, was just taking up too much of my time. I could LEARN, I know I could, but I just had no time to fuck with it anymore.
On the other hand, installing Windows 10 was "Download" and it downloaded and it worked. Nothing else had to be done. I didn't want to go to Windows 10, but I just didn't have time to mess with linux.
Linux is very difficult. I know this because I have a degree in CS, worked in tech, and was in charge of acquiring new tech, learning the new tech, and teaching the new tech to others. Learning was my job. So I know I could learn Linux, but no time, and it is too difficult, if it is difficult for me, then it is a real pain-in-the-ass for someone who has no experience at all in computer systems.
I think that linux distros should just only have complete newbies on the team to test everything and let the distro team members know what is unclear.
That's my feedback.
it led to a whole ecosystem of secondary system to manage apps, god, runit, monit, supervisord, etc.
now i can just write a simple configuration file and have my app managed. i can describe network filesystem mounts as dependencies. blah blah.
systemd made all of this trivial.
So as an example, how do I see what services are available under systemd? How can I reliable see what file systems are supposed to be mounted at boot? The answer to both of those tends to be "systemd spreads it's files and configuration all around the filesystem to you need to learn some bespoke systemd command that you'll only ever use for systemd".
And while those previous init systems were inconsistent projects like openrc demonstrate that it's possible to accomplish systemd's goals, greatly simplify that init system mess, without breaking principles like locality of behavior or "everything is a file", and to keep it compatible with things like grep and tail and all that.
You can do systemctl list-unit-files
If you want to see the enabled services, then add --state=enabled , for disable --state=disabled. You can grep for those words as well.
>> Want to monitor a log file? Use something like `tail -f /var/log/whatever`
You can still do that.
With systemd, You can use journalctl to tail the log file by journalctl -u <unit> -f , so something like journalctl -u postfix -f
You can use journalctl to search for logs in a specified time period journalctl -u postfix --since "2022-09-30 15:10:00" --until "2022-10-01 02:00:00"
Want to see a log for a specific boot ?
journalctl --list-boots journalctl -b <boot id from the previous command>
You can view more about journalctl at https://linuxhandbook.com/journalctl-command/
>> How can I reliable see what file systems are supposed to be mounted at boot?
I still use fstab for this.
>> Sure, it wasn't super consistent but you used the same tools as you always used to.
You can still use most of the same tools. I use tail,grep,awk like I used to, but I like the fact that with systemd I get a system configuration layer (which includes the init system) rather than having different tools in each distro.
Do you prefer the old init system because it is something you are used to (and do not want to change) or do you have specific instances where systemd is broken for you ?
And if you know the standard systemd tools, you can get by with systemd. It's far from enigmatic, the docs are freely available. Yes, systemd does things differently from what you might be used to, but I don't see how that's an issue beyond having to surf the usual learning curve of a new tool.
> how do I see what services are available under systemd?
systemctl list-units --type=service
> How can I reliable see what file systems are supposed to be mounted at boot?You can still use /etc/fstab, systemd will parse it at boot time. For mount units, you can use:
systemctl list-unit-files --type=mount
> The answer to both of those tends to be "systemd spreads it's files and configuration all around the filesystem to you need to learn some bespoke systemd command that you'll only ever use for systemd" /etc/systemd or /usr/lib/systemd for global stuff
$HOME/.config/systemd for per-user stuff
That's pretty much it for unit files.Or maybe it is Linux's choice to not build an official default init system like BSDs that led to all the drama.
Devuan only has one and only one selling point: not systemd, which makes it for most people a unattractive choice.
Can we say “anti-compartmentalization”?