News for hackers. Stuff that matters.
Re:A Linux Evening by nicoco on Friday December 16, 2022 @07:53AM (#34014002)
> I spent several hours fixing a problem and I learned next to nothing in the process.

This is probably true for this specific case here, but my experience with fixing stuff in Linux is actually the opposite. I learnt a lot doing so, and learnt stuff that turned out to be later useful in very unexpected spots.

Back when I was a teen and using Windows, I've spent countless hours fiddling in stuff in regedit and other atrocities and it feels like I never learnt anything useful in the long run.

Re:A Linux Evening by revolvingocelot on Friday December 16, 2022 @08:30AM (#34014295)
Usually my go-to for "Linux problems" is "tear down the VM and start a new one", but a few days ago my Manjaro rig at home lost power, and bluetooth wouldn't work upon restart. I wracked my brain, pored through forum threads, man pages, and LFS, but nothing really helped. It looked like several different problems at once, but none of the individual fixes worked, or only worked for minutes at a time. I stepped away from the problem for a while, as one does, while I mused about the way troubleshooting works, and how my early life with Windows and now modern containerization has predisposed me to certain types of solu-- wait, I've got it! rmmod the bluetooth modules, modprobe 'em back in. Everything worked flawlessly. I'm not sure what I learned.

*sigh*

Re:A Linux Evening by deltarholamda on Friday December 16, 2022 @09:21AM (#34014734)
>I'm not sure what I learned.

"Have you tried turning it off and on again?"

Re:A Linux Evening by ectopod on Friday December 16, 2022 @09:25AM (#34014776)
Exactly. My tendency is to jump in and try to root cause problems but nowadays the most productive solution is almost always some kind of a restart.
Re:A Linux Evening by ragingrobot on Friday December 16, 2022 @09:52AM (#34015130)
I've done this enough, but don't stop there as it's likely to happen again. When I resort to such a solution, I take a look at the syslogs. More often than not, something there will tell me why a simple restart of a service, module, whatever was the answer.

I had a similar problem as the article with a standard USB 3 enclosure. Two PCs, identical OS (oS Tumbleweed), same kernel version even. modprobe -r then modprobe usbstorage and it worked. An obscure error in the logs pointed to the uas module which for some reason failed to reload, enabling the enclosure to work.

Oddly, the other PC on which it worked was loading uas.

Re:A Linux Evening by anonymousDan on Friday December 16, 2022 @05:02PM (#34021103)
I always refer to this as Computer Science 101.
Re:A Linux Evening by underbrush on Friday December 16, 2022 @09:02AM (#34014529)
I do get what you mean. I have had the same experience and continue to have it. Unfortunately it just isn't very productive. Now as this is my day job I get to prioritize things so I can hopefully reuse the knowledge and ship the fixes it to many people. But it still isn't very productive compared to software development where software can be shipped to countless users who can run it countless times. Which is of course is why the industry have been moving away from manual administration for a long time.

At home where most have even less time it is even worse. This of course isn't an unknown phenomenon. These days you can call it "3d-printer syndrome". There is no lack of people who spend sometimes years worth of free time fixing their printers instead of actually building things that can have more impact. Many do realize it is a hobby but it can still be hard to really understand how it usually works out.

Re:A Linux Evening by markus_zhang on Friday December 16, 2022 @09:13AM (#34014631)
I think unless one uses Linux on daily basis it's really difficult to sink in the knowledge. I decided to install an Archlinux VM and see what happens.

I'm kinda disappointed to myself as I found out I didn't like too much trouble so I'll probably never be a good/great programmer.

Re:A Linux Evening by miloignis on Friday December 16, 2022 @09:18AM (#34014682)
I wouldn't write it off just yet, at least if you want to be a good programmer! While there might be some correlation, there's plenty of fantastic programmers who don't want the hassle and want to focus on a specific problem and just use Windows/macOS and an easy to setup/low configuration editor. One particularly great TA I had in college comes to mind...
Re:A Linux Evening by markus_zhang on Friday December 16, 2022 @09:29AM (#34014827)
Thanks, but I actually wanted to learn low level stuffs, or I thought I wanted. Anyway I'll see what happens. So far nothing really clicks for me but if that's it then that's it.
Re:A Linux Evening by nequo on Friday December 16, 2022 @10:46AM (#34015855)
What types of low-level things did you want to learn?

A lot of what seem low-level in Linux are implementation-specific things. For example, how you set up wifi or how you manage your firewall. Knowledge of these things gives you less long-lived and less transferable skills than knowledge of protocols like TCP/IP which is shared by everything that is plugged to the internet. It doesn't make you a better programmer, unless these daemons and tools are what you want to write software for.

Also, your options are not only Arch Linux and Windows/Mac. There are more desktop-ready distributions, too, like Ubuntu or Fedora. Linux lets you still inspect the plumbing if you install one of those.

Re:A Linux Evening by markus_zhang on Friday December 16, 2022 @02:46PM (#34019274)
> What types of low-level things did you want to learn?

To be honest, I've dabbed in a lot of low level stuffs but never went deep enough to make any impact, career-wise at least. For example I completed a full course on MCU programming, completed the first half of nand2tetris, read the first few hundreds of pages of "Beginner Reverse Engineering" (basically the part that teaches one to recognize C from decompiled assembly code), and many others. My most recent low level adventure was the book "Practical Binary Analysis" which I planned to use the whole holiday to push maybe a few chapters.

But I never drilled deep enough into any of the topics. I believe I have the brain to drill at least a few more chapters deeper for any of them, but I don't have the mental power to do it. I secretly want someone to put me into some sort of prison and keep me from getting out until I completed all previous projects and learnings. But of course I need to figure out a way to deal with the problem.

Anyway, really appreciate your answer, and probably I'll still install Archlinux, play with it a few days and then lose interest -- just another failed project to spend time.

Re:A Linux Evening by diego_sandoval on Friday December 16, 2022 @11:36AM (#34016595)
People say "Arch makes you learn how Linux really works", but I don't think that's a good way to put it.

Arch teaches you about the most boring parts of how linux works: the specific idiosyncrasies and configuration minutiae of a ton of libraries and programs (systemd, udev, mesa, glib, X11, Xlib, xdg, dbus, etc.)

Arch will usually not teach you the really interesting "low level" things about Linux: How the kernel works, how threads are created, etc.

Re:A Linux Evening by reshie on Friday December 16, 2022 @12:30PM (#34017444)
gentoo gets pretty close for a full OS system.
Re:A Linux Evening by tmtvl on Friday December 16, 2022 @01:11PM (#34017984)
No it doesn't. But that's fine, it's not the point of a distro to teach you about interrupts and syscalls and all that nonsense, the point of a distro is to give you software to install. That said, Gentoo does do a good job of teaching you how annoying it is to try and figure out exactly which kernel options you need to activate to get a working system. I always run out of patience before I get it working, though (yes, I know about make localmodconfig).
Re:A Linux Evening by tehnub on Friday December 16, 2022 @02:55PM (#34019400)
I'd say it teaches you how to use Linux. It's not the particular details of each config file, but the fact that there are config files, and where to look for them. By the end of an Arch install, you know at least 85% of how to manage your system, and wiki will take you to let's say 98%.
Re:A Linux Evening by bombcar on Friday December 16, 2022 @11:16AM (#34016293)
Installing Arch is much closer to system administration than programming - they may be related somewhat and attractive to similar people; but you can be a quite successful programmer and barely be able to install Ubuntu.

I know people who have written kernel-level Linux drivers who have difficulty upgrading macOS. They're separate skillsets.

Re:A Linux Evening by channel_t on Friday December 16, 2022 @01:27PM (#34018173)
I was going to say, I know a lot of programmers, maybe even most, who avoid Linux like the plague because they don't want to waste cognitive cycles on fixing their broken machines. I have found myself in this same place after a solid 12 years or so of Linux use for pretty much everything, home, work, etc. I honestly kinda want to get back into it, but there are other priorities. As long as I have access to some kind of unix-y command line from somewhere I'm good.
Re:A Linux Evening by CoolCold on Tuesday December 20, 2022 @03:34AM (#34063195)
That's how WSL gets traction being good enough as Unixy command line
Re:A Linux Evening by markus_zhang on Friday December 16, 2022 @02:37PM (#34019124)
Thanks for sharing. I'm a bit surprised about the second paragraph but then I realize it is indeed two skillsets.

I think I'm split between career growth and hobby. My career is much closer to a sys admin/devops than a low level programmer, but my hobby probably is closer to the later. Of course it could be just my fancy about low level programming that fascinates me as after all I have never done any low level programming except some entry level MCU programming.

Re:A Linux Evening by HideousKojima on Friday December 16, 2022 @03:38PM (#34020024)
>I'm a bit surprised about the second paragraph but then I realize it is indeed two skillsets.

I started out my career on the sysadmin side of things before becoming a developer and that doesn't surprise me at all. Most devs I work with have little to no understanding of things like file permissions, how networking works beyond making HTTP calls with $SomeRequestLibrary in their programming language of choice, or how services/daemons work in Windows/Linux.

Re:A Linux Evening by antihero on Friday December 16, 2022 @09:50AM (#34015086)
Linux is like driving a car with your hands in the engine
Re:A Linux Evening by JP_Watts on Friday December 16, 2022 @09:56AM (#34015188)
And thinking "why doesn't everybody want to do this?"
Re:A Linux Evening by swayvil on Friday December 16, 2022 @10:10AM (#34015373)
This contradicts my experience.

I use Linux every day and I never touch the engine.

I also set up Linux for computer-illiterate old ladies. They love it.

Re:A Linux Evening by seanw444 on Friday December 16, 2022 @10:43AM (#34015823)
Some people just don't like the Linux (or Unix) way of doing things. I personally can't understand the predisposition against it, but hey, whatever works for them I guess.
Re:A Linux Evening by swayvil on Friday December 16, 2022 @05:28PM (#34021461)
For your average user it's exactly the same desktop as windows and mac : there's menus and icons, you click on stuff, there's a browser... What's this "way" that they don't like?

They don't like free, stable and fast? They don't like how it isn't going after your wallet every 5 minutes?

It's gotta be propaganda at work. It's the only explanation.

Re:A Linux Evening by iraqmtpizza on Friday December 16, 2022 @06:08PM (#34021875)
Ubuntu desktop is anything but stable. Nuke-and-pave is the only sane solution to the OS corruption issues. The GUI is more stripped down than a holocaust victim. They still haven't figured out drag and drop. And on top of that, everyone swears such-and-such distribution is actually the good one, but it never is. The desktop is in permanent demo mode. A back-burner school project that turned into a part-time hobby.

Maybe you just use it for web browsing. But for everyone else, there's Windows. Which is still crap but at least you can set an environment variable without doing a research project into the differences between .bash_profile, .bashrc, .profile, and /etc/environment. None of which have a GUI. And the best part is that none of them can ever be renamed because muh scripts would break and the entire OS would come crashing down.

Re:A Linux Evening by swayvil on Friday December 16, 2022 @06:13PM (#34021917)
Ok, ya, last time I used Ubuntu I didn't like it either. I like Debian (Ubuntu is derived from it apparently), with MATE desktop.
Re:A Linux Evening by iraqmtpizza on Friday December 16, 2022 @06:22PM (#34022023)
It is about what I would expect from an OS that considers UI to be bloatware and viral anti-business licenses to be more free than permissive ones.
Re:A Linux Evening by opan on Friday December 16, 2022 @06:39PM (#34022205)
Freedom 0 of free software, use the software for any purpose, includes commercial usage. There's nothing anti-business about it.
Re:A Linux Evening by iraqmtpizza on Friday December 16, 2022 @06:55PM (#34022353)
I agree. Using software modifications as a competitive advantage in business does not violate free software licenses. It does, however, violate non-free licenses like GPL
Re:A Linux Evening by inkblotuniverse on Sunday December 18, 2022 @12:51AM (#34035384)
It's just the equivalent of a consumer protection law: you have to sell people the software, not a build artifact.
Re:A Linux Evening by freeplay on Friday December 16, 2022 @11:14AM (#34016257)
Out of curiosity, what distro do you use and what is your distro of choice for the old ladies?
Re:A Linux Evening by lrvick on Friday December 16, 2022 @11:35AM (#34016569)
I have been setting up Ubuntu for non-technical folks for a decade. Chromebooks work great too, but I cannot justify recommending them given the proprietary Google bits included. De-Googled chromeos would probably suffice for most people though.
Re:A Linux Evening by tempest_ on Friday December 16, 2022 @11:51AM (#34016816)
Honestly if you have older hardware, like a couple years old most of the most popular distros are pretty stable.

Ubuntu on hardware a few years old will chug along without issues more often than not especially if you are just using it as a glorified thin client for Chrome which is an increasingly large base of users.

There are of course some gotchas with things like integrated graphics and dedicated graphics in laptops or some device drivers for peripherals like printers (it is still linux after all, year of the linux desktop any year now aha)

Re:A Linux Evening by ronjouch on Friday December 16, 2022 @12:04PM (#34017027)
Not OP, but chiming in nevertheless, as I do also "set up Linux for computer-illiterate old ladies".

They all roll Debian stable with unattended_upgrades and it's an absolute joy of stability.

Not that I would use Debian stable for my personal machines: I want the latest shiniest and I want to be close to upstream to report bugs when they're fresh and easy to fix by the maintainer (yes, "I use arch btw" indeed), but for "computer-illiterate" people, stability trumps everything else.

The "computer illiterate" isn't amused by constant breaking behavior / visual changes. They want the thing to work reliably and unsurprisingly. Debian delivers this and never breaks. Once every major dist-upgrade I review changes with them, and they're good to go until next time.

Re:A Linux Evening by freeplay on Friday December 16, 2022 @12:19PM (#34017256)
Nice. What is your go to desktop environment for them?
Re:A Linux Evening by ronjouch on Friday December 16, 2022 @01:13PM (#34018005)
- Generally, GNOME with the dash-to-panel/dash-to-dock extension-du-jour to have a left-side panel with app buttons (so, a "Ubuntu/Unity"-like look). It baffles me how stock GNOME still insists not to provide a left/bottom "dock" / task switcher as a built-in option, and force you to go to the menu every time you want to access / switch to an app, but here we are with extensions oƔ.

- That being said, a well-configured/simplified Plasma these would certainly be all well (or not, see my final paragraph below about locking things down; GNOME is less infinitely configurable than KDE/Plasma, so there's less room for user fuckup). Also I'm certainly biased towards GNOME because that's what I choose to use for my machines. Also also, I go where there are the most eyeballs (again, for stability & maximal guarantee that bugs are seen), and for now it's GNOME.

- Exception: one grandma has a particularly old laptop (x86-32 old :D) with meager RAM, so for her setup I went with MATE. I hesitated between LxQt and MATE, tried both, and MATE (at the time) seemed a tad more polished.

Finally, since I have your interest and GUIs are a subject I love ranting about, one more thing you need to do when setting up an old ladies machine, is to LOCK DOWN ALL THE THINGS YOU CAN:

- LibreOffice toolbars that can be accidentally dragged, then maybe dragged offscreen or closed? LOCK THEM.

- Thunderbird folder column titles that will change email ordering if accidentally clicked? HIDE THEM with userChrome.css until https://bugzilla.mozilla.org/show_bug.cgi?id=237051 is fixed.

- Etc etc, when I'm done provisioning such a machine, I spend an hour playing with it and wondering "How could someone haphazardly clicking and dragging everywhere break/mismanage this?" , and I disable/lock/hide everything I can. There is a million configurable / breakable things that we power users don't imagine being confusing to a user, because we know the features and we're precise at clicking on stuff. But to non-computerists, these things are veeeeery confusing! They'll email you with a gibberish issue description when invoked accidentally, and when it happens too often they get scared. There's potential to build a whole distribution aimed at such users, with everything properly locked down.

Re:A Linux Evening by nephanth on Friday December 16, 2022 @01:55PM (#34018517)
For thunderbird column header, there is an extension that locks them (unless you're ctrl+clicking them)

Might be more intuitive than locking them?

Re:A Linux Evening by ronjouch on Friday December 16, 2022 @02:01PM (#34018582)
Thanks! Yup, if you look at the bugzilla link I shared above, you'll see I mention this extension in the last comment: https://bugzilla.mozilla.org/show_bug.cgi?id=237051#c11 .

I couldn't check it as I run Tb beta (which the extension doesn't support last time I check), but I might give it a try next time I maintain one of these machines ..... or not:

0. They never ever need to click it to re-order. Why bother with an unneeded feature?

1. Extensions break! UserChrome.css too, but maybe less so :) , and a CSS rule is simpler/smaller in added complexity & potential for bugs than an extension.

2. Also, hiding the columns means one less bit of chrome to read/parse. Hiding stuff avoids misclicks, but also increases GUI legibility for people with bad eyesight.

Re:A Linux Evening by swayvil on Friday December 16, 2022 @05:06PM (#34021143)
Mate
Re:A Linux Evening by bradwood on Friday December 16, 2022 @01:45PM (#34018411)
what about Fedora workstation for the old-lady use case? I'm about to give my 12 year old non-technical daughter a linux laptop, and wondering on distro. I'm thinking Fedora but open to be convinced otherwise?
Re:A Linux Evening by ronjouch on Friday December 16, 2022 @02:09PM (#34018664)
For the old ladies, no: Fedora has a short release cycle, and no LTS; not great for maximal stability. "a version of Fedora is usually supported for at least 13 months" ( https://endoflife.date/fedora ), while Debian is security-supported at least 5 years! ( https://endoflife.date/debian )

Debian's whole project architecture & release cycle is built towards being stable bedrock, I see virtually no reason to use anything else if you aim at max. stability.

That being said, for your daughter tinkering with a distro, yeah Fedora sounds awesome :)

Re:A Linux Evening by chungy on Friday December 16, 2022 @02:07PM (#34018644)
Pick something you're willing to maintain. Stable releases tend to reduce maintenance and surprises.
Re:A Linux Evening by LBJsPNS on Saturday December 17, 2022 @10:12AM (#34028369)
MX. Fast. Stable as a rock.
Re:A Linux Evening by swayvil on Friday December 16, 2022 @05:30PM (#34021493)
Debian and Debian.
Re:A Linux Evening by naikrovek on Friday December 16, 2022 @11:29AM (#34016496)
> I also set up Linux for computer-illiterate old ladies. They love it.

I think you're trying to say that they don't have problems with the browser, and maybe an email client. If they're computer-illiterate, they don't know enough about an operating system to have an opinion at all, other than being happy about it turning on and off when they want.

Don't mistake that for loving Linux, because it is not really praise of Linux, it is praise for a computer that works well enough to run a web browser, which is an extremely low bar.

Re:A Linux Evening by lrvick on Friday December 16, 2022 @11:39AM (#34016633)
Linux can manage a browser, and email client, and a word processor, on a early 2000s computer found for $50 at a thrift store.

Meanwhile the latest supported versions of MacOS or Windows will not work on such a machine. Those ecosystems demand you continually buy new hardware.

I think is -is- Linux they love here.

Re:A Linux Evening by themaninthedark on Friday December 16, 2022 @02:04PM (#34018612)
Contradicts my experience as well.

I started out using DOS in the mid 90's to play games, used Windows 3.1, skipped over to 98SE then XP and 7.

I have used Macs before, not enough to make an impression.

I tried Linux back when I was in collage during the XP days but it always seemed to need more tweaking than my XP install and the lack of gaming kept me on Windows.

Currently I am running Linux Mint. I install the OS and go. No need to tweak or mess with command line.

I am not that interested in which OS I am running aside from the fact that I dislike telemetry and forced updates. I want the OS to get our of the way so that I can do whatever I am trying to do, Linux seems to be there now. It feels like Windows has regressed, with setting pages buried in 5 different places.

Re:A Linux Evening by nicoco on Friday December 16, 2022 @09:55AM (#34015164)
Can I steal this? I just started a microblogging career and it's too good.
Re:A Linux Evening by lrvick on Friday December 16, 2022 @11:46AM (#34016750)
Windows is like driving a car that is actually a city bus full of hostile randos that take a lot of effort to constantly remove.

MacOS is like driving a car by yelling at the driver from the kids seat in the back.

In the end, learning how an engine works to maintain one myself is not so bad.

Re:A Linux Evening by nebulous1 on Friday December 16, 2022 @10:10AM (#34015368)
I think the issue is that frequently the problem is with a small part of a complex subsystem that you don't understand (or perhaps didn't even know existed) before something went wrong. This sort of problem is extremely time consuming to debug via "properly" learning about the system, so you end up (much like Fabien) taking a fix from somewhere without fully understanding it.

There's also a timing issue. Often when something goes wrong it's at a random time when I'm probably intending to do something else. I don't want to put off that other thing even more by taking a "slower" route to fixing the issue.

You can of course still learn a lot along the way, as you say. So, it's not all lost, but it does seem sub-optimal.

Re:A Linux Evening by fragmede on Friday December 16, 2022 @02:14PM (#34018748)
Part of it is the binary config nature of Regedit though. I can't, from first or second principles, reason about which binary key to flip in order to change the behavior I'm looking for. Was it HKLM/ffebdcaaf, or HKLM/afbedccfh? Meanwhile if, eg dns got broken on my Linux box, there's a series of config files and daemons to check in order to figure out what's broken and then to get it working again. There's no way to learn anything with Regedit other than knowing you can just Google for the name of the key to set by looking up the problem.
Re:A Linux Evening by ddulaney on Friday December 16, 2022 @03:32PM (#34019928)
Eh, having worked with both systems, I'd say they're roughly equally impenetrable. For sure, the registry sucks. But at least it's uniform and scriptable. Once you know what needs to be changed, you can write a .reg file and be reasonably confident it will at least change the registry in a valid way.

On the other hand, if the solution to a problem on Linux is to change some dotfile controlling some daemon, reliably scripting it can be difficult to impossible. Did the distro put the config file somewhere weird? Is awk good enough here? What if the key I'm looking to update is found in a comment, and what is the commenting structure for this file anyway? What if the daemon rewrites its config file on exit [0]? Or has a config file with an extremely complex format [1]? Or I need to poke several /sys files in a particular order [2]?

Both systems are hard to reason about, especially if you don't know them. But Linux isn't easy to approach for the first time, and there are advantages to the way Windows does things.

[0]: https://askubuntu.com/questions/251797/transmission-daemon-k... [1]: https://www.sudo.ws/docs/man/1.8.15/sudoers.man/#SUDOERS_FIL... [2]: https://www.youtube.com/watch?v=9-IWMbJXoLM

Re:A Linux Evening by m463 on Friday December 16, 2022 @04:38PM (#34020801)
I think the two problem spaces are slightly different.

- for windows, the problem is solved by:

  1) common sense troubleshooting
  2) web search for the problem
  3) ask the developer
- for linux, you also get:

  4) break out the source
  5) push an update
Re:A Linux Evening by torginus on Saturday December 17, 2022 @03:25PM (#34031876)
Usually the adoption and uniformity as well as the generally higher quality of Windows, in addition to the availability of good debugging tools (which work) makes troubleshooting easier.

I recently had an OpenGL related issue on Linux, I googled the error message and got 1 search result. Now I can speculate, is my program wrong? Or is it the Nvidia driver, perhaps Xorg? Did the Ubuntu devs configure something wrong etc.

Why won't Nsight or Renderman work on my machine?

Windows has by contrast a significantly larger userbase, an architecture that's set in stone, meaning I can find relevant answers from a decade ago, and there's thankfully no Windows 'distributions' so the issue I face is likely to appear on any person's machine.

Re:A Linux Evening by dm319 on Friday December 16, 2022 @11:03AM (#34016091)
Yes, I remember, even up until very recently, having to google help on Windows. You'd get webpages full of adverts with a heading '12 ways to fix Win10 freezing during upgrade bug!'. And the first two would be something like 'switch it off and on again', 'try again', 'reconnect to your wifi'.

I always felt I could dive deeper with linux problems _if I wanted to_, and that weirdly gives me some confidence that I can fix it.

Re:A Linux Evening by harywilke on Friday December 16, 2022 @02:12PM (#34018714)
And after you scroll past the obvious solutions, "Install our Fix-O-Matic software for $29.99!" because the page is actually an advertisement cloaked as a help page.
Re:A Linux Evening by mattpallissard on Friday December 16, 2022 @11:14AM (#34016266)
> but my experience with fixing stuff in Linux is actually the opposite. I learnt a lot doing so, and learnt stuff that turned out to be later useful in very unexpected spots.

Same, in fact it's how I fell ass-backwards into my career path.

Re:A Linux Evening by nektro on Friday December 16, 2022 @01:31PM (#34018235)
and this article will now be much more higher in Google results for the next person searching :)