Skip to main content

Music on Console : Midnight Commander styled Console based Music Player

Music on Console is a console based music player with interface inspired by the classic Mindnight Commander file manager, it allows you to play number of audio file format and yet is light on memory and is extremely simple to use.

Music on Console is written in C using POSIX system calls and uses a number of different libraries to decode different audio format, its interface is created using ncurses text based interface library.

Some of the supported audio formats include -
  • mp3
  • Ogg Vorbis
  • FLAC
  • WAV
  • Musepack
  • Speex
  • AIFF
There are couple of more audio formats supported by MOC, The major ones I have listed above.

The interface of MOC is divided into two panes, while one pane on the left has all the MP3 files in the directory , the left pane has playlist, which you can create dynamically or load existing m3u playlist, bottom of the screen has information about the file like running time, file length, codec information etc.

To install Music On Console issue the following command in the Terminal Window in Ubuntu, MOC is available in Ubuntu (official) repositories and hence installing MOC shouldn't be a problem.
sudo apt-get install moc

Once, you have installed Music On Console, launch the terminal window, chdir to directory having the mp3 files and issue
This should open up Music on Console,with all the audio files in the present directory, you can chose to play audio file from present directory or chdir to another directory, When you pick a file to play from the current directory, all the files from the present directory are played and there is no need to create separate playlist unlike some other players. MOC also supports gapless playback as it precaches part of file.

Music on Console

Additionally, you can chose different themes in MOC, you can do so by pressing keystroke "T" this should allow you to pick themes for MOC, you can install new themes for MOC as well.

Picking new theme for MOC, MOC with a new theme :)

Music On Console also supports playing from Internet Stream, I tried to play local FM station which broadcasts using AAC streams and I was able to play FM without any hitch, you would need to enter URL by pressing "o" keystroke in MOC and entering the URL to use this mode.

MOC supports creating playlist as well as using existing playlist, it supports m3u format.
There are other neat features in MOC, you can find out more about it through MOC website, additionally, you can learn about different keystrokes to use MOC by pressing "?" this should open the help menu, thus allowing you to find out different keystrokes and associated functions.

Information about different Keystrokes!

However, the mode that I liked the most was Server mode, you can switch to server mode by issuing "q" keystroke, in this mode, MOC runs in the background as a server and allows you to close Terminal, restart X server and the music will continue to play, I see this to be very useful, having ability to deattach logic to play music files from the interface is very very useful. Once you have activated server mode and deattached interface, you can launch interface again and attach interface with logic to play music files by starting MOC again in console "mocp" command.

Overall, I am very pleased with MOC, the server mode is brilliant to say the least, not having to deal with the Window or Terminal Window while playing songs from playlist is extremely useful, additionally, supporting wide variety of audio codecs and having ability to play online streaming audio, all these features makes it an excellent music player which can even replace some GUI based music players on Linux especially for people with computers low on resources.

Link -
Music on Console Website -

Article Written by : Ambuj Varshney (

For Linux on Desktop Blog ,
(C) 2011 , Ambuj Varshney


Popular posts from this blog

13 Things to do immediately after installing Ubuntu

In this article i describe some of the things to do immediately after installing ubuntu on your machine . Since most of the people reading this would be shifting from Windows to Linux with a system dual booting so i would focus more on making transition easy from Windows to Linux.

Creating Your ultimate Ubuntu 7.10 Desktop

Ubuntu 7.10 Codenamed Gusty Gibbon was released few weeks back with much fanfare ,now Ubuntu for past couple of years has been one of the most popular Desktop Linux distributions . Ubuntu 7.10 includes a number of features , applets and Wizards to simplify desktop Linux experience however because of many licensing restrictions it does not include out of the box support for popular audio/video codecs and many commercial but good applications . Also because of the limitation of trying to accommodate all kind of applications on single CD Ubuntu comes with a limited set of applications .

Now , i often have arguments with my friends who are new to computers that windows is…

Over 16 Small Games For Ubuntu Linux

Over 16 Small Games For Ubuntu Linux

Ubuntu Linux is one of the most popular Linux distribution , it is especially popular among Linux newbies and windows refuges . Now Ubuntu Linux does come with a descent set of applications , still there is a scope for including some more quality applications and especially games . Now in this tutorial i will show you how to install a large number of small , easy and less resource hungry games on Ubuntu Linux with screen-shots of games .

1. Rocks 'n' Diamonds

Rocks 'n' Diamonds is a Boulderd*sh game for X11 with more than just the falling rocks and diamonds of its namesake. The object is still to collect all the diamonds (and emeralds), then get to the exit before time runs out. But your character must make use of bombs, spaceships, and many other elements in order to fill his quota of jewels.

Installation : -

Type the following command in the terminal window


Making Music(Beats) on Linux/Ubuntu with Hydrogen

I am going to review a couple of Music Making Softwares for Linux and am starting with the simplest and one of the best!HYDROGEN. Hydrogen basically is a pattern based drum programming software which in layman terms means, it allows you to make your own beats.And in case you aren't much into music, you might be wondering “what the hell will i do with this piece of software”...well here is a word from my friends who've tried this: “Its pretty fun playing with this software, n even without knowing much, you could actually MAKE SUM MUSIC!!!”

There was this software called Acoustica Beatcraft(for windows) which actually introduced me to this beat making stuff and I was quite interested, but sadly it was too costly for me to buy it. So i was stuck using the trial version of the software and sadly as soon as i got the grip of the software the trial expired, and so my search began for software which would do the stuff for me and luckily i found this amazing piece of software HY…