Command line mp3 player in Linux

This post is after about a month long hibernation from my blog.
I made my mind up to listen songs as i usually do (it contributes to my hobby). In fact, i was suffering with a headburst headache, so i thought songs might be the stress buster and good entertainer too. What striked my mind was why couldn’t i play the tracks on command line rather playing’em in traditional RhythmBox or Amarok etc. The way i thought, the way i found…some googling let me find such a tool named mpg123, which is nothing but a command line player cum MPEG streamer.
Installation on Ubuntu/Debian: sudo apt-get install mpg123
Installation on RedHat/Fedora/Cent OS: For this, we have to first enable the rpmforge repo and try
yum install mpg123
and you are done.

Go to the shell; Move into your songs folder; and type in mpg123 * as below:
neeraj@nee-pc:/media/LEISURE/fun/songs$ mpg123 *
Just press Ctrl+C , if you want to switch onto the next song in the folder.
Have a glimpse of the mpg123 on my UbuntuBox:


Play files on the shell itself

Type man mpg123 and you will see what else can you do with this versatile thing.
Thanks GNU.


proftpd: A unique ftp server on my UbuntuBox

This was basically a novice step by me to setup an ftp server locally, but i succeed! Proftpd is the professional FTP daemon. It can be found in Synaptic package of Ubuntu or can be downloaded via apt-get. Just install it and use standalone server.

Launch it through console (see manual pages for documentation):

neeraj@nee-pc:~$ proftpd

and check through your browser whether it’s running or not. Type ftp://localhost/ in the address bar and assign username and password (the same you use to login into your system)there in the dialoguebox. You must see a window like this:

Local file transfer protocol
Local file transfer protocol

I tried to access it on other computer on my LAN through my ip:


and it was working perfectly fine. So..are you gaming to set up your own ftp?? what say??

Turned my Ubuntu’s desktop as Fedora’s!

I always had a willing to turn my desktop as fedora’s desktop. In my UbuntuBox, the desktop doesn’t show the computer’s icon, the Home folder or the trash. But now, all are there in one go. Have a look:

All icons

All icons

What say?? All you have to do is to install Ubuntu Tweak. Launch it from Applications-> System Tools-> Ubuntu Tweak.

Tweak your Ubuntu

Tweak your Ubuntu

Go under the tab Desktop->Icons and do whatever you want. That’s it! It has so many other features, explore as much as you can! Cool na! 🙂

LAMP installation on Ubuntu 9.04

Last night, i was thinking of configuring LAMP on my UbuntuBox. LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. (Sometimes Perl or Python is used instead of PHP.) Because the platform has four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on different operating systems. Developers that use these tools with a Windows operating system instead of Linux are said to be using WAMP; with a Macintosh system, MAMP; and with a Solaris system, SAMP.

I tried the following and got success:

Open terminal and typed:

neeraj@nee-pc:~$ sudo apt-get install lamp-server^

The total size downloaded was 43 mb approx and took about 20 minutes.
let us see, whether the installation succeeded??
open Firefox and type http://localhost/ . If the browser displays "It Works", means the installation is successful.

PHP test:

type in the terminal the following

neeraj@nee-pc:~$ sudo gedit /var/www/testphp.php

and type in the following code:


Save and close the file and restart Apache by:

neeraj@nee-pc:~$ sudo /etc/init.d/apache2 restart

Open the browser and put http://localhost/testphp.php in the addressbar, hit enter and if you see the following, php has been successfully installed.

php info
php info

Next is the turn of MySQL:

MySQL has to be bound with the localhost so type in the following to check whether the bind-address is

neeraj@nee-pc:~$ gksudo gedit /etc/mysql/my.cnf

I also installed phpMyAdmin which is optional:

open terminal and type

neeraj@nee-pc:~$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

After this type in:

neeraj@nee-pc:~$ sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

type in http://localhost/phpMyAdmin in the addressbar of your browser and you get the following homepage:


Log in with the MySQL accoun and you are done. I forgot the password and hence tried the following:

sudo dpkg-reconfigure mysql-server-5.0

to reset the MySQL Password.

Now, everything’s peachy. 🙂

neeraj@nee-pc:~$ gksudo gedit /etc/mysql/my.cnf

Artha – Open Thesaurus

Although Ubuntu and several other Linux Distros provide it’s own dictionary which connects online to give you the results. Meanwhile i was thinking of something like Wordweb in windows. I found one mail regarding the same ..i managed somehow to install Artha on my works good..and i love it…

The open dictionary
The open dictionary

Redundant entries in GRUB menu: Solved

When you are not trying, you are not gaining anything!
That’s what i found to be authentic when i risked to change my GRUB menu in my UbuntuBox. I upgarded my hardy to jaunty a month ago, which left my system’s Grub list to show 3 copies of Ubuntu 9.04 including their failsafe modes and memtests options. I was certainly annoyed with this thing. But i recovered my original startup grub menu by following these simple steps:
#1: press alt+f2, write gksu gedit /boot/grub/menu.lst
it will show the menu.lst file in gedit.
#2: search for the string “#howmany=all”
make it “#howmany=1”
#3: save the file close it and go to terminal
#4: write ‘sudo update-grub’
it will update the menu.
restart the computer and see your previous grub!

Introducing Karmic Koala: Ubuntu 9.10

The next release of Ubuntu Linux is going to be called “Karmic Koala”. Here is a list of features to look forward to
One big change is that Empathy will be the new chat program (instead of Pidgin). Empathy supports audio and video chat.
Here’s the full release schedule for Karmic Koala — October 29th, 2009 is the planned date of the final release.
The alpha version is available for download here.