Using Nano Instead of Vi on Your Arduino Yun
by hzimmerman in Circuits > Arduino
4515 Views, 3 Favorites, 0 Comments
Using Nano Instead of Vi on Your Arduino Yun
![Screen Shot 2015-02-06 at 21.03.39.png](/proxy/?url=https://content.instructables.com/FYV/Z3I2/I5THUB9H/FYVZ3I2I5THUB9H.png&filename=Screen Shot 2015-02-06 at 21.03.39.png)
Call me a n00b, but I prefer using nano over vi as my default text editor. This, too, when I use ssh to access my (incredible) Arduino Yun. However, on the very basic setup of Linino on the Yun, there is no nano to be found. Just vi. Here's how to fix that!
Update the Package Manager
![Screen Shot 2015-02-06 at 20.58.16.png](/proxy/?url=https://content.instructables.com/F7R/N1KT/I5THUB9O/F7RN1KTI5THUB9O.png&filename=Screen Shot 2015-02-06 at 20.58.16.png)
Type opkg update at the command prompt:
root@TheYun:~# opkg update
Install Nano
![Screen Shot 2015-02-06 at 21.07.46.png](/proxy/?url=https://content.instructables.com/FFX/BSRO/I5THUBCY/FFXBSROI5THUBCY.png&filename=Screen Shot 2015-02-06 at 21.07.46.png)
Type opkg install nano at the command prompt:
root@TheYun:~# opkg install nano
Use Nano
![Screen Shot 2015-02-06 at 21.00.06.png](/proxy/?url=https://content.instructables.com/F5I/0EQ6/I5THUB9L/F5I0EQ6I5THUB9L.png&filename=Screen Shot 2015-02-06 at 21.00.06.png)
![Screen Shot 2015-02-06 at 21.03.39.png](/proxy/?url=https://content.instructables.com/FYV/Z3I2/I5THUB9H/FYVZ3I2I5THUB9H.png&filename=Screen Shot 2015-02-06 at 21.03.39.png)
If you would now run nano as is in your OSX Terminal, it will most probably result in an error:
root@TheYun:~# nano
Error opening terminal: xterm-256color.
So enter this command first:
root@TheYun:~# TERM=xterm-color
Now nano can be your friendly neighbourhood default editor again! Yay! For instance, to edit the crontab using nano, you would type:
root@TheYun:~# EDITOR=nano crontab -e
Happy nano'ing!