diff options
Diffstat (limited to 'docs/posts/termux_tandem')
-rw-r--r-- | docs/posts/termux_tandem/index.html | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/docs/posts/termux_tandem/index.html b/docs/posts/termux_tandem/index.html new file mode 100644 index 0000000..def670f --- /dev/null +++ b/docs/posts/termux_tandem/index.html | |||
@@ -0,0 +1,95 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <link rel="stylesheet" href="/style.css"> | ||
5 | <meta charset="UTF-8"> | ||
6 | <meta name="viewport" content="initial-scale=1"> | ||
7 | <meta content="#ffffff" name="theme-color"> | ||
8 | <meta name="HandheldFriendly" content="true"> | ||
9 | <meta property="og:title" content="nerdypepper"> | ||
10 | <meta property="og:type" content="website"> | ||
11 | <meta property="og:description" content="a static site {for, by, about} me "> | ||
12 | <meta property="og:url" content="https://peppe.rs"> | ||
13 | <link rel="icon" type="image/x-icon" href="/favicon.png"> | ||
14 | <title>Termux Tandem · peppe.rs</title> | ||
15 | <body> | ||
16 | <div class="posts"> | ||
17 | <div class="post"> | ||
18 | <a href="/" class="post-end-link">⟵ Back</a> | ||
19 | <a class="stats post-end-link" href="https://raw.githubusercontent.com/nerdypepper/site/master/posts/termux_tandem.md | ||
20 | ">View Raw</a> | ||
21 | <div class="separator"></div> | ||
22 | <div class="date"> | ||
23 | 08/03 — 2020 | ||
24 | <div class="stats"> | ||
25 | <span class="stats-number"> | ||
26 | 19.17 | ||
27 | </span> | ||
28 | <span class="stats-unit">cm</span> | ||
29 |   | ||
30 | <span class="stats-number"> | ||
31 | 1.6 | ||
32 | </span> | ||
33 | <span class="stats-unit">min</span> | ||
34 | </div> | ||
35 | </div> | ||
36 | <span class="post-title"> | ||
37 | Termux Tandem | ||
38 | </span> | ||
39 | <div class="post-text"> | ||
40 | <p>I learnt about <code>termux</code> from a friend on IRC recently. | ||
41 | It looked super gimmicky to me at first, but it eventually | ||
42 | proved to be useful. Here's what I use it for:</p> | ||
43 | |||
44 | <h3 id="rsync">rsync</h3> | ||
45 | |||
46 | <p>Ever since I degoogled my android device, syncing files | ||
47 | between my phone and my PC has always been a pain. I’m | ||
48 | looking at you MTP. But, with <code>termux</code> and <code>sshd</code> all set up, | ||
49 | it's as simple as:</p> | ||
50 | |||
51 | <pre><code>$ arp | ||
52 | Address HWtype HWad ... | ||
53 | 192.168.43.187 ether d0:0 ... | ||
54 | |||
55 | $ rsync -avz 192.168.43.187:~/frogs ~/pics/frogs | ||
56 | </code></pre> | ||
57 | |||
58 | <h3 id="ssh%20&#38;%20tmux">ssh & tmux</h3> | ||
59 | |||
60 | <p>My phone doubles as a secondary view into my main machine | ||
61 | with <code>ssh</code> and <code>tmux</code>. When I am away from my PC (read: | ||
62 | sitting across the room), I check build status and IRC | ||
63 | messages by <code>ssh</code>ing into a tmux session running the said | ||
64 | build or weechat.</p> | ||
65 | |||
66 | <h3 id="file%20uploads">file uploads</h3> | ||
67 | |||
68 | <p>Not being able to access my (ssh-only) file host was | ||
69 | crippling. With a <code>bash</code> instance on my phone, I just copied | ||
70 | over my ssh keys, and popped in a file upload script (a | ||
71 | glorified <code>scp</code>). Now I just have to figure out a way to | ||
72 | clean up these file names …</p> | ||
73 | |||
74 | <pre><code>~/storage/pictures/ $ ls | ||
75 | 02muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png | ||
76 | mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg | ||
77 | </code></pre> | ||
78 | |||
79 | <h3 id="cmus">cmus</h3> | ||
80 | |||
81 | <p>Alright, I don't really listen to music via <code>cmus</code>, but I | ||
82 | did use it a couple times when my default music player was | ||
83 | acting up. <code>cmus</code> is a viable option:</p> | ||
84 | |||
85 | <p><a href="https://u.peppe.rs/CP.jpg"><img src="https://u.peppe.rs/CP.jpg" alt="cmus.png" /></a></p> | ||
86 | |||
87 | </div> | ||
88 | <div class="separator"></div> | ||
89 | <a href="/" class="post-end-link">⟵ Back</a> | ||
90 | <a class="stats post-end-link" href="https://raw.githubusercontent.com/nerdypepper/site/master/posts/termux_tandem.md | ||
91 | ">View Raw</a> | ||
92 | </div> | ||
93 | </div> | ||
94 | </body> | ||
95 | </html> | ||