Music Player Daemon: Sonata Notifications with Notify-OSD .:Tutorial & Disclaimer Inside:.

May 18, 2009

Last night I finally installed, and configured MPD proper. All my configured files that I needed to create are in my ~/.mpd folder now. So I don’t need to run MPD as root anymore. I like MPD so much better than Banshee. It has freed up a lot more resources and it’s a lot faster. Not only that, but I can also pick a nice frontend for MPD, or just use MPC or any other commandline interface front-end, or GTK, QT, Java front-end available.

Ever since I’ve looked into Music Player Daemon years ago, I always liked Sonata from the beginning because of the UI. So, I went with that front-end, and I’ve been a lot more happier since. The interface is a lot smaller than Banshee, but I can also make it a very small interface as well. Sorting and making playlists is quite nice too. Everything is so compact compared to Banshee. I don’t miss Banshee at all. Mind you, Banshee was an awesome player, it was just too heavy on resources that I don’t have.

Doing some researching in google, I found that Sonata can do plug-ins. So, I installed the latest Jaunty version from get-deb, but I didn’t really feel right installing it from there. So I removed the program, downloaded subversion, and just compiled/ installed from SVN. The SVN version is pretty nice, too. A lot more improvement, and a few more tabs and options. But, there’s a reason why I installed from subversion. I found a plugin that enables me to use Notify-OSD type notifications like Jaunty’s notification system with Sonata.

If you want to install this plugin, make sure you install Sonata from SVN!
So, I used bzr to download the notification plugin for Sonata. All these SVN systems are a pain in the ass, but whatever. Anyway, download the plugin, follow this tutorial, and make “/usr/local/lib/sonata/plugins” move notify.py from your Desktop, to the said location, and it should! You’ll have awesome Jaunty style notifications for Sonata. They work beautiful thanks to the author of the plugin, and the people from Sonata for making such a beautiful front-end for MPD.Here’s how to install Sonata, and the plugin in Jaunty:

1. Open a terminal, type:

sudo apt-get install subversion bzr

2. Change to the Desktop/ directory, and use SVN in terminal:

cd Desktop && svn co http://svn.berlios.de/svnroot/repos/sonata/trunk sonata

That’ll download Sonata to your Desktop with SVN from the terminal.

3. Change your directory to Desktop/sonata, download pyGTK-2.6, install Sonata from the folder you just downloaded.

cd sonata && sudo su

4. You’ll see a prompt, enter your password and you’re in the terminal as root.

python python.py install

5. You’ll notice there will be an error, you’ll have to install PyGTK-2.6. Since you’re in root, you don’t have to use sudo.

apt-get install python-dev python-gtk2-dev python2.6-dev

6. Those were some of the packages I installed. I’m sure there will be a few more dependencies brought in. Now, try to install python.py again. Again, since you’re already as root, you don’t need to use sudo.

python python.py install

7. Now, you have a working installation of Sonata from SVN! Or, at least I hope you do because that was a shitload of typing.

Now, here comes the easier part.


Install Sonata Notifications From BZR

8. Go back a directory to Desktop

cd ..

NOTICE: The Two Dots!

9. You should be navigated to your Desktop now, use bzr to download the Sonata plugin, move to the directory of the plugin, install. If that command doesn’t work, do each command between the “&&” separately. I wanted to speed up the process. I didn’t use the “&&” I installed with each command per line, but this should work. If it doesn’t my shell scripting sucks, don’t blame me. Just do each command separate as mentioned above.

bzr branch lp:~l3on/sonata/sonata-plugins && cd sonata-plugins && mkdir /usr/local/lib/sonata/ && mkdir /usr/local/lib/sonata/plugins && mv sonata-plugins/notify.py /usr/local/lib/sonata/plugins

10. Start up Sonata, go into the plugin directory, enable the notification plugin and it should work!

Disclaimer: I’m not responsible for any damages done to your hardware, installation, or mental anguish. Please do it at your own risk, and comfort of course!

Hopefully that covers everything, good luck.

Thank you, comments appreciated.

Justin

Here’s a couple URLs from the tutorial that were mentioned in this blog post:

Sonata SVN: http://sonata.berlios.de/download.html
Notification tutorial & BZR: http://en.leoiannacone.com/en/blog/2009/05/a-simple-plugin-for-sonata/


Linux: Best Programs That Suit Me.

May 2, 2009

I haven’t updated this blog in a while, and I guess this is a good time to do so with a post of the current programs I use. Since the release of Ubuntu: Jaunty Jackalope my program selection hasn’t really changed. But, I mean, I do relatively use the same programs I did before. Here’s a list of them:

Internet Browser:

I like both Firefox, and epiphany-browser. I mainly only use Firefox because of the add-ons it has. In another post I’ll update you on what add-ons I use.

Music Player:

I’ve switched around a lot, but I’ve found common ground with Banshee. I liked exaile for the longest time, but I haven’t used it in a long time. The last time I tried it, the program was acting really strange. The UI wasn’t looking proper, no EQ support and it was complete utter non-sense. With Banshee, everything seems to work wonders, even videos! Sometimes, I’ll use MOC too. It’s an ncurses program that is used in a terminal. It plays streams as well as MP3’s, and I’m sure other song formats too.

