技术的总趋势是变得越来越小。从台式机到手表,用户看到了拥有移动计算机而无需随身携带一包电线和适配器的价值。
本文将向您展示如何在手机上安装功能齐全的Ubuntu Linux 操作系统(OS)。(Ubuntu Linux operating system)我们将描述的第一种方法要求您根植您的设备。
什么是根?(What Is Root?)
Android手机使用 Linux 文件系统所有权和权限。root 是超级用户。
当您登录设备时,您可以根据用户权限在手机上执行某些功能。root 用户或超级用户有权对任何文件执行任何操作,例如卸载应用程序。
在您授予自己超级用户权限之前,您必须解锁引导加载程序并安装自定义恢复。
为您的设备生根(Rooting your device)会添加一个标准的Linux功能,该功能是通过在系统中放置一个具有权限的小文件(Linux)su(切换用户)来 删除的。
当您在没有任何其他参数的情况下运行文件时,您的权限和凭据将从普通用户切换到具有完全控制权的超级用户。
使用应用程序来根您的 Android 设备(Use Apps to Root Your Android Device)
对于这种方法,您需要从Google Play Store安装三个应用程序。
BusyBox让您的手机可以访问您通常不会拥有的Linux命令。(Linux)有必要启用许多根应用程序才能工作。
Linux 部署(Linux Deploy)(Linux Deploy)
Linux Deploy是一个开源程序,用于在您的Android手机上轻松快速地安装Linux 操作系统。(Linux OS)
它通过在闪存卡上创建磁盘映像、挂载它并安装操作系统分发来工作。
打开应用程序以确保您具有 root 访问权限(您应该在安装BusyBox之后)。单击屏幕右上角或右下角的下载按钮。
- 您现在将看到选项菜单。将大部分设置保留为默认值。(Leave)在Properties: Linux下,选择您的发行版。
- 通过从分发套件(Distribution suite)中选择一个选项来改变Linux的风格。
- 在桌面环境(Desktop environment)下选择您想要的桌面以更改应用程序的外观。
- 在GUI设置下,勾选启用(Enable)以确保您的设备将具有图形界面。进入GUI设置以更改屏幕分辨率等选项。
- 在Properties 下,(Properties,)通过将Username设置为root来授予自己超级用户特权访问权限。
要打开菜单,请单击屏幕右上角的三个点。选择安装(Install)并单击确定(OK)开始在手机上安装应用程序。
该过程需要一点时间,因为它是在您的Android设备 上安装整个Linux发行版。(Linux)
安装完成后,点击START打开fruit(一个子隔间),完成后点击STOP。
最后要安装的应用程序是VNC Viewer。它会将您的Android设备变成远程桌面并允许您查看GUI。
打开应用程序,添加一个新连接,使用localhost:5900作为Address,然后单击Create。这将为 localhost 打开一个新窗口。单击(Click) 连接(CONNECT)。
输入(Enter)您之前在要求身份验证(Authentication)时设置的密码,然后单击完成(Done)。您现在将能够看到Linux并使用它。
使用 UserLand 在您的 Android 手机上安装 Linux 操作系统 (Install a Linux OS On Your Android Mobile Phone With UserLAnd )
在Android手机上安装Linux 操作系统的另一种方法是使用(Linux OS)UserLAnd应用程序。使用这种方法,无需root您的设备。
转到Google Play 商店(Google Play Store),下载并安装UserLAnd。该程序将在您的手机上安装一个层,使您能够运行您选择的Linux发行版。(Linux)
启动应用程序,我们将选择Ubuntu,然后点击OK。通过单击ALLOW授予(Grant)应用程序权限。
提供用户(Provide user)登录详细信息。输入Ubuntu 会话的Username、Password和VNC Password ,然后点击(VNC Password)CONTINUE > VNC > CONTINUE。
UserLand将为Ubuntu下载所有必需的资产。该过程的长度将根据您的Internet速度而有所不同。
您将使用它进行VNC和 ssh 访问。等待(Wait)安装完成,会显示进度。
此时,UserLAnd将为Ubuntu会话下载所有必要的资产。该过程需要多长时间取决于您的连接速度。
安装完成后,您将被重定向到Google Play 商店(Google Play Store)以下载 bVNC(download bVNC)。
单击Install,然后单击Back以返回到UserLAnd应用程序。如果询问,请授予 bVNC 访问您的文件的权限,然后单击Allow。
如果Ubuntu(Ubuntu)有可用选项,请点击它以启动Linux会话。如果没有选项,请单击屏幕底部的会话,然后点击右上角的(Sessions)+号。
将新会话命名为Ubuntu > select apps:Ubuntu for Filesystem > 选择ssh作为 Service Type > Done。
要启动 Linux 会话,请点击屏幕底部的会话。(Sessions)新会话将打开到桌面环境。
要打开应用程序,请点击屏幕左下方的开始菜单。通过点击System Tools(System Tools) > LXTTerminal使用命令终端安装(Install)新的Linux程序。
如果要关闭桌面,请点击屏幕上的任意位置 >三个垂直点(three vertical dots)>断开连接(Disconnect)。
上述方法向您展示了如何在智能手机上安装Linux 操作系统(Linux OS)。Linux比Android更灵活,使用户能够执行高级图像编辑、应用程序开发和在真实桌面环境中工作等功能。
缺点是你在一个小屏幕上工作。但是,如果您想将桌面放在口袋里,请尝试一下。
How To Install a Linux OS On Your Android Phone
The general trend for technology is to become smaller and smaller. Frоm desktops to watches, users see value in having a mobile computer without having to carry around a bag of wires аnd adapters.
This article will show you how to install a fully functioning Ubuntu Linux operating system (OS) on your mobile phone. The first method we will describe requires you to root your device.
What Is Root?
Android phones use Linux file-system ownership and permissions. The root is the superuser.
When you log into your device, there are certain functions you can perform on your phone based on user permissions. The root user or superuser has permissions to do anything to any file such as uninstall an application.
Before you can grant yourself superuser permissions, you must unlock the bootloader and install a custom recovery.
Rooting your device adds a standard Linux function that was removed by placing a small file su (switch user) with permissions in the system.
When you run a file without any other parameters, your permissions and credentials are switched from a regular user to a superuser with complete control.
Use Apps to Root Your Android Device
For this method, you will need to install three apps from the Google Play Store.
BusyBox gives your phone access to Linux commands that you wouldn’t typically have. It is necessary to enable many root apps to work.
Linux Deploy is an open-source program used to easily and quickly install Linux OS on your Android mobile phone.
It works by creating a disk image on a flashcard, mounting it, and installing an OS distribution.
Open the app to make sure you have root access (you should after installing BusyBox). Click the download button on the top or bottom right-hand side of your screen.
- You will now see the options menu. Leave most of the settings as the default. Under Properties: Linux, select your distribution.
- Change the flavor of Linux by selecting an option from the Distribution suite.
- Select the desktop you want under Desktop environment to change the look and feel of the app.
- Under the GUI setting, tick off Enable to ensure your device will have a graphical interface. Go into the GUI settings to change options such as the screen resolution.
- Under Properties, give yourself superuser privileged access by setting your Username to root.
To open the menu, click the three dots at the top right-hand side of your screen. Select Install and click OK to start installing the app on your phone.
The process takes a little time as it is installing the entire Linux distribution on your Android device.
After the installation is complete, click START to open fruit (a sub-compartment), then hit STOP when finished.
The final app to install is VNC Viewer. It will turn your Android device into a remote desktop and allow you to view the GUI.
Open the app, add a new connection, use localhost:5900 for Address, and click Create. This will open a new window for localhost. Click CONNECT.
Enter the password you set earlier when asked for Authentication and click Done. You will now be able to see Linux and use it.
Install a Linux OS On Your Android Mobile Phone With UserLAnd
Another way to install a Linux OS on your Android mobile phone is to use the UserLAnd app. With this method, there is no need to root your device.
Go to the Google Play Store, download, and install UserLAnd. The program will install a layer on your phone, enabling you to run the Linux distribution you choose.
Launch the app, we will choose Ubuntu, and then tap OK. Grant app permissions by clicking ALLOW.
Provide user login details. Enter a Username, Password, and VNC Password for the Ubuntu session, then tap CONTINUE > VNC > CONTINUE.
UserLand will download all the required assets for Ubuntu. The process will vary in length depending upon your Internet speed.
You will use this for VNC and ssh access. Wait for the installation to complete, progress will be displayed.
At this point, UserLAnd will download all the necessary assets for the Ubuntu session. How long the process takes will depend upon the speed of your connection.
When the installation is complete, you will be redirected to the Google Play Store to download bVNC.
Click Install, then Back to return to the UserLAnd app. Give permission to bVNC to access your files if asked and then click Allow.
If an option is available for Ubuntu, tap on it to start a Linux session. If there is no option, click on Sessions at the bottom of your screen, then tap the + sign at the top right-hand corner.
Name the new session Ubuntu > select apps:Ubuntu for Filesystem > choose ssh for Service Type > Done.
To launch a Linux session, tap Sessions on the bottom of your screen. The new session will open to a desktop environment.
To open applications, tap the start menu located at the bottom-left side of your screen. Install new Linux programs using the command terminal by tapping System Tools > LXTTerminal.
If you want to close the desktop, tap anywhere on your screen > the three vertical dots > Disconnect.
The methods above show you how to install a Linux OS on your smartphone. Linux is more flexible than Android by enabling users to perform functions such as advanced image editing, app development, and working in a real desktop environment.
The downside is that you are working on a tiny screen. However, if you want the ability to carry your desktop in your pocket, give it a try.