Jump to content

Linux Setup


Luke

Recommended Posts

  • 2 weeks later...

Just switched from Debian to Ubuntu (Actually running Mediabrowser on an OpenVZ container), everything worked almost out of the box, only needed to install libsqlite3-dev / sqlite3.

 

It also fix the subtitles bug (Some lines were randomly dropped on the web client).

The only thing not working is the "web-client" from http://app.mediabrowser.tv/, I guess it have to do with my server not having a public adress, with only my 8096 port being mapped!

 

I could upload an OpenVZ template if some people are interested.

Edited by Azor
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
Guest db3

Wondering if it is possible to install it on a Raspberry Pi with raspbian and how

 

or other wise a synology nas?

Edited by db3
Link to comment
Share on other sites

thefirstofthe300

Wondering if it is possible to install it on a Raspberry Pi with raspbian and how

 

or other wise a synology nas?

 

For the raspberry pi, see: http://mediabrowser.tv/community/index.php?/topic/9571-running-server-on-raspberry-pi-yes-it-works/?hl=raspberry

 

For the synology, see: http://mediabrowser.tv/community/index.php?/topic/13890-synology-almost-working/?hl=synology

 

At this point, neither of these devices have official support from the MB dev team. The only solutions have been hacked together by the community, but that is the great thing about open source, if you want to, you can get it to work.

 

I will warn you that the Pi doesn't have the power to do ANY transcoding at all. It will only work for direct streaming content. However, the Pi should work as a client if you throw Kodi on it with the MediaBrowser plugin. See the Kodi forums for more info.

Link to comment
Share on other sites

Server log attachedattachicon.gifserverLog01092015.txt

 

why double post?  as mentioned in the other area, you should go to the unraid plugin community where phaze supports this plugin and report it there. he only comes in here once in a while so it might take a little while before he sees this.

Link to comment
Share on other sites

First of all I'd like to thank everyone involved not only with the actual development, but also with supporting other users on the forum. MBS3 looks like a truly remarkable piece of software and I like the community atmosphere.

 

There are a few things which are stopping me from converting from Plex (and I have a lifetime PlexPass, so it should tell you something about how unhappy I am with Plex recently), one of them -- I can't figure out how to make the proper start/stop script (for CentOS 6.5) from Phaze's plugin files. 

 

Are the proper start/stop scripts for Linux in the pipeline for the rpm file in the repo?

 

Another thing I wanted to ask was which will provide better performance -- running mono+MBS3.exe in the CentOS VM or running another Windows VM with the MBS3.exe? The hardware is quite old (HP N54L), I haven't ran more than one CPU-taxing VM concurrently on it yet.

Link to comment
Share on other sites

Hey stangri, I followed the same path as you (From Plex to MB3), So hopefully I can give you a couple of pointer.

 

About the starting script, I don't really know about CentOS, but those work without issue on Ubuntu.

You could try to use supervisor as a workaround to launch and keep the service running.

 

About the performance question, I haven't really benchmarked it to see which version is heavier, but my guess would be that even if the Mono version would use a little more RAM, you would lose this RAM running the Windows X.

 

Anyway, I'd recommend you to use the Ubuntu version of the software if you're planing on running it on a VM, it seems to be the most supported version right now.

Link to comment
Share on other sites

Thanks for your feedback. Well, unfortunately there're no scripts whatsoever in the CentOS build. There's a binary, but when I launch it it runs in the console, it doesn't daemonize.

 

I may have to postpone or cancel my migration tho, as there's no app available for Google TV which is my primary TV client.

Link to comment
Share on other sites

Thanks for your feedback. Well, unfortunately there're no scripts whatsoever in the CentOS build. There's a binary, but when I launch it it runs in the console, it doesn't daemonize.

 

