I swear, every time I use (a, any) Linux, I have to do a double-take and go "what the fresh fuck is this now". Today it's whatever is going on with /etc/motd on Ubuntu.
Making simple things complicated seems to be the trend there.
I swear, every time I use (a, any) Linux, I have to do a double-take and go "what the fresh fuck is this now". Today it's whatever is going on with /etc/motd on Ubuntu.
Making simple things complicated seems to be the trend there.
Today's #linux grievance: apparently #fedora comes up with a default firewall that blocks anything besides SSH and something called "cockpit" (apparently a remote admin web interface running on port 9090 using a self-signed certificate, so, uhm, yeah 🤦♂️).
Oh, and while I'm complaining: requiring sudo for dmesg is stupid, too. 🙄
Just spent 45 minutes groveling through 2,300 lines of bash completion gunk because apparently nowadays bash[1] will only tab-complete files based on filename "extension"[2] as if this was fucking MS-DOS.
Grrr.
[1] Well, _this_ bash on _this_ particular Linux version.
[2] E.g., "sh x<tab>" will only complete "x*.sh".
TIL: On Ubuntu, AppArmor restricts tcpdump from reading files that don't end in ".pcap". 🤦♂️
$ ls -l /tmp/out
-rw------- 1 tcpdump tcpdump 13651 Feb 13 15:49 /tmp/out
$ sudo tcpdump -n -r /tmp/out
tcpdump: /tmp/out: Permission denied
$ sudo mv /tmp/out /tmp/out.pcap
$ sudo tcpdump -n -r /tmp/out.pcap
reading from file /tmp/out.pcap, link-type EN10MB (Ethernet), snapshot length 262144
[...]
Why are people trying so hard to make "file extensions" happen?
@jschauma Garbage distros gonna garbage...
@jschauma First thing I do if I'm stuck using a distro that ships bash-completions in base is to purge it. It both breaks tab completion AND makes each bash instance take 10x the memory and startup time.
Today in "#systemd ruins everything", Jan learns that systemd-resolve...
- runs a proxy DNS server on 127.0.0.53 (which is in /etc/resolv.conf)
- uses it's own /run/systemd/resolve/resolv.conf
- will read and cache /etc/hosts regardless of what /etc/nsswitch.conf says (`ReadEtcHosts` defaults to `yes` in /etc/systemd/resolved.conf)
Applications that follow traditional libc resolver logic now will continue to get /etc/hosts results even if /etc/nsswitch.conf excludes 'files'.
🤦♂️
@jschauma You have my sympathies. I have yet to memorize how to turn off Bash smart/programmable completion (which routinely gets many things wrong when I have to deal with it), but I keep getting closer and closer every time I run headlong into it.
(One problem with Bash's programmable completion is that it puts you at the mercy of whoever wrote the rules for the particular program you're trying to use, and the quality of rules is somewhat variable.)
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.