New installed debian

Frequently asked questions. Tutorials, tips and tricks.
swee
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0
Been thanked: 0

New installed debian

Unread post by swee »

Hello there.

I am looking for an guide/tutorial since I am not so sure about the commands in linux (Debian ).
If anyone has an guide laying around with all that is needed for a brand new installation of madsonic.
It would be much appriciated.
Excuse if my english it is not in perfect condition.
thanx in advance

/regards swee
skopo
Contributor
Contributor
Posts: 68
Joined: 07 Apr 2013, 07:48
Has thanked: 8 times
Been thanked: 16 times

Re: New installed debian

Unread post by skopo »

swee
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0
Been thanked: 0

Re: New installed debian

Unread post by swee »

Thank U for the reply.

almost the way I was looking for.
I was looking for a guide with the commands to put in the terminal window.
such as
apt-get install openjdk-6-jre

and so on
wget http://madsonic.org/download/20130718_m ... eta4XE.rpm

doesnt help me out that much I am sorry for that.
Found this wiki http://wiki.contribs.org/Madsonic-howto

but I am not able to reach the end.(meaning not able to install it all the way to the end) In windows there isnt any problems.
But wish to leave windows for linux. on the server.

/regards swee
skopo
Contributor
Contributor
Posts: 68
Joined: 07 Apr 2013, 07:48
Has thanked: 8 times
Been thanked: 16 times

Re: New installed debian

Unread post by skopo »

Would be nice to know were you get stuck.
swee
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0
Been thanked: 0

Re: New installed debian

Unread post by swee »

This the way I have gone installing Madsonic.
Been lookin over and over again. and finaly it is up and running.

This is how I did.

apt-get install openjdk-6-jre

apt-get install openjdk-7-jre

apt-get install lame

wget http://madsonic.org/download/20130718_m ... eta4XE.rpm

install 20130718_madsonic-5.0.3560.beta4XE.rpm madsonic

cd /var/Madsonic

mkdir transcode

cd transcode

ln -s /usr/bin/lame lame

Create a new .sh file somewhere. I created it in /home/film/madsonic_launcher.sh.
Copy the following, save.

#!/bin/bash
PID=""
function get_pid {
PID=`ps ax |grep java |grep Madsonic |cut -d " " -f 1`
}
function stop {
get_pid
if [ -z $PID ]; then
echo "Madsonic is not running."
exit 1
else
echo -n "Stopping Madsonic.."
kill $PID
sleep 1
echo ".. Done."
fi
}
function start {
get_pid
if [ -z $PID ]; then
echo "Starting Madsonic.."
/var/Madsonic/usr/share/madsonic/madsonic.sh
get_pid
echo "Done. PID=$PID"
else
echo "Subsonic is already running, PID=$PID"
fi
}
function restart {
echo "Restarting Madsonic.."
get_pid
if [ -z $PID ]; then
start
else
stop
start
fi
}
function status {
get_pid
if [ -z $PID ]; then
echo "Madsonic is not running."
exit 1
else
echo "Madsonic is running, PID=$PID"
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
esac

chmod +x /var/Madsonic/usr/share/madsonic/madsonic.sh

chmod +x /home/film/madsonic_launcher.sh

/home/film/madsonic_launcher.sh start

And then I got it up and running
seems I had the files in the wrong directory.

Now All I have to do is find the files on the nas but it seems it is missing.

thank U skopo for Your time ;)

/best regards swee
skopo
Contributor
Contributor
Posts: 68
Joined: 07 Apr 2013, 07:48
Has thanked: 8 times
Been thanked: 16 times

Re: New installed debian

Unread post by skopo »

Now All I have to do is find the files on the nas but it seems it is missing.
I think you need to mount nas share. http://linhost.info/2012/05/mount-a-net ... ux-ubuntu/
Post Reply