this post was submitted on 07 May 2025
203 points (97.7% liked)

linuxmemes

24852 readers
483 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 27 comments
    sorted by: hot top controversial new old
    [–] antsu@lemmy.wtf 9 points 1 day ago* (last edited 1 day ago) (2 children)

    não foi possível tocar 'grass'

    Toca Raul!

    [–] ThunderLegend@sh.itjust.works 2 points 21 hours ago

    Hahahaha toca Raul foi boa!

    [–] VinesNFluff@pawb.social 4 points 1 day ago (1 children)

    A barreira de linguagem torna um pedido por um tipo específico de musica em uma sugestão imprópria envolvendo o Raul.

    [–] Colloidal@programming.dev 3 points 1 day ago (1 children)
    [–] VinesNFluff@pawb.social 1 points 1 day ago (1 children)

    Poço poço poço

    Eu suponho que seja meu dever nacional postar essa conversa nessa comunidade. Quer algo específico na Print?

    [–] Colloidal@programming.dev 1 points 23 hours ago (1 children)

    Uma capivara, fazendo o favor.

    [–] BaumGeist@lemmy.ml 8 points 1 day ago

    TIL the error message translation also affects the command name

    [–] dohpaz42@lemmy.world 31 points 2 days ago (2 children)

    I’m curious how you got a permission denied error in your home directory??

    [–] VinesNFluff@pawb.social 37 points 2 days ago (1 children)

    Create file -> ChMod it so it's unchangeable by me -> Touch file

    [–] dohpaz42@lemmy.world 40 points 2 days ago (1 children)

    Sooooooo…

    1. touch grass
    2. chmod 000 grass
    3. touch grass # gets error
    4. Post meme $$$
    [–] VinesNFluff@pawb.social 39 points 2 days ago (2 children)

    Yes with one caveat

    I don't remember when I made or chmodded this grass file in my home

    I just saw it in the directory listing, went "why did I do that", then chuckled and said "I'll post this stupid thing on the internet"

    Maybe you tried "sudo touch grass" before.

    That'd probably lead to the privilege issues, but is easier to forget about.

    [–] dohpaz42@lemmy.world 16 points 2 days ago (1 children)
    [–] VinesNFluff@pawb.social 30 points 2 days ago (1 children)

    April 20th, last year.

    The question now becomes why did I do that.

    [–] Forester@pawb.social 5 points 2 days ago* (last edited 2 days ago)

    Root@dev $ chroot user /dev/null

    [–] noctivius@lemm.ee 23 points 2 days ago (2 children)

    you should have followed the basic linux guide and remove french language with rm -fr / then you wouldn't have any problem

    [–] Neptr@lemmy.blahaj.zone 24 points 2 days ago (1 children)
    [–] driving_crooner@lemmy.eco.br 4 points 2 days ago* (last edited 2 days ago)

    In that case, rm -pt /

    [–] superkret@feddit.org 8 points 2 days ago* (last edited 2 days ago) (2 children)

    I miss the old days when you could do
    ls -R / | aplay

    There's no sudo, so it's perfectly safe!!

    [–] palordrolap@fedia.io 5 points 1 day ago

    Can't vouch for any other distro, but aplay is alive and well on Mint. The package that contains it — alsa-utils — seems to be a core dependency for Cinnamon, even.

    So basically, your example runs fine on my machine, screechy sounds and everything.

    [–] VinesNFluff@pawb.social 7 points 2 days ago (2 children)

    There was a thing you could do with cat /dev/random into aplay, and get some fun "Music" but you needed some other parameters to get anything other than brown noise.

    [–] Littux@lemmy.world 3 points 1 day ago* (last edited 1 day ago)
    #!/bin/env bash
    echo "What music to play?"
    echo "[1] Groovy; blues"
    echo "[2] Japanese"
    echo "[3] ??"
    echo "[4] 8 bit Bass boosted"
    read music
    
    if [[ $music -eq 1 ]]; then
        echo "Enjoy!!"
        cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,3,5,6,7,10,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 2 --format S32 --rate 24000
    fi
    
    
    if [[ $music -eq 2 ]]; then
        echo 'Enjoy!!'
        cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1046*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 2 --format S32 --rate 24000 &
    
        cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format s32 --rate 2000
    fi
    
    
    [ $music -eq 4 ] && {
        cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1046*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format S16 --rate 80000 &
    
        cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format u8 --rate 8000 --volume=50000
    }
    
    
    if [[ $music -eq 3 ]]; then
      echo "Taken from r/coding; enjoy!!"
      awk 'function wl() {
            rate=64000;
            return (rate/160)*(0.87055^(int(rand()*10)))};
        BEGIN {
            srand();
            wla=wl();
            while(1) {
                wlb=wla;
                wla=wl();
                if (wla==wlb)
                    {wla*=2;};
                d=(rand()*10+5)*rate/4;
                a=b=0; c=128;
                ca=40/wla; cb=20/wlb;
                de=rate/10; di=0;
                for (i=0;i<d;i++) {
                    a++; b++; di++; c+=ca+cb;
                    if (a>wla)
                        {a=0; ca*=-1};
                    if (b>wlb)
                        {b=0; cb*=-1};
                    if (di>de)
                        {di=0; ca*=0.9; cb*=0.9};
                    printf("%c",c)};
                c=int(c);
                while(c!=128) {
                    c<128?c++:c--;
                    printf("%c",c)};};}' | sox -t raw -r 64k -c 1 -e unsigned -b 8 - -d
    fi
    exit 0
    
    [–] superkret@feddit.org 7 points 2 days ago

    Mine is basically the same, but since it pipes your filesystem layout into aplay instead of random bits, it's not just brown noise.
    It plays you the song of your system.
    (also, it can damage your speakers, headphones and/or ears)

    [–] Supervisor194@lemmy.world 18 points 2 days ago (1 children)
    [–] VinesNFluff@pawb.social 26 points 2 days ago

    There's a commentary about class divides in needing administrator rights to touch grass.