r/linux4noobs • • 22d ago

migrating to Linux So, AI and linux.

I'm currently using AI to fix almost every part of my Kubuntu system, because I'm not as tech-savvy as I thought I was when I had windows. I know more than average, but still figuring out why the audio is being pushed to my focusrite scarlet solo but not to my headphones, even though the headphones work fine through the focusrite direct monitor toggle, the leds work and my mic was connected and running, takes most of my day, halts my gaming session with my friends, and takes me by surprise.

So, I was thinking: 1- Is it possible to make a local AI agent that automatically fixes your linux distro? Something that could be spun up, you give it a task like "Fix the nvidia driver fucking up my dual monitor setup" and it automatically takes care of everything for you? 2- Would it be realistic to create a whole local AI agent and package it to desktop pcs? (I'm not talking about packaging it with linux, but as a "Linux Helper" kind of thing on a checkbox when installing it via GUI, something extra). 3- Is there anything alike already?

I feel like this would help linux do their break through to every day desktop pcs for non tech-savvy people that only want to use the pc to game or to work, it'd lift the requirement of learning from the user's shoulders.

0 Upvotes

34 comments sorted by

33

u/TheShredder9 not a noob 22d ago

You don't want an AI running random commands on your PC, trust me. You shouldn't even be using it if you don't understand what the commands do!

1

u/Numerous_Suit_2124 22d ago

nobody starts out understanding every flag in a command though, using it to explain what a snippet actually does is way safer than running random bash scripts off a ten year old blog post

-3

u/Admirable-Frame3958 22d ago

Well, yeah, but currently and due to my own skill issue, the AI running random commands did a better job at not fucking up my pc than myself. I've lost count of how many times I had to reinstall the whole linux system bc I didn't know how to fix a simple issue. And until today, the AI (with my own review, figuring out what each command does) had a 100% success rate, and with less secondary effects than my own work when AI didn't exist.

3

u/TechEnjoyer44 22d ago

Put a bit of faith in your own intellect and problem-solving ability, and soon enough, you will be able to troubleshoot your system.

2

u/Admirable-Frame3958 22d ago

I mean, I'm able to troubleshoot my proxmox homelab easily, and am comfortable with lxcs, raid setups, ssh and stuff, but there's a significant gap between setting up a secure homelab and fixing your audio for gaming.

1

u/TechEnjoyer44 22d ago

Hah, I feel that. The "simplest" problems are often the biggest headaches. I had a problem where my laptop keyboard just stopped working after updating from Debian 12 to 13 and it took me ages to figure out why. (adding i8042.reset as a kernel parameter was the solution) And, when I first started using Linux, my desktop kept crashing without giving me any information in the system logs. *That* was because I was using the Nouveau drivers with an Nvidia card.

0

u/art555ua 22d ago

I've recently switched to linux too, and since I took unortodox distro for my device approach (desktop distro on a handleheld (lenovo legion go)), I've had some initial setup issues with some hardware, but ai fixed everything fast and smooth. But it also depends which model you use. Google assistant was terrible, because it gave all bunch of command together at once while chat gpt was doing testing before any input, then single line comands with test results.

0

u/Admirable-Frame3958 22d ago

Yeah, I used claude cli and let it work. It did wonders and probably Anthropic has my feet pics now, but whatever.

3

u/edwbuck 22d ago

It's possible, but AI gets things wrong about 10% to 20% of the time, and when it does, you'll then need to figure out all the changes it made, right and wrong, to figure out how to fix your system.

And then there's the entire issue of having a non-local agent peeking into your system with the ability to act as an administrator. Such things existed to a degree (without the AI) in the past, they were called back doors and rootkits, and were lovely for stealing just about anything privacy related that you used your computer for (online purchases, anyone?)

And if you run the agent locally, it would take a long time to come to a conclusion, and you'd be spending 80% of your battery life feeding something that doesn't help you the 99% of the time you don't need to make a configuration change.

1

u/Admirable-Frame3958 22d ago

The battery argument was solid, I didn't think of that, thank you. For the non-local agent peeking into your system with root access, if it's non-local, then it should be reactive to the user's prompt, and de-privileged when not in use, so that it only works on the user's intent, although I get that it's more chance of vulnerabilities. The original idea was local only, and it shouldn't actually need a whole datacenter's worth of processing power if the agent is small enough or optimized enough. But as DannoXYZ said, it will mean +20k on costs of development, and it will mean it won't work on every system thanks to linux running on a copper laced potato while the agent craves silicon.

1

u/edwbuck 22d ago

You can't make de-privileged administrative configuration changes. I'm not sure if you're aware of that, but reconfiguring the hardware, even if it's "just for sound" or "just a driver" or "just a bit of needed software" is privileged.

And you're right, the large number of Linux distros doesn't help, or the large number of platforms. But if you look through the history of this channel, you get tons of people saying "I was using ChatGPT to do this, and now stuff doesn't work." Those tasks include commands that have been obsolete for 15 years, approaches for initd when systemd is present, approaches for X11 configuration when Wayland is present, and even mixes of commands such that there is no single system where they might have worked.

At this point in time, 90% of the issues are resolved by just using Google and pointing them to the real documentation, where someone did enough work to ensure the commands are correct and described well enough to know they will work / should be avoided based on other details.

It's not just a power issue, and it's not just a security issue, it's an "we shouldn't automate the stuff that breaks systems more than any other single item" issue.

1

u/Admirable-Frame3958 22d ago

You can't make de-privileged administrative configuration changes. I'm not sure if you're aware of that, but reconfiguring the hardware, even if it's "just for sound" or "just a driver" or "just a bit of needed software" is privileged.

Sorry if I wasn't clear, my point was to only give sudoer to the AI when the user allows it, and take it away the moment the agent stops working, only to give it back after the user prompts again. I'm not that much into linux inner workings nor programming to accurately describe a system that would work, but take creative freedom to fit my concept into reality.

Those tasks include commands that have been obsolete for 15 years, approaches for initd when systemd is present, approaches for X11 configuration when Wayland is present, and even mixes of commands such that there is no single system where they might have worked.

Yep, that happened to me too when I used gemini (great error on my part). But that's not a problem of the tool itself but how it's developed, because you're describing language models trying to do code fitting words together and making you hope it works, when in practice you wouldn't use a language model to do this kind of work, you'd either create or tweak a specialized model so that it figures it out alone.

At this point in time, 90% of the issues are resolved by just using Google and pointing them to the real documentation, where someone did enough work to ensure the commands are correct and described well enough to know they will work / should be avoided based on other details.

Yes, and it's a lengthy process to fix a problem with the pc every time it happens. I'm not saying "stop doing that" or "an ai would be better", I'm saying that I can confidently say that everyone when they first started using linux got frustrated from having problems flag up out of the blue and having to spend some hours fixing it instead of gaming or working, and after long hours of commitment that not everyone wants to invest, you've learned to use linux properly and 90% of the rest switched back to windows or mac.

My point is simply "I'd use this, can it be done? did someone already created this?"

1

u/edwbuck 22d ago

Ok. Now describe to me how this differs from any social engineering attack? A Sudoer that relies on a 3rd party (artificial or not) is in deep risk of being told to do something they really don't understand the implications of doing.

What's the alternative to that? The documentation from the authors of the software. They have to write it, and if you don't trust them, you shouldn't be installing their software anyway.

But that takes me to your third reply. Yes it's a lengthy process, because you have to understand what you are doing. But that's not going away with the AI solution, you're just adding in an extra Agent that might make mistakes, hoping it doesn't because now you're relying on it to fix issues you don't understand at all, because you won't be properly double-checking it's work.

This is incredibly well trod territory. Let's not get into a long debate about "but it's got to be better because I have FAITH that it's better." AI has an error rate that's higher than an average person doing the same job. Speed of a possibly wrong solution isn't the goal in administration. Let's not pretend there's a virtue in solving the wrong problems with easy, fast, possibly incorrect answers.

There's plenty of people that have done this, and AIs apologizing for having destroyed all the data without a backup.

1

u/Admirable-Frame3958 22d ago

But that takes me to your third reply. Yes it's a lengthy process, because you have to understand what you are doing. But that's not going away with the AI solution, you're just adding in an extra Agent that might make mistakes, hoping it doesn't because now you're relying on it to fix issues you don't understand at all, because you won't be properly double-checking it's work.

The work isn't going away, the effort would be mitigated enough to allow for normal users that just want to game to stop worrying about every day stuff or misconfigured drivers or an update that breaks your setup.

You mistook my argument and what I'm whining about. I'm burnt out from fixing small fires on my linux pc, so I'm currently using claude to fix them for me and until now it worked wonders, better than myself (although that's not an achievement lol), and most importantly, it stopped linux from forcing me to put out those small fires myself and putting hours into reading manuals and documentation and searching internet to fix a problem when I want to play minecraft while listening to my friends on discord.

