|
|
|
|
#1 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Linux Servers and Shoutcast (Help please!)
Ok - I have read a lot on these forums in order that I might be the newb that sorted it all out from the docs but I need to clarify that I have got the basic concepts right.
I just got myself a Virtual Private Server that I want to broadcast off so have Installed the DNAS on it (Linux version). I now need to install winamp somewhere and get these 2 things talking to each other right? I don't know whether to install Winamp on my server (which I don't think i can do anyway right?) or to install it on my Mac OSX. In short I am confused. I'm completely new to linux too which isn't halping matters. My VPS has WHM and a Virtuozzo Power Panel that has an SSH client. I have managed to get the DNAS running once or twice but at the moment it is saying fatal error - some other process using this socket. It is dis-heartening as it said yesterday that the server was sleeping and there were no listeners. I think I have left the server running and am not too sure how to turn it off! http://72.29.95.96:8000/ - this seems to work ok - but here is the best newb questions of all - whats my admin username? I've set the password in the configuration file but it seems to ask me for an admin name too and I don't know what that is. Confused but determined..... Any help would be particularly appreciated. Is it even possible to achieve this without a PC? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
to stop the server killall sc_serv*
or ps -aux |grep sc_serv kill -9 (process ID from above command) for example kill -9 12345 Learn linux before you start shoutcasting, otherwise its going to suck for you and your listeners! If you have a windows based Pc you can install winamp and the DSP plugin to play your mp3s and send them to the server so others can listen in. If you wanted a total automated playlist , get sc_trans for linux also (see the download section on shoutcast.com and select be a DJ). sc_trans is fairly straight forward, it has a config file that contains your station information, server information and password and the playlist name. to use sc_trans you put all the mp3s you want to stream onto the servers as well. Lets say your linux box is setup with /home/tldk and you created /home/tldk/mp3 and placed a bunch of mp3s in the mp3 directory. I placed sc_trans and sc_serv in my /usr/bin so I can run it from wherever I want. I placed the config files in my home directory. I renamed sc_trans_maxOS to just sc_trans, same with sc_serv, kept it simple. simple steps create a playlist: find /home/tldk/mp3 -type f -name "*.mp3" > playlist.lst start sc_serv: sc_serv sc_serv.conf > /dev/null 2>&1 & start sc_trans: sc_trans sc_trans.conf >/dev/null 2>&1 & More help you will find , search using sc_trans, linux and/or my userID as well. the biggest issue you may have is not being familure with linux. If you have Mac running OSx, its OS is FreeBSD (UNIX), very simular to linux you need to learn and read and read until your eyes fall out.~ D ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Ok thanks for that - its not my eyes i'm worried about - its the porridge between my ears.
I think your right - a crash course in Linux is called for (eek!). Quote:
|
|
|
|
|
|
|
#4 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
sc_trans is whats called a transcoder. It takes a mp3 at whatever bitrate it was recorded at and encodes (transcodes) it to the bit rate you want. Cool thing is you dont even need audio hardware PC, linux, UNIX or Mac. It does the same thing. It is not for live broadcasting as it doesnt use the audio hardware, its to automate your streaming.
Check oout this happy mac stream I helped out as well, http://forums.winamp.com/showthread....hlight=sctrans Good luck ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Well thanks for all your help - I got the server switched off in the end so I'm going to boot it up again now i have followed the instructions on this and a couple of other relevant threads.
I was even down a book shop looking at various expensive Linux books. I've only just got my head round php and MySQL so not entirely in the mood - but hopefully I'll get my head round it. Right booted up the sc_trans (which said no playlist found though i gave it an exact path to it) and sc_serv which seems to boot up but as yet isn't streaming anything. I was heartened to see that when i pressed play on my itunes that i was trying to stream off - it does something in the SSH client but says there are no listeners. I think most probably because nothing is streaming. If i can get it to locate the playlist in sc_trans.conf i reckon i'll be away. |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
...oh yeah - and what is my admin name for the admin login on the html bit?
|
|
|
|
|
|
#7 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
its 'admin' hard coded, cant change it. its even listed in sc_serv.conf (you need to read it)
and to set the password look for the line AdminPassword= remoe the ; info front of the AdminPassword= , and remeber if you change sc_serv.conf while sc_serv is running you have to kill it, and start it again ~ D ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
I figured it would be - rats - it won't let me in. I wonder if that means it isn't even finding my config file.
It also says the server is down?? I am currently investigating this thread: http://forums.winamp.com/showthread.php?threadid=124055 |
|
|
|
|
|
#9 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
well down, means no stream is connected.
sc_serv.conf should contain the following: ; AdminPassword. This password (if specified) changes the ; behavior of Password to be a broadcast-only password, and ; limits HTTP administration tasks to the password specified ; here. The broadcaster, with the password above, can still ; log in and view connected users, but only the AdminPassword ; will grant the right to kick, ban, and specify reserve hosts. ; The default is undefined (Password allows control for both ; source and admin) AdminPassword=lookatthisitsmypassword ~ D ACK my fingers are bleeding ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. Last edited by hackerdork; 6th June 2006 at 23:49. |
|
|
|
|
|
#10 | |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Yes that is all present and correct but it won't let me log in. Something to do with my browser maybe? What are the CHMOD settings for the shoutcast folder meant to be? has that got anything to do with it?
I followed your simple steps.... Quote:
|
|
|
|
|
|
|
#11 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
admin is lowercase and whatever your password is
![]() no ; on the line ;AdminPassword=blech (will not work) AdminPassword=blech (will work) > means direct output somewhere else /dev/null (nothing, null, the shiter) 2>&1 redirect errors or other output to the same place as above & run in background, whoot its a server! so sc_trans blech.conf >shit.txt 2>&1 & would output all the status and logging to shit.txt, kinda redundant since sc_trans.log is used for that. Tons of linux help online and I offer consulting as well (for a resonable fee). Anyways if you cant login its not the web server, shoutcast DNAS is the webserer on port XXXX (8000), and not a chmod thing either killall sc_trans* killall sc_serv* ps -ax |grep sc_ see anything listed besides the ps -ax output? the do kill -9 NUMBER (where NUMBER is the process ID or owner of sc_trans or sc_serv, it would mean its still running. now sc_serv sc_serv.conf > blah blah sc_trans sc_trans.conf NO BLAH BLAH, look for errors and shit, to stop sc_trans smash control-c. If you redirect the output to null only the kill command will work man (manuals, manpages) man kill man kill cat man cat kill man ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#12 |
|
Moderator
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
|
|
|
|
|
|
|
#13 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
well i was being a smart ass, but mine shows the man for cat, then kill then man itself
![]() i havent found the man page for womain either. Damb ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#14 |
|
Moderator
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
|
My linux box always restarts everytime I type 'man woman'
I wonder if it is trying to tell me something? Better yet, I wonder if that can be symlinked to /dev/null? |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
I damn well got it working....
![]() Thanks Hackerdork. for some reason cd-ing to the directory made all the difference?!?! Gave up last night when it kept saying it couldn't find the playlist and then just started fresh this morning and it all seemed to work. Frickin A!! Thanks man. I have to admit you lost me in the last couple of posts but I stayed true and tried to keep a clear head and it all worked!! Thanks man - K Radio has been online now for about 5 mins. http://72.29.95.96:8000/listen.pls |
|
|
|
|
|
#16 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Oh yeah - and as soon as it worked my password started working too.
|
|
|
|
|
|
#17 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
well this is why I create startup scripts so you can start shoutcast or sc_trans from any directory without having to CD to that directory youself.
~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#18 |
|
Junior Member
Join Date: Jun 2006
Location: Amsterdam
Posts: 10
|
Actually - i didn't use the scripts. But what the hey - it works regardless!!
![]() Thanks for your help |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|