## Prerequisites:
* You set up the master following Master-Install.md and have the information reddy
* A Clean install of ubuntu linux with ssh-server enabled
* The media folder accessible on the same location as the jellyfin server

## Step 1: Setting up the user
```
mkdir -p /var/lib/jellyfin/.ssh
echo "<JelUser>" >> /etc/passwd
echo "<JelGroup>" >> /etc/group
echo "jellyfin:*:17928:0:99999:7:::" >> /etc/shadow
```
Reboot the system just to make sure changes are piked up

```
echo '<MasterPubKey>' >> /var/lib/jellyfin/.ssh/authorized_keys
chmod 755 -R /var/lib/jellyfin/
chown -R jellyfin:jellyfin /var/lib/jellyfin/
```

## Step 2: setting up the Transcode temp folder
if you are not using NFS make sure the folder is mounted to "/var/lib/jellyfin/transcoding-temp" and skip the rest of step 2

### Setting up NFS Client
```
apt install nfs-common -y
mkdir -p /var/lib/jellyfin/transcoding-temp
chmod 777 /var/lib/jellyfin/transcoding-temp
echo '<MasterIP>:/var/lib/jellyfin/transcoding-temp /var/lib/jellyfin/transcoding-temp nfs defaults,vers=3,sync 0 0' >> /etc/fstab
sudo mount -a
```

## Step 3: Install the jellyfin version of ffmpeg
```
apt install apt-transport-https -y
add-apt-repository universe -y
wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo apt-key add -
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu $( lsb_release -c -s ) main" >> /etc/apt/sources.list.d/jellyfin.list
apt update
apt install jellyfin-ffmpeg -y
```
## Done
Continue reading "Master-Install.md"