New installed debian

Frequently asked questions. Tutorials, tips and tricks.

New installed debian

Unread postby swee » 04 Oct 2014, 23:01

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
swee
 
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0 time
Been thanked: 0 time

Re: New installed debian

Unread postby skopo » 05 Oct 2014, 07:38

Easiest way


Install Java
http://alexander.holbreich.org/2011/11/ ... on-debian/

Install Flash

https://wiki.debian.org/FlashPlayer/#Installation

Download .deb
viewtopic.php?f=34&t=1200

Install

set up with "etc/default/madsonic"
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: New installed debian

Unread postby swee » 05 Oct 2014, 10:53

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
swee
 
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0 time
Been thanked: 0 time

Re: New installed debian

Unread postby skopo » 05 Oct 2014, 12:26

Would be nice to know were you get stuck.
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times

Re: New installed debian

Unread postby swee » 05 Oct 2014, 17:30

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
swee
 
Posts: 3
Joined: 06 Mar 2014, 09:26
Has thanked: 0 time
Been thanked: 0 time

Re: New installed debian

Unread postby skopo » 06 Oct 2014, 06:31

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-network-share-in-linux-ubuntu/
skopo
Contributor
Contributor
 
Posts: 69
Joined: 07 Apr 2013, 07:48
Has thanked: 11 times
Been thanked: 20 times


Return to Info

Who is online

Users browsing this forum: No registered users and 1 guest

cron