Howto: Install cplay for the XO

When the Sonata package for Sugar failed to behave like I expected, I knew I was going to have to roll up my sleeves to get a basic, ogg-friendly audio player in place for my little XO.

And since I don’t really want anything fancy, and don’t need any wacky music-management suites just to play a few tunes off a USB drive, I turned to cplay to get the job done – low profile, low maintenance and high-performance no matter what the hardware.

cplay isn’t in Sugar’s default repositories, and rather than tapdance around the issue, I decided to compile it from scratch. That turned out to be the best idea yet, since compiling it, even on the Geode, took only seconds. Here’s how to do it.

First, you need two things from Sugar’s repositories: vorbis-tools, which will give you the ogg123 command-line player, and make, for the dirty work. First open a Terminal Activity, then switch to superuser.

su

Now install those tools from the repositories. Needless to say, you’ll want to be connected to the Internet for this step.

yum install make
yum install vorbis-tools

That was the hard part. Now download the source code for version 1.49 of cplay.

wget http://mask.tf.hut.fi/~flu/cplay/cplay-1.49.tar.gz

Decompress that file into a directory with this command

tar -xvzf cplay-1.49.tar.gz

Move into the directory that it created.

cd cplay-1.49

Now make.

make

Now install.

make install

Done. See? I told you it was easy. Installing it puts it at /usr/local/bin/cplay, which is a little awkward since the path for the default terminal account doesn’t include that in $PATH. You can change that variable manually to include it, or set up an alias for the program in your bash profile … whichever seems easier.

Start up cplay, and if you like, create a symbolic link from your home directory to the /media folder, which saves a step when adding songs to the playlist. If you need a primer on how to use cplay, you can get one here.

And once again … CONSOLE PROGRAMS FTW! :)

About these ads

3 Responses to “Howto: Install cplay for the XO”


  1. 1 n2j3 2008/01/24 at 5:28 AM

    I second your “CONSOLE PROGRAMS FTW!”. On the subject of mp3/ogg players, ever tried http://herrie.info/ ? It’s console-based, themed (!), and ships with audioscrobbler support too (if you’re into that sort of thing). Not sure on whether it would work on the XO though.

  2. 2 xabbott 2008/01/24 at 8:08 AM

    Yea I really dig console programs. For music have you tried “MOC” (music on console). On Arch it’s in Extra repo. Website: http://moc.daper.net/

  3. 3 K.Mandla 2008/01/24 at 8:55 AM

    Thanks, I shall have to try those. I remember MOC from a long time ago, but never tried it. Herrie is definitely new to me. :D


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,958,220 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: