LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-13-2011, 06:04 PM   #1
jonny300
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Turning an old PC into an MP3 player


Hi everyone,

Just looking into building a machine to play only MP3s. Ideally, id like it to start playing automatically at start-up and once set-up run without a monitor. Id like to use an old 500mhz box.

Anyone any experience with this, or know any lightweight versions of linux that could be set up so?

Thanks all,

Jonny
 
Old 04-13-2011, 06:58 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Something like mpd maybe?
 
Old 04-13-2011, 07:12 PM   #3
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
Puppy should be able to run on this machine. You have an option to write scripts there which will start automatically.
Like I described here:
http://linuxblog.darkduck.com/2011/0...ows-share.html
 
Old 04-13-2011, 07:17 PM   #4
nicolasjengler
Member
 
Registered: Apr 2011
Location: /dev/null
Distribution: Debian, Ubuntu, Arch, OpenSUSE, Puppy, Feather, DSL, DeLi, SliTaz, Bodhi, PCLinuxOS, Crunchbang,etc.
Posts: 74

Rep: Reputation: 9
It's a nice idea. I think something like GeeXboX should do it, but I'm not sure if your PC can run it. Another good option could be VortexBox.
When you're done let us know how it went.
 
Old 04-13-2011, 07:17 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
For a task like this I would go for a really minimal distribution and build up from that base. Something like Tinycore/Microcore or a Slitaz CLI-only install.
If you want to learn something from this, LFS can also be an option.
 
Old 04-13-2011, 07:20 PM   #6
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
I think you need to read K.Mandla's blog.
He has similar experience with old equipment. May have some useful ideas and tips.
 
1 members found this post helpful.
Old 04-13-2011, 08:18 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Arch seems like a great option for this, if you can handle the installation.
 
Old 04-13-2011, 08:30 PM   #8
GVrooman
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 38

Rep: Reputation: 11
I would avoid any distro that insists on starting you up in X-windows. Since you want to automate the entire process and run headless, X would just be a hindrance. If you don't install X your system requirements will be minimal, and you should have no problem with a 500mhz processor.

mpg321 is a nice little command line mp3 player that can read from a play list file. It is available with most Linux distributions, and Slackware provides it as part of its AP series of packages. It shouldn't be too hard to configure it to run when you boot your computer.
 
Old 04-15-2011, 07:34 AM   #9
GVrooman
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 38

Rep: Reputation: 11
This whole thing is really turning out to be quite simple. I merely added the following line to /etc/rc.d/rc.local

Code:
mpg321 -Z -q /fat-d/SoundFiles/*.mp3 &
I am now greeted with a musical login prompt when I boot my computer, and the computer will shuffle play my mp3s until I kill the job. All you really have to do is install your mp3s to a convenient directory, configure mpg321, and add the line to your startup file which may vary depending on the distro you use. Once you get it working you can remove your monitor.
 
Old 04-15-2011, 08:30 AM   #10
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
Quote:
Originally Posted by GVrooman View Post
Once you get it working you can remove your monitor.
How will you kill your task then? Remotely?
what is about controls like FFWD, REW, PAUSE?
 
Old 04-15-2011, 09:33 AM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Quote:
Originally Posted by darkduck View Post
How will you kill your task then? Remotely?
what is about controls like FFWD, REW, PAUSE?
I don't think the OP cares about that.
 
Old 04-15-2011, 10:01 AM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Since the computer probably will not need a connection to the internet I would guess that security doesn't play a role. So my suggestion is to take an old Linux-version like Slackware 10.

Also don't forget, that such an old machine is not very efficient in electric power-consumption and may be relatively loud (compared with modern hardware).

Markus

Last edited by markush; 04-15-2011 at 12:00 PM.
 
Old 04-15-2011, 11:58 AM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by markush View Post
Since the computer probably will not need a connection to the internet I would guess that security doesn't play a role. So my suggestion is to take an old Linux-version like Slackware 10.

Also don't forget, that such an old machine is not very efficient in electric power-consumption and my be relatively loud (compared with modern hardware).

Markus
All regards to Slackware, but I think that for a task as simple as that it is still overload. You just need Tinycore with Alsa and mpeg321 installed, it will run from RAM and shouldn't need more than 20-30 MB on harddisk.
 
Old 05-03-2011, 01:23 PM   #14
jonny300
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your replies everyone!! Lots of useful info in there to work through.

Markus - Your correct that it will be totally stand-alone, no Internet, so security is not important. Noise wont matter as it will be far enough away and connected to an PA system, nor will energy efficiency, it will mostly be powered by a generator.


Controls - The controls dont worry me, however what about safe shutdown? can i just turn it off, or can I have a distro where i can configure the power button or keyboard to shutdown?

it looks like mpg321 is the way forward, with the startup code as mentioned.

I looked into geexbox, but didnt seem to be a way to make it automatically play music....

Thanks again, if anyone has any more ideas let me know!

Jonny
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
turning mp3 player to a bootable distro - not recognized by computer doronb Linux - General 13 11-09-2008 11:52 AM
Portable MP3 player with corrupted mp3 files today53 Suse/Novell 1 05-22-2006 10:24 AM
S1 Mp3 player (Help Create a New Distro for an MP3 player!)) Ian_Hawdon Linux - General 3 12-05-2005 02:14 PM
MP3 CD player can't read MP3 CD's burned in linux food188 Linux - Software 2 01-11-2004 05:55 PM


All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration