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