Install on TerraMaster x86 64 NAS devices - Entware/Entware GitHub Wiki

These installation instructions are copied from a thread created by MaitreKuc on the TerraMaster forum. Here's a link to the thread: original thread on TerraMaster forum

This has been tested and works as of November 21st, 2020 on the then current TNAS linux environment running on a TerraMaster F2-221 NAS (x86-64 bit running on an Intel Core-i3)

1 - Connect in ssh to your NAS, as root : (Under Windows 10)

ssh root@YOUR_NAS_IP -p 9222

Note, if you use PuTTY, open an SSH session using the internal network IP address of your NAS, and specify port 9222 (the TerraMaster default), then enter the username "root" when prompted, and your TNAS administrator password when prompted.
You must enable SSH in the TNAS settings or this won't work.

(9222 is the default port)

2 -Run the command

ln -s /usr/bin/ter_wget /usr/bin/wget

3 -Create the directory

mkdir -p /mnt/md0/@entware/opt

4 - Run the command

ln -s /mnt/md0/@entware/opt /opt

5 -Run the command

wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh

Normally everything is OK !

7 - Run the command

ln -s /opt/bin/opkg /usr/bin/opkg

8 - Now you have to modify the PATH, it is in "/etc/profile", so run the command

vi /etc/profile

to the line where is " export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ", add at the end " :/opt/bin:/opt/sbin " You should have " export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin "

9 - Save and exit

10 - Run the command

source /etc/profile

11 - Restart your NAS

12 - Reconnect in ssh and run the command

opkg update

13 - And finally to test, we install nano (text editor)

opkg install nano

14 - To uninstall

opkg remove nano