diff options
author | Akshay <[email protected]> | 2020-03-08 16:49:24 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-03-08 16:49:24 +0000 |
commit | 9c68e23f075de3d589dfc3919fe3d5772e1a6269 (patch) | |
tree | fd51f8ee2e04ffb3b7592e0a1fe5cbc550c9ac72 | |
parent | cf9ed4da17d1e4898f37272f4677c65058df384a (diff) |
termux tandem - new post!
-rw-r--r-- | posts/termux_tandem.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/posts/termux_tandem.md b/posts/termux_tandem.md new file mode 100644 index 0000000..7c61beb --- /dev/null +++ b/posts/termux_tandem.md | |||
@@ -0,0 +1,48 @@ | |||
1 | I learnt about `termux` from a friend on IRC recently. | ||
2 | It looked super gimmicky to me at first, but it eventually | ||
3 | proved to be useful. Here's what I use it for: | ||
4 | |||
5 | ### rsync | ||
6 | |||
7 | Ever since I degoogled my android device, syncing files | ||
8 | between my phone and my PC has always been a pain. I'm | ||
9 | looking at you MTP. But, with `termux` and `sshd` all set up, | ||
10 | it's as simple as: | ||
11 | |||
12 | ``` | ||
13 | $ arp | ||
14 | Address HWtype HWad ... | ||
15 | 192.168.43.187 ether d0:0 ... | ||
16 | |||
17 | $ rsync -avz 192.168.43.187:~/frogs ~/pics/frogs | ||
18 | ``` | ||
19 | |||
20 | ### ssh & tmux | ||
21 | |||
22 | My phone doubles as a secondary view into my main machine | ||
23 | with `ssh` and `tmux`. When I am away from my PC (read: | ||
24 | sitting across the room), I check build status and IRC | ||
25 | messages by `ssh`ing into a tmux session running the said | ||
26 | build or weechat. | ||
27 | |||
28 | ### file uploads | ||
29 | |||
30 | Not being able to access my (ssh-only) file host was | ||
31 | crippling. With a `bash` instance on my phone, I just copied | ||
32 | over my ssh keys, and popped in a file upload script (a | ||
33 | glorified `scp`). Now I just have to figure out a way to | ||
34 | clean up these file names ... | ||
35 | |||
36 | ``` | ||
37 | ~/storage/pictures/ $ ls | ||
38 | 02muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png | ||
39 | mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg | ||
40 | ``` | ||
41 | |||
42 | ### cmus | ||
43 | |||
44 | Alright, I don't really listen to music via `cmus`, but I | ||
45 | did use it a couple times when my default music player was | ||
46 | acting up. `cmus` is a viable option: | ||
47 | |||
48 | [![cmus.png](https://u.peppe.rs/CP.jpg)](https://u.peppe.rs/CP.jpg) | ||