• 0 Posts
  • 21 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle


  • In the last I had very little success rate of those uninstall tools to actually do their job in full. A lot of time they delete some data but almost always they leave some trash behind.

    And in the first place, I stopped trusting those external uninstall binaries, they could be designed to remove not only app data but remove your personal data, steal data from your PC or infect it (even if just to investigate why you are uninstalling).


  • One of the reason is that apps can place their files in any place they want so the app manager is not aware of those locations.

    Even if it would know then the user still would need a way to remove the app without deleting data, imagine installing Developer IDE or chat app and uninstall process would remove your chats or projects. Imagine app dev accidentally set the “directory that store app data” to /home, it would be bad.

    I not once uninstalled app to install different (for example older) version due to bugs in new one.

    Having the logic allowing to optionally delete data would introduce additional complexity so most old package managers never introduced that feature.

    But I agree that we should slowly introduce a way to to that. Some app managers that manage flatpaks now allow to delete user data after uninstalling app, this now could be done universally because apps installed using flatpak store their data in their own separated/dedicated directory that flatpak engine know about so (unless you give permissions to access other location) thw manager know where the app store data so can offer easy way to remove it.


  • kolorafa@lemmy.worldtoLinux@lemmy.mlRunning Arch in chroot
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 months ago

    Container is just a term for a set of isolation solutions bundled together.

    Like file system isolation (chroot), network isolation, process isolation, device isolation…

    One of them is ofc chroot, yes container use exactly the same chroot functionality.

    So to answer your question, no, you don’t need full isolated container. You can use only chroot.

    You just need to pass all required devices ( and match the driver version running in kernel with your files in container and (avoid) more than one app having full unrestricted access to GPU as that would result in issues (but dont know the details so can’t help you with that)).



  • The only reason ssh client would “hang” without any output is when it’s waiting for external key storage to allow access. It’s designed that way to give user some time to approve access to key storage.

    It sometimes happen that the installed key storage is broken in a way that it fails to show user modal, for any reason (showing on wrong screen, wrong desktop, wrong activity, wrong framebuffer, …)

    One solution (that you already did) is to change the SSH agent env variable to point to different key storage.

    Another would be (if possible) to uninstall the broken key storage if you don’t use it. But it is sometimes needed/used by other apps.

    It’s overall good to notify/open bug on your distro issue tracker to notify that some packages are missconfigured (maybe have missing dependencies) or conflicts with other ones.








  • Looks like the installer and grub is confused about the hard drive order different in instaler and different while booting, both those drives could also have the same partition/drive ID making it confused, that could happen if you cloned/copied the drive in the past

    I would say as a easy and safe solution

    1. unplug all other drives that you don’t want install linux
    2. Install Linux (best by formatting whole drive) - it should work just fine at this point
    3. After confirming everything works - connect the other drives back
    4. If Linux no longer boots after adding drives then tweak disk boot order in BIOS




  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    13
    ·
    7 months ago

    I didn’t left it, I needed provide that “part” to it to get the correct answer.

    Because like in the whole thread is mentioned over and over again, chatgpt doesn’t know the correct answer, it’s a mathematical model of “what looks ok” and “what should be the next word”, it looks ok to try to put --reset parameter to reset it, but because chatgpt can’t actually check documentation of podman stats if the param exists, it just generate it based on “common known text patterns”, and “common known text patterns” are written in a way suggesting that it is the truth.

    So once again - do your own research if following the results it could cause breaking both in tech and especially in life. And that is true for both chatgpt and random pages on internet.

    In this case I did exactly follow chatgpt answer without doing fact checking - I asked chatgpt, I copied the command and pasted it into terminal, because I know that if it didn’t work the worse that could happen it would fail and do nothing. But It’s bad for new people that will not know what the result could be if it’s wrong!

    @z00s Don’t take me wrong. I’m not telling not to use it, on the contrary.

    You should use any tool that helps you do your job/task. But you should try to understand how to use those tools wisely.

    Telling someone never to use ChatGPT is like telling someone to never use excavator. That is wrong, you should use excavator but you should know what is an excavator, and what harm it could do by for example accidentally destroy a building or even hurt someone (or youself) if not use wisely.


  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    7 months ago

    Example that confirms that “Chatgpt does not know truth. It does not know if the info it provides is true.” or more like “It will spell answer that match your inquiry that sound correct even if it’s totally made up.”

    https://chat.openai.com/share/206fd8e9-600c-43f8-95be-cb2888ccd259

    Summary:

    User
    in `podman stats` you see BLOCK IO as a summary of hard drive activity.
    how to reset the 
    
    ChatGPT
    To reset the block I/O statistics displayed by podman stats, you can use the podman stats --reset command.
    
    User
    Error: unknown flag: --reset
    
    ChatGPT
    Apologies for the confusion. It seems I provided incorrect information. The podman stats command does not have a built-in option to reset the statistics.
    

    So once again, don’t be afraid to use it, but do your own research especially if following LLM could result in something breaking both in tech or in life.


  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    33
    ·
    7 months ago

    don’t run any commands that you don’t understand. Ask it to break down any commands it tells you to run if you don’t understand them.

    You need to pay extra attention to this, as ML models will spit out commands and parameters that doesn’t exists if there was not enough examples in training dataset for that action. Especially with explain as it could just spit out totally wrong but “sounding good” explanation for parameter etc as it not always will tell the magic keywords like “typically” that indicate that it doesn’t have confidence as it’s “based on other similar command/knowledge”.

    In your example it spit out:

     -m: Prune empty directory chains from the file-list.
     --prune-empty-dirs: Exclude empty directories that result from the inclusion/exclusion pattern.
    

    which is actually exactly the same parameter with 2 different explanations, you can confirm this with man rsync

     --prune-empty-dirs, -m   prune empty directory chains from file-list
    

    So the more edge case you have the bigger chance it will spill out bad results, but those new models are shockingly good especially for very common use cases.