How to install Bash and Zsh on Asustor's NAS Linux?

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?


Solution 1:

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"

Solution 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/