enhance termux tools

This commit is contained in:
James Feng Cao 2025-03-30 18:26:11 +08:00
commit 0a354c6805
13 changed files with 38 additions and 27 deletions

View file

@ -6,7 +6,7 @@
<description>Recent content in _Posts on uweb browser: unlimited power</description>
<generator>Hugo</generator>
<language>en</language>
<lastBuildDate>Sat, 15 Mar 2025 21:03:38 +0800</lastBuildDate>
<lastBuildDate>Sun, 30 Mar 2025 18:24:04 +0800</lastBuildDate>
<atom:link href="https://jamesfengcao.gitlab.io/uweb/en/_posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>popup menu for Long pressed link and downloading</title>

View file

@ -60,7 +60,7 @@
<p><a href="i:03copy cookie:/clip:printf '%c'">copy cookie:/clip:printf '%c'</a></p>
<p><a href="i:03config in Download::cd /data/data/info.torapp.uweb;toybox rm -rf files;toybox mkdir -p /sdcard/Download/uweb;toybox ln -s /sdcard/Download/uweb files">config in Download::cd /data/data/info.torapp.uweb;toybox rm -rf files;toybox mkdir -p /sdcard/Download/uweb;toybox ln -s /sdcard/Download/uweb files</a></p>
<p><a href="i:03html5 in Download::cd /data/data/info.torapp.uweb/files;toybox rm -rf app;toybox mkdir -p /sdcard/Download/app;toybox ln -s /sdcard/Download/app">html5 in Download::cd /data/data/info.torapp.uweb/files;toybox rm -rf app;toybox mkdir -p /sdcard/Download/app;toybox ln -s /sdcard/Download/app</a></p>
<p><a href="i:03tgz install::toybox tar -xzf %f -C /">tgz install::toybox tar -xzf %f -C /</a></p>
<p><a href="i:03tgz install::cd /;toybox tar -xzf %f">tgz install::cd /;toybox tar -xzf %f</a></p>
<p>Users should change the IP addresses in the following menus accordingly. In all cases, TV side needs to execute &quot;<a href="../links/index.html#">wait for network msg</a>&quot; first. Send message to network (ex. for android TVs):<br>
<a href="i:03clip2PC:clip:cat|/system/bin/toybox nc 192.168.1.120 1500">clip2PC:clip:cat|/system/bin/toybox nc 192.168.1.120 1500</a></p>
<p><a href="i:03PC2clip:/clip:/system/bin/toybox nc 192.168.1.120 1500">PC2clip:/clip:/system/bin/toybox nc 192.168.1.120 1500</a></p>
@ -119,8 +119,8 @@ Clipboard2QR needs libqrencode.</p>
</ul>
</div>
<p>Last Modified: 16 March 2025<br>
update AI engines<br>
<p>Last Modified: 30 March 2025<br>
tar -C / raised permission denied error<br>
<pre></pre>
</p>

View file

@ -6,7 +6,7 @@
<description>Recent content on uweb browser: unlimited power</description>
<generator>Hugo</generator>
<language>en</language>
<lastBuildDate>Sun, 16 Mar 2025 14:57:04 +0800</lastBuildDate>
<lastBuildDate>Sun, 30 Mar 2025 18:24:04 +0800</lastBuildDate>
<atom:link href="https://jamesfengcao.gitlab.io/uweb/en/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>popup menu for Long pressed link and downloading</title>

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/_posts/</loc>
<lastmod>2025-03-15T21:03:38+08:00</lastmod>
<lastmod>2025-03-30T18:24:04+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -55,7 +55,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/</loc>
<lastmod>2025-03-16T14:57:04+08:00</lastmod>
<lastmod>2025-03-30T18:24:04+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -97,7 +97,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/topposts/</loc>
<lastmod>2025-03-16T14:57:04+08:00</lastmod>
<lastmod>2025-03-30T10:33:26+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -381,7 +381,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/cmds/</loc>
<lastmod>2025-03-16T09:56:20+08:00</lastmod>
<lastmod>2025-03-30T10:33:26+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -436,7 +436,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/termux/</loc>
<lastmod>2024-08-22T08:08:49+08:00</lastmod>
<lastmod>2025-03-30T18:24:04+08:00</lastmod>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/en/useragents/</loc>
<lastmod>2024-07-10T11:21:12+08:00</lastmod>

View file

@ -55,9 +55,19 @@
<p><a href="i:0h/data/data/com.termux/files/home/.inputrc:../../termux/inputrc">.inputrc</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/z.sh:https://fastly.jsdelivr.net/gh/rupa/z/z.sh">z.sh</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/commacd.sh:https://fastly.jsdelivr.net/gh/shyiko/commacd/commacd.sh">commacd.sh</a></p>
<p><a href="i:0h/data/data/com.termux/files/home/.profile:../../termux/profile">.profile</a> : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched)</p>
<h4 id="copy-existing-termux-installation-to-other-devices">Copy existing termux installation to other devices</h4>
<p>Using uweb to copy (Long pressing the following links and &quot;open in new tab&quot; to fix/send/receive):</p>
<h5 id="copyinit-from-bootstrapzip-expert-only">Copy/init from bootstrap.zip (expert only)</h5>
<ul>
<li>Extract <a href="https://github.com/termux/termux-packages/releases">bootstrap.zip</a> to &quot;/data/data/com.termux/files/usr&quot;.</li>
<li>Make sure all symbolic links are unzipped properly, especially those to coreutils.<br>
Note:
<ul>
<li>&quot;/system/bin/unzip&quot; fails to extract all files and does not handle symbolic links.</li>
<li><a href="https://wiki.termux.com/wiki/Internal_and_external_storage">Some file managers</a> have full access on termux internal folders.</li>
</ul>
</li>
</ul>
<h5 id="using-uweb-to-copy-long-pressing-the-following-links-and-open-in-new-tab-to-fixsendreceive">Using uweb to copy (Long pressing the following links and &quot;open in new tab&quot; to fix/send/receive):</h5>
<ul>
<li>target device: install termux app.</li>
<li>(optional)<a href="d::mkdir -p /data/user/0/com.termux/files/home/.termux;cd /data/user/0/com.termux/files;mkdir usr;cd home/.termux;ln -s /system/bin/sh shell:">fix termux quick crash with &quot;updateonly&quot; versions</a> by long click this link.</li>
@ -78,8 +88,8 @@
With <a href="https://github.com/rupa/z">z.sh</a> and <a href="https://github.com/shyiko/commacd">commacd</a>, user can reach any folder with few key stokes. Run &quot;v&quot; to launch uweb file manager on the current working directory, long click any file link to share.</p>
</div>
<p>Last Modified: 22 August 2024<br>
add more download sites<br>
<p>Last Modified: 30 March 2025<br>
bashrc: fix tdict LD_LIBRARY_PATH<br>
<pre></pre>
</p>

View file

@ -6,7 +6,7 @@
<description>Recent content in Topposts on uweb browser: unlimited power</description>
<generator>Hugo</generator>
<language>en</language>
<lastBuildDate>Sun, 16 Mar 2025 14:57:04 +0800</lastBuildDate>
<lastBuildDate>Sun, 30 Mar 2025 10:33:26 +0800</lastBuildDate>
<atom:link href="https://jamesfengcao.gitlab.io/uweb/en/topposts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Search engine query URLs</title>

View file

@ -2,7 +2,8 @@
"b":"https://www4.bing.com/search?q=%s",
"n":"https://n.cn/search/?q=%s",
"bda":"https://chat.baidu.com/search?word=%s",
"bdic":"http://cn.bing.com/dict/search?q=%s", "ki":"https://kimi.moonshot.cn/_prefill_chat?force_search=true&send_immediately=true&prefill_prompt=%s",
"bdic":"http://cn.bing.com/dict/search?q=%s",
"ki":"https://kimi.moonshot.cn/_prefill_chat?force_search=true&send_immediately=true&prefill_prompt=%s",
"hk":"i:0/js/uweb2ta.js:https://heck.ai/#10uweb=%s%0D",
"xb":"i:0/js/uwebset.js:https://www.wenxiaobai.com/chat/200006?10uweb=%s%0D",
"qw":"i:0/js/uweb2ta.js:https://chat.qwenlm.ai#uweb=%s",

