Slashdot Mirror


LPD For Fun and MP3 Playing

poop writes "Most true Unix geeks will recognize just how nice LPD is as a distributed queueing mechanism for managing all jobs sent to the printer. But, what most people don't realize is that LPD can be used for other things too. In fact, it can be viewed as a general queueing mechanism with a few added bells and whistles for printers. So let's examine a more interesting use of LPD, an engine for distributed spooling of MP3s." Bruha points out this mirror.

14 of 122 comments (clear)

  1. One question by Anonymous Coward · · Score: 0, Funny

    How do I suppress the printing of the CD artwork that occurs between each "print" job?

  2. Good hack, litteral sense by koh · · Score: 4, Funny

    I'm suprised they didn't try to pull this feat on Emacs first though.

    Next in line, "sendmail configuration files used as crypto keys" :)

    --
    Karma cannot be described by words alone.
  3. Useless... by TedCheshireAcad · · Score: 5, Funny

    ...unless it can be used as a porn queueing mechanism.

  4. Funky, but by nich37ways · · Score: 5, Funny

    The real problem I see with this is, you will always get some sadistic bastard who spools a ton of *pop* music before disapearing out of ear shot or some fool who doesnt understand how it works and sticks the same song in over and over again.

    Apart form that looks very fun for a small network with shared sound.

    --
    37 - what does it stand for really...
  5. DNS zone transfers by hey · · Score: 2, Funny

    While we're hacking ... how about using DNS zone transfers. Its distributed (everywhere) and its cached until a change occurs. Maybe you'd have to uuencode the info. But what if every .com entry had a few MP3s!

  6. so an error could message may be by DrWhizBang · · Score: 4, Funny

    "/dev/dsp" is on fire!

    --
    Schrodinger's cat is either dead or really pissed off...
  7. That takes alot of paper! by Anonymous Coward · · Score: 5, Funny

    I sent my entire playlist to lpd and i've gone through all my paper, is there a way to make it print 4-up to save a few trees? To be honest I don't see the appeal of this....

  8. Huh ? by Moderation+abuser · · Score: 2, Funny

    I just let xmms handle the queueing of music, in a thing called a "play list".

    However, for real geekiness, you should be using gridengine to queue and distribute your mp3s.

    --
    Government of the people, by corporate executives, for corporate profits.
  9. I'm sure it's very nice... by The+Fanta+Menace · · Score: 4, Funny

    ...until you accidentally spool that mp3 to the printer ;)

    --
    -- Even if a god did exist, why the fsck should I worship it?
  10. Re:Site is slashdotted; article text by bsharitt · · Score: 5, Funny

    It's not Slashdotted, your just waiting in the LDP queue to see the site.

  11. Re:Old, old news. by Anonymous Coward · · Score: 1, Funny

    Oh yeah? We used to do this with .. um .. piano players back in 1600.

  12. So sick of this! by sker · · Score: 4, Funny

    I can't BELIEVE the RIAA is trying to shut thus guy down for...

    Oh they're not?

    Well.. How DARE SCO sue this guy for using...

    Err, wait..

    This is an article.. about someone using software technology... to accomplish a task... and there's no litigation involved???

    OH MY GOD!!!!

    --
    nonsig. unsig. desig.
  13. Did it with cups! by zdzichu · · Score: 3, Funny

    Whoa. My CUPS is right now playing some .ogg files :)

    Steps are simple:
    1. uncomment
    #application/octet-stream
    at the very end of /etc/cups/mime.types

    3. drop this
    ---
    #!/bin/bash

    if [ $# = 0 ] ; then
    echo network audioplay \"Unknown\" \"Audio Player\";
    exit 0;
    fi
    /usr/local/bin/mplayer -really-quiet "$6" >> /dev/null
    ----
    in /usr/lib/cups/backend/ as audioplay
    chmod it +x and restart cups

    4. Add printer in cups:
    name: audio
    location: /dev/null
    description: Hacked Audio-playing CUPS
    device: Audio player
    (if you don't see this device, you probably haven't restarted cups or audioplay is not executable)
    device uri: audioplay://unused/
    make: raw
    model: rawqueue

    4. cat your_favourite.ogg | lpr -r -Paudio
    you can also do
    lpr -Paudio -r song.mp3
    but be careful, lpr likes to delete file after printing.

    5. Prof^WEnjoy!

    --
    :wq
  14. Re:Responsible Reporting by cjsnell · · Score: 2, Funny


    Well, in that case, warn this guy that his page will be slashdotted early next week, when the dupe story gets posted.

    Chris