diff options
-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) | ||