Log inSign up

Setting up Emby Server for private streaming

Download the current emby-server-deb package from the official Emby releases page, install it with sudo apt install ./emby-server-deb_*.deb and finish the wizard on port 8096. A Caddy reverse proxy then gives you an automatic HTTPS address. Since a VPS here has no graphics card, prepare files that your devices play natively and let Emby serve them by direct play.

Topic: Media and streaming · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

How much server does Emby need?

Emby is light when it only reads files and sends them to clients: 2 GB of memory and two vCPUs handle a personal library, while 4 GB gives the metadata and thumbnail jobs more breathing room. The disk is the real limit, because media sits on the local SSD or NVMe of the plan, so size the plan from your library and leave 15 percent free for metadata and growth.

Transcoding is the expensive part. Without a GPU, the server converts video on its shared vCPUs, and one HD transcode can saturate a small plan. Treat transcoding as a fallback and plan for direct play. Make sure everything you upload is content you have the right to stream.

How do you install the Emby package?

Emby ships a ready .deb for Debian and Ubuntu on its GitHub release page instead of an APT repository. The snippet below asks the GitHub API for the newest stable tag and downloads the matching amd64 package.

sudo apt update
sudo apt install -y curl jq
VER=$(curl -fsSL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | jq -r .tag_name)
echo "$VER"
curl -fLO "https://github.com/MediaBrowser/Emby.Releases/releases/download/${VER}/emby-server-deb_${VER}_amd64.deb"
sudo apt install -y "./emby-server-deb_${VER}_amd64.deb"

Installing with apt rather than dpkg -i resolves any dependencies automatically. The package bundles its own FFmpeg build, creates an emby system user and enables the emby-server unit. Because there is no repository, upgrades repeat the same steps with the newer file.

How do you check that Emby is listening?

Confirm the unit, the installed version and the port.

systemctl status emby-server --no-pager
dpkg -l emby-server | tail -n 1
sudo ss -tlnp | grep -E '8096|8920'
curl -s http://127.0.0.1:8096/emby/System/Info/Public

The JSON reply includes Version and ServerName. Program data, including the database, plugins and logs, is stored under /var/lib/emby, which is the folder to back up. Port 8920 only answers once you load your own certificate into Emby, which the proxy approach below makes unnecessary.

How do you prepare folders for your library?

Keep each library in its own folder, readable by the emby user, and upload from your computer.

sudo mkdir -p /srv/emby/movies /srv/emby/series
sudo chown -R deploy:emby /srv/emby
sudo chmod -R 2775 /srv/emby
# from your own computer
rsync -avP ./Series/ deploy@198.51.100.24:/srv/emby/series/

Emby identifies titles from names such as Film Name (2021).mp4 and Series Name/Season 1/Series Name - S01E03.mkv. A tidy structure saves many manual corrections later. See the rsync guide for bandwidth limits and resuming.

How do you serve Emby over HTTPS with Caddy?

Caddy obtains and renews certificates on its own, which keeps the proxy to three lines. Create an A and AAAA record for emby.example.net, install Caddy from its official repository as shown in Caddy HTTPS, then write the site block.

sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF'
emby.example.net {
    reverse_proxy 127.0.0.1:8096
}
EOF
caddy validate --config /etc/caddy/Caddyfile
sudo systemctl reload caddy
curl -sI https://emby.example.net | head -n 1

Caddy forwards WebSocket traffic and the usual forwarding headers by default. In Emby, open Settings, Network and set the external domain to emby.example.net, the public HTTPS port to 443, and add 127.0.0.1 as a trusted proxy so logs show real client addresses.

What should the firewall allow?

Expose SSH and the web ports, and keep the Emby ports private so every visitor goes through TLS.

sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enable
sudo ufw status

Port 80 must stay open for certificate renewals. Emby also advertises itself over UDP for local discovery, which has no purpose on a server in a data centre. For the nftables version of this policy, read the firewall tutorial.

How do you finish setup and create users?

Visit https://emby.example.net. The wizard asks for a display language, the first user (this one is the administrator), and your libraries: choose the content type, add the folder, and set the metadata language and country. Turn off the option that downloads images into media folders if you prefer to keep originals untouched.

Create a separate user for each viewer under Settings, Users, give them access only to the libraries they need, and set a parental rating limit where it helps. Keep the admin account for administration only.

How do you keep playback on direct play?

Match files to clients and stop the server from shrinking streams.

  • Use H.264 or HEVC video with AAC or AC3 audio; MP4 and MKV containers suit most apps. Convert outliers once with FFmpeg before uploading.
  • Under Settings, Users, Media playback, raise the internet streaming bitrate limit above your highest file bitrate.
  • Prefer SRT subtitles. Image subtitles force burn-in, which means a transcode.
  • In Settings, Transcoding, lower the thread count so a fallback transcode cannot consume every vCPU.

The Activity view on the dashboard reports the play method of every session.

How do upgrades and backups work?

Check the release page for a newer tag, then rerun the download and install lines; your data in /var/lib/emby stays put. For a backup, stop the server first so the database is consistent:

sudo systemctl stop emby-server
sudo tar -czf /root/emby-data.tar.gz -C /var/lib emby
sudo systemctl start emby-server

Copy the archive off the server with scp, or rely on the daily backup add-on described in daily backups.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
S2-4balanced memory and SSD for a family library2 vCPU, 4 GB RAM, 80 GB SSD$12.00/mo$72.00 for 6 months
A2-4NVMe for faster metadata scans2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about Emby server

Is Emby free?

The server is free to run. An optional Emby Premiere subscription unlocks extra features in the server and some apps; check the vendor's current list before buying.

Can Emby and Jellyfin run on the same server?

Yes, if they listen on different ports. Both default to 8096, so change one of them in its network settings and give each its own domain in the proxy.

Why is a file transcoding when the client should support it?

Usually the audio codec, a subtitle format or a bitrate limit triggers it. The dashboard activity view names the reason; fix that part of the file or raise the limit.

Does Emby support hardware transcoding here?

No. There is no GPU on our plans, so only software transcoding is available, which is why direct play matters.

How do I reset a forgotten admin password?

Emby offers a forgot password flow that writes a PIN file into /var/lib/emby when requested from the server itself. Read it with sudo ls /var/lib/emby and follow the instructions in the web page.