Merge pull request #24752 from wxy/20220218-Use-Linux-Terminal-on-Android-Smartphones-With-These-Apps

TR:sources/tech/20220218 Use Linux Terminal on Android Smartphones With These Apps.md
This commit is contained in:
Xingyu.Wang 2022-02-19 18:59:10 +08:00 committed by GitHub
commit 172a514ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 182 additions and 196 deletions

View File

@ -1,196 +0,0 @@
[#]: subject: "Use Linux Terminal on Android Smartphones With These Apps"
[#]: via: "https://itsfoss.com/using-linux-terminal-android/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Use Linux Terminal on Android Smartphones With These Apps
======
Want to practice Linux commands? You dont need to install a full-fledge distribution for that. There are plenty of [websites that let you use Linux terminal online][1].
Those websites work well on the desktop but not on the mobile devices.
Fret not. Android is based on Linux kernel, after all. There are several apps that let you use your Android smartphone to practice Linux commands to connect to a remote server via SSH.
Of course, you should not expect it to replace your regular [Linux terminal emulators][2] available for desktops. But, there are quite a few interesting options available for Android.
To make things easier, I add two different categories, one that covers terminal emulators, and the other tailored for remote connection capabilities (SSH) along with a terminal interface.
Non-FOSS alert!
Some apps mentioned here are not open source and they duly labeled. They have been covered here because they let you use Linux terminal on Android.
**Section A: Top Linux Terminal Emulator Apps**
Note that you need root access on your Android phone to be able to use commands like ls to navigate through the directories, copy/paste, and perform advanced operations.
**Note:** _Without root access, you will only be limited to the basics for most apps/terminals, like testing the ping, updating, and installing packages wherever supported._
### 1\. Qute: Terminal Emulator (Not FOSS)
![][3]
Qute terminal emulator provides access to the built-in command-line shell on your Android device.
You can use popular commands like ping, trace, cd, mkdir, and more on your smartphone. In addition to some [useful Linux commands][4], you can also install bin files and create [shell scripts][5].
Along with the bash script editor and support for rooted devices, it should be an exciting option to try.
It also offers the ability to enable a light theme, hide the keyboard, toggle syntax highlighting, and a couple of other features.
Unfortunately, the developer mentions that as per Googles latest privacy policies, there are known issues with Android 11 or latest. So, without a rooted device, you may not be able to do much.
[Qute][6]
### 2\. Terminal Emulator for Android (FOSS)
![][7]
Terminal Emulator by Jack Palevich is one of the oldest Linux terminal emulators available for Android.
You can use simple commands, add multiple windows, and use launcher shortcuts to make things quick.
The best thing about it is you do not get any ads, in-app purchase options, and no distracting elements. However, it is not being maintained for a long time, and its [GitHub page][8] was also archived in 2020 to mark the end of its development.
Even in its current state, it seems to be working for numerous users. So, you might want to try it out before dismissing it as an option.
[Terminal Emulator for Android][9]
### 3\. Material Terminal (Not FOSS)
![][10]
Material Terminal is a re-skin version of “Terminal Emulator for Android”.
You get to access the same features, with multiple windows, no ads, support for basic commands out of the box, and the option to install Busy Box, and other command-line utilities in a rooted device.
Basically, everything youd want in the previous option with a Material Design user interface. Pretty good, right?
[Material Terminal][11]
**Section B: SSH Client and Linux Terminal**
Do you want a terminal emulator on Android with the ability to connect using SSH? Or, maybe tailored just for SSH remote connections?
Here are some options:
### 4\. Termux (FOSS)
![][12]
Termux is a pretty popular terminal emulator available for Android. It features a comprehensive collection of packages that lets you experience bash and zsh shells.
Considering you have root access, you can also [manage files with nnn][13] and edit them with nano, vim or emacs. The user interface does not have anything else besides the terminal.
You can also [access servers using SSH][14]. In addition to that, you also get to develop in C with clang, make, and gbd. Of course, these are subject to your tests and whether you have a rooted device or not.
You can also explore its [GitHub page][15] to troubleshoot any issues. As of now, updates to the Play Store version is halted due to some technical reasons. So, you can install the latest version via [F-Droid][16] if the available Play Store version does not work.
[Termux][17]
### 5\. Termius (Non FOSS)
![][18]
Termius is an SSH and SFTP client tailored to make remote access from Android devices possible.
With Termius, you can manage UNIX and Linux systems. The Play Store page describes it as a pretty Putty client for Android, and rightly so.
The user interface is easy to understand and doesnt seem confusing. It also supports Mosh, and Telnet protocol.
When you connect to a remote device, it detects the OS like Raspberry Pi, Ubuntu, Fedora. You can also work using your keyboard connected to the mobile with this app. To top it all off, you get no ads or banners, making it a perfect little remote connection app.
It does offer an optional premium (14 days free trial) with more features like encrypted cross-sync, SSH key agent forwarding, SFTP, terminal tabs, and more. You can also explore more about it on its [official website][19].
[Termius][20]
### 6\. JuiceSSH (Non FOSS)
![][21]
JuiceSSH is yet another popular SSH client with a bunch of free features and an optional pro upgrade.
In addition to Telenet and Mosh support, you also get access to some third-party plugins to extend functionalities. You get to tweak the appearance from a range of available options and easily organize your connections by group.
Not to forget, you also get IPv6 support.
If you opt for the pro upgrade, you can integrate with AWS, enable secure sync, automate backups, and more.
[JuiceSSH][22]
### 7\. ConnectBot (FOSS)
![][23]
If all you wanted is a simple SSH client, ConnectBot should serve you well.
You can handle simultaneous SSH sessions, create secure tunnels, and get the ability to copy/paste between other applications.
[ConnectBot][24]
### Bonus: Access Linux Distro And Commands Without a Rooted Device
If you do not have a rooted Android phone, nor plan to get it done, you have a unique option that lets you install Linux distros on your smartphone.
[Andronix][25] (partially open-source).
You get a wide range of Linux distributions and desktop environment options along with Window Managers.
The best thing is you do not need a rooted device to use various Linux commands. You just need your favorite distro installed to do it all.
In addition to its ease of use, it also offers premium options that give you access to features like offline distro installation and the ability to sync your commands across devices.
Of course, just because you install a Linux distro does not mean that you can do everything, but its still a great option. You can find it in the [Play Store][26] and explore more about it on [GitHub][27].
## Wrapping Up
Accessing the Linux terminal on Android isnt as simple as choosing a terminal emulator. You will need to check support for commands, and what it can let you do with a rooted/non-rooted device, before you proceed.
If you want to experiment, any of the options should do a great job.
Whats your personal favorite? Did we miss listing any of your favorites? Let me know in the comments below.
--------------------------------------------------------------------------------
via: https://itsfoss.com/using-linux-terminal-android/
作者:[Ankush Das][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/online-linux-terminals/
[2]: https://itsfoss.com/linux-terminal-emulators/
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/qute-terminal.jpg?resize=800%2C600&ssl=1
[4]: https://itsfoss.com/linux-command-tricks/
[5]: https://itsfoss.com/shell-scripting-resources/
[6]: https://play.google.com/store/apps/details?id=com.ddm.qute&hl=en_IN&gl=US
[7]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/terminal-emulator-old.jpg?resize=800%2C600&ssl=1
[8]: https://github.com/jackpal/Android-Terminal-Emulator/
[9]: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en_IN&gl=US
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/material-terminal.jpg?resize=800%2C600&ssl=1
[11]: https://play.google.com/store/apps/details?id=yarolegovich.materialterminal&hl=en_IN&gl=US
[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/termux.jpg?resize=800%2C600&ssl=1
[13]: https://itsfoss.com/nnn-file-browser-linux/
[14]: https://linuxhandbook.com/ssh-basics/
[15]: https://github.com/termux/termux-app
[16]: https://f-droid.org/en/packages/com.termux/
[17]: https://play.google.com/store/apps/details?id=com.termux
[18]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/termius.jpg?resize=800%2C600&ssl=1
[19]: https://termius.com/
[20]: https://play.google.com/store/apps/details?id=com.server.auditor.ssh.client&hl=en_IN&gl=US
[21]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/juicessh.jpg?resize=800%2C600&ssl=1
[22]: https://play.google.com/store/apps/details?id=com.sonelli.juicessh&hl=en_IN&gl=US
[23]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/connectbot-app.jpg?resize=800%2C600&ssl=1
[24]: https://play.google.com/store/apps/details?id=org.connectbot&hl=en_IN&gl=US
[25]: https://andronix.app/
[26]: https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
[27]: https://github.com/AndronixApp

View File

@ -0,0 +1,182 @@
[#]: subject: "Use Linux Terminal on Android Smartphones With These Apps"
[#]: via: "https://itsfoss.com/using-linux-terminal-android/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: "wxy"
[#]: publisher: " "
[#]: url: " "
在安卓手机上使用 Linux 终端
======
想练习 Linux 命令吗?你不需要为此而安装一个完整的发行版。
有很多 [让你在线使用 Linux 终端的网站][1]。这些网站在桌面上运行良好,但在移动设备上却不适合。
别担心。安卓毕竟是基于 Linux 内核的。有几个应用程序可以让你用你的安卓智能手机练习 Linux 命令,或通过 SSH 连接到远程服务器。
当然,你不应该指望它能取代你在台式机上使用的常规 [Linux 终端仿真器][2]。在安卓上有相当多的这类应用。
为了方便起见我添加了两个不同的类别一个涵盖了终端模拟器另一个是为远程连接功能SSH以及终端界面量身定做的。
> 非 FOSS 提醒!
>
> 这里提到的一些应用程序不是开源的,它们都做了适当的提示。它们被涵盖在这里是因为它们可以让你在安卓上使用 Linux 终端。
### Linux 终端仿真器应用
请注意,你需要在你的安卓手机上有 root 权限,才能使用 `ls` 等命令在目录中导航、复制/粘贴、并执行高级操作。
**注意:** 对于大多数应用程序/终端,没有 root 权限你将只限于基本的操作,如测试 ping、更新以及在支持的地方安装包。
#### 1、Qute 终端仿真器(非 FOSS
![][3]
[Qute][6] 终端模拟器提供了对你的安卓设备上的内置命令行 Shell 的访问。
你可以在你的智能手机上使用常见的命令,如 `ping`、`trace`、`cd`、`mkdir` 等等。除了一些 [有用的 Linux 命令][4] 之外,你还可以安装 bin 文件和创建 [shell 脚本][5]。
伴随着 bash 脚本编辑器和对已 root 的设备的支持,它应该是一个令人兴奋的选择,可以尝试。
它还提供了启用浅色主题、隐藏键盘、切换语法高亮和其他一些功能。
不幸的是,开发者提到,根据谷歌最新的隐私政策,安卓 11 及更新版本存在一些已知的问题。因此,如果没有一个已 root 的设备,你可能做不了什么。
#### 2、安卓终端仿真器FOSS
![][7]
Jack Palevich 的 “[终端仿真器][9]” 是最古老的可用于安卓的 Linux 终端仿真器之一。
你可以使用简单的命令、添加多个窗口,并使用启动器的快捷键进行快速操作。
它最好的地方是没有任何广告和应用内购买选项,也没有干扰性元素。然而,它已经很久没有被维护了,它的 [GitHub 页面][8] 也在 2020 年被归档,这标志着它的开发已经结束。
但即使在目前的状态下,它似乎也对众多用户有用。因此,在否定它之前,你可以试试。
#### 3、Material Terminal非 FOSS
![][10]
[Material Terminal][11] 是 “安卓终端仿真器” 的重新换肤版本。
你可以获得相同的功能,有多个窗口、没有广告、基本命令开箱即用,还可以选择在已 root 的设备上安装 Busy Box以及其他命令行工具。
简单的说,就是前一个选项中的一切,加上一个 Material Design 用户界面。很好,对吗?
### SSH 客户端和 Linux 终端
你想要一个能够使用 SSH 连接的安卓终端仿真器吗?或者,也许只是为 SSH 远程连接而定制?
这里有一些选择:
#### 4、TermuxFOSS
![][12]
[Termux][17] 是一个相当流行的可用于安卓的终端仿真器。它有一个全面的软件包集合,让你体验 bash 和 zsh。
如果你有 root 权限,你还可以 [用 nnn 管理文件][13],并用 `nano`、`vim` 或 `emacs` 来编辑文件。用户界面除了终端外没有其他东西。
你还可以 [使用 SSH 访问服务器][14]。除此之外,你还可以用 clang、`make` 和 `gbd` 进行 C 语言开发。当然,这些都取决于你的需要,以及你是否有一个已 root 的设备。
你也可以查看它的 [GitHub 页面][15] 来解决发现的问题。截至目前由于一些技术原因Play Store 版本的更新已停止了。因此,如果可用的 Play Store 版本不能工作,你可以通过 [F-Droid][16] 安装最新版本。
#### 5、Termius非 FOSS
![][18]
[Termius][20] 是一个 SSH 和 SFTP 的定制客户端,专门用于从安卓设备进行远程访问。
通过 Termius你可以管理 UNIX 和 Linux 系统。Play Store 页面将其描述为一个漂亮的安卓版 Putty 客户端,这一点是正确的。
用户界面很容易理解,看起来并不令人困惑。它还支持 Mosh 和 Telnet 协议。
当你连接到一个远程设备时它可以检测到操作系统如树莓派、Ubuntu、Fedora。你也可以用你的键盘连接到运行这个应用程序的手机上工作。最重要的是没有任何广告或横幅使它成为一个完美的远程连接应用程序。
它确实提供了可选的高级服务14 天免费试用具有更多的功能如加密的交叉同步、SSH 密钥代理转发、SFTP、终端标签等。你也可以在其 [官方网站][19] 上了解更多关于它的信息。
#### 6、JuiceSSH非 FOSS
![][21]
[JuiceSSH][22] 是另一个流行的 SSH 客户端,有大量免费的功能和一个可选的专业版升级。
除了支持 Telnet 和 Mosh 之外,你还可以使用一些第三方插件来扩展功能。你可以从一系列可用的选项中调整外观,并按组轻松组织你的连接。
不要忘了,还有 IPv6 支持。
如果你选择专业版升级,你可以与 AWS 集成,启用安全同步,自动备份等等。
#### 7、ConnectBotFOSS
![][23]
如果你想要的只是一个简单的 SSH 客户端,[ConnectBot][24] 应该能满足你的需求。
你可以管理同时进行的 SSH 会话、创建安全隧道,并获得在其他应用程序之间复制/粘贴的能力。
### 赠品:无需 root 设备就能访问 Linux 发行版和命令
如果你没有已 root 的安卓手机,也不打算去 root 它,你有一个独特的选择,让你在智能手机上安装 Linux 发行版。
- [Andronix][25] (部分开源)
你可以得到广泛的 Linux 发行版和琳琅满目的桌面环境以及窗口管理器。
最重要的是,你不需要一个已 root 的设备来使用各种 Linux 命令。你只需要安装你最喜欢的发行版就可以做到这一切。
除了使用方便外,它还提供高级选项,使你能够获得离线发行版安装和跨设备同步命令的能力。
当然,你安装了一个 Linux 发行版并不意味着你可以做所有事情,但它仍然是一个很好的选择。你可以在 [Play Store][26] 找到它,并在 [GitHub][27] 上了解关于它的更多信息。
## 总结
在安卓上访问 Linux 终端并不像选择一个终端模拟器那么简单。你需要检查对命令的支持,以及它能让你在已 root 的、未 root 的设备上做什么,然后再继续。
如果你想做实验,任何一个选项都应该做得很好。
你的个人最爱是什么?我们是否错过了列出任何你的最爱?请在下面的评论中告诉我。
--------------------------------------------------------------------------------
via: https://itsfoss.com/using-linux-terminal-android/
作者:[Ankush Das][a]
选题:[lujun9972][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/online-linux-terminals/
[2]: https://itsfoss.com/linux-terminal-emulators/
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/qute-terminal.jpg?resize=800%2C600&ssl=1
[4]: https://itsfoss.com/linux-command-tricks/
[5]: https://itsfoss.com/shell-scripting-resources/
[6]: https://play.google.com/store/apps/details?id=com.ddm.qute&hl=en_IN&gl=US
[7]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/terminal-emulator-old.jpg?resize=800%2C600&ssl=1
[8]: https://github.com/jackpal/Android-Terminal-Emulator/
[9]: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en_IN&gl=US
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/material-terminal.jpg?resize=800%2C600&ssl=1
[11]: https://play.google.com/store/apps/details?id=yarolegovich.materialterminal&hl=en_IN&gl=US
[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/termux.jpg?resize=800%2C600&ssl=1
[13]: https://itsfoss.com/nnn-file-browser-linux/
[14]: https://linuxhandbook.com/ssh-basics/
[15]: https://github.com/termux/termux-app
[16]: https://f-droid.org/en/packages/com.termux/
[17]: https://play.google.com/store/apps/details?id=com.termux
[18]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/termius.jpg?resize=800%2C600&ssl=1
[19]: https://termius.com/
[20]: https://play.google.com/store/apps/details?id=com.server.auditor.ssh.client&hl=en_IN&gl=US
[21]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/juicessh.jpg?resize=800%2C600&ssl=1
[22]: https://play.google.com/store/apps/details?id=com.sonelli.juicessh&hl=en_IN&gl=US
[23]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2022/02/connectbot-app.jpg?resize=800%2C600&ssl=1
[24]: https://play.google.com/store/apps/details?id=org.connectbot&hl=en_IN&gl=US
[25]: https://andronix.app/
[26]: https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
[27]: https://github.com/AndronixApp