As I said you could just use 'supervisor' (http://supervisord.org/introduction.html), it's quite easy to use, and can run a service at start and keep it running when (if) it crashes.

 

Here is a how-to on it : https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps

Link to comment
Share on other sites

First of all I'd like to thank everyone involved not only with the actual development, but also with supporting other users on the forum. MBS3 looks like a truly remarkable piece of software and I like the community atmosphere.

 

There are a few things which are stopping me from converting from Plex (and I have a lifetime PlexPass, so it should tell you something about how unhappy I am with Plex recently), one of them -- I can't figure out how to make the proper start/stop script (for CentOS 6.5) from Phaze's plugin files. 

 

Are the proper start/stop scripts for Linux in the pipeline for the rpm file in the repo?

 

Another thing I wanted to ask was which will provide better performance -- running mono+MBS3.exe in the CentOS VM or running another Windows VM with the MBS3.exe? The hardware is quite old (HP N54L), I haven't ran more than one CPU-taxing VM concurrently on it yet.

I havent had the time to make the start /stop deamon script as the one used for ubuntu doesn't work with CentOS and i am busy at the moment. 

Link to comment
Share on other sites

Thanks for your feedback. Well, unfortunately there're no scripts whatsoever in the CentOS build. There's a binary, but when I launch it it runs in the console, it doesn't daemonize.

 

I may have to postpone or cancel my migration tho, as there's no app available for Google TV which is my primary TV client.

Here is a work in progress for a init script it was working fine starting the service but stop part was giving me problems as it wasn't killing all the child subprocess.

 

I think it should work now. Some testing is in order and it can be clean up more but it worked for me on a fresh install of centos 6.6


#!/bin/bash
#Author Jose
# MediaBrowserServer daemon
 
# chkconfig: 2345 20 80
#The above indicates that the script should be started in levels 2, 3, 4, and 5, #that its start priority should be 20, and that its stop priority should be 80. 
# description: syncs two files
# Source function library.
. /etc/rc.d/init.d/functions
#Define variables
exec="/opt/MediaBrowser/MediaBrowserServer/start.sh"
prog="MediaBrowserServer"
prog_user="MediaBrowserServer"
LOCKFILE=/var/lock/subsys/$prog
pidfile=/var/run/$prog.pid
retval=0
 
start() {
    [ -x $exec ] || exit 5
    echo -n $"Starting $prog: "
    # use daemon to start the service 
    daemon --user $prog_user $exec &
    PID1=$!
    echo $PID1 > $pidfile 
    retval=$?
    [ $retval -eq 0 ] && touch $LOCKFILE
    echo
    return $retval
}
 
stop() {
    echo -n $"Stopping $prog: "
    # use kill proc to stop the service
    PID1=$(cat $pidfile)
    echo $PID1
    PIDMONO=$(pstree -pah $PID1 |grep mono|head -1 |cut -d "," -f 2|cut -d " " -f 1)
    killproc $prog
    retval=$?
    if [ "$PID1" -ne "0" ]
      then
      kill $PIDMONO
    fi       
    echo
    [ $retval -eq 0 ] && rm -f $LOCKFILE && rm -f $pidfile
    return $retval
}
 
restart() {
    stop
    start
}
 
reload() {
    restart
}
 
force_reload() {
    restart
}
 
rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}
 
rh_status_q() {
    rh_status >/dev/null 2>&1
}
 
 
case "$1" in
    start)
        #Only if not running,  start
        rh_status_q && echo "process already started" && exit 0
        $1
        ;;
    stop)
        # Only if service is running stopt
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
 
esac
exit $?
Edited by jose
Link to comment
Share on other sites

With the mono version, on Debian Wheezy, some jpgs are not populating.  Is there somewhere I can grab these???  It is producing a lot of primary image missing errors.

 

landscape.jpg

poster.jpg

 

files for these paths...

./mediabrowser//ImagesByName/MusicGenre/Alternative
./mediabrowser/ImagesByName/MusicGenre/Dance & DJ
./mediabrowser/ImagesByName/MusicGenre/Electronica
./mediabrowser/ImagesByName/MusicGenre/Soul And R&B

Edited by tekkb
Link to comment
Share on other sites

 

Here is a work in progress for a init script it was working fine starting the service but stop part was giving me problems as it wasn't killing all the child subprocess.

 

I think it should work now. Some testing is in order and it can be clean up more but it worked for me on a fresh install of centos 6.6

 

Did a copy-paste and then chmod +x and I'm getting a lot of errors.

# /etc/init.d/mediabrowserserver start
/etc/init.d/mediabrowserserver: line 4:  : command not found
/etc/init.d/mediabrowserserver: line 7: 4,: command not found
/etc/init.d/mediabrowserserver: line 8: priority: command not found
/etc/init.d/mediabrowserserver: line 19:  : command not found
/etc/init.d/mediabrowserserver: line 32:  : command not found
/etc/init.d/mediabrowserserver: line 50:  : command not found
/etc/init.d/mediabrowserserver: line 55:  : command not found
/etc/init.d/mediabrowserserver: line 59:  : command not found
/etc/init.d/mediabrowserserver: line 63:  : command not found
/etc/init.d/mediabrowserserver: line 69:  : command not found
/etc/init.d/mediabrowserserver: line 73:  : command not found
/etc/init.d/mediabrowserserver: line 74:  : command not found
/etc/init.d/mediabrowserserver: line 76: syntax error near unexpected token ` '
/etc/init.d/mediabrowserserver: line 76: `    start)'
Link to comment
Share on other sites

 

Did a copy-paste and then chmod +x and I'm getting a lot of errors.

