System: Orangepizero2_3.0.6_debian_bullseye_server_linux5.16.17
Goal: Build a personal media center
Note: Due to downloading issues on Orange Pi, all software installations in this tutorial are done manually.
Mounting the Disk#
This step is necessary if the disk is migrated from a Windows system. If it is an empty disk, you can skip this step.
Install the ntfs-3g package:
sudo apt-get install ntfs-3g
After successful installation, repair the corresponding ntfs partition:
sudo ntfsfix /dev/sda1
Create a mount directory:
sudo mkdir /mnt/data1
Mount the disk:
mount -t ntfs-3g /dev/sda1 /mnt/data1
Configure automatic mounting:
sudo vim /etc/fstab
Add the following line at the end of the file: /dev/sda1 /mnt/data1 ntfs-3g default 0 0
Alist Installation#
Download the corresponding software (alist-linux-arm64.tar.gz) from the official repository.
Upload it to Orang Pi using ssh:
scp /path/to/alist-linux-arm64.tar.gz root@yourIpAddress:/path/you/want/to/
Extract the downloaded file to get the executable:
tar -zxvf alist-xxxx.tar.gz
Grant execute permission:
chmod +x alist
Create the /usr/lib/systemd/system/alist.service file:
vim /usr/lib/systemd/system/alist.service
# Copy the following content
[Unit]
Description=alist
After=network.target
[Service]
Type=simple
WorkingDirectory=path_of_alist
ExecStart=path_of_alist/alist server
Restart=on-failure
[Install]
WantedBy=multi-user.target
Execute systemctl daemon-reload
to reload the configuration.
Configure auto-start on boot: systemctl enable alist
.
Start the service: systemctl start alist
.
Get the login information: ./alist admin
.
Installing qbittorrent#
Download the software package from here.
Upload it.
Grant execute permission: chmod 700 /path/to/noxfile
.
Configure the daemon:
vim /etc/systemd/system/qbt.service
# Configuration content
[Unit] Description=qBittorrent Service After=network.target nss-lookup.target
[Service] UMask=000 ExecStart=/path/to/file --profile=/usr/local/etc
[Install] WantedBy=multi-user.target
Execute systemctl daemon-reload
to reload the configuration.
Configure auto-start on boot: systemctl enable qbt
.
Start the service: systemctl start qbt
.
Deploying Jellyfin#
First, download the software package from here.
Download ffmpeng, web, and server.
Create a directory for Jellyfin on Orange Pi:
sudo mkdir /opt/jellyfin
cd /opt/jellyfin
Upload it using ssh to the directory you just created:
scp path/to/jellyfin-web_10.8.9-1_all.deb root@youripaddress:/opt/jellyfin
Update the system:
apt update
Install the required dependencies:
apt install at libsqlite3-0 libfontconfig1 libfreetype6 libssl1 -y
Install the software package:
dpkg -i jellyfin-*.deb
If there is an error, automatically repair it:
apt -f install -y
After installation, check the service status:
service jellyfin status
Set it to start on boot:
systemctl enable jellyfin