5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
7 <link rel=
"stylesheet" href=
"../style.css#" type=
"text/css" />
9 <script type=
"text/javascript">
11 let href
= location
.href
;
12 for(let i
=href
.length
-1;i
>0;i
--){
13 if('/'==href
.charAt(i
) && '/'==href
.charAt(i
-3))
20 location
.href
= location
.href
.substring(0,i
+1)+page
;
22 function nav2Lang(lang
){
24 let href
= location
.href
;
25 location
.href
= location
.href
.substring(0,i
-2)+lang
+location
.href
.substring(i
);
30 <header class='header'
>
31 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('index.html#')">Home
</a> <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('tags/index.html#')">Tags
</a>
38 <div class=
"container">
39 <h1 class=
"title">Termux
41 <span class=
"subtitle"></span>
46 <p>Only the termux versions provided along with uweb browser can work seamlessly. For android
10+, please install termux before installing uweb browser. If uweb is already installed, users can uninstall it first, then install termux and reinstall uweb browser.
</p>
47 <h4 id=
"termux-bookmarks">Termux bookmarks
</h4>
48 <p>Long pressing the following links then either
"commands
"-
>"<a href=
"../urls/index.html">bookmark
</a>" to add bookmarks or
"open in new tab
" to execute.
<br>
49 <a href=
"c:bc -l">GNU bc (basic calculator)
</a><br>
50 <a href=
"c:bc -l *.bc">bc with all extensions
</a></p>
51 <h4 id=
"click-the-following-links-to-install-termux-configurations">Click the following links to install termux configurations:
</h4>
52 <p><a href=
"i:0h/data/data/com.termux/files/home/.bashrc:../../termux/bashrc">.bashrc
</a></p>
53 <p><a href=
"i:0h/data/data/com.termux/files/home/.inputrc:../../termux/inputrc">.inputrc
</a></p>
54 <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>
55 <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>
56 <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>
57 <h4 id=
"copy-existing-termux-installation-to-other-devices">Copy existing termux installation to other devices
</h4>
58 <p>Using uweb to copy (Long pressing the following links and
"open in new tab
" to fix/send/receive):
</p>
60 <li>target device: install termux app.
</li>
61 <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
"updateonly
" versions
</a> by long click this link.
</li>
62 <li>both devices: launch termux and acquire wakelocks. uweb to checke option
"Use termux
" in UI configuration page for long time tranferring. Uweb itself does not hold any wakelock thus may have issues for huge data transmission.
</li>
63 <li>source device: uweb to visit
<a href=
"files:///data/data/com.termux/files">termux folder
</a> by long click, then long click
"usr
" folder to send to network.
</li>
64 <li>target device: uweb to visit
<a href=
"files:///data/data/com.termux/files">termux folder
</a> by long click, then long click
"right arrow
" button to receive from network.
</li>
66 <h5 id=
"using-ssh-to-copy">Using ssh to copy
</h5>
68 <li>target device: install termux app, then run
"apt install openssh
" inside the termux.
</li>
69 <li>source device: Send the
"~/.ssh
" folder with uweb browser to the network.
</li>
70 <li>target device: Uweb to visit
"file://data/data/com.termux/files/home/
" to reach the folder, then receive the data sent by the above source device.
</li>
71 <li>source device: Run
"sshd
".
</li>
72 <li>target device: Run the command
"scp -P
8022 -r [source ip]:.. ..
"</li>
74 <h4 id=
"tips">Tips
</h4>
75 <p>File system navigation:
<br>
76 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
"v
" to launch uweb file manager on the current working directory, long click any file link to share.
</p>
79 <p>Last Modified:
2 April
2024<br>
80 add js function in README
<br>
85 src='https://giscus.app/client.js'
86 data-repo=
"torappinfo/uweb"
87 data-repo-id=
"MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
88 data-category=
"Announcements"
89 data-category-id=
"DIC_kwDOEgNLGc4CQjsh"
92 data-reactions-enabled=
"1"
93 data-emit-metadata=
"0"
94 data-input-position=
"top"
98 crossorigin=
"anonymous" async
>