View file

@ -4,14 +4,14 @@
<sitemap>
<loc>https://jamesfengcao.gitlab.io/uweb/en/sitemap.xml</loc>
<lastmod>2025-03-16T14:57:04+08:00</lastmod>
<lastmod>2025-03-30T18:24:04+08:00</lastmod>
</sitemap>
<sitemap>
<loc>https://jamesfengcao.gitlab.io/uweb/zh/sitemap.xml</loc>
<lastmod>2025-03-27T23:14:44+08:00</lastmod>
<lastmod>2025-03-30T10:33:07+08:00</lastmod>
</sitemap>

View file

@ -27,7 +27,7 @@ v(){
d(){
word=$1
dict=${2:-ahd}
tdict ~/share/dict/$dict $1
LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib tdict ~/share/dict/$dict $1
}
z(){

View file

@ -61,7 +61,7 @@
<p><a href="i:03清空logcat::logcat -c">清空logcat::logcat -c</a></p>
<p><a href="i:03输出logcat.log::logcat -d > logcat.log">输出logcat.log::logcat -d &gt; logcat.log</a></p>
<p><a href="i:03复制cookie:/clip:printf '%c'">复制cookie:/clip:printf '%c'</a></p>
<p><a href="i:03tgz install::toybox tar -xzf %f -C /">tgz install::toybox tar -xzf %f -C /</a></p>
<p><a href="i:03tgz install::cd /;toybox tar -xzf %f">tgz install::cd /;toybox tar -xzf %f</a></p>
<p>以下命令需修改接收端IP定制。另外发送消息前接收端需首先执行“<a href="../links/index.html">等待网络消息</a>”命令。<br>
<a href="i:03发送剪贴板:clip/uweb:printf 'i:5ji:5b';cat">发送剪贴板:clip/uweb:printf 'i:5ji:5b';cat</a></p>
<p><a href="i:03发送url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500">发送url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
@ -96,8 +96,8 @@
剪贴板_二维码需安装libqrencode.</p>
</div>
<p>Last Modified: 17 March 2025<br>
update AI engines<br>
<p>Last Modified: 30 March 2025<br>
tar -C / raised permission denied error<br>
<pre></pre>
</p>

View file

@ -6,7 +6,7 @@
<description>Recent content on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo</generator>
<language>zh</language>
<lastBuildDate>Thu, 27 Mar 2025 23:14:44 +0800</lastBuildDate>
<lastBuildDate>Sun, 30 Mar 2025 10:33:07 +0800</lastBuildDate>
<atom:link href="https://jamesfengcao.gitlab.io/uweb/zh/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>常用链接</title>

View file

@ -29,7 +29,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/zh/</loc>
<lastmod>2025-03-27T23:14:44+08:00</lastmod>
<lastmod>2025-03-30T10:33:07+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -100,7 +100,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/zh/topposts/</loc>
<lastmod>2025-03-27T23:14:44+08:00</lastmod>
<lastmod>2025-03-30T10:33:07+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -298,7 +298,7 @@
/>
</url><url>
<loc>https://jamesfengcao.gitlab.io/uweb/zh/cmds/</loc>
<lastmod>2025-03-17T21:21:55+08:00</lastmod>
<lastmod>2025-03-30T10:33:07+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View file

@ -6,7 +6,7 @@
<description>Recent content in Topposts on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo</generator>
<language>zh</language>
<lastBuildDate>Thu, 27 Mar 2025 23:14:44 +0800</lastBuildDate>
<lastBuildDate>Sun, 30 Mar 2025 10:33:07 +0800</lastBuildDate>
<atom:link href="https://jamesfengcao.gitlab.io/uweb/zh/topposts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>搜索引擎搜索查询URL汇总</title>