Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installs the nano text editor on Chrome OS
#!/bin/sh
sudo echo -n
sudo mkdir /tmp/nano
cd /tmp/nano
sudo wget http://v48.googlecode.com/files/nano.tar.gz
sudo tar -zxvf nano.tar.gz
sudo mv ./nano /usr/bin
sudo rm -rf /tmp/nano
@BKPepe

This comment has been minimized.

Copy link

commented Aug 27, 2016

chronos@localhost /tmp/nano $ sudo wget http://v48.googlecode.com/files/nano.tar.gz
--2016-08-27 20:05:43-- http://v48.googlecode.com/files/nano.tar.gz
Resolving v48.googlecode.com... 74.125.136.82
Connecting to v48.googlecode.com|74.125.136.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-08-27 20:05:43 ERROR 404: Not Found.

@le91688

This comment has been minimized.

Copy link

commented Sep 19, 2016

I get the same thing as BKpepe

@danipolo

This comment has been minimized.

Copy link

commented Sep 29, 2016

same problem here

@typoviking

This comment has been minimized.

Copy link

commented Nov 12, 2016

stuck here after download...from working url (https://www.nano-editor.org/dist/v2.7/nano-2.7.1.tar.gz)

any ideas??

localhost nano # sudo mv ./nano-2.7.1 /usr/bin
mv: inter-device move failed: ‘./nano-2.7.1’ to ‘/usr/bin/nano-2.7.1’; unable to remove target: Read-only file system

@thejordanprice

This comment has been minimized.

Copy link

commented Jan 24, 2017

Sorry to be late, but you've gotta remount with r/w.

sudo mount -o rw,remount /

Also that link he had posted contained a precompiled binary, not just the source. So that is what you'll need.

@Ewpratten

This comment has been minimized.

Copy link

commented Apr 25, 2017

or you can move the file to /usr/local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.