Installation & Update #
«TVLINK» releases are compiled only for «Linux».
The program uses «Streamlink» Python modules, therefore the following must be installed on the system:
- Python. The required «Python» version is specified in the release title.
- «Runtime» dependencies for «Streamlink», which you can see here.
You do not need to install «Streamlink» itself, and it is not recommended. This will cause conflicts in the program’s operation. The «Streamlink» modules are part of «TVLINK».
LibreELEC/CoreELEC #
Modified systems (ae-fork) are implied, in which all the necessary dependencies are already present. The program cannot function in the original ELEC systems.
In the system settings (“LibreELEC/CoreELEC” -> “TV services” -> “TVLINK server”), click “Enable TVLINK”. The program will be installed and started automatically.
Ubuntu/Debian/Armbian #
Remember that the corresponding version of «Python» must be installed on the system. The «Python» version is specified in the filename. For example: TVLINK-4.2.4-x86_64-python_3.12-Ubuntu.deb.
For these x86-64 architecture systems, you can download and install «TVLINK» using a deb package. Download the required file and enter the commands in the terminal:
apt install ./TVLINK-4.2.4-x86_64-python_3.12-Ubuntu.deb
systemctl start tvlink
systemctl enable tvlink
-
Armbian (aarch64) #
You can also install «TVLINK» from an archive.
For example, «Armbian Minimal/IOT Distro: Debian 12 (Bookworm)» for Amlogic S912.
«TVLINK» uses the “ping” utility. We will install it, as well as some utilities that we will need.
apt install -y mc tar bzip2 wget iputils-ping
Let’s install the dependencies for «Streamlink» (python3-streamlink). This can be done with a single command:
apt install -y $(apt-cache depends python3-streamlink | grep Depends | sed "s/.*ends:\ //; s/<.*>//" | tr '\n' ' ')
Here, the command «apt-cache depends python3-streamlink» outputs information about the dependencies of the «Streamlink» modules, and «grep, sed, tr» create a list from it that is passed to «apt install».
Let’s download and install «TVLINK».
mkdir -p /opt/tvlink
cd /opt
wget https://github.com/AlexELEC/TVLINK-Releases/releases/download/4.2.4/TVLINK-4.2.4-aarch64-python_3.11.tar.bz2 -O TVLINK.tar.bz2
tar -jxf TVLINK.tar.bz2 --directory /opt/tvlink
rm -f TVLINK.tar.bz2
Let’s run «TVLINK» to check:
root@armbian:/# /opt/tvlink/tvlink
— Starting TVLINK (version: 4.2.4) on 127.0.0.1:2020 / 192.168.1.33:2020 —
It is recommended to go to the web interface (for example: http://192.168.1.33:2020), add channels, and check their operation. Errors related to dependencies can only be seen in the terminal; they are not recorded in the «TVLINK» log.
If everything is fine, terminate «TVLINK» (Ctrl+C) and add it to the system autostart.
wget https://github.com/AlexELEC/TVLINK-Releases/raw/refs/heads/main/scripts/Ubuntu/tvlink.service -O /etc/systemd/system/tvlink.service
systemctl enable tvlink
systemctl start tvlink
OpenWRT (х86-64) #
A simple way to install the OpenWRT system for the x86-64 architecture is described here.
The «OpenWRT» version for which the program is compiled is specified in the release description.
Let’s update the package repositories and install the dependencies for the «Streamlink» module, which is included in «TVLINK». Enter the following commands sequentially in the terminal:
opkg update
opkg install python3 python3-certifi python3-chardet python3-cryptodome python3-pip python3-requests python3-six python3-lxml tar wget
python -m pip install --upgrade pip
pip install pycountry isodate pysocks
Let’s download and install «TVLINK» itself.
wget https://github.com/AlexELEC/TVLINK-Releases/releases/download/4.2.4/TVLINK-4.2.4-x86_64-python_3.11-Openwrt.tar.bz2 -O TVLINK.tar.bz2
mkdir -p /opt/tvlink
tar -jxf TVLINK.tar.bz2 -C /opt/tvlink
rm -f TVLINK.tar.bz2
Let’s check if the program works.
/opt/tvlink/tvlink
— Starting TVLINK (version: 4.2.4) on 127.0.0.1:2020 / 192.168.1.1:2020 —
It is recommended to go to the web interface (for example: http://192.168.1.1:2020), add channels, and check their operation. Errors related to dependencies can only be seen in the terminal; they are not recorded in the «TVLINK» log.
If «TVLINK» works without errors, close it (Ctrl+C). Download and add the service to autostart.
cd /etc/init.d
wget https://github.com/AlexELEC/TVLINK-Releases/raw/refs/heads/main/scripts/Openwrt/tvlink -O /etc/init.d/tvlink && chmod +x /etc/init.d/tvlink
service tvlink enable
service tvlink start
Program Update #
Read here on how to update the program.