Monday, June 16, 2008

How to install Gnome-Do in Ubuntu

GNOME Do (Do) is an intelligent launcher tool that makes performing common tasks on your computer simple and efficient. Do not only allows you to search for items in your desktop environment (e.g. applications, contacts, bookmarks, files, music), it also allows you to specify actions to perform on search results (e.g. run, open, email, chat, play). Want to send an email to mom? Simply type “email mom.” Read more...

Wednesday, June 4, 2008

Python script to get lyrics from LyricWiki for mpd

I wrote a simple script that will allow users of mpd to fetch lyrics from LyricWiki.org. You can get it here, but first you must install python-zsi package via synaptic or any other package manager of your choice. If you're using Ubuntu then just type this code in terminal to install python-zsi:

sudo apt-get install python-zsi

Then extract the wily.tar.gz archive to any folder you want, navigate to that folder from terminal and type:

python wily.py

The script will fetch lyrics from LyricWiki, if there's any, for the current song that the mpd is playing. If there is no lyrics for the current song it will print Not Found message. I hope you like it. Greets!

Sunday, June 1, 2008

How to install mpd (Music Player Daemon) in Ubuntu


I have searching on the web for a good howto for installing mpd with mpc and ncmpc in Ubuntu Linux, but all the howtos were somehow complicated or they didn't work well for me. So I deicide to write some simple howto about the subject.

First of all, what is mpd?
Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It also makes a great desktop music player, especially if you are a console junkie, like frontend options, or restart X often. (www.musicpd.org) Plus it's very light on your computer resources and the sound output is of a very great quality.

OK. Let's get started.
First, fire up the Terminal (Applications -> Accessories -> Terminal) and put this code in it:

sudo apt-get install mpd mpc ncmpc

This will install mpd, mpc (console client for mpd) and ncmpc (Ncurses console frontend for mpd). Then, we must 'show' to mpd where is our music collection on our Ubuntu machine. Again in Terminal:

sudo ln -s /path/to/music /var/lib/mpd/music

Replace the /path/to/music with real path to your music folder on your computer. Then:

sudo mpd --create-db

to add the songs to the mpd database, and:

mpc update

to update mpc.

Just in case, restart mpd with:

sudo /etc/init.d/mpd restart

Repeat last four steps for each music folder on your computer.
Finnaly, you can start ncmpc with:

ncmpc

in Terminal.

Some tips:
sudo mpd --kill will shutdown mpd and sudo mpd will start it again.
If you leave mpd playing while you restart or shutdown your computer, mpd will continue playing when you're next time on the login screen.

You can use Sonata, or gcmpc instead of ncmpc, but they are GUI(GTK) frontends for mpd. ncmpc is my choice ;)
Enjoy!