Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Streaming Music
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
justineiler
n00b
n00b


Joined: 31 Oct 2003
Posts: 46
Location: Boulder CO

PostPosted: Wed Jun 16, 2004 5:47 am    Post subject: Streaming Music Reply with quote

I want to be able to play music at work(win2000) from my laptop back at home(gentoo). I cant drasticly change the network scheme at work. Anyone got any ideas

Thanks Again
Justin
Back to top
View user's profile Send private message
scalded
n00b
n00b


Joined: 13 May 2004
Posts: 68
Location: US

PostPosted: Wed Jun 16, 2004 6:23 am    Post subject: Reply with quote

I've been working with php and apache for a similar purpose. What you could do is set up apache (on an obscure port like 7538 if you worry about security) and write a quick script to generate a pls file (very simple syntax) with all of your mp3s with your http url prefixed.

example of a playlist.pls
Code:
[playlist]
NumberOfEntries=3
File1=http://myserver:7064/mp3/Bob%20Marley%20and%20The%20Wailers/Legend/01_is_th.mp3
File2=http://myserver:7064/mp3/Bob Marley%20and%20The Wailers/Legend/02_no_wo.mp3
File3=http://myserver:7064/mp3/Bob%20Marley%20and%20The%20Wailers/Legend/03_could.mp3


