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.
How do I suppress the printing of the CD artwork that occurs between each "print" job?
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.
...unless it can be used as a porn queueing mechanism.
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...
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!
"/dev/dsp" is on fire!
Schrodinger's cat is either dead or really pissed off...
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....
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.
...until you accidentally spool that mp3 to the printer ;)
-- Even if a god did exist, why the fsck should I worship it?
It's not Slashdotted, your just waiting in the LDP queue to see the site.
Oh yeah? We used to do this with .. um .. piano players back in 1600.
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.
Whoa. My CUPS is right now playing some .ogg files :)
/etc/cups/mime.types
/usr/local/bin/mplayer -really-quiet "$6" >> /dev/null /usr/lib/cups/backend/ as audioplay
/dev/null
Steps are simple:
1. uncomment
#application/octet-stream
at the very end of
3. drop this
---
#!/bin/bash
if [ $# = 0 ] ; then
echo network audioplay \"Unknown\" \"Audio Player\";
exit 0;
fi
----
in
chmod it +x and restart cups
4. Add printer in cups:
name: audio
location:
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
Well, in that case, warn this guy that his page will be slashdotted early next week, when the dupe story gets posted.
Chris