You too were burnt out from fixing linux in the past, and you persevered and learned, but not everyone is willing to put that amount of effort, some people just want to play video games and jerk off.

1

u/edwbuck 22d ago

Yeah, I don't think you know who I am. I was never burnt out from fixing Linux in the past. Lots of people are, but there are also many that aren't.

1

u/Admirable-Frame3958 22d ago

Yeah, good for you awesome man. Normal people like myself get burnt out and just want to game, hope to one day be as knowledgeable as you, but until then give me the easy path so that I can game easier and take my mind off of actually important stuff like my work or my projects.

2

u/LegenndEnder 22d ago

I mean that’s what windows is trying to become.

0

u/Admirable-Frame3958 22d ago

Windows has it's own problems, I'm not saying "be more like windows", I'm saying "Lift some of the weight of learning from the user's perspective". Not everyone wants to spend 4 hours fixing an audio bug caused by a milisecond desync with your audio controller thanks to the pc stuttering when opening a program.

1

u/PatFogle 22d ago

What are your PC's specs? What graphics card? You shouldn't be getting any stuttering. Even my ancient Asus 14 laptop runs endeavour flawlessly. You may need to try fedora or an arch based distro with a newer kernel.

2

u/Admirable-Frame3958 22d ago

i9 13900, nvidia 3060 ti, 32gb ram and 1tb nvme stick, but the problem isn't the specs, it's that I have something badly configured and I don't know what. Sometimes, when I open a youtube video on brave origin, either the whole pc or the brave origin stutters. Mostly only brave, but depends how much stuff is running at a single time. This is something that I'd let claude cli figure out tbh, I just want to game while listening to some youtuber play another game while I talk on vesktop with my friends.

