NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

kiwi1969's avatar
kiwi1969
Aspirant
Oct 31, 2011

xterm-256color support on NV+

Hi,

I was trying to get around this since OSX Lion defaults to $TERM=xterm-256color
One workaround posted somewhere, was to configure Terminal in OSX to use xterm-color when connecting to the ReadyNAS. The problem with this is that you only get 8 colors for all connections to any system (unless you change it each time)

My first fix was to copy the ReadyNAS xterm-color to a new file xterm-256-color, and setup a required symlink. This worked, but still wasn't ideal.

The proper fix is to install ncurses-term to get a heap more terminal types, then copy to the correct place, and add a symlink into where the package copy the files (as that's not where the ReadyNAS likes those files to be)
As it installs a lot of terminal definitions into /usr/share/terminfo, I actually uninstalled after copying.

From memory, this is what I did from a SSH to the ReadyNAS :
(Note:I upgraded the ncurses-base and ncurses-bin just in case there was a version conflict potential, and you may get away with just ncurses-term)

apt-get install ncurses-base
apt-get install ncurses-bin
apt-get install ncurses-term
mv /usr/share/terminfo/x/xterm-256color /etc/terminfo/x/xterm-256color
apt-get remove ncurses-term
cd /usr/share/terminfo/x
ln -s /etc/terminfo/x/xterm-256color

1 Reply

Replies have been turned off for this discussion
  • You will also need to edit .bashrc to enable the colors (lines already exist, just need to be uncommented)
    The next login will then be colorized.
    You will need to redo this each firmware upgrade!


    export LS_OPTIONS='--color=auto'
    eval `dircolors`
    alias ls='ls $LS_OPTIONS'
    alias ll='ls $LS_OPTIONS -l'
    alias l='ls $LS_OPTIONS -lA'

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More