![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Server Platforms Discussion regarding any server based ubuntu release. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() |
Hope you like this: How-To make Apache2 Stream Music.
We use libapache2-mod-musicindex; it works with MP3, FLAC, Ogg Vorbis or MP4/AAC files. We start off with installing mod and codecs: Code:
apt-get install libapache2-mod-musicindex libogg-dev apt-get install libvorbis-dev libid3tag0-dev libmad0-dev libflac-dev Add this line to /etc/apache2/httpd.conf Code:
LoadModule musicindex_module /usr/lib/apache2/modules/mod_musicindex.so I use the /etc/apache2/conf.d/alias file Assuming your music is in /home/foo/music the settings should look like these: Code:
Alias /music /home/foo/music/
<Directory /home/foo/music/>
Options Indexes MultiViews FollowSymlinks
AllowOverride Indexes
MusicLister On
MusicSortOrder album disc track artist title length bitrate freq filet$
MusicFields title artist length bitrate
MusicAllowDownload Off
MusicAllowStream On
MusicAllowSearch On
# MusicRssItems Off
MusicPageTitle home
MusicCssDefault musicindex.css
MusicCachePath /tmp/musicindex
# MusicIceServer [ice.domain.my]:8000
# MusicCookieLife 300
</Directory>
Restart Apache Code:
/etc/init.d/apache2 restart Your Server is now ready to stream! This example you'd access @ http://localhost/music/ Weblinks: • http://www.parisc-linux.org/~varenet/musicindex/ • http://httpd.apache.org/docs-2.0/ Simple Cosmetics The interface doesn't look so good out of the box I think. A simple way to change it a bit is the file /var/www/musicindex/musicindex.css. For example the a.rss tag: Code:
table#directories div > a.rss {
font-size: 10pt;
}
Code:
table#directories div > a.rss {
font-size: 10pt;
margin-left:200px;
}
Enjoy your music streams |
|
|
|
|
|
#2 | |
|
Dipped in Ubuntu
![]() |
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Quote:
does shuffle and stream work for you? |
|
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() |
Re: HowTo stream music with Apache2 (libapache2-mod-musicindex)
Yes, shuffle & stream - everything works fine!
Only the RSS is not working. I disabled the option anyway by adding "color: white;" to the a.rss tag in /var/www/musicindex/musicindex.css. Code:
table#directories div > a.rss {
font-size: 10pt;
margin-left:200px;
color: white;
}
All other files are working perfect - even over the net (200kb/50kb connection) Shuffle and Stream works really nice ![]() |
|
|
|
|
|
#4 |
|
Gee! These Aren't Roasted!
![]() Join Date: Nov 2004
Location: Anywhere
My beans are hidden!
|
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Thks for this one, will come very in handy.
|
|
|
|
|
|
#5 |
|
Way Too Much Ubuntu
![]() |
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Thanks for the HowTo
I tried various embedded players and gave up when i spotted this!! This is what i origanlly wanted Cheers |
|
|
|
|
|
#6 | ||
|
First Cup of Ubuntu
![]() Join Date: May 2006
Location: Helsinki, Finland
Beans: 6
Kubuntu 7.10 Gutsy Gibbon
|
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Cheers, mate!
Nice how-to, now I can easily listen to music from my server with my Nokia 770. However, you did the configurations to Apache in a bit old-fashioned way. Quote:
Code:
sudo ln -s /etc/apache2/mods-available/musicindex.load /etc/apache2/mods-enabled/ Quote:
Code:
sudo ln -s /etc/apache2/sites-available/music /etc/apache2/sites-enabled/. |
||
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Beans: 151
Kubuntu 7.10 Gutsy Gibbon
|
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Hey thanks a lot I've been looking for something like this for a while
Oh but when I installed it there wasnt a default musicindex.css or musicindex folder, I can make my own and I did, but I was just wondering if anyone had a default .css file they could post ?
__________________
Never let your sense of morals prevent you from doing what's right.
Isaac Asimov |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2006
Location: montreal
Beans: 79
Ubuntu 6.06 Dapper
|
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
is this more like an automatically created index type of page that posts your music library automatically or is it more like a streaming component that would make apache stream audio any better?
i host somekind of "interactive radio station" already.. just wondering if that module could be of any use to me... im a newbie in server admin if it just builds an index from your music library, i've already sweated on a script that builds a whole freaking website from my audio libraby... but if it can somehow make apache transmit mp3 or ogg better... then i might need it!.... |
|
|
|
|
|
#9 |
|
Just Give Me the Beans!
![]() |
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Thanks for the HOWTO! I can't wait to try this out!
|
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() |
Re: HowTo stream mp3,ogg,mp4 files with Apache2 (libapache2-mod-musicindex)
Thanks for this fabulous HowTo! This one helped me alot.
This is the most comfortable way to listen to my music @ work ![]()
__________________
Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|