android:termux

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
android:termux [2020/07/06 11:22] ともやんandroid:termux [2022/10/02 02:46] (現在) – [bash の alias 設定] ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre, #mincode pre { 
-      overflow: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre, #mincode_long pre  { 
-      height: 250px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #mintbl table { 
-      font-size: 12px; 
-    } 
-    .dokuwiki .plugin_wrap table { 
-      width: auto; 
-    } 
-    #logo { 
-      background-color: white; 
-      padding: 10px; 
-      width: fit-content; 
-    } 
-    #logo p { 
-      margin: 0; 
-    } 
-  </style> 
-</html> 
 ====== Termux - Android用ターミナル & Linux環境 ====== ====== Termux - Android用ターミナル & Linux環境 ======
 本家: [[https://termux.com/|Termux]]\\ 本家: [[https://termux.com/|Termux]]\\
行 59: 行 31:
 </WRAP> </WRAP>
  
 +===== デバイスストレージのアクセス許可設定 =====
 +ホームディレクトリ **~/** は **/data/data/com.termux/files/home** である。\\
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code> <code>
行 70: 行 44:
 </WRAP> </WRAP>
  
-===== ストレージ設定 ===== 
 <WRAP prewrap 100%> <WRAP prewrap 100%>
 <code> <code>
行 84: 行 57:
 -rw------- 1 u0_a205 u0_a205   79 Jul  6 10:06 .bash_history -rw------- 1 u0_a205 u0_a205   79 Jul  6 10:06 .bash_history
 drwx------ 2 u0_a205 u0_a205 4096 Jul  6 10:06 storage drwx------ 2 u0_a205 u0_a205 4096 Jul  6 10:06 storage
 +</code>
 +</WRAP>
 +
 +===== Vim =====
 +
 +==== インストール ====
 +<WRAP prewrap 100%>
 +<code>
 +$ pkg install vim
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result_long>
 +<code>
 +Reading package lists... Done
 +Building dependency tree
 +Reading state information... Done
 +The following additional packages will be installed:
 +  vim-runtime
 +The following NEW packages will be installed:
 +  vim vim-runtime
 +0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
 +Need to get 5094 kB of archives.
 +After this operation, 25.8 MB of additional disk space will be used.
 +Do you want to continue? [Y/n]
 +Get:1 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 vim-runtime all 8.2.1000 [4165 kB]
 +Get:2 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 vim aarch64 8.2.1000 [929 kB]
 +Fetched 5094 kB in 8s (622 kB/s)
 +Selecting previously unselected package vim-runtime.
 +(Reading database ... 4232 files and directories currently installed.)
 +Preparing to unpack .../vim-runtime_8.2.1000_all.deb ...
 +Unpacking vim-runtime (8.2.1000) ...
 +Selecting previously unselected package vim.
 +Preparing to unpack .../vim_8.2.1000_aarch64.deb ...
 +Unpacking vim (8.2.1000) ...
 +Setting up vim-runtime (8.2.1000) ...
 +Setting up vim (8.2.1000) ...
 +update-alternatives: using /data/data/com.termux/files/usr/bin/vim to provide /data/data/com.termux/files/usr/bin/editor (editor) in auto mode
 </code> </code>
 </WRAP> </WRAP>
行 219: 行 229:
 |  oo.     ..     | |  oo.     ..     |
 +----[SHA256]-----+ +----[SHA256]-----+
-$ 
 </code> </code>
 </WRAP> </WRAP>
行 288: 行 297:
 </WRAP> </WRAP>
 <WRAP prewrap 100% #result> <WRAP prewrap 100% #result>
-<code powershell>+<code>
 u0_a205@192.168.43.235's password: <- 設定したパスワードを入力 u0_a205@192.168.43.235's password: <- 設定したパスワードを入力
  
行 315: 行 324:
 </code> </code>
 </WRAP> </WRAP>
 +
 +===== bash の alias 設定 =====
 +Fedora 風に bash の alias を設定する。
 +<WRAP prewrap 100%>
 +<code bash>
 +$ vi ~/.bashrc
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #mincode>
 +<code bash ~/.bashrc>
 +alias diff='diff --color=auto'
 +alias egrep='egrep --color=auto'
 +alias fgrep='fgrep --color=auto'
 +alias grep='grep --color=auto'
 +alias l.='ls -d .* --color=auto'
 +alias ll='ls -l --color=auto'
 +alias ls='ls --color=auto'
 +alias xzegrep='xzegrep --color=auto'
 +alias xzfgrep='xzfgrep --color=auto'
 +alias xzgrep='xzgrep --color=auto'
 +alias zegrep='zegrep --color=auto'
 +alias zfgrep='zfgrep --color=auto'
 +alias zgrep='zgrep --color=auto'
 +</code>
 +</WRAP>
 +
 +.bashrc を読み込んで設定を反映する。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ . ~/.bashrc
 +$ alias
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code bash>
 +alias diff='diff --color=auto'
 +alias egrep='egrep --color=auto'
 +alias fgrep='fgrep --color=auto'
 +alias grep='grep --color=auto'
 +alias l.='ls -d .* --color=auto'
 +alias ll='ls -l --color=auto'
 +alias ls='ls --color=auto'
 +alias xzegrep='xzegrep --color=auto'
 +alias xzfgrep='xzfgrep --color=auto'
 +alias xzgrep='xzgrep --color=auto'
 +alias zegrep='zegrep --color=auto'
 +alias zfgrep='zfgrep --color=auto'
 +alias zgrep='zgrep --color=auto'
 +</code>
 +</WRAP>
 +
 +ll を実行する。\\
 +<WRAP prewrap 100%>
 +<code>
 +$ ll 
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code bash>
 +total 4
 +drwx------ 2 u0_a205 u0_a205 4096 Jul  6 10:06 storage
 +</code>
 +</WRAP>
 +
 +===== gatling =====
 +<code>
 +gatling/stable 0.15 aarch64
 +  A high performance http, ftp and smb server
 +
 +$ pkg install gatling
 +Reading package lists... Done
 +Building dependency tree
 +Reading state information... Done
 +The following NEW packages will be installed:
 +  gatling
 +0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
 +Need to get 96.2 kB of archives.
 +After this operation, 418 kB of additional disk space will be used.
 +Get:1 https://dl.bintray.com/termux/termux-packages-24 stable/main aarch64 gatling aarch64 0.15 [96.2 kB]
 +Fetched 96.2 kB in 2s (35.7 kB/s)
 +Selecting previously unselected package gatling.
 +(Reading database ... 5637 files and directories currently installed.)
 +Preparing to unpack .../gatling_0.15_aarch64.deb ...
 +Unpacking gatling (0.15) ...
 +Setting up gatling (0.15) ...
 +</code>
 +
 +===== 参考文献 =====
 +[[https://wlog.flatlib.jp/item/1870|ホイール欲しい ハンドル欲しい » Android Termux で日本語入力を行う / UserLAnd との併用]]\\
 +[[https://www.fefe.de/gatling/|gatling - a high performance web server]]\\
 +[[https://github.com/termux/termux-packages/issues/334|Termux-api not working? · Issue #334 · termux/termux-packages · GitHub]]\\
  
  • android/termux.1594002123.txt.gz
  • 最終更新: 2020/07/06 11:22
  • by ともやん