Anyway, back to streams & pop-ups, I fleshed it out into two shellscripts & commented the heck out of them.
I listen to radio streams at work with one script, $HOME/bin/radio: https://pastebin.com/rPsrKP94
And find out what's playing with another, $HOME/bin/radio-xsonginfo: https://pastebin.com/DHx7TraQ
long mplayer stuff
Also, you can control mplayer with or without a terminal window if you do this:
mkdir -p $HOME/.mplayer
mkfifo $HOME/.mplayer/fifo
echo "input=file=/home/you/.mplayer/fifo" >> $HOME/.mplayer/config
Then, while mplayer's running,
Quit mplayer:
echo quit > $HOME/.mplayer/fifo
Pause/resume mplayer:
echo pause > $HOME/.mplayer/fifo
Play next file/stream:
echo pt_step 1 > $HOME/.mplayer/fifo
Play previous file/stream:
echo pt_step -1 > $HOME/.mplayer/fifo
mplayer "http://ice3.somafm.com/spacestation-32-aac" | stdbuf -o L grep "^ICY Info: StreamTitle=" | while read line; do stream=`echo $line | cut -d\' -f2`; len=$((`echo $stream | wc -c`+4)); Xdialog --infobox "$stream" 5 $len 10000; done
A few days ago, I used this shell one-liner to listen to Space Station Soma, and whenever the stream switched to a new tune, pop up a window showing what it was.
Instead of popping up randomly, I wanted to flesh it out so I could call up a pop-up whenever.
I just leveled up my computer fairy skills.
I installed virtualbox on my FreeBSD workstation, & not only did vboxdrv trigger kernel panic (page fault), so did vboxnet. Hello, stuck in reboot loop!
Figuring out `disable-module vboxdrv` in the boot menu was easy enough, but I couldn't boot past the early shell, & I couldn't fix anything bc `mount -o rw /` failed. Turns out, I use ZFS & needed `zfs set readonly=off zroot`.
Then, fix stuff, & success!
"All Gentoo code hosted on github should for the moment be considered compromised."
https://archives.gentoo.org/gentoo-announce/message/dc23d48d2258e1ed91599a8091167002
I remember back in about 1988, whenever I needed extra storage, I'd just go to the store & for about $12 pick up a box of floppy disks.
I just had that nostalgic feeling today, about 30 years later, because I need extra storage, & I just went to the store & for about $12 picked up a pair of micro-SD cards.
But the one package I bought today has more total capacity than 2,000 boxes back then.
✨ Kind 'Net Help Desk fairy by day. ✨
✨ Weird & furry Unix fairy by night. ✨
✨ Sometimes a retrocomputer fairy. ✨
✨ Pays the ComputerFairi.es bills. ✨
✨ Sparkly✨shellscript✨princess. ✨
✨ Age: Mere days younger than ✨
✨ the Intel 4004 & Unix 1st Edition. ✨
✨ Follow requests welcome. ✨
✨
✨