[TUTO] Install Entware (opkg)

For developers only! Third-party developers are welcome to join us! Discussion on apps, protocols, APIs, specifications, and more.
Post Reply
User avatar
MaitreKuc
Posts: 6
Joined: 06 Aug 2020, 03:43

[TUTO] Install Entware (opkg)

Post by MaitreKuc » 13 Sep 2020, 23:39

Hello everyone,

I tried to install pip3 on my NAS F2-220, but there was a problem preventing its installation.
I had tried Xpenology some time ago and used Entware to install other packages than those available on the official store.
So I saw if I could install it under TOS.
And it works, only on X86_64, I don't have an ARM NAS .

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

Code: Select all

ssh root@YOUR_NAS_IP -p 9222
(9222 is the default port)

2 -Run the command

Code: Select all

ln -s /usr/bin/ter_wget /usr/bin/wget
3 -Create the directory

Code: Select all

mkdir -p /mnt/md0/@entware/opt
4 - Run the command

Code: Select all

ln -s /mnt/md0/@entware/opt /opt
5 -Run the command

Code: Select all

wget -O - http://bin.entware.net/x64-k3.2/installer/generic.sh | /bin/sh
Normally everything is OK !

7 - Run the command

Code: Select all

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

Code: Select all

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

Code: Select all

source /etc/profile
11 - Restart your NAS

12 - Reconnect in ssh and run the command

Code: Select all

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

Code: Select all

opkg install nano
14 - To uninstall

Code: Select all

opkg remove nano

Source : https://github.com/Entware/Entware/wiki
List of available packages : http://bin.entware.net/x64-k3.2/

WARNING :
Normally your NAS will still work fine, but still be careful.
There is no official support for our NAS.
I did these tests on my NAS without any data, I am not responsible for any data loss.


 
NAS : F2-220

User avatar
macmpi
Posts: 85
Joined: 07 Jan 2020, 02:52

Re: [TUTO] Install Entware (opkg)

Post by macmpi » 14 Sep 2020, 18:34

hum, very interesting indeed!
Thanks for the work: hope this can be suitable on ARM too, and can gain some official support status, like on other competing platforms.
TerraMaster F2-210 under TOS 4.1.30, RAID1, Btrfs, serving Mac, Linux & Windows clients

User avatar
scavenger_ro
Posts: 1
Joined: 01 Oct 2020, 00:36

Re: [TUTO] Install Entware (opkg)

Post by scavenger_ro » 01 Oct 2020, 00:38

Could I finally install MC? I need to try this!
Many thanks!
F2-421 2TB RAID 0

User avatar
morozsm
Posts: 1
Joined: 27 Oct 2020, 11:43

Re: [TUTO] Install Entware (opkg)

Post by morozsm » 27 Oct 2020, 11:45

Hello!

Man, that's a really cool article! It fixes a lot of issues!
Thank you!

Post Reply