• 0 Posts
  • 43 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle
  • audaxdreik@pawb.socialtoLinux@lemmy.mlCleaning up packages?
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 hours ago

    In addition to this, or rather before, you can run pacman -D --asdeps package_name to mark a package as a dep. If it is no longer required by something else it will be removed with the above. This can be useful for things that are deps that you installed manually at some point for some reason.

    Oh, that’s some amazing info, thanks!

    I had noticed this might be a problem when I was setting something up and tried to install a dependency that was already on the system. It informed me it was being set to explicit and I wondered if it might lead to a situation like that.


  • audaxdreik@pawb.socialtoLinux@lemmy.mlCleaning up packages?
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    edit-2
    1 day ago

    EDIT: More information provided. I disagree with the upvoted comment implying you should leave your system alone because you might break something. You’re using Arch, and part of the reason to use Arch is understanding how you built and maintain your system. Understanding how to inspect your system and perform proper maintenance is a crucial part of that. Read and think carefully before taking any actions and make sure any important information is backed up before taking major actions. Without throwing too much further shade, I find it disappointing so many in the community would take that stance and discourage you from pursuing this further.

    When I switched to Arch, I started a notebook in Obsidian with a bunch of different information in it, I have a section devoted to Maintenance. Here are a few things I’ve put in there:

    Clean package cache with paccache: https://ostechnix.com/recommended-way-clean-package-cache-arch-linux/

    Clean orphaned dependencies: sudo pacman -Rs $(pacman -Qtdq)

    Additionally, you can run pacman -Qe to list the packages you yourself have explicitly installed with pacman, or pacman -Qdt to list the packages that are dependencies of other packages. Use pacman -Qm to list packages not found in the official repositories (i.e., things installed through yay). This will allow you to review packages you may have explicitly installed in the past for some reason, but now find you no longer need.

    For yay, I’m unsure if I should be using -Yc, -Sc, or -Scc. If anyone has more info with that, I’d appreciate it.

    For flatpak: flatpak uninstall --unused

    And for journals: journalctl --vacuum-time 7days


    That’s most of the “automatic” stuff, cruft that can be cleaned out with little to no consequence. Other than that, you’ll just have to manually review what you have on your system.

    If anyone has other commands or comments on the ones I provided, I’d be happy to accept further advice here as well 😃


  • Yes, thank you, I think this is exactly what I’ve been feeling but unable to articulate properly.

    I do feel there’s a great loss of knowledge in IT, but I’m also aware that I’m motivated by my own opinions and fear of job stability here. There are absolutely times when the cloud makes sense, and those arguments about capex v. opex nail it. I’d love to blame it entirely on greedy execs, but that upfront cost is hard to swallow for a new business, whether you’re planning on super/hyper scaling or not. Cohosting in a datacenter is a great option, but even then, most people simply won’t be willing to invest the time, as you put it.

    I’ve had the luck of working for stable institutions like banks and biotech in the past where they built out their infrastructure for security and reliability properly and it was wonderful. I’ve also had the misfortune of working for hyperscaling startups with zero trust architecture built in Azure. It was a nightmare and I hated every day of it.

    Like most things, the path forward is going to require a delicate balance, but there’s absolutely no fucking trusting Microsoft. When Europe says, “Hey, we’re getting nervous about your influence here” the response isn’t:

    “In a time of geopolitical volatility, we are committed to providing digital stability. That is why today Microsoft is announcing five digital commitments to Europe. These start with an expansion of our cloud and AI infrastructure in Europe, aimed at enabling every country to fully use these technologies to strengthen their economic competitiveness. And they include a promise to uphold Europe’s digital resilience regardless of geopolitical and trade volatility.”

    I mean, of course that’s what they’d say, but still. Fuck 'em.



  • I appreciate him trying to drum up excitement for the terminal. A lot of people are afraid of it and I understand why, but you don’t need to know everything about it in order to benefit from it.

    I wanted to post some Trackmania replays to Bluesky when they first rolled out video, but they only supported up to 50MB. I dreaded having to open kdenlive, figure out how to work the GUI and then also possibly have to do some terrible math to balance size and quality. Maybe this is easier than I expected, but I found this: https://unix.stackexchange.com/questions/520597/how-to-reduce-the-size-of-a-video-to-a-target-size

    ffmpeg_resize () {
        file=$1
        target_size_mb=$2  # target size in MB
        target_size=$(( $target_size_mb * 1000 * 1000 * 8 )) # target size in bits
        length=`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file"`
        length_round_up=$(( ${length%.*} + 1 ))
        total_bitrate=$(( $target_size / $length_round_up ))
        audio_bitrate=$(( 128 * 1000 )) # 128k bit rate
        video_bitrate=$(( $total_bitrate - $audio_bitrate ))
        ffmpeg -i "$file" -b:v $video_bitrate -maxrate:v $video_bitrate -bufsize:v $(( $target_size / 20 )) -b:a $audio_bitrate "${file}-${target_size_mb}mb.mp4"
    }
    
    ffmpeg_resize file1.mp4 25 # resize `file1.mp4` to 25 MB
    ffmpeg_resize file2.mp4 64 # resize `file2.mp4` to 64 MB
    

    I’m not proficient in bash enough to have written this myself, but even I can glance over this and see it’s just doing some math for me while invoking two programs: ffprobe and ffmpeg. Easy peasy.

    I put this in my ~/.bashrc and use it all the time now, it’s almost silly how simple this has made things. I get why nerds get super attached to their profiles now, I’m collecting a bunch of scripts and functions that just make life easier.

    Currently I’m working on writing some scripts with ratbagctl (https://github.com/libratbag/libratbag) so when I launch a game through Steam it’ll automatically set my Logitech mouse profile for that game. You know, the thing the Logitech mouse software makes you sign up for an account and connect to the internet for. All of the control, none of the bloat 😝


  • audaxdreik@pawb.socialtoLinux@lemmy.mlThe power of Linux
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 days ago

    For those not in the know, “Trusted Computing” is a very specific THING and maybe not what you’d expect, https://en.wikipedia.org/wiki/Trusted_Computing

    TC is controversial as the hardware is not only secured for its owner, but also against its owner, leading opponents of the technology like free software activist Richard Stallman to deride it as “treacherous computing”,[3][4] and certain scholarly articles to use scare quotes when referring to the technology.[5][6]

    You can pretty much guess where I land.

    a backup of your bitlocker key is in your Microsoft account, and normally nowhere else. It’s pretty easy for Microsoft to lock you out of your ow computer and data completely, if they wanted.

    You make a good point, I’m missing the forest for the trees. Why even bother theorizing that BitLocker may be compromised when they’re removing local accounts for consumers and forcing the key to be uploaded to their servers anyway?


  • audaxdreik@pawb.socialtoLinux@lemmy.mlThe power of Linux
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    8 days ago

    Yep! They don’t teach this stuff because consumer level cyber security is in the absolute pits of despair and moreover, they’re trying to do away with what little we have access to. Governments and police agencies like how easy it is to access files.

    Personally I don’t bother with full disk encryption (FDE) since I don’t really have anything private on my main computer. Just a bunch of game files, comics, movies, etc. Anything extremely important such as tax documents, personal data, etc. is honestly very small and I keep in a little Proton Drive folder, <1GB total. I think the best approach is to simply educate yourself and be aware of what’s worth protecting and how best to protect that. Just enabling FDE and thinking you’re safe ignores all the other avenues that personal data can be stolen.

    My current pet conspiracy theory is that FDE with BitLocker isn’t even worth it on Windows due to the TPM requirement. Why is that a bad thing? Your system probably has fTPM supported by the BIOS, why not just enable that?

    https://techcommunity.microsoft.com/blog/windows-itpro-blog/tpm-2-0-–-a-necessity-for-a-secure-and-future-proof-windows-11/4339066

    Integrating with features like Secure Boot and Windows Hello for Business, TPM 2.0 enhances security by ensuring that only verified software is executed and protecting confidential details.

    https://ieeexplore.ieee.org/document/5283799 (I don’t believe we’ll see this EXACT implementation of DRM, I’m just providing an example of TPM being used for DRM and that these ideas have been in consideration since at least 2009).

    Now, if I were Microsoft and I wanted to exert an excessive amount of control over your system by making sure you couldn’t run any inauthentic or “pirated” software to bring it more inline with the walled garden Apple approach they’ve been salivating over for the past decade+, you’d first need to ensure you had a good baseline enabled. You know, kind of like the thing you’d do by forcing everyone into an OS upgrade and trashing a lot of old hardware.

    It won’t be instantaneous, I don’t know exactly how or what it’s going to look like when they start tightening their grip. Again, this is all speculation, but it’s not hard to connect the dots and their behavior over the past couple years does not give them the benefit of the doubt. Microsoft is no longer a company that can be assumed to be acting in the best interest of the average consumer, they’re not doing this for your security. They want to know that your computer is a “trusted platform”.

    EDIT: Further lunatic conspiracy theories: BitLocker is/will be backdoored so Microsoft forcing you into that ecosystem further guarantees they have access to your system. This all stinks to me, like your landlord telling you how you can arrange the furniture in your own apartment.


  • audaxdreik@pawb.socialtoLinux@lemmy.mlShare your partition scheme!
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    12 days ago

    Just used the default for one big partition. I used to do tedious partition configurations, but it always ended up biting me down the road more than helping. This drive is for the OS, games, and working files. I have a 16TB NAS that holds anything worth saving, so if I need to nuke the whole thing and do a reinstall, all I really end up doing is downloading a bunch of Steam games again.


  • audaxdreik@pawb.socialtoLinux@lemmy.mlCachyOS vs arch
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    14 days ago

    I use Arch on all my systems now. It does great for gaming on both my beefy gaming PC and my little work laptop (within their respective punching weights). I haven’t felt the need to explore CachyOS or any other variants for performance gains and I really do appreciate how bare bones Arch is. Just having the lightweight OS that isn’t doing a darn thing beyond what I’ve asked it to claws back plenty of performance, although I’m speaking more in contrast to Windows than other distros having any sort of bloat.

    Still, Arch has been the first distro I really committed to, I’ve been on it for a year and a half now and learning how to build it out taught me a lot about Linux.

    Also, I’m just never sure how long some of this offshoot distros will hold on for, you know? Is that unfounded?



  • audaxdreik@pawb.socialtoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    5
    ·
    2 months ago

    I cannot upvote this enough. “Just migrate to X, it’s every bit as good!” when end users know it’s not is a disingenuous argument and even if they don’t have the technical know-how to explain exactly why they feel this way, they’ll feel the deception. It only reinforces a growing distrust in tech.

    The argument has to be made honestly. It’s not quite as good, but almost. Those few things you’ll miss will require an adjustment, but the overall value (a lot of times just literally, it costs less!) will become evident.

    I know we’re all Linux nerds here and enthused to get people onboard, but the battle right now we’re facing is one of trust and security and must be grounded in those notions because while great strides have been made in convenience and accessibility, big corps will always be able to bankroll themselves over those points.


  • As someone who has worked in the tech industry near Seattle, I don’t know how well known it is to the wider populace or people in Europe, but open source is absolutely anathema here. It’s seen as insecure, unstable, and unreliable.

    I work in IT so I’ve tangentially worked across a number of sectors supporting their stacks and it’s pervasive within the American culture. There is a major de-prioritization of in-house IT knowledge and sysadmins in favor of enterprise support contracts. When shit hits the fan, it’s less important to have a knowledgeable team and more important to have a foot to stamp down on until the issue is resolved. Often that foot has another foot that stamps down, onward and onward until someone manages to engage the MSP or cloud provider that set the service up initially with their scant documentation.

    It’s a nightmare both for tech workers and from a cyber security perspective. A lot of this contains my own personal bias and perspective on the matters, but let me say, I have stared into the void and I can’t stop screaming.





  • 38/M/US

    Home is a very complicated question that’s going to mean a lot of different things to people emotionally, so I try not to get too prescriptive about my own definition. I moved away from my rural upbringing as soon as I could and I never really looked back. It was not a place I enjoyed or felt like I belonged either. I kind of lost my sense of home and I can’t say it’s something I really look for anymore. It feels too permanent for me. To me, home is a treasure that must be hard fought, then protected, and can therefore always be lost. I don’t think I want a home anymore.

    What I want is a sense of belonging. That seems a lot easier to manage because it’s built out of the values and interests I’ve made for myself. I bring it with me wherever I go. I’m free to change it or grow as I like. I try to match it to the people and places around me to see if I like them and if it works for me and if I’m happy. I moved from the rural town I grew up in to a larger city in my state. Then I moved several thousands of miles across the country and spent most of my 20’s and 30’s here. During that time I’ve moved to several small towns and suburbs around the larger city. I’m thinking of moving again, this time outside the country. I’m still excited by the prospect, and afraid.

    I assume a lot of this is probably just some psychological phenomenon that is inducing a fake/unreal fantasy. I assume even if I could move to some other country I might not feel as joyful like when I was a kid and even if I do, at some point it might not feel special anymore and it might not be like I hoped.

    So maybe this is just this classic “the grass seems always greener on the other side” thing and in reality it might not be like that.

    I do think these things are at least partly true and it’s perceptive of you to point that out, but it shouldn’t discourage you either. It’s a very human thing to want to try. Just set your expectations, I don’t know that you’ll simply find a new home. You’re going to have to bring some of it with you, you’re going to have to make some of it on your own, and you’re going to have to ask for help along the way.





  • All these “why are people using Bluesky and not Mastodon” topics are starting to give me a headache. You’ve been told and on some level, I have to assume you understand the reasons, but are simply unwilling to address them. When people say, “it’s difficult to use” instead of understanding why they think that way, you just dismissively wave your hands and say, “no it’s not”.

    If you want people to use Mastodon, you need to SHOW people the power of federation while HIDING all the rough bits. People want to go to where the friends, writers, artists, scientists, etc. they want to follow are and sign up for an account there. Simple as. In this way, they very much want at least the appearance of centralization. I don’t want to have to get balls deep in an instance’s politics to understand their moderation, who they’re federated with, if they have the funds to operate into the foreseeable future, and how to migrate my data if any of those things goes sideways.