Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Emby in iocage

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

Zwck

Senior Member
Joined
Oct 27, 2016
Messages
372
Hey all,

I installed emby in an iocage and was wondering if this is the correct way or if i missed some important steps, especially when it comes to the FFMPEG compiling. Here is what i have done.

#create emby iocage

Code:
iocage create --name=emby_iocage ip4_addr="igb0|192.168.0.100/24" -r 11.1-RELEASE
iocage start emby_iocage


#add storage
Code:
iocage fstab -a emby_iocage /mnt/volume01/multimedia /multimedia01 nullfs rw 0 0
iocage fstab -a emby_iocage /mnt/volume02/multimedia /multimedia02 nullfs rw 0 0
iocage fstab -a emby_iocage /mnt/volume01/db/ssl/user-certs /certs nullfs rw 0 0



Code:
iocage console emby_iocage
pkg install emby-server


# Update FreeBSD ports tree modify installation based on emby recomendations
Code:
portsnap fetch update
portsnap extract

# Remove default FFMpeg package
Code:
pkg delete -f ffmpeg

# Reinstall FFMpeg from ports with lame option enabled
Code:
cd /usr/ports/multimedia/ffmpeg

# Install ffmpeg build dependencies
Code:
pkg install `make build-depends-list | tr '\n' ' ' | sed 's/\/usr\/ports\///g' | sed 's/audio\/lame //g'`

make config
# enable the lame option
# enable the SMB option
# enable the ass subtitles option
# enable the opus subtitles option
# enable the x265 subtitles option
Code:
make install clean

# hit enter a 1000s of times


Add the correct user to emby to start and access the files correctly

Code:
service emby-server onestop
pw useradd -n zwck -u 1000 -d /nonexistent -s /usr/sbin/nologin
pw usermod zwck -n emby -u 1000
pw usermod zwck -n emby -g 1000
(where ### is the UID and GID of the user I want it to be)
chown -R emby:emby /var/db/emby-server
sysrc 'emby_server_user=zwck'
service emby-server onestart



Code:
chown -R zwck:zwck /var/db/emby-server
sysrc 'emby_server_user=zwck'


To get the current version of emby and not the quarterly once personal fancy

To Update always to the newest version and not the quarterly! Add folder pkg/repos/
edit /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}

to update
Code:
pkg update
pkg upgrade
 

diedrichg

Neophyte Sage
Joined
Dec 4, 2012
Messages
1,294
@Zwck Did this procedure work? How has it been? Have you been able to update to the latest version?
 
Top