Old 28th June 2011, 10:21   #1
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
SHOUTcast auto installer linux script

This linux script file asks some questions and then automatically downloads and installs the SHOUTcast 2 tools and creates configurations for them all.

Tested on Ubuntu. Will probably work on others.

Attached.

code:
wget -Oinstallsc.zip http://forums.winamp.com/attachment.php?attachmentid=48938&stc=1&d=1309252596



code:
unzip -u installsc.zip
chmod 755 installsc.sh
./installsc.sh


Last edited by thinktink; 29th June 2011 at 08:00.
thinktink is offline   Reply With Quote
Old 29th June 2011, 07:58   #2
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
Here's a severely more enhanced version.

code:
wget -Oinstallsc.zip http://forums.winamp.com/attachment.php?attachmentid=48939&stc=1&d=1309330726



code:
unzip -u installsc.zip
chmod 755 installsc.sh
./installsc.sh



Among other things, this one now includes the ability to try to make your playlist for you based on existing (Transcoder supported) files.

Last edited by thinktink; 3rd August 2011 at 10:47.
thinktink is offline   Reply With Quote
Old 3rd August 2011, 10:44   #3
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
Updated version of the auto installer script for the latest SHOUTcast2 tools.

code:
wget -Oinstallsc.zip http://forums.winamp.com/attachment.php?attachmentid=49023&d=1312364599


code:
unzip -u installsc.zip
chmod 755 installsc.sh
./installsc.sh


Last edited by thinktink; 6th February 2012 at 20:16.
thinktink is offline   Reply With Quote
Old 4th January 2012, 02:50   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
Ok, so I ran this script again inside an Oracle VM Linux Ubuntu instance. I didn't see any errors and it started SHOUTcast just fine. I'm not seeing what's wrong with this script but people are complaining it doesn't work. Problem is they don't say what it is exactly what isn't working or is broken so I can't address the issue without some detailed feedback.

If the scripts aren't working for you please post your system specs (processor, memory, flavor-of-linux, version of linux), whether or not you are self hosting or your host is remote (you pay for a host), what error messages at what stage (if any) in the script you get, why you think it doesn't work (i.e. creates bad config option (must specify) or throws an error), and the logs made by the SHOUTcast2 tools (inside an archive of some kind: i.e. zip,7z,cab,tar.gz, but not rar, gawd I hate rar.)
thinktink is offline   Reply With Quote
Old 18th January 2012, 13:15   #5
djcraigr
Junior Member
 
Join Date: Nov 2010
Posts: 7
Hi,

Love the script saved me so much time as a linux newbie, I have one issue everytime I start the script, it re-writes the calander.xml file removing any changes, any suggestions?

Craig
djcraigr is offline   Reply With Quote
Old 18th January 2012, 13:35   #6
djcraigr
Junior Member
 
Join Date: Nov 2010
Posts: 7
Its ok now worked out how to fix it
djcraigr is offline   Reply With Quote
Old 23rd January 2012, 20:22   #7
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
How did you fix it?

When you say "everytime I start the script" do you mean the installer script or the start.sh script?
thinktink is offline   Reply With Quote
Old 4th February 2012, 07:24   #8
Kruse
Junior Member
 
Join Date: Feb 2012
Posts: 4
Got a problem when installing

Hi,

Thanks for making this script.

I did an install on a clean Ubuntu server 10.0.4 LTS and encountered some problems when the install was done and the script tried to start:

Starting the DNAS 2, process ID: 5994
./start.sh: line 54: /sc2/sc_serv: No such file or directory
Starting the Transcoder, process ID: 5995
./start.sh: line 69: /sc2/sc_trans: No such file or directory

Any suggestions on what to do?

Kruse
Kruse is offline   Reply With Quote
Old 5th February 2012, 16:25   #9
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
The errors say that the script wasn't able to start the tools because the binaries could not be found.

During the running of the script or while it was asking you questions did it pop any other errors?
thinktink is offline   Reply With Quote
Old 5th February 2012, 17:04   #10
Kruse
Junior Member
 
Join Date: Feb 2012
Posts: 4
Solved it

I am using a 64 bit Ubuntu server, and since the script dealt only with 32 bit (which I understood long after I wrote my previous post) I had to rewrite some lines in the script - and then it worked like a charm

Great script, and thank you.

Now I only need to find a good tool to create scheduled autoDJ-ing
Kruse is offline   Reply With Quote
Old 5th February 2012, 17:22   #11
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
O.o Nice, I'll see if I can add a question to the script to select 32 / 64 bit OS.
thinktink is offline   Reply With Quote
Old 5th February 2012, 21:03   #12
DrO
 
Join Date: Sep 2003
Posts: 27,873
what on earth is the script doing which is causing a 32 / 64 bit difference in behaviour? the DNAS doesn't specifically do things differently between the 2 compile types so i don't get why this script would cause such an issue (and am pushed for time so i cannot look through it).

-daz
DrO is offline   Reply With Quote
Old 5th February 2012, 21:16   #13
Kruse
Junior Member
 
Join Date: Feb 2012
Posts: 4
I do not know.

When installing using the script I got the shoutcast 32bit Linux installed, and it did not work on my 64bit server, so I changed the download in the script to point to 64bit instead, and it worked like a charm
Kruse is offline   Reply With Quote
Old 5th February 2012, 21:47   #14
DrO
 
Join Date: Sep 2003
Posts: 27,873
that's more likely from not having the 32-bit libraries present on the machine than something specific in the script - which is why we purposefully release 32 and 64 bit versions especially for the linux builds to make sure that such bit type library dependencies aren't an issue.

-daz
DrO is offline   Reply With Quote
Old 5th February 2012, 22:39   #15
Kruse
Junior Member
 
Join Date: Feb 2012
Posts: 4
Which probably would explain that when this install script fetched the 32-bit and installed it, it didn't work. When I made the script fetch the 64-bit, it worked.

BTW, I used a Ubuntu server 10.04 LTS 64-bit for this installation.
Kruse is offline   Reply With Quote
Old 6th February 2012, 20:12   #16
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
Updated version of the auto installer script for the latest SHOUTcast2 tools.

code:
wget -Oinstallsc.zip http://forums.winamp.com/attachment.php?attachmentid=49436&stc=1&d=1328559075


code:
unzip -u installsc.zip
chmod 755 installsc.sh
./installsc.sh

Attached Files
File Type: zip installsc.zip (4.9 KB, 1561 views)
thinktink is offline   Reply With Quote
Old 8th February 2012, 04:19   #17
Cathrionapal999
Junior Member
 
Join Date: Jan 2012
Posts: 1
Kindly help me

Can not write back , but I have a crooked site is displayed in the browser, mozilla, give advice why is that?
Cathrionapal999 is offline   Reply With Quote
Old 13th February 2012, 02:12   #18
pknradio
Junior Member
 
Join Date: Feb 2012
Posts: 1
Thinktink
Im kinda new to all of this!! i followed your script and so far so good. what do i put as the answer to this??
Enter the subdirectory (relative to this script) to install the SHOUTcast v2 tools into
pknradio is offline   Reply With Quote
Old 13th February 2012, 04:18   #19
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,970
Send a message via Skype™ to thinktink
If you don't know (or don't care) then just leave it blank and hit enter to use the default setting (which is just sc2 for the default install subdirectory.)
thinktink is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Discussions

Tags
auto, installer, linux, script, shoutcast

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump