Emby Media Server is a powerful, flexible media server solution that allows you to organize, stream, and share your digital media content across various devices. Designed with ease of use and robust functionality in mind, Emby provides a seamless experience for managing your media library, transcoding content on-the-fly, and enabling remote access. This guide will walk you through the process of installing Emby Media Server on Ubuntu 22.04, ensuring you can quickly set up and start enjoying your media from anywhere.
To start, make sure you’ve created a VPSie account if you haven’t already. Next, proceed by deploying an Ubuntu 22.04 server configured to meet your specific needs.
Once the server is deployed, SSH into the command line interface. Before installing any packages, it’s essential to update your system’s package list to ensure you have access to the latest versions. Open a terminal and run the following command:
sudo apt-get update -y
Install Emby
Emby offers a DEB file ready for installation, which you can easily download and install using the dpkg command. Follow these steps:
Download the DEB file:
First, download the DEB file for Emby with the wget command. Ensure you check the Emby download page for the latest download link.
wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.8.8.0/emby-server-deb_4.8.8.0_amd64.deb
Install the Emby media server:
Install the DEB file and then resolve any missing dependencies with the apt command.
sudo dpkg -i emby-server-deb_4.8.8.0_amd64.deb
sudo apt install -f
Start and verify the Emby server:
After installation, start and check the status of the Emby server using the following commands. Emby provides a service file (emby-server) by default, allowing easy management via the command line.
sudo systemctl start emby-server
sudo systemctl status emby-server
Verify the service port:
The default Emby service runs on port 8096. Check the open ports on your system with the following command.
ss -tulpn
Install Nginx as a reverse proxy
First, you need to install Nginx on your server. For Ubuntu, you can use the following commands:
sudo apt update
sudo apt install nginx
Next, configure Nginx to act as a reverse proxy for Emby. Create a new configuration file for your site:
sudo nano /etc/nginx/sites-available/emby
Add the following configuration to the file:
server {
listen 80;
server_name subdomain.domainname.com;
proxy_hide_header X-Powered-By;
add_header X-Xss-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=2592000; includeSubdomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header 'Referrer-Policy' 'no-referrer';
add_header Content-Security-Policy "frame-ancestors mydomain.com emby.mydomain.com;"; # Add your domain name and all subdomains listed on your cert
location / {
proxy_pass http://127.0.0.1:8096; # Local Emby IP and non-SSL port
proxy_hide_header X-Powered-By;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Next three lines allow WebSockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Replace subdomain.domainname.com with your actual domain name or IP address.
Enable the new configuration by creating a symlink to the sites-enabled directory:
sudo ln -s /etc/nginx/sites-available/emby /etc/nginx/sites-enabled/
Before restarting Nginx, test the configuration to ensure there are no syntax errors:
sudo nginx -t
Finally, restart Nginx to apply the changes:
sudo systemctl restart nginx
Access Emby Web UI
You can now access the Monit Web Interface through your browser by visiting http://your-domain.com/.
Upon reaching the page, you will be presented with options to select your language. After selecting your language, click “Next” to proceed.
Next, you’ll need to create a username and password for the admin user. Please enter your credentials below. Once done, click ‘Next‘ to proceed.
After creating the admin user, you will be prompted to set up a new library for Emby. You can configure the library settings later, so click Next to proceed.
Check your preferred metadata language and click Next to proceed.
Enable the option ‘Automatic port mapping’ and then click on Next.
Please accept the terms of use and then click ‘Next‘ to confirm.
Please click “Finish” to complete the installation.
Select the Manual Login options and you will be redirected to the Emby login page. Please enter your admin username and password, then click on “Sign In“.
In just a few steps, you’ve set up Emby Media Server on your Ubuntu 22.04 system, ready to organize and stream your media collection across devices. Whether it’s movies, music, or photos, Emby’s intuitive interface and robust features ensure a personalized media experience. Now, sit back, relax, and enjoy your favorite content at your fingertips!