Forwarded from Mishizu
GitHub
GitHub - sindresorhus/awesome: 😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled…
😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones] - sindresorhus/awesome
Tmux 2 by Brian p Hogan.pdf
1.5 MB
Tmux 2 : productive mouse free development by Brian p. Hogan
Map in terminal
press A = zoomin
press Z = zoom out
press C = to quite
use arrow keys to goto left right up down
telnet mapscii.mepress A = zoomin
press Z = zoom out
press C = to quite
use arrow keys to goto left right up down
Setup ssh public key in github with termux
It will copy your key to the clipboard (use
I actually got bored of this this procedure, so wrote a Github Gist with everything needed (SSH / GPG / KeyBase)
Hope it helps!
https://gist.github.com/9ee93151f76da3015abf101612a50c3f
I refer to reddit/github user 5c0tt-b0t
termux-clipboard-set < $HOME/.ssh/id_rsa.pub && xdg-open https://github.com/settings/keysIt will copy your key to the clipboard (use
termux-clipboard-set/get, not xclip etc) and after it will open github security settings page in your default browser, right where you need to paste it! :)I actually got bored of this this procedure, so wrote a Github Gist with everything needed (SSH / GPG / KeyBase)
Hope it helps!
https://gist.github.com/9ee93151f76da3015abf101612a50c3f
I refer to reddit/github user 5c0tt-b0t
Here, How you can run and install ngrok in termux
--------------------------------------------------------
Update: Now you can run ngrok over ssh like used to do with serveo and localhost.run
Please visit wiki: https://wiki.termux.com/wiki/Bypassing_NAT#Using_Ngrok_over_SSH
--------------------------------------------------------
Execute following command for installing things.
Now setup ngrok authtoken. Visit ngrok.com if you don't have authtoken.
First method.
Just use
Use.
You just need to put "termux-chroot" at beggining, that's it.
Second method.
Second method for that scenario where ngrok is inbuilt in any tool which you are using, so here, you just need to execute
Why ngrok don't work without termux-chroot in termux
So here, ngrok use /etc/resolv.conf for dns lookup, but as you know /etc/resolv.conf is missing in android. So here termux can't do anything, when you use termux-chroot, it emulate file system where /etc/resolv.conf is available and ngrok works as expected.
# Video tutorial.(asciinema)
https://asciinema.org/a/367862
--------------------------------------------------------
Update: Now you can run ngrok over ssh like used to do with serveo and localhost.run
Please visit wiki: https://wiki.termux.com/wiki/Bypassing_NAT#Using_Ngrok_over_SSH
--------------------------------------------------------
Execute following command for installing things.
pkg in python,proot, resolv-conf
pip install pyngrok
Now setup ngrok authtoken. Visit ngrok.com if you don't have authtoken.
ngrok authtoken TOKEN_HEREFirst method.
Just use
termux-chroot to run ngrok. Suppose i want to forward port 8080, now instead of using "ngrok http 8080" .Use.
termux-chroot ngrok http 8080 .You just need to put "termux-chroot" at beggining, that's it.
Second method.
Second method for that scenario where ngrok is inbuilt in any tool which you are using, so here, you just need to execute
termux-chroot and run that tool as you run in termux before.Why ngrok don't work without termux-chroot in termux
So here, ngrok use /etc/resolv.conf for dns lookup, but as you know /etc/resolv.conf is missing in android. So here termux can't do anything, when you use termux-chroot, it emulate file system where /etc/resolv.conf is available and ngrok works as expected.
# Video tutorial.(asciinema)
https://asciinema.org/a/367862
Install and run jupyter notebook in termux
Installation
Now run jupyter .
now browse http://localhost:8888
It will ask for password, just come in terminal open another session and execute
it will list token, copy and generate password via browser, and enjoy jupyter.
Original page: https://gist.github.com/gatopeich/8debf57e4fd8188f2f6610c6f5b0cf55
Installation
pkg upgrade
pkg install python libzmq libcrypt
pip3 install -U pip
pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install jupyter
apt autoremove
rm .cache ../usr/var/cache -rf
echo "Done"
Now run jupyter .
jupyter notebooknow browse http://localhost:8888
It will ask for password, just come in terminal open another session and execute
jupyter notebook list it will list token, copy and generate password via browser, and enjoy jupyter.
Original page: https://gist.github.com/gatopeich/8debf57e4fd8188f2f6610c6f5b0cf55
Here, How to attach Termux and termux-float session via tmux
assuming you have already installed tmux and termux:float
* Launch Termux:float and execute tmux
* Now open termux and attach session with tmux.
pic: https://t.me/kterm/87
Vid: https://t.me/kterm/92
**Note: you can list tmux seesion with
assuming you have already installed tmux and termux:float
* Launch Termux:float and execute tmux
* Now open termux and attach session with tmux.
tmux attach -t :0 pic: https://t.me/kterm/87
Vid: https://t.me/kterm/92
**Note: you can list tmux seesion with
tmux ls **This media is not supported in your browser
VIEW IN TELEGRAM
Illustration of attaching session of termux and termux float via tmux.
You may encounter issues while using special keys (Home ,end,tab) with zsh/oh-my-zsh prompt in tmux
The simple solution is to create ~/.inputrc and put following and reload session.
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
Credit: Archwiki , Archlinux community
The simple solution is to create ~/.inputrc and put following and reload session.
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
Credit: Archwiki , Archlinux community
What's the difference between termux and terminal emulator for android?
Termux itself a Linux terminal emulator for android. When you compare other terminal emulator with termux then termux support apt where termux has 1000+ package. I didn't find any terminal yet which supports packages
* Most of the terminal use system shell where termux have own shell and comes by default with bash and support other shell as well(fish,zsh)
* Termux support a range of programming languages including python,swift,ruby,golang etc
* Termux have vibrant forum/community world wide.
How can have packages in other terminal as well ?
You can have packages with other terminals as well. But will have to compile them on your own.
Termux itself a Linux terminal emulator for android. When you compare other terminal emulator with termux then termux support apt where termux has 1000+ package. I didn't find any terminal yet which supports packages
* Most of the terminal use system shell where termux have own shell and comes by default with bash and support other shell as well(fish,zsh)
* Termux support a range of programming languages including python,swift,ruby,golang etc
* Termux have vibrant forum/community world wide.
How can have packages in other terminal as well ?
You can have packages with other terminals as well. But will have to compile them on your own.
How to install google cloud sdk and run Cloud ssh interactively and locally ?
https://git.io/cloudshell-ssh
https://git.io/cloudshell-ssh
https://gist.github.com/kcubeterm/7e2792366bd6e8c14064f7e2ac109cc7Gist
How to install google cloud sdk in termux and run cloud shell interactively.
How to install google cloud sdk in termux and run cloud shell interactively. - Google-sdk-termux.md