Matt Daubneys Blog

.bashrc fun!

by Matt on Jul.16, 2008, under Fun, linux, ubuntu

Well, after listening to the radio through mplayer, I got to thinking that there had to be a better way to start up a radio station than finding the url for it then kicking up mplayer afterwards. So I’ve now aliased radio 2, classic fm and bluegrass radio in my .bashrc!

You just need to add the following to the end of your .bashrc file in your home directory.

alias radio2=’mplayer -playlist http://www.bbc.co.uk/radio2/realmedia/fmg2.ram -cache 1028′
alias bgr=’mplayer http://bluegrassradio.microcerv.net/bluegrassradio -cache 1028′
alias classicfm=’mplayer mms://mediasrv-the.musicradio.com/ClassicFM?MSWMExt=.asf’

Ensure that the each alias is on it’s own line!

I’ve set the cache a bit bigger than needed, but it just means when the internet mucks about a bit the playing won’t get interrupted!

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...