Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nano in unRAID + Mac Terminal

Featured Replies

Was reading this and got Nano installed

http://lime-technology.com/forum/index.php?topic=5558.0

 

I've got this in my GO script

 

installpkg /boot/packages/nano-2.2.4-i486-1.txz

 

but when I go to launch Nano while SSH'd in using Terminal on Mac, I get the following error:

 

Error opening terminal: xterm-color.

 

Reading up on this error, I thought Lion would fix it since it now supported 256 color term but nope:

 

Error opening terminal: xterm-256color.

 

This has to be a small setting I'm missing as it works on the box directly.  Anyone know?  Thanks.

  • 3 weeks later...

After you ssh into your UnRAID box, type:

export TERM=xterm

 

Then you should be able to run nano.

After you ssh into your UnRAID box, type:

export TERM=xterm

 

Then you should be able to run nano.

or, on your mac, set "terminal" to emulate "xterm" instead of xterm-color/
  • Author

After you ssh into your UnRAID box, type:

export TERM=xterm

 

Then you should be able to run nano.

 

Thx this worked! 

 

Joe L. - setting it to just xterm came up with the same error but I may have had to restart Terminal (which I can't do right now, preclearing a drive)

After you ssh into your UnRAID box, type:

export TERM=xterm

 

Then you should be able to run nano.

or, on your mac, set "terminal" to emulate "xterm" instead of xterm-color/

 

I use terminal to connect to a number of different systems and don't like have my terminal emulation type defined in my Mac's Terminal.app preferences.  Rather, I prefer to setup my terminal emulation on the system that I'm logging into.  For UnRAID, I created a script called 'create_bash_profile.sh' which includes the following:

##############################################################################
# set the terminal type for any future login by the root user
echo "export TERM=xterm" >> /root/.bash_profile
##############################################################################

I then added that script to my go config file:
##############################################################################
# Run my scripts
/boot/scripts/create_bash_profile.sh
##############################################################################

Now, any time I reboot my system (or run my go script), a .bash_profile is created for the root user.  Whenever I log in as the root user the .bash_profile script is run and sets up my terminal emulation type.  yeah.

 

Of course, you can add other useful things in the script as well.

 

 

Mac users, I highly recommend using this free terminal replacement:

 

http://www.iterm2.com

 

 

  • Author

Mac users, I highly recommend using this free terminal replacement:

 

http://www.iterm2.com

 

 

 

Excellent.  Never saw that before, gonna check it out.  Thx.

  • 4 weeks later...

If you still want to use the Mac Terminal, you can more simply go to Preferences->Settings->Advanced and change "Declare Terminal as: " to xterm, so you don't have to type "export TERM=xterm" each time you login.

All you need to do is install ncurses, now doing this on all my linux builds.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.