Skip to content

Instantly share code, notes, and snippets.

@alex-endfinger
Created December 22, 2011 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alex-endfinger/1510908 to your computer and use it in GitHub Desktop.
Save alex-endfinger/1510908 to your computer and use it in GitHub Desktop.
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
Copy link

BKPepe 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
Copy link

le91688 commented Sep 19, 2016

I get the same thing as BKpepe

@danipolo
Copy link

same problem here

@typoviking
Copy link

typoviking 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
Copy link

thejordanprice 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
Copy link

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