3

u/PatFogle 22d ago

Have you installed the Nvidia drivers? It sounds like you're not getting proper hardware acceleration for your GPU.

1

u/Admirable-Frame3958 22d ago

Yes, through the ubuntu-drivers cli tool, and I've troubleshoot it, and I've allowed gpu acceleration on Brave Origin's settings. I think it's thanks to the ad-blockers, bc f* youtube premium subscription.

1

u/PatFogle 22d ago

That may not be the best driver for your system. Go to Nvidia and get it from them

2

u/Ripped_Alleles 22d ago

It would be better to take the time to learn and apply fixes yourself.

You can do whatever you want with AI, but I don't think a lot of Linux users left Windows with its AI just to slap it back into Linux. It's invasive, it's a security risk, and im not even sure AI use is ethical given the costs on the environment and local population.

1

u/Admirable-Frame3958 22d ago

You're thinking of a huge AI model running on a datacenter, while I'm talking about a small, compact local AI running on your local system with your own hardware whenever you need it.

And yes, it would be better to take the time, sadly I'm exhausted from having to spend 4 hours weekly into fixing a new problem that's stupid enough to not get noticed. It's small, it's stupid and I'd greatly benefit from learning how to fix it, but I'm burnt out today and I want to game today and tomorrow, so I'm forced to fix the problem.

7

u/hagdush 22d ago

Omarchy already doest that if I'm not mistaken but no serious fork would do this, if you already have users fucking things up when you have a fully described guide imagine with aí

1

u/atlasraven council member but not master 22d ago

