linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

noroute, in Reminder to clear your ~/.cache folder every now and then

You can also setup a cron job to periodically clean oldest files for you.

Example: @weekly find ~/.cache -type f -mtime +7 -delete

This will delete everything older than 7 days inside your cache folder.

twei,

I guess you could also Mount a tmpfs to that directory

majestic, in Reminder to clear your ~/.cache folder every now and then

No way. If i clean up my .cache directory my precious cached with sccache rust deps would be very upset. >:[

dog_, in Reminder to clear your ~/.cache folder every now and then

Question, could you have cron/crontab do it monthly or something? Do it monthly meaning delete everything in ~/.cache every month or so?

bizdelnick,

Don’t. You don’t need to clean it unless cache of some buggy program grows uncontrollable.

skullgiver, (edited )
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • BaroqueInMind,
    @BaroqueInMind@kbin.social avatar

    This is the good shit I miss from reddit. Thank you for posting a systemd service config, I'm going to implement this.

    Zangoose,
    @Zangoose@lemmy.world avatar

    Thanks for this! I’ve been meaning to start getting into learning more about systemd and making services, this is super detailed and gives me a pretty good starting point!

    sebsch,

    Just mount it into your RAM

    Zangoose,
    @Zangoose@lemmy.world avatar

    I just found this today, I don’t really know anything about cron jobs but this will probably incentive me to learn lol

    SuperIce,

    Did you happen to see which subdirectory was using up this much space? I don’t think I’ve ever seen .cache go above 10GB, so this may be a bug in a piece of software you use.

    Bronco1676,

    Running ncdu on it would’ve been cool to see.

    Zangoose, (edited )
    @Zangoose@lemmy.world avatar

    https://lemmy.world/pictrs/image/1db16aff-0fdf-421a-84d4-77091efdea1a.png

    https://lemmy.world/pictrs/image/723e165b-7648-48d1-92c5-5e655172326d.png

    Looks like yay is storing every previous binary for AUR bin packages (also excuse the unreadable terminal theme, it doesn’t play very well with a lot of TUI apps unless they support custom theming)

    Bronco1676, (edited )

    You should run yay -Sc from time to time. This cleans a) your pacman cache (which is normally done by executing pacman -Sc) b) your AUR build cache, which is what’s taking up 160GB. But this one seems rather unusual, I use paru (which also has the command paru -Sc), so I can’t really tell if this is normal with yay.

    The command also asks you for every directory if you want to delete it or not, so it’s completely save to run that command.

    Zangoose,
    @Zangoose@lemmy.world avatar

    Something I noticed was that it was mostly the binary packages that were taking up so much space, it may be because of how yay stores the programs (does it use git?), the ones that were compiled from source code usually took up the least amount of space, while the binary programs were the ones taking up tens of gigabytes

    Bronco1676,

    Indeed, yay utilizes the AUR, which essentially serves as a Git repository for each package. These repositories typically include a PKGBUILD file and a .SRCINFO file, along with possible additional files like patches, desktop, or service files.

    For example, take a look at IntelliJ Ultimate: [aur.archlinux.org/cgit/aur.git/tree/?h=intellij-i…]. It contains the .SRCINFO and PKGBUILD, as well as a .desktop file. These files themselves do not occupy much space.

    The PKGBUILD specifies the sources for dependencies. For instance:

    
    <span style="color:#323232;">source=("https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz"
    </span><span style="color:#323232;">        "jetbrains-idea.desktop")
    </span>
    

    The PKGBUILD is essentially a Bash script with predefined functions and variables. You can learn more about it here: [wiki.archlinux.org/title/PKGBUILD].

    This script primarily downloads and extracts the tar file. In this specific case, it only relocates the files to their intended installation locations, like moving the desktop file to /usr/share/applications.

    With such packages, there’s a possibility of wasting significant space since the tar file is downloaded and possibly retained in the cache.

    However, other packages, especially those compiled from source, usually involve Git clones. These clones bring the Git repository into a subdirectory of the already cloned AUR package Git repo. Some might also have source tarballs. These types of packages generally do not consume much space in the cache, as they are often just text files, like C source code or Python scripts. These packages frequently rely on external libraries and packages, which are not included in this package’s cache.

    While binary packages often bundle all necessary libraries and other components in their source tarballs.

    The AUR cache is mostly beneficial if you’re rebuilding the same version or can reuse components from a previous version. For example, a package might depend on a large, static file that doesn’t change often.

    In Paru, I’ve enabled the “CleanAfter” option to prevent my cache from overflowing. Given my relatively fast internet speed, redownloading large files isn’t a major concern for me.

    neonred, (edited )

    Wow, I’ve never seen something like this.

    Is it" allowed"? I mean, there are quotas for user homes.

    Zangoose,
    @Zangoose@lemmy.world avatar

    Haven’t deleted it yet actually, looks like most of it is from yay

    cmnybo,

    You could have a cronjob run something like find /home/user/.cache -type f -atime +30 -delete, which would find files that haven’t been accessed in the last 30 days and delete them. Make sure your home partition is not mounted with the noatime option though.

    sashanoraa, in Made the switch to KDE

    They’re both good DEs with their pros and cons. I’m glad you found something you’re happy with! For me that’s Gnome but I’ve used Plasma 5 quite a bit two and it’s a close second for me. I don’t think there’s much use in bickering over which is “better”.

    GFGJewbacca,

    That’s why I’m calling it a playground fight. They’re both good, but right now I’m loving KDE. GNOME is really beautiful. I organized the taskbar in KDE to be similar to default GNOME, but with some extra stuff that I’m digging too.

    TrickDacy, in Made the switch to KDE
    @TrickDacy@lemmy.world avatar

    it’s way faster than GNOME

    Real question, are you on modern hardware? Only time I’ve noticed anything slow on gnome is on a pretty under powered laptop

    Pantherina,

    Actually KDE devs said they use the GPU a lot for Desktop stuff so it breaks more often but is performant

    Anticorp, (edited )

    Same. I have zero performance issues with Gnome, but I’m using a badass $3000 custom gaming computer.

    snap, in Is the Windows Subsystem for Linux worth it?

    For me: totally. I need to use windows for work. With WSL, I can use all the tools I need via the Debian box underneath. All I use windows for are the communication apps my colleagues use.

    Apart from work: nope. Full time Linux kinda guy

    flashgnash, (edited )

    Glad to know teams isn’t just the bane of my existence on linux

    PlexSheep,

    Teams and outlook have both pretty good third party flatpaks.

    flashgnash,

    From what I gather teams-for-linux still uses the web version doesn’t it? Would that not be subject to all the same problems?

    PlexSheep,

    From what I hear the only thing that doesn’t work is reaction emojis in meetings.

    flashgnash,

    Might give it another go then, the problem for me is not that it doesn’t work, but that it doesn’t work reliably though

    Have been using it as a PWA and half the time it forgets I gave it mic permissions or resets my audio settings/doesn’t even recognise my mic in the first place

    kariboka,

    I use flatpak edge and install teams as a pwa works like a charm.

    flashgnash,

    Edge I haven’t tried yet. Have been trying to use degoogled chromium where I can but that’s a battle I might have to give up on in this case

    kariboka,

    Yeah, I hear you. I do this only for work.

    flashgnash,

    Did you know teams personal exists and they’ve added features to it for gaming? Why anyone would voluntarily use teams I will never understand

    kariboka,

    LOL I never heard about it. They are like wanting to compete with discord?

    flashgnash,

    I guess so, have never heard of anyone actually using it but it’s built into windows so someone probably will at some point

    sir_reginald, in [SOLVED] Brave Browser not launching in LXQT in Debian 12
    @sir_reginald@lemmy.world avatar

    If you really need Brave, install the Flatpak. Not official, but neither it is the one from the package manager.

    I’d also recommend to just install Ungoogled Chromium instead of Brave and be done with it.

    be_excellent_to_each_other, in KDE Plasma 6 Megarelease - Beta 1
    @be_excellent_to_each_other@kbin.social avatar

    I started using Plasma 5 a smidge before devs were saying it was ready for primetime. That was my conversion from Gnome (which I was very happy to leave by then) and it's been nothing but positive.

    I will wait for the full release of Plasma 6, but I'm super excited for it. I still <3 Plasma 5.

    Thank you KDE devs!

    treadful, in The Unity Desktop Environment an Underrated Masterpiece
    @treadful@lemmy.zip avatar

    Why is the unity is underrated when its what i use right now with Ubuntu Unity and its actually really great experience for my 2021 HP Stream 11 Laptop and i hope you all to share your experiences using the unity de in Debain Ubuntu Arch Fedora Gentoo Opensuse Etc thanks for your Amazing community my Wonderful Friends

    …is this GPT spam?

    Mohamad20ZX,

    No its my actual writing but i can see why are you confused by my style

    fakeman_pretendname,

    It reads more like a Donald Trump speech

    toomanyjoints69,

    Unity is the best. The greatest. The best in the world.

    LeFantome,

    A lot of people are saying its the best. Perhaps they are right. I don’t kmow. And I hear it all the time. “It’s the best! It’s the best!”. Who knows. But a lot of great people are saying it. Maybe the best people. That’s just what I hear.

    toomanyjoints69,

    The thing to remember, is that its huge. How huge? HUGE! A lot of these new users are criminals, but i hear some are very fine people.

    LeFantome,

    Now that you mention it, Trump sounds a bit like the way FreeBSD people talk about Linux.

    “When they send us Linux distributions, they are not sending their best. Linux is an unplanned, undocumented, unusable, crashy mess. Some, I assume, are also good distros.”

    Aatube,
    @Aatube@kbin.social avatar

    How could you confuse this with GPT. The GPT style is entirely grammatically correct, perhaps a bit awkward, and incredibly bland.

    treadful,
    @treadful@lemmy.zip avatar

    I guess this is more like when you keep tapping the next word in autocorrect.

    LeFantome,

    GPT would offer excellent English and perhaps some nice formatting in at least twice as many words.

    DarkDarkHouse, in The cost of maintaining Xorg
    @DarkDarkHouse@lemmy.sdf.org avatar

    The more it’s on its way out, the harder it will be to find people that even want to maintain it.

    Aradia, in The Unity Desktop Environment an Underrated Masterpiece
    @Aradia@lemmy.ml avatar

    I still think KDE is a much smarter desktop environment and much more light or fast. I never liked GNOME 3 and Unity had many performance issues in the past. I also tried GNOME 3 recently and still, I needed many plugins to make it good and usable and was still lacking much stuff, while on KDE works all perfectly. I’m waiting for Plasma 6 now. :D

    Dudewitbow, in 13" or smaller Linux laptop - best replacement for aging chromebook?

    From a guy who processes thousands of devices in e-waate recycling, legit any refurb lenovo thinkpad/dell precision/hp elitebook laptop. People will stop using tech way before they should be stopped being practically used.

    Imo i think thinkpads are better value(due to sheer volume in market) and they tend to have several options (normal laptop vs 2 in 1 vs slim laptop vs big screen vs one with a gpu in it)

    Nimrod,

    I think this is the way forward.

    I’d love it if I could find something with a decent GPU so it could run some Minecraft action.

    Is eBay my best bet?

    possiblylinux127, in Why didn't anyone remind me the dual booting exists?

    We used to dual boot before virtualization matured.

    teawrecks, in Best practices in mounting NAS shares?

    The NAS should be regularly backed up/snapshotted, so that even if you/a bad process deletes everything, you can restore it all quickly and easily.

    LastYearsPumpkin,

    A backup is an emergency protection, not a primary plan. This attitude is dangerously close to making the backup a critical part of their uptime.

    teawrecks,

    Having something rm your entire NAS is an emergency, not something that should be happening regularly. If it is, you’ve got bigger problems.

    avidamoeba, (edited ) in Why are there so many (rust) GTK apps and so little Qt ones?
    @avidamoeba@lemmy.ca avatar

    Qt with C++ is a spectacular environment to develop UI apps in. Coupled with QtQuick it’s even better. It’s perhaps only outclassed by Flutter. As others have mentioned, there’s lots of inertia behind GTK+. There’s also past issues with licensing which made the OSS community prefer GTK+ to Qt.

    I’ve no idea what’s involved in using Qt in Rust but people starting new UI apps in C and GTK+ today are likely doing a disservice to themselves and the larger OSS community that could contribute to development and maintenance.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #