-
-
Save straff2002/1a6ed4cac1187a183300c07fe8d63cf6 to your computer and use it in GitHub Desktop.
Installs the nano text editor on Chrome OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo echo -n | |
sudo mkdir /tmp/nano | |
cd /tmp/nano | |
sudo wget http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/v48/nano.tar.gz | |
sudo tar -zxvf nano.tar.gz | |
sudo mv ./nano /usr/bin | |
sudo rm -rf /tmp/nano |
- Anyone tried compiling a fat static binary, that is with all the libraries in the single self-contained binary nano executable file?
- I don't want to use root/developer mode yet, so I just copied the crew nano binary to my Downloads folder, but get terminal error I run it in termina
crosh> vsh termina
(termina) chronos@localhost ~ $ cd /mnt/shared/MyFiles/Downloads/
(termina) chronos@localhost /mnt/shared/MyFiles/Downloads $ ./nano-crew
Error opening terminal: xterm-256color.
(termina) chronos@localhost /mnt/shared/MyFiles/Downloads $ TERM=vt100 ./nano-crew
Error opening terminal: vt100.
### The /etc/terminfo tree is well populated and looks ok to me...
(termina) $ ls /etc/terminfo/
a d l r s v x
I am guessing that error has something to do with ncurses support? Even if I fixed that error, I am guessing it would complain about missing so lib files, which is why I'm looking for statically-compiled binaries for nano and other useful utils like maybe busybox? ( Note top
works at termina prompt... does top use ncurses?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need to have a writable system if you place these files in /usr/local/lib64/ and /usr/local/bin/ instead of /lib64/ and /bin/.