# /etc/init.d/mediabrowserserver start
/etc/init.d/mediabrowserserver: line 4:  : command not found
/etc/init.d/mediabrowserserver: line 7: 4,: command not found
/etc/init.d/mediabrowserserver: line 8: priority: command not found
/etc/init.d/mediabrowserserver: line 19:  : command not found
/etc/init.d/mediabrowserserver: line 32:  : command not found
/etc/init.d/mediabrowserserver: line 50:  : command not found
/etc/init.d/mediabrowserserver: line 55:  : command not found
/etc/init.d/mediabrowserserver: line 59:  : command not found
/etc/init.d/mediabrowserserver: line 63:  : command not found
/etc/init.d/mediabrowserserver: line 69:  : command not found
/etc/init.d/mediabrowserserver: line 73:  : command not found
/etc/init.d/mediabrowserserver: line 74:  : command not found
/etc/init.d/mediabrowserserver: line 76: syntax error near unexpected token ` '
/etc/init.d/mediabrowserserver: line 76: `    start)'

 i think i may changed something while copying it here,

You shouldn't need to do a copy / paste anymore a new script was added to the rpm release doing a

yum update MediaBrowserServer

should be enough.

Or use the one in the fedora/centos forum the one here is outdated

Link to comment
Share on other sites

  • 2 weeks later...
thefirstofthe300

Hello, are these install instruction still valid for Linux Mint 17.1? Thx

 

Yes.

 

Linux Mint 17 should work the exact same way that Ubuntu does so just follow those instructions.

Link to comment
Share on other sites

  • 4 months later...
  • 6 months later...
AdamBearWA

I'm getting the following errors when trying to install on ubuntu 15.04. Seems it doesn't like a couple of the packages. Any ideas? I tried a massive purge and a handful of other suggestions from this and other forums without any luck.

# apt-get install emby-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libembymagickcore-6.q8-2 libembymagickwand-6.q8-2
The following NEW packages will be installed:
  emby-server libembymagickcore-6.q8-2 libembymagickwand-6.q8-2
0 to upgrade, 3 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/11.7 MB of archives.
After this operation, 45.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 147580 files and directories currently installed.)
Preparing to unpack .../libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickcore-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickCore-6.Q8.so.2.0.0', which is also in package libmagickcore-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickwand-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickWand-6.Q8.so.2.0.0', which is also in package libmagickwand-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package emby-server.
Preparing to unpack .../emby-server_3.0.5782.0_all.deb ...
Unpacking emby-server (3.0.5782.0) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb
 /var/cache/apt/archives/libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Edit: seems to be the libmagickwand-6.q8-2 install that's broken.

# apt-get install libembymagickcore-6.q8-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libembymagickcore-6.q8-2
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/1,367 kB of archives.
After this operation, 5,506 kB of additional disk space will be used.
(Reading database ... 149865 files and directories currently installed.)
Preparing to unpack .../libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickcore-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickCore-6.Q8.so.2.0.0', which is also in package libmagickcore-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Edited by AdamN
Link to comment
Share on other sites

geaves

 

I'm getting the following errors when trying to install on ubuntu 15.04. Seems it doesn't like a couple of the packages. Any ideas? I tried a massive purge and a handful of other suggestions from this and other forums without any luck.

# apt-get install emby-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libembymagickcore-6.q8-2 libembymagickwand-6.q8-2
The following NEW packages will be installed:
  emby-server libembymagickcore-6.q8-2 libembymagickwand-6.q8-2
0 to upgrade, 3 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/11.7 MB of archives.
After this operation, 45.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 147580 files and directories currently installed.)
Preparing to unpack .../libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickcore-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickCore-6.Q8.so.2.0.0', which is also in package libmagickcore-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickwand-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickWand-6.Q8.so.2.0.0', which is also in package libmagickwand-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package emby-server.
Preparing to unpack .../emby-server_3.0.5782.0_all.deb ...
Unpacking emby-server (3.0.5782.0) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb
 /var/cache/apt/archives/libembymagickwand-6.q8-2_8%3a6.9.2-8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Edit: seems to be the libmagickwand-6.q8-2 install that's broken.

# apt-get install libembymagickcore-6.q8-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libembymagickcore-6.q8-2
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/1,367 kB of archives.
After this operation, 5,506 kB of additional disk space will be used.
(Reading database ... 149865 files and directories currently installed.)
Preparing to unpack .../libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb ...
Unpacking libembymagickcore-6.q8-2:i386 (8:6.9.2-8) ...
dpkg: error processing archive /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb (--unpack):
 trying to overwrite '/usr/lib/i386-linux-gnu/libMagickCore-6.Q8.so.2.0.0', which is also in package libmagickcore-6.q8-2:i386 8:6.9.1-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

I replied to your post here




			
		
Link to comment
Share on other sites

  • 10 months later...
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...