aboutsummaryrefslogtreecommitdiff
path: root/docs/posts/termux_tandem
diff options
context:
space:
mode:
Diffstat (limited to 'docs/posts/termux_tandem')
-rw-r--r--docs/posts/termux_tandem/index.html72
1 files changed, 33 insertions, 39 deletions
diff --git a/docs/posts/termux_tandem/index.html b/docs/posts/termux_tandem/index.html
index 972f0e2..a2aba29 100644
--- a/docs/posts/termux_tandem/index.html
+++ b/docs/posts/termux_tandem/index.html
@@ -37,52 +37,46 @@
37 Termux Tandem 37 Termux Tandem
38 </h1> 38 </h1>
39 <div class="post-text"> 39 <div class="post-text">
40 <p>I learnt about <code>termux</code> from a friend on IRC recently. 40 <!DOCTYPE html>
41It looked super gimmicky to me at first, but it eventually 41<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
42proved to be useful. Here&#39;s what I use it for:</p> 42<head>
43 43 <meta charset="utf-8" />
44 <meta name="generator" content="pandoc" />
45 <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
46 <title>termux_tandem</title>
47 <style>
48 code{white-space: pre-wrap;}
49 span.smallcaps{font-variant: small-caps;}
50 span.underline{text-decoration: underline;}
51 div.column{display: inline-block; vertical-align: top; width: 50%;}
52 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
53 ul.task-list{list-style: none;}
54 </style>
55 <!--[if lt IE 9]>
56 <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
57 <![endif]-->
58</head>
59<body>
60<p>I learnt about <code>termux</code> from a friend on IRC recently. It looked super gimmicky to me at first, but it eventually proved to be useful. Here’s what I use it for:</p>
44<h3 id="rsync">rsync</h3> 61<h3 id="rsync">rsync</h3>
45 62<p>Ever since I degoogled my android device, syncing files between my phone and my PC has always been a pain. I’m looking at you MTP. But, with <code>termux</code> and <code>sshd</code> all set up, it’s as simple as:</p>
46<p>Ever since I degoogled my android device, syncing files
47between my phone and my PC has always been a pain. I&#8217;m
48looking at you MTP. But, with <code>termux</code> and <code>sshd</code> all set up,
49it&#39;s as simple as:</p>
50
51<pre><code>$ arp 63<pre><code>$ arp
52Address HWtype HWad ... 64Address HWtype HWad ...
53192.168.43.187 ether d0:0 ... 65192.168.43.187 ether d0:0 ...
54 66
55$ rsync -avz 192.168.43.187:~&#47;frogs ~&#47;pics&#47;frogs 67$ rsync -avz 192.168.43.187:~/frogs ~/pics/frogs</code></pre>
56</code></pre> 68<h3 id="ssh-tmux">ssh &amp; tmux</h3>
57 69<p>My phone doubles as a secondary view into my main machine with <code>ssh</code> and <code>tmux</code>. When I am away from my PC (read: sitting across the room), I check build status and IRC messages by <code>ssh</code>ing into a tmux session running the said build or weechat.</p>
58<h3 id="ssh%20&amp;#38;%20tmux">ssh &#38; tmux</h3> 70<h3 id="file-uploads">file uploads</h3>
59 71<p>Not being able to access my (ssh-only) file host was crippling. With a <code>bash</code> instance on my phone, I just copied over my ssh keys, and popped in a file upload script (a glorified <code>scp</code>). Now I just have to figure out a way to clean up these file names …</p>
60<p>My phone doubles as a secondary view into my main machine 72<pre><code>~/storage/pictures/ $ ls
61with <code>ssh</code> and <code>tmux</code>. When I am away from my PC (read:
62sitting across the room), I check build status and IRC
63messages by <code>ssh</code>ing into a tmux session running the said
64build 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
69crippling. With a <code>bash</code> instance on my phone, I just copied
70over my ssh keys, and popped in a file upload script (a
71glorified <code>scp</code>). Now I just have to figure out a way to
72clean up these file names &#8230;</p>
73
74<pre><code>~&#47;storage&#47;pictures&#47; $ ls
7502muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png 7302muf5g7b2i41.jpg 7alt3cwg77841.jpg cl4bsrge7id11.png
76mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg 74mtZabXG.jpg p8d5c584f2841.jpg vjUxGjq.jpg</code></pre>
77</code></pre>
78
79<h3 id="cmus">cmus</h3> 75<h3 id="cmus">cmus</h3>
80 76<p>Alright, I don’t really listen to music via <code>cmus</code>, but I did use it a couple times when my default music player was acting up. <code>cmus</code> is a viable option:</p>
81<p>Alright, I don&#39;t really listen to music via <code>cmus</code>, but I 77<p><a href="https://u.peppe.rs/CP.jpg"><img src="https://u.peppe.rs/CP.jpg" /></a></p>
82did use it a couple times when my default music player was 78</body>
83acting up. <code>cmus</code> is a viable option:</p> 79</html>
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 80
87 </div> 81 </div>
88 82