and then open that in winamp or xmms, it'll stream the files over http. It might be a bit impractical or just plain overkill, but that's how I like to do things. The script I'm working on reads the id3 tags and throws the data into a mysql database (my actual intent is to emulate the incredible winamp 5 library), but I think there's something already in portage with a similar purpose.
mpd ( http://www.musicpd.org ). I've personally never tried it, but looks like it might do the trick?
Back to top
View user's profile Send private message
beowulf918
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2002
Posts: 147
Location: The Gambia

PostPosted: Wed Jun 16, 2004 9:20 am    Post subject: Reply with quote

I'm a big fan of icecast + ices for this kind of application. It's not difficult to setup, is well documented, has been tested, and is very reliable. You can use ices as a music source connected to icecast, or write your own streaming source with the Shout.pm library. You can require passwords between the media player and the music source -- it's an all-around good package.

Scalded: I'm interested to hear that you're working on your own apache/mysql/music streamer. I went down that path maybe two months back and I'd like to see what you turn out. I'll confess to being rather excited at the potential of combining a music collection with an SQL backend. If you're looking for something similar to the Winamp 5 database, I suggest you check out the latest beta of amarok, powered by SQL-lite I believe. It's a good deal easier to us than some of the db music managers that are currently in portage.

James.
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Wed Jun 16, 2004 9:58 am    Post subject: Reply with quote

Well... what kind of security is choosing "an obscure port" for your webserver ? not at all.
I guess the first script kiddie that portscanning noticed that there is a stupid guy, screaming "RIAAAAA pls come and RAPE ME!!!!" that provides all his MP3s on a webserver will do no better than keep this little secret to himself ? You'll probably be surprised of how many guests you may find on your obscure port and in front of your door.
If you want to access your private data at home, you should do a better job.
Back to top
View user's profile Send private message
scalded
n00b
n00b


Joined: 13 May 2004
Posts: 68
Location: US

PostPosted: Wed Jun 16, 2004 10:23 am    Post subject: Reply with quote

smart wrote:
Well... what kind of security is choosing "an obscure port" for your webserver ? not at all.
I guess the first script kiddie that portscanning noticed that there is a stupid guy, screaming "RIAAAAA pls come and RAPE ME!!!!" that provides all his MP3s on a webserver will do no better than keep this little secret to himself ? You'll probably be surprised of how many guests you may find on your obscure port and in front of your door.
If you want to access your private data at home, you should do a better job.

That is some severe paranoia you've got there. For one thing, I've had my entire mp3 directory open to the internet on an obscure port (one that isn't scanned by nmap by default) for weeks now, and I check the logs occasionally. I haven't had any strangers probing the port, only myself and people I know. If someone did stumble upon it, they'll be greeted with that apache test page, and no indication that i have anything worth looking for. HTTP Authentication works with winamp fine, and cracking that is enough to be considered unauthorized entry and nullify any legal complaints from the RIAA.

In the true Slashdot troll-style, you've dismissed everything and left no ideas of your own.

beowulf918 wrote:
If you're looking for something similar to the Winamp 5 database, I suggest you check out the latest beta of amarok, powered by SQL-lite I believe. It's a good deal easier to us than some of the db music managers that are currently in portage.

Amarok looks nice. The problem I had with few of those music managers is that they write corrupted ID3 tags for me, for whatever reason. XMMS, a CLI id3 app, some php library and a perl library all do it fine, but its like the few Qt apps that I've tried ROT13 the tags before writing them. Pain in the ass.
_________________
"...In the year 2005, mankind will face times of great suffering and oppression..." - Vote Arnold 2006, if you want to live.
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Wed Jun 16, 2004 10:31 am    Post subject: Reply with quote

Quote:

That is some severe paranoia you've got there. For one thing, I've had my entire mp3 directory open to the internet on an obscure port (one that isn't scanned by nmap by default) for weeks now, and I check the logs occasionally. I haven't had any strangers probing the port, only myself and people I know. If someone did stumble upon it, they'll be greeted with that apache test page, and no indication that i have anything worth looking for. HTTP Authentication works with winamp fine, and cracking that is enough to be considered unauthorized entry and nullify any legal complaints from the RIAA.


If you hadn't any one probing the port, you're VERY lucky, or just plain not noticing. I'm getting about a total of 1000 distributed probes a day.
Suddenly you come up with HTTP authetication... well, if you had at least sth. like that in your suggestion before... maybe one would not think now that you

Quote:

In the true Slashdot troll-style, you've dismissed everything and left no ideas of your own.


would not have to correct your omission/main point from before. Well, everybody knows that there are webservers in this world, no ?

Check your original post and see that you suggested suicide.

But whatever, this is probably not the topic.

And no, i did not feel inclined to add sth. to that original topic, i'm not interested in that. But i felt it was A MUST to keep someone from doing sth. AS STUPID as what was originally sugessted BY YOU, being an open access.

And putting an authorisation in front of your webserver would only prevent me from thinking you're still stupid after i had verified the settings to be ok... do you use SSL with that ? But ok, in that i might have different requirements for myself than what others will accept.
Back to top
View user's profile Send private message
scalded
n00b
n00b


Joined: 13 May 2004
Posts: 68
Location: US

PostPosted: Wed Jun 16, 2004 10:50 am    Post subject: Reply with quote

I had no idea I was supposed to describe the security measures in detail before the guy even replied. I'm not interested in flame wars, which you seem to make a career out of, so make the last word while its fresh.

PS: consider yourself baited.
_________________
"...In the year 2005, mankind will face times of great suffering and oppression..." - Vote Arnold 2006, if you want to live.
Back to top
View user's profile Send private message
smart
Guru
Guru


Joined: 19 Nov 2002
Posts: 455

PostPosted: Wed Jun 16, 2004 11:46 am    Post subject: Reply with quote

HA, lol. Your second name is spin doctor, isn't it ?

Quote:

I had no idea i was supposed to...


is not a good answer to give when sbdy. gets into trouble because of your light headed advice. But hey, it's not your butt is it ?

The only point of all this is though, why i should not point out that your suggestion was lacking the security ?
Back to top
View user's profile Send private message
justineiler
n00b
n00b


Joined: 31 Oct 2003
Posts: 46
Location: Boulder CO

PostPosted: Wed Jun 16, 2004 10:51 pm    Post subject: Reply with quote

I went with icecast. WOW works awesome in conjunction with vnc to change songs
thanks for the help
justin
Back to top
View user's profile Send private message
Propagandhi
n00b
n00b


Joined: 09 Jul 2003
Posts: 27

PostPosted: Thu Jun 17, 2004 9:18 am    Post subject: Reply with quote

another thing that might be worth checking out if you already have apache installed is mp3 toolbox
http://www.radiotoolbox.com/docs/?p_id=2
Back to top
View user's profile Send private message
beowulf918
Tux's lil' helper
Tux's lil' helper


Joined: 03 Dec 2002
Posts: 147
Location: The Gambia

PostPosted: Thu Jun 17, 2004 10:28 am    Post subject: Reply with quote

scalded wrote:

Amarok looks nice. The problem I had with few of those music managers is that they write corrupted ID3 tags for me, for whatever reason. XMMS, a CLI id3 app, some php library and a perl library all do it fine, but its like the few Qt apps that I've tried ROT13 the tags before writing them. Pain in the ass.

Look here (amarok.kde.org). The short answer is that amarok uses taglib, a package that may need to be upgraded to 1.1.1 for things to work correctly.

James.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum