Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a old 180mhz machine that I was wanting to use as a mp3 player that is controllable via other machines on the lan.
I've seen a few projects to control mpg123 via web-based control but I forgot the names and cannot seem to find them. Anyone know of any? Or anything similar for a dedicated mp3 storage/player that i can keep running 24/7?
I don't want the music to stop when i shut down machines PLUS this would be good to keep this 24/7 process off my workstation
Don't want the machine to have monitor/keyboard, it wont be used as a workstation, can just use ssh for maintence.
excellent! thank you very much. I have to look for more of these, I used one a while back, didn't need mysql or java... was all php. really nice too. just never got it working... never spent a lot fo time on it aswell so... who knows.
actually, i just wrote some software that i released just yesterday! it's called music.box, and i wrote it using PHP run in apache. it's designed to control XMMS (which has way more options than mpg123) and is just all around better.
please let me know what you think if you download it! :-)
Just downloaded it! I'll be honest with you, I haven't had much expirience with setting up such a project yet.
With your software, you can control xmms on a remote machine to play music out of it's local soundcard, NOT stream? Thats what Im looking for. I don't have much to work with for hardware, does xmms NEED x11? How is it on resources?
I'm trying to do basically the same thing -- create a web front end to play mp3's over the server's audio card, which is attached to my stereo. I would like the server to be headless (no monitor or keyboard) and to be able to control it using a browser from any one of the several computers attached to my LAN (a mixed environment of Windows and Linux).
I've been trying to use the system() and/or exec() functions in PHP to execute mpg123, but to no avail. I can execute other shell commands using system() and exec(), such as ls, so I believe that PHP is working correctly, but literally nothing happens when I try either system("mpg123 [filespec]") or exec("mpg123 [filespec]") -- I just get a blank page in the browser (except for some text I echo'd to make sure the page was being served). I also know I am typing the mpg123 command correctly, because I can execute it successfully on the command line. Also, I have used the $return_var parameter for system() and echo() and get a return code of 11, unless I include an ampersand at the end of the command (e.g., exec("mpg123 [filespec] &")) in which case I get a return code of 0, but still no sound. I've tried using the full path for mpg123 (/usr/bin/mpg123) and have tried to various output options (mpg123 -oh), and still nothing.
Also, I just installed moemusic, referenced earlier in this thread, and while I have populated the MySQL database, can successfully display the web pages and select a song for the queue, I still cannot get any sound.
I'd prefer not to have to have X-windows running on the server (memory constraints), which is why I am trying to do this with PHP and mpg123 instead of xmms.
I'm running Mandrake 9.0, Apache 1.3.26, and PHP 4.2.3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.