• 0 Posts
  • 24 Comments
Joined 8 months ago
cake
Cake day: January 30th, 2026

help-circle

  • Fair enough. Let me quickly go through the one-liner, command-by command

    # Joined by `&&`, bash runs these commands in sequence (as if run individually in shell), but exits/stops execution early if any command fails (return nonzero)
    TMP_DEB=$(mktemp --suffix=.deb) && curl -sSL "https://support.brother.com/g/b/downloadend.aspx?c=us&lang=en&prod=hll2465dw_us&os=128&dlid=dlf106036_000&flang=4&type3=10283" -o "$TMP_DEB" && sudo apt install -y "$TMP_DEB" && rm -f "$TMP_DEB"  
    
    # Going command by command:
    
    # First, we create a local variable in the shell, named `TMP_DEB`
    # We assign the value to `$(...)`. This stores the string output (to stdout) of running the command `mktemp ...` to `TMP_DEB`
    # `mktemp` creates a temporary file and prints its name, which uses the name template `tmp.XXXXXXXXXX`
    # `--suffix=.deb` flag appends `.deb` to the name template
    TMP_DEB=$(mktemp --suffix=.deb)
    
    # At this point, we've created a temporary file, and saved the name to a variable in bash
    # Next, we download the file using curl. `-s` makes output silent, `-S` shows errors in output, and `-L` follows redirects
    # note the url doesn't end in `.deb`, implying that we will be redirected by the web server to the file path. without -`L` curl will download a page that stores the redirection response from the web server, not the .deb package
    # `-o "$TMP_FILE"` forces curl to store the downloaded file to the tmp file we created
    # note the quotes around the variable expansion. `$TMP_FILE` would also resolve the string stored in the variable, but we use quotes to avoid string globbing (google this)
    curl -sSL "https://support.brother.com/..."
    
    # Next, we install the package with apt
    # note: we use the string stored in the variable `TMP_DEB`, the filepath to the temp file we created, and downloaded the deb package
    # `-y` flag skips the confirmation question "install package [y/n]: `
    sudo apt install -y "$TMP_DEB"
    
    # Finally, to clean up we delete the tmp file
    rm -f "$TMP_DEB"
    

  • I certainly wasn’t trying to “encourage” anything. I agree, blindly trusting commands is dangerous.

    In this context I present a specific explanation of how the install works. This adds to the novice’s knowledge, and allows them to begin to understand what my one-liner does.

    I think that without the context of instructions on how to do it manually, yes, you could make the case i’m enabling beginners to form/reinforce bad habits.


  • ejs ( ejs@piefed.social ) toLinux@lemmy.ml•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 months ago

    That printer probably supports AirPrint, which Mint supports without any extra tinkering. Connect the printer to your network, and try going through linux mint and adding the printer through the settings. If it doesn’t show up, then you can try using drivers (install using below command) and then re-adding the printer

    Install by pasting this into your terminal. Enter your password when prompted.

    TMP_DEB=$(mktemp --suffix=.deb) && curl -sSL "https://support.brother.com/g/b/downloadend.aspx?c=us&lang=en&prod=hll2465dw_us&os=128&dlid=dlf106036_000&flang=4&type3=10283" -o "$TMP_DEB" && sudo apt install -y "$TMP_DEB" && rm -f "$TMP_DEB"  
    

    Explanation if you want to learn:

    • Brother offers drivers online
    • Download the “linux printer driver (.deb package)”
    • Then, to install onto your system, use your package manager and tell it to install the package you downloaded sudo apt install ./Downloads/package_name.deb








  • Was interested what the BYD Brazil salesman meant by 100% clean. While you can’t get pure ethanol at pumps in the US (largest ethanol fuel producer globally; we have 85% max), Brazil, (2nd largest ethanol fuel producer globally) sells and uses pure ethanol (E100) widely.

    Because Brazilian ethanol is made from sugarcane, the CO2 emitted during combustion is roughly equal to the CO2 the plants absorbed while growing. However, the US uses corn. Because we use fossil fuels to make the fertilizer, run the tractors, and boil the corn mash, corn ethanol only reduces greenhouse gases by about 30–45% compared to gasoline. Sugarcane can be harvested multiple times without replanting corn can’t. Sugarcane is mostly simple sucrose, so it takes little energy to ferment into ethanol, unlike corn which must turn starch into sugar first using heat and enzymes.


  • I’m still not convinced there is a direct casual link between the merged attestation and some future surveillance. Your speculation that this is some deliberate political strategy for some gradual escalation from attestation to surveillance is not logical evidence, but some belief you have, which holds no weight in an argument; it stands that you have no concrete evidence against your logic being a slippery slope fallacy.

    You did concede to my argument by admitting “by itself the attestation is pointless.” Good to know we agree that there is outrage over nothing.

    By saying “PR vs merge is a moot point”, you’re running away from a logical/technical debate by being dismissive; you are openly stating you don’t care how the mechanics of these foss projects actually work. Again, you can have a speculative opinion, but that is not a logical argument.

    When you argue parents should be using OS parental controls, you do know that that’s exactly what the systemd age attestation PR is building, right? It seems you’re fighting against the very infrastructure needed for your preferred solution.

    Finally, you conflate local infrastructure with cloud APIs (vindicating my claim that people opposing this are ignorant to the actual code being merged): Systemd is a local init system. Connecting the local userdb age integer to an external, network reliant govt API is a monumental leap in implementation and architecture, not a simple “add this API” patch that can be quietly slipped in without the entire foss community noticing and revolting. The attestation PR, for instance, had around 200 comments, of back and fourth refining of implementation and discussion, before merge.





  • social media laws are a treatment of a symptom, not the cause.

    meta/tiktok/google capitalize by maximizing engagement, most lucratively outrage (risking ideological polarization) and addiction (many health harms associated). five years ago, this was very different, before the sudden takeover of short form media. now, surveys are indicating that average screen times of children are nearing 8 hours a day.

    the need to address this dire situation is the greatest is has ever been historically.

    yet, banning it outright (aside from the heinous privacy violations) does not entail any accountability whatsoever for these large corporations in creating highly addictive and harmful social media platforms that have consumed our youth

    further, without changes to the structural incentive of maximizing profit, these companies will continue to maximize engagement, and thus addiction to what is a harmful way to spend 8 hours of a day.

    i am hopeful that the lawsuit happening in northern CA against meta will result in some decision ruling these engagement maximizing tactics illegal.

    i also hope that voters will choose candidates in the future that will pass legislation preventing these products from existing, leaving platforms that are actually productive to society, decentralized, and (most importantly) non-profit.


  • from a design perspective, consistency is key. light mode is on? then light mode means light mode, and apps should be in light mode.

    do you want both your terminal to be dark theme and your gtk apps (including all of the gnome UI) to be light theme at the same time?

    do you want settings within every single app in order to change from light mode to dark mode, as opposed to a global toggle that applies to every UI on your computer?

    alternatively, is the terminal the only exception to this global toggle, and this design inconsistency by having the default contradict the default of the rest of your desktop environment is your preference?



  • I’d recommend installing those python dependencies using apt, so that when you update your system packages, the python libraries get updated, too. Pip, on the other hand, is useful for development but is detatched from apt and you will definitely forget to pip update unlike apt update which you hopefully do frequently. Use the names of the packages the readme provides in the pip install … instruction. For example, for numpy, you can install this.

    Then, since that python script has a shebang at the top, you can add it to a directory in your $PATH and mark it executable with chmod, and you can invoke the script in your shell from any directory with just the file name.