3

With an Asustor NAS (such as AS7004t-i5), we can ssh into the Linux that is running in the box. But it is using sh. There is no bash, zsh, and apt-get or yum doesn't work. How do we install Bash and Zsh there?

3 Answers 3

6

As you can see in Asustor knowledge base, the system embedded is "similar to Linux but is not Linux" and the command list available it's also limited.

One option for install Linux packages can be "Entware".

I've installed this app from "App Central" and when it's finished you can install packages.

Example:

# opkg find nano to find "nano" package # opkg install nano to install "nano"

8
  • It's not redhat, it's not ubuntu, but it's 100% a linux distribution, running a Linux kernel. The hint to use Entware is correct. Thanks.
    – maxadamo
    Jan 7, 2021 at 0:32
  • If you read the post linked in my answer you can understand perfectly what means "similar to Linux but is not Linux". Is a short way to explain to not experts... Jan 8, 2021 at 7:08
  • Maybe it's not an exact explanation because "it's a minimal Linux distribution" can be better (it's better because it's exact), but someone no expert can understand perfectly and can make a choice with foundation if it's necessary or not install "Entware" or any other software. Jan 8, 2021 at 7:36
  • Angel Bonet, "similar to linux" is wrong and someone will downvote you. It's 100% Linux, no matter how big or small it is. In the 90's there were a lot of linux distribtutions fitting into 1.4MB floppies: they were Linux. Furthermore, some people says, Linux it's the kernel only. In such case, RedHat Linux, is a Linux kernel based distribution.
    – maxadamo
    Jan 8, 2021 at 23:10
  • maxadamo... you are totally free to downvote all you want. Maybe you don't want to understand my explanation about the initial doubt. I think it's totally clear, in my opinion, and if somebody read the link (you mention my answer and the link used to explain in the easiest way possible a question presented by nonopolartiy), and my answer can understand the question. Jan 10, 2021 at 15:54
2

You can change the default shell by changing your users .profile

ssh onto the box

opkg install zsh

vim .profile

if [[ -x /opt/bin/zsh ]]; then
  export SHELL=/opt/bin/zsh
  exec /opt/bin/zsh
fi

If you want to install oh-my-zsh take a look at https://github.com/usercase/oh-my-zsh/

0

Asustor uses a modified version of a full *nix distro busybox kind of like what they run on their range of routers AsusWRT Kind of its very similar..

As with AsusWRT (Busybox) Entware [optware replacement] is the way to install packages. nano etc..

If you take a look under the Asustor NAS > App Central > ..section you will see "Entware" Its with this package installed on the device you are then able to then install *.opkg packages from the registry/repo.

Alternatively, there is a side-loader available to Asustor NAS device to load .apk files not currently found in App Central.

Side-loaded .apk files via URL. This is off topic, none the less it still exists ;)

NB. For a helpful run down about this fairly undocumented package works you will find excellent info over on: Merlin's AsusWRT Firmware github repo which goes into detail on how this thing works and what useful tools can be used and it should prove a great guide for translating over into how Entware should function on Asustor NAS devices.

ASUSTOR NAS Specific Notes

Entware Wiki

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .