Update on shell-fm

Today I found another excellent, really really excellent web interface! It is based on ruby, sinatra and jquery!
you can find it here: http://madebynathan.com/2010/06/25/last-fm-on-embedded-systems/

I’ve installed git, ruby and sinatra on my raspberry pi , created the config.yml file and I was good to go!
(shell-fm was already installed on my r-pi following my precedent blog post)
Look here! Isn’t it nice? There’s also Album cover!!!
Nice work!Image


Shell-fm web interface on my Raspberry Pi

If you previously installed shell-fm on your Raspberry Pi and found it great, you’ll find it even more great with this web interface, that let’s you control shell-fm from almost any browser!
Check it out here: http://www.jezra.net/blog/python_shellfm_web_interface


Raspberry pi: no audio after update

I had a mini heart attack when I found that after the last update/upgrade of debian ‘Raspbian’ distro, audio was absent!!!
“here we go!” – I’ve said to myself – “Finally I’ve managed to broken this little pi..” . No audio, only music with HUGE noise! signal was so low!
But after a few minute I typed into a ssh session to the pi, the command “alsamixer” and found that audio was MUTED! Y U NO STAY UNMUTED AFTER UPDATE? everything is fine now.
Never get mini heart attacks for these things!

Last (but not least) post on Shell-fm: on Windows 7.

You may say I’m in love with shell-fm, and that’s pretty much true since I’m in love with Last.fm, so in love that I want it (shell-fm) also on Windows systems.
Now it’s time to do the installation on a completely development-tools free system. Unlike debian and mac os x, there’s no gcc, make and so on. BAD, really BAD (the whole process is gonna be a 30 minute work, shame on you Windows!)

Let’s try to fix it installing a Unix-like environment with Cygwin!
That’s it, download&install Cygwin.
During installation be sure to select to install at least these packages(use the search toolbar):



libao (all that you can find),







then hit next and let the tool install the unix system for you.

Begin downloading shell-fm with git.

As for the mac version, install libmad manually, giving a

wget http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz

(version may differ or maybe not, it’s an old project) in a cygwin terminal session and then ‘unzipp it’ with

tar -zxvf libmad-0.15.1b.tar.gz

then procede with the usual process of ./configure , make e make install ( not as root, cygwin does not have a root user).

Go here for libmad installation process and shell-fm installation process: now that we have a unix system with cygwin it’s is pretty much the same thing on windows too
The only thing to do is to copy libmad libraries into the right place, like so:

cd /usr/local/lib/
cp * /usr/lib/gcc/i686-pc-cygwin/3.4.4/

and then do make of shell-fm, and make install.
Now a bunch of images during the process. Enjoy!

Questo slideshow richiede JavaScript.


Morrissey with a cat on his head

Morrissey with a cat on his head

Again: Shell-fm.

This time for Mac Os X Snow Leopard.

(note: this is not a ssh session on my raspberry pi; it’s really on my mac!)
As briefly explained in my last post (https://piergiu.wordpress.com/2012/07/22/raspberry-pi-last-fm-shell-fm-a-lightweight-last-fm-radio-player/), installing shell-fm on a debian-based system was quite easy thanks to apt-get & synaptic & all the good stuff that debian comes with.

On Os X things differ a little bit. We do not have apt-get or synaptic, and even if you try to install Fink (alternative to apt-get for mac) some packages are too old or not existing at all.

First thing to do to is to download Pkg-config for mac(google it, is on sourceforge), libmad and shell-fm (this one via git, that meaning you should have git installed on your system).

  1. Install pkgconfig.pkg.
  2. Unzip libmad and enter in it with a terminal shell.
  3. Type usuals ./configure followed by a make and then a sudo make install .
  4. Now the tricky part:
    1. type nano /usr/lib/pkgconfig/mad.pc to create a file that is used by pkg-config during the making of shell-fm.
    2. A command line editor appears and fill it with this


Name: mad
Description: MPEG audio decoder
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}

Then give a ctrl-x followed by a Y and then Enter.

You’ve just created that file.
Now enter shell-fm directory(created by git) and give a make and then a sudo make install    .
shell-fm is now ready to be launched on your mac.
I’m disappointed with this long process on a Mac.
They should learn package handling from debian systems and similars.


Here is my configuration file for speeding up startup of my shell-fm.
You have to put these things inside  ~/.shell-fm/shell-fm.rc   (maybe using nano like you’ve done a few lines above in this post)
(  ~   is your home directory ) 



Then ctrl-x  and  y and enter to save the file and exit.

Raspberry Pi, Last.fm, Shell-fm: a Lightweight Last.fm Radio Player

If you own a Raspberry Pi and also a last.fm account, you should then totally try this out!
Since the Rasp-Pi is a linux box, and since they’ve released the freshly new Raspbian distribution, Shell-fm works here too!
Go to http://nex.scrapping.cc/shell-fm/ and download&compile everything you need (I’ve installed&used synaptic to fetch some libraries), then launch shell-fm !
Works great and it’s command line interface is straightforward!
Here’s a screenshot during a session of ssh from my mac to my rasp-pi box sitting near my router(in a galaxy far far away).
(Audio isn’t that bad, after all.)

Shortcuts for command line interface (commands for network interface via sockets differ)

You can find ANOTHER BONUS(!!!!!!) in my latest post about shell-fm, here( at the end of blogpost ): Again: Shell-fm. | Can’t talk, computing…

AND EVEN MORE BONUS HERE(!!!!!!!) Shell-fm web interface on my Raspberry Pi

Bookmarks Are Dead. (At least for me.)

In the recent past I was struggling to get my 1000+ bookmarks organized(folders and sub folders and subsubfolders and on..).

I tend to accumulate every little piece of interesting thing I find on the interweb.
I asked my social-contacts what should I do with too much bookmarks, how to deal with them, how to organized them.
Answers varied from “delete them!” to “You must be organized!” and even to “Bookmarks?”

Yeah, why bookmarks? All in all, I don’t feel like they helped me that much since the web become so full of contents.

And then I searched a little bit and found this page, that kind of pretty much answered my question about the need of bookmarks, and their purpose. They even mention Delicious, that I thought exinct!
I’m the one who tends to bookmark sites to “save” their content.

For time (even before asking my social-contacts) I thought to try to develop an extension for the browser that would save informations about that page and not only the URL: like contents, tags, and whatever.
In that way when I’m looking for information, I thought, I’ll no longer tied to the mnemonic operation of remembering the right URL. I justsearch‘ into my bookmarks like I do search on Google!

Well seemed a nice idea, by the way I’ve never implemented it.

At the same time I was using Evernote to save my notes and stuff like that, and thanks to the extension for Chrome, also saving one or two pages when suddenly I began to understand that I already had the solution of my problem in my hands!
I deleted almost all bookmarks that turned out to be old stuff which I didn’t even remember why I put them in bookmarks and now I’m using only Evernote to save pages, and it lets me search in notes while I’m searching in Google: perfect integration!
It’s almost love. Complete love will be when Google does one of the followings:

  • buys Evernote and integrate this service in Chrome by default.
  • Google develops its own system of saving copies of web pages and search through them.

Now I have almost everything I need “in the browser” itself. Well, in the ‘cloud’.
Try it out to find if this solution works for you, and feel free to show me better solutions!