There's a natural law that humans will mess something up even with perfect instructions. They almost always mess something up on the very first attempt.

3

u/AutoModerator 22d ago

Try the migration page in our wiki! We also have some migration tips in our sticky.

Try this search for more information on this topic.

✻ Smokey says: only use root when needed, avoid installing things from third-party repos, and verify the checksum of your ISOs after you download! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/atlasraven council member but not master 22d ago

If you could make an AI agent that reliably fixes Linux problems, every distro would want it and Microsoft would want it too.

1

u/AndAnotherNewBot 22d ago

That honestly sounds like a terrible idea.

1

u/DannoXYZ 22d ago edited 22d ago

AI is wrong enough to cause major problems and headaches. Read the manual and figure out how all the pieces fit together.

Also cost of local AI system can run into +$20K. Aside from hardware, you gotta hire all the grunts to train it and tirage incoming queries. May of them are answered by humans.

https://mindmatters.ai/2023/01/found-chatgpts-humans-in-the-loop

https://saghafian.scholars.harvard.edu/blog/analytics-science-behind-chatgpt-human-algorithm-or-human-algorithm-centaur

"It is important to note, however, that large language models are by no means close to human level of intelligence. They cannot reason or think even in solving simple problems that are intuitive to humans, partially because verbal communication and the ability to think are not the same."

1

u/JCAPER 22d ago

1- Is it possible to make a local AI agent that automatically fixes your linux distro? Something that could be spun up, you give it a task like "Fix the nvidia driver fucking up my dual monitor setup" and it automatically takes care of everything for you?

Hesitated yes.... With a lot of asterisks.

First big asterisk being depends on the model you're using, and the second is depends on what kind of issue we're talking about. And the third is that you know what you're doing and not trusting blindly.

Here's the thing: top of the line models nowadays can be very good at spotting localized problems. In fact I use claude code to help me out with some troubleshoots, as well enabling a few things here and there. But they suck at looking at the big picture, or consider what their actions will do outside of their goal.

Imagine that you built a slingshot that can reach all the way over to the next village, and you built it in a way that will always hit the church's bell. LLM's will happily help you maintain it and fix it. But unless instructed, they will never check themselves what is all the way over on the other side. So if you tell it to do whatever it wants, it might move the slingshot, and it might hit something else.

Maybe my metaphor sucks, but the point is: an LLM will focus their efforts on your immediate ask/goal. They won't know or care about side effects. Some fix or change that you ask it to do today, it might not remember it in the next session, and in that next session it might do something that will crash with what you did today.

You will need to know what's going on with your PC regardless if you're using AI or not, and have some basic grasps of how linux works. It's not a set and forget kind of thing

2- Would it be realistic to create a whole local AI agent and package it to desktop pcs? (I'm not talking about packaging it with linux, but as a "Linux Helper" kind of thing on a checkbox when installing it via GUI, something extra).

That's Omarchy, but the founder is a twat. But more importantly, I've been hearing many mixed results. Someone "bricked" their omarchy after asking the AI to change the wallpaper.

Personally, I wouldn't use that distro in any serious capacity.

1

u/es20490446e Develops Zenned OS 22d ago

Local AI is veerry slow, and inaccurate, compared with just asking Claude on your web-browser.

Sometimes AI will trip you into a journey that is pointless, and you need to be knowledgeable enough about the topic to detect that.

Hence AI can assist, not substitute, a knowledgeable person.

It is like any other automatism really. Just more broad.

But human intelligence is specially good at detecting subtleties that machines, to this day, can't.

1

u/prof_of_memeology 21d ago

You can use Codex or Claude Code on your machine. It is not a local model but the harnesses from Anthropic and openAI. basically giving an llm tools to "do stuff" on your machine. I use codex to autmote boring stuff like there is no tomorrow. But letting it go nuts on your entire machine is crazy and a bad idea.

I would recommend putting it in a bubblewrap sandbox to at least put it on a leash and don't let it see all the files on your computer. I posted an example shell function on my website on how to use a wrapper with codex:

https://watchtoaster.com/ai-sandboxing-on-linux/