Torrents:

I Strictly use Deluge now. I used Transmission for the longest time. I liked it, still do, but I find I like Deluge a lot better. It’s a little more heavy than Transmission, but it does similar things.

Mail:

I’ve always used Thunderbird. It may be overkill with options, but I only use it with basic IMAP usability with GMail. It’s an easy system to use, and once it’s set up proper, it’s set up. No fussing around needed. I’ve heard ClawsMail client is also really good, and a lot lighter than Thunderbird. But, I like the Mozilla suite.

Here’s something you could also try out: In Linux, try installing prism. “sudo apt-get install prism” Prism is simple XULRunner based browser. Once set up, go into the menu, click on the menu option, tell it to go to gmail.com. Now, you have GMail right on your desktop with no configuration required. It can be done with any other site, too. They even have selected WebApps for certain utilities now, too. “sudo apt-get install prism-google-mail” and you’ll have the same thing you just did.

Graphic Design:

Not sure if I’ve included this in my other, “best of”, blog posts, but, I’ll assure you, it’ll be quite expanded.

GIMP has always been with me since the first day I used Linux. Eventhough it’s multi-platform, GIMP is a nice substitute for Photoshop, and other expensive photo manipulation software. GIMP is free too.

For vector editors I’ve always used Inkscape, but Xaralx is also very nice. A bit heavier in resources but it’s never ceases to amaze me. It’s a really nice application. Pencil is also a vector, and bitmap editor, but it’s mainly used for animation since it has a nice timeline to render to. It’s an excellent application for vector animation.

I’ve recently stepped into the 3D world of making objects just for the hell of it, and I can say I quite enjoy it. It’s quite a challenge, even with Wings3D. The Wings3D UI is basically good if you like clicking your mouse a lot. There are some shortcuts, but it’s not exactly like Blender where there are many shortcuts and once you memorize the Blender shortcuts, you’re good to go, and you’ll be making things with ease. I’ve yet to get a handle of Blender, but Wings3D is a lot easy to use at least for me. A bit more time consuming, but I like it. The nice thing about the 3D applications is that I can make something in Wings save it to a non-proprietary format, import in Blender, and render with Blender’s engine(s) which are far more superior. A lot of people do it like that.

Another small program I like is Agave. Agave is an eyedropper program. If you want to find out what colours people are using on a website, or in a theme, or another wallpaper you can use the program like a swatch to save the colour variants. Just click the eye dropper on the colour and the swatch saves for later use in the program. It’s not really hard to use, and it’s really useful.

Instant Messaging:

For a long time I used Pidgin as a multi-platform instant messenger, but, I don’t really like it now. I mean it has nice cosmetics, but I like to use empathy now. It’s far more better. It’s a lot more stable, and I’ve had no problems with it so far. It can do Jabber, XMAPP, MSN, IRC, ICQ, and others. Pretty well any popular protocol. Mics and webcams work under it too!

Bitlbee is another multi-platform instant messenger. But people use it for commandline interface usage. It’s best used with screen. Last time I tried it, it pretty well had an intuitive interface, but I’m sure once you’ve learned how to use it, it’s not so hard and it comes naturally.

Internet Relay Chat:

Since my introduction to Linux, I’ve always whole-heartedly used irssi, and I still do! I love the program. It’s one of the best programs I’ve ever used, and hopefully it doesn’t change for a very long time.

Screen Multi-plexer:

This is a whole category on its own, and I think there’s only one of its kind. It’s quite awesome even though I don’t use it. I don’t really have a need to. The screen multi-plexer used is called, “Screen”. What it does is, when you open a terminal you have a CLI. With screen, if you’re only running CLI, or a terminal you can minimize, close, or hide screen instances while they’re still running. So, you want IRC hidden, you can hide it.

Firewall:

I’ve used Firestarter for a long time. I remember trying to use it when I first started learning how to use Ubuntu. To be truthful, it was really hard to use. It was for me anyway. I couldn’t really use it because there was quite a learning curve. But, I can lay that to rest because gufw is here. Gufw has a simple interface, and ufw is the backend of it which is already installed. I’m assuming Firestarter used the ufw backend. I could be totally wrong on that though.

Anyway, that’s the end of the list of programs I mainly use. If you find any others worth using, leave me a comment. I’m always looking for the best programs for the GNOME Desktop Environment.


Previous US Steel post – A Contextual Mess!

March 18, 2009

There’s quite a lot of incoherency in the last post I wrote, I’m not going to clear it up either. The contextual slurring was all over the place! Maybe I’ll change my motives later, but for now it’s off the list of things to do. Wait … what list of things to do? I don’t have a list of things to do, but, I don’t really feel like writing about it anymore. If I feel the need to write about it soon I will, until then I won’t.

I want to move onto better things to write about in times like these. I want to get more people to read my blog, and become more efficient in writing and thinking of what to write. Sort of like educating yourself about writing style, thinking of better things to write and think about.

Now, to think about a topic to write about. :)
Justin