Jump to content

Quick Question...2 Emby's 1 Ubuntu


EODCrafter
Go to solution Solved by mastrmind11,

Recommended Posts

EODCrafter

How can I install 2 Emby Servers on 1 Ubuntu like you can in windows with the stand-alone package? My Live TV has restriction of only 1 login for Stream, so if someone is watching TV in the Den, I want to watch in the bedroom. Sry if this is simple, but i'm not advanced on Linux.

 

Edit: I'm thinking create another user and use that to install Emby? Doesn't sound like a very elegant solution, but I think Emby creates it's own user group...hmmmm.

Edited by EODCrafter
Link to comment
Share on other sites

I think this will be difficult, but if your live tv provider allow allows one stream then I don't see how a second server will help. 

Link to comment
Share on other sites

EODCrafter

I think this will be difficult, but if your live tv provider allow allows one stream then I don't see how a second server will help. 

Because of the way the m3u tuner works. It would be real sloppy to have 2 m3u's loaded on 1 server so a second server is the best solution running on port 8097. This is how the m3u is set up....

M3u 1st Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob1/55533.m3u8

M3u 2nd Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob2/55533.m3u8

To have 2 Channel 2's on 1 server is just not ideal. I really need 2 Servers on 1 Ubuntu please! Keep in mind there are 7-8 hundred channels in each package.

Edited by EODCrafter
Link to comment
Share on other sites

mastrmind11

Because of the way the m3u tuner works. It would be real sloppy to have 2 m3u's loaded on 1 server so a second server is the best solution running on port 8097. This is how the m3u is set up....

M3u 1st Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob1/55533.m3u8

M3u 2nd Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob2/55533.m3u8

To have 2 Channel 2's on 1 server is just not ideal. I really need 2 Servers on 1 Ubuntu please! Keep in mind there are 7-8 hundred channels in each package.

Simple assuming you don't want them sharing state (which is also possible but I think you're trying to avoid that?)  In any case, just spin up 2 Emby docker containers w/ different configs.

Link to comment
Share on other sites

EODCrafter

Simple assuming you don't want them sharing state (which is also possible but I think you're trying to avoid that?)  In any case, just spin up 2 Emby docker containers w/ different configs.

yes this sounds like what I need but "Docker Containers"? Do you have a example? I'm not famaliar with Docker Containers in Ubuntu 18.04. Like this?

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

Edited by EODCrafter
Link to comment
Share on other sites

mastrmind11

yes this sounds like what I need but "Docker Containers"? Do you have a example? I'm not famaliar with Docker Containers in Ubuntu 18.04. Like this?

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

yes.  that's how you get docker on your server.  then you do this: https://hub.docker.com/r/emby/embyserver/ twice, specifying different ports and config for the 2nd instance.  If you specify the same config location, you will get collisions between the servers.  Nice thing about docker is if you screw something up, you just delete the container and start another one.  GL

  • Like 1
Link to comment
Share on other sites

EODCrafter

Ok...I think I created the instance.....

 
1. docker run -it --restart unless-stopped --network host --name emby2 -e TZ="America/Chicago" -v /home/steve/emby/config2:/config -v /home/steve/google/Emby:/google -d emby/embyserver:beta

2. docker run -it --restart unless-stopped --network host --name emby -e TZ="America/Chicago" -v /home/steve/emby/config:/config  -v /home/steve/google/Emby:/google -d emby/embyserver:beta

Other useful commands

docker ps -a
docker container prune
docker volume prune
docker system prune --volumes

EDIT: Corrected with actual command used for Docker Run....Thanks @@mastrmind11

Edited by EODCrafter
Link to comment
Share on other sites

  • Solution
mastrmind11

Ok...I think I created the instance.....

steve@steve:~$ docker run -d \
> --volume /home/steve/embybedroom/programdata:/config \
> --volume /home/steve/embybedroom/share1:/mnt/share1 \
> --volume /home/steve/embybedroom/share2:/mnt/share2 \
> --device /dev/dri/renderD128 \
> --publish 8097:8097 \
> --publish 8921:8921 \
> --env UID=1000 \
> --env GID=100 \
> --env GIDLIST=100 \
> emby/embyserver:latest
f7bea8111220089d218c218f17bb83d97ce7414ed830ecfb6370200c90635f14

Now how can i get into this instance? I tried the ip:port on my browser but it says refused to connect.....

 

EDIT: Got it...Weird, it still runs on port 8096 in the browser but its a different server IP...Sry, I'm a newbie  :)

 

Nvrmind...its just using the Docker IP to connect to my first instance....

Inside the docker it can continue to run on 8096, since it's in a container, so 8097:8096 in your config.  Also, if you enable host mode in the run command, it'll use your server IP and not docker's.  https://docs.docker.com/network/network-tutorial-host/

  • Like 1
Link to comment
Share on other sites

mastrmind11

glad it worked out for you.  I've never actually tried w/ Emby, but it's kinda one of the main reasons Docker was created.  Enjoy.

  • Like 1
Link to comment
Share on other sites

Because of the way the m3u tuner works. It would be real sloppy to have 2 m3u's loaded on 1 server so a second server is the best solution running on port 8097. This is how the m3u is set up....

 

M3u 1st Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob1/55533.m3u8

M3u 2nd Account

#EXTINF:0,channel-id="2" WKRNDT
http://get.tv.fast/live/BillGates@[member="gmail"].com/<password>Blob2/55533.m3u8
 
To have 2 Channel 2's on 1 server is just not ideal. I really need 2 Servers on 1 Ubuntu please! Keep in mind there are 7-8 hundred channels in each package.

But it's the same m3u stream. If your provider only allows one connection I don't see how this will get around that.

Link to comment
Share on other sites

EODCrafter

But it's the same m3u stream. If your provider only allows one connection I don't see how this will get around that.

Its not the same Stream @@Luke....I purchase access to 2 and it has a separate password (blob1 & blob2) for each access with my login BillGates ex. If I tried to get the stream blob1 while someone was watching in the livingroom it would not connect or probably disconnect them so i connect to the stream blob2. Actually it doesn't matter what stream they are watching because you cannot access 2 streams on the same account twice. This really sucks when it comes to your PVR feature cause with this service, as good as it is, I cannot record one channel while watching another unless I use another account.

 

 

M3u 1st Account

 

#EXTINF:0,channel-id="2" WKRNDT

http://get.tv.fast/live/BillGates@.com/<password>Blob1/55533.m3u8

 

M3u 2nd Account

 

#EXTINF:0,channel-id="2" WKRNDT

http://get.tv.fast/live/BillGates@.com/<password>Blob2/55533.m3u8

Edited by EODCrafter
Link to comment
Share on other sites

EODCrafter

One last question....

Is it safe to remove /var/lib/emby or is this still in use by Docker? I have removed the dpkg but I'm not sure if Docker still uses that library as a shared resource.....

Link to comment
Share on other sites

mastrmind11

One last question....

Is it safe to remove /var/lib/emby or is this still in use by Docker? I have removed the dpkg but I'm not sure if Docker still uses that library as a shared resource.....

Go ahead.  Anything the container uses is stored in path you set for /config

Link to comment
Share on other sites

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...