Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Can nano be installed on Edison

MMoy
New Contributor II
3,491 Views

I cannot stand vi, can i install nano and if so how can i do it ?

25 Replies
Matthias_H_Intel
Employee
506 Views

why not - just compile it and run it.

Or bitbake nano within a Yocto build.

My 2 cents

MMoy
New Contributor II
506 Views

well, I am just starting out learning Linux. Most of my knowledge comes from using the RPI. So i am quite used to apt-get. have not got to the level your talking about yet.

Matthias_H_Intel
Employee
506 Views

ok, just ran through the exercise - 5 min deal on Edison. Run following on your console to have a local build:

wget http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz && tar xvf nano-2.2.6.tar.gz && cd nano-2.2.6 && ./configure && make && make install

After that you should be able to use nano on your system. However, as it's not a package install you will not be able to uninstall via the package manager opkg but you would need to call "make uninstall" within the nano-2.2.6 folder.

MMoy
New Contributor II
506 Views

mhahn, Wow, thank you so much for that excellent reply and your time. Worked great!

Dan_Y_Intel
Employee
506 Views

If you want to go the yocto package route, nano is include as part of the openembedded/meta-oe yocto layer. Instructions for adding the meta-oe layer to your yocto build environment are included in the doc located here:

You can basically for the instructions for "Add third-party packages to the image" and replace IMAGE_INSTALL += "opencv" with IMAGE_INSTALL += "nano"

Matthias_H_Intel
Employee
506 Views

don't see an attachment. Sure, if you do have a repository with those ipk's that's the better option to opkg install. Dependencies like ncurses should be resolved automatically.

JDebr
New Contributor I
506 Views

Yes, you can simply, and quickly, build it yourself from source. I'm using htop, nano and a few other utilities that I've built from scratch on the Edison with no issues. You can get nano's source at: www.nano-editor.org/download.php. Just download the tarball (current stable version is 2.2.6.tar.gz). Quick tip tip: if you want to see the cursor location (row & col) while editing long files, in the home folder of the logged in user create a file called ".nano" with the following text, "set const".

Enjoy!

Jeff D.

Matthias_H_Intel
Employee
506 Views

see my answer above

wget http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz && tar xvf nano-2.2.6.tar.gz && cd nano-2.2.6 && ./configure && make && make install

RVilo
New Contributor I
506 Views
Matthias_H_Intel
Employee
506 Views

as indicated by AlexT_Intel you may directly install the package from his repo rather than building on your own

MMoy
New Contributor II
506 Views

htop was one of the first things i tried to install. I am seeing now that i was to pampered with using apt-get in debian on the raspberi Pi. thanks for the info!

Maybe one day i will get my wish of Intel supporting a debian release.

JBobe
New Contributor II
506 Views

Check out this thread:

MMoy
New Contributor II
506 Views

I have seen that. I am still to much of a noob in Linux to venture down that path on my own. I hope to see it here one day.

CChan79
Novice
506 Views

edit: solved, need login through ssh with ip, not through COM port

----------------------------------------------------------------------------------------------------------

anyone succeed?

just did make install and can't execute nano:

Received SIGHUP or SIGTERM

i am using yocto image http://downloadmirror.intel.com/24271/eng/edison-image-ww36-14.zip http://downloadmirror.intel.com/24271/eng/edison-image-ww36-14.zip

and, i try vi:

vi: can't read user input

MMoy
New Contributor II
506 Views

Follow mahan's example and it should work, it did for me.

CChan79
Novice
506 Views

solved, need login through ssh with ip, not through COM port

thanks a lot

 

AT9
Honored Contributor II
506 Views

And now you can install it from the /message/254806# 254806 package repository I've just started.

Something like the below gets you there:

root@edison:~# opkg install nano

Installing nano (2.2.5-r3.0) to root...

Downloading http://repo.opkg.net/edison/repo/core2-32/nano_2.2.5-r3.0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/nano_2.2.5-r3.0_core2-32.ipk.

Installing ncurses-terminfo (5.9-r15.1) to root...

Downloading http://repo.opkg.net/edison/repo/core2-32/ncurses-terminfo_5.9-r15.1_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ncurses-terminfo_5.9-r15.1_core2-32.ipk.

Configuring ncurses-terminfo.

Configuring nano.

CChan79
Novice
506 Views

seems fantastic ! thanks a lot~!

TBjor
New Contributor I
506 Views
JHegn1
Beginner
371 Views

I totally agree to not using vi! I have followed this thread to install nano. Thanks a lot!

However: Later I figured out, that nano is part of the package repositories at repo.opkg.net.

1.

You have to add the following lines to /etc/opkg/base-feeds.conf

src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all

src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32

Either by using vi or by appending them via console:

echo "src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all" >> /etc/opkg/base-feeds.conf

echo "src/gz edison http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison" >> /etc/opkg/base-feeds.conf

echo "src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32" >> /etc/opkg/base-feeds.conf

2.

Update your package cache

opkg update

3.

Install nano

opkg install nano

Reply