-
-
Save straff2002/1a6ed4cac1187a183300c07fe8d63cf6 to your computer and use it in GitHub Desktop.
#!/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 |
try this
https://drive.google.com/file/d/1ARngbP58h3xqpC4SY3XJY2Zwi4sAcw5P/view?usp=drivesdkhave writable system
sudo cp libncursesw.so.5 /lib64
sudo shown root:root /lib64/libncursesw.so.5
sudo chmod 644 /lib64/libncursesw.so.5do the same with libtinfo.5.so
sudo cp nano /bin
sudo chnod 777 /bin/nanoworks on my CB great amd64 not sure if that will be a problem
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/.
- 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?
try this
https://drive.google.com/file/d/1ARngbP58h3xqpC4SY3XJY2Zwi4sAcw5P/view?usp=drivesdk
have writable system
sudo cp libncursesw.so.5 /lib64
sudo shown root:root /lib64/libncursesw.so.5
sudo chmod 644 /lib64/libncursesw.so.5
do the same with libtinfo.5.so
sudo cp nano /bin
sudo chnod 777 /bin/nano
works on my CB great amd64 not sure if that will be a problem