termux安装Ubuntu
<p><img src="src/images/edited_showcase.png" alt="Screenshot_20210605-115657_VNC Viewer" title="A Screenshot of ubuntu xfce showing some pre-installed apps" loading="lazy"></p><h1 align="Center">Ubuntu 21.04 On android</h1>
A tweaked ubuntu-21.04 with xfce4 runs on android with termux/proot-distro
<blockquote>
<p>This means now you can install ubuntu like above screenshot right in your smartphone without destroying your phone with rooting</p>
</blockquote>
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>This project is</td>
<td><img src="https://img.shields.io/badge/-Made%20with%20Bash-1f425f.svg?logo=image%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wI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Nfni%2Bx6OMUMMNe%2Fgf7ocbw0v0acKg6J8Ql0q%2BT%2FAXR5PNi5dz9c71upuQqCKFAD%2BYhrZLEAmpodaHO3Qy6TI3NhBpbrshGtOWKOSMYwYGQM8nJzoFJNxP2HjyIQho4PewK6hBktoDcUwtIln4PjOWzflQ%2Be5yl0yCCYgYikTclGlxadio%2BBQCSiW1UXoVGrKYwH4RgMrjU1HAB4vR6LzWYfFUCKxfS8Ftk5qxHoCUQAUkRJaSEokkV6Y%2F%2BJUOC4hn6A39NVXVBYeNP8piH6HeA4fPbpdBQV5KOx0QaL1YppX3Jgk0TwH2Vg6S3u%2BdB91%2B%2FpuNYPYFl5uP5V7ZqvsrX7jxqMXR6ff3gCQSTzFI0a1TX3wIs8ul%2Bq4HuWAAiM39vhOuR1O1fQ2gT%2F26Z8Z5vrl2OHi9OXZn995nLV9aFfS6UC9JeJPfuK0NBohWpCHMSAAsFe74WWP%2BvT25wtP9Bpob6uGqqyDnOtaeumjRu%2ByFu36VntK%2FPA5umTJeUtPWZSU9BCgud661odVp3DZtkc7AnYR33RRC708PrVi1larW7XwZIjLnd7R6SgSqWSNjU1B3F72pz5TZbXmX5vV81Yb7Lg7XT%2FUXriu8XLVqw6c6XqWnBKiiYU%2BMt3wWF7u7i91XlSEITwSAZ%2FCzAAHsJVbwXYFFEAAAAASUVORK5CYII%3D" alt="img" loading="lazy"> <img src="https://badges.frapsoft.com/os/v1/open-source.svg?v=103" alt="img2" loading="lazy"></td>
</tr>
<tr>
<td>status</td>
<td><img src="https://img.shields.io/badge/Installable-green" alt="img3" loading="lazy"></td>
</tr>
<tr>
<td>Maintainence status</td>
<td><img src="https://img.shields.io/badge/-Active-orange" alt="stale" loading="lazy"></td>
</tr>
<tr>
<td>Platform</td>
<td><strong>Android Termux App (proot <code>prtace()</code> )</strong></td>
</tr>
<tr>
<td>Linux Distribution</td>
<td><img src="https://img.shields.io/badge/Linux%20Distribution-UBUNTU%20Hippo%2021.04-brightgreen" alt="badge3" loading="lazy"></td>
</tr>
<tr>
<td>Community</td>
<td><img src="https://img.shields.io/discord/892727774828199976?color=blue&label=join%20%23udroid&logo=discord&logoColor=white&style=for-the-badge" alt="Support Server" loading="lazy"> <img src="https://badges.gitter.im/ubuntu-on-android/community.svg" alt="Join the chat at https://gitter.im/ubuntu-on-android/community" loading="lazy"></td>
</tr>
<tr>
<td>Code quality & stats</td>
<td><img src="https://www.codefactor.io/repository/github/randomcoderorg/ubuntu-on-android/badge" alt="CodeFactor" loading="lazy"></td>
</tr>
</tbody>
</table>
<ul>
<li>codename -> <code>udroid</code></li>
</ul>
<details>
<summary>Note & Disclaimer (Must read !)</summary>
<p>A note before you try</p>
<ul>
<li>As lot of it is preinstalled you can login and start right after you install</li>
<li>As this runs on termux and on software rendering so performence clearly depends on CPU, ram and storage read-write speed!</li>
<li>Don't try heavy apps unless you have a good device 😃</li>
<li>If you have any issues or suggestions make sure i know at https://github.com/RandomCoderOrg/ubuntu-on-android/issue (create an issue)</li>
</ul>
<blockquote>
<p><strong>Disclaimer</strong> :</p>
</blockquote>
<ul>
<li>i dont work with any company or organization of ubuntu or any third party sources took in making fs(for now).</li>
<li>This project works by compliying to selinux android. and all aim of the project is just run linux on android without direct root with a twist and this project improves time by time with your support and motivation.</li>
<li>the linux you trying to install from this repo is not fully functional in target space because of the selinux policies, and increasing requirement in linux requirements and also because project is set to run with <code>ptrace()</code> a low level access in android kernel</li>
<li>Graphics performence is really bad cause proot and usage on VNC, we dont support any adoptation on improving it <strong>for now</strong> cause insufficient data on android (ping me in discord if you have any ideas or any codes on this)</li>
<li>
<ul>
<li><strong>(Update)</strong> see https://github.com/RandomCoderOrg/ubuntu-on-android/wiki/XWayland-in-proot to run smooth and fast session</li>
</ul>
</li>
<li>This project comes without warranties or data protection</li>
</ul>
</details>
<h2 id="supported-architectures-status">supported architectures status</h2>
<table>
<thead>
<tr>
<th>arch</th>
<th>status</th>
</tr>
</thead>
<tbody>
<tr>
<td>arm64</td>
<td><img src="https://img.shields.io/badge/-installable-brightgreen" alt="stat" loading="lazy"></td>
</tr>
<tr>
<td>armv7l</td>
<td><img src="https://img.shields.io/badge/-installable-brightgreen" alt="stat" loading="lazy"></td>
</tr>
<tr>
<td>armv8l</td>
<td><img src="https://img.shields.io/badge/-partially%20supported-orange" alt="stat" loading="lazy"></td>
</tr>
<tr>
<td>amd64</td>
<td><img src="https://img.shields.io/badge/-work%20in%20progress-blue" alt="stat" loading="lazy"></td>
</tr>
<tr>
<td>Others</td>
<td><code>not started</code></td>
</tr>
</tbody>
</table>
<h1 id="installation">Installation</h1>
<ul>
<li>First install termux from termux.com or F-Droid!</li>
</ul>
<h2 id="getting-sources-and-install-scripts">Getting Sources and install scripts</h2>
<pre><code class="language-bash"># download installer
curl -L -o install.sh https://bit.ly/udroid-installer
# run the installer
bash install.sh
# Install ubuntu with this command
udroid --install
</code></pre>
<h3 id="basic-usage">Basic Usage</h3>
<table>
<thead>
<tr>
<th><strong>Command</strong></th>
<th><strong>Usage</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>udroid</code></td>
<td>To login to shell</td>
</tr>
<tr>
<td><code>udroid upgrade</code></td>
<td>to upgrade fs or to get new features if available</td>
</tr>
<tr>
<td><code>startvnc</code></td>
<td>start vncserver at port <code>1</code> (you can change default port by exporting env varaible <code>DEFAULT_VNC_PORT</code> to a port number)</td>
</tr>
<tr>
<td><code>udroid stopvnc</code></td>
<td>stop vncserver at given or default port <code>1</code></td>
</tr>
<tr>
<td><code>udroid --enable-dbus</code></td>
<td>To start udroid with dbus hack enabled</td>
</tr>
<tr>
<td><code>udroid --enable-dbus-vnc</code></td>
<td>To start vnc session with dbus hack enabled</td>
</tr>
</tbody>
</table>
<h2 id="environment-variables">Environment Variables</h2>
<ul>
<li><code>DEFAULT_VNC_PORT</code> to set vnc port for scripts</li>
<li><code>HIPPO_BRANCH</code> to set custom branch for cloning code</li>
</ul>
<h2 id="--audio">🔊Audio</h2>
<p>pulseaudio starts everytime you invoke start commands with <code>udroid</code></p>
<blockquote>
<p>You can start audio manually with this command</p>
</blockquote>
<pre><code class="language-bash">pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
</code></pre>
<h2 id="default-passwords">Default passwords</h2>
<table>
<thead>
<tr>
<th></th>
<th>password</th>
</tr>
</thead>
<tbody>
<tr>
<td>udroid user</td>
<td><code>secret</code></td>
</tr>
<tr>
<td>vncserver root</td>
<td><code>secret</code></td>
</tr>
</tbody>
</table>
<h2 id="some-screenshots">some Screenshots</h2>
<p><img src="src/images/six.png" alt="image" loading="lazy"><br>
<img src="src/images/five.png" alt="image" loading="lazy"><br>
<img src="src/images/four.png" alt="image" loading="lazy"><br>
<img src="src/images/three.png" alt="image" loading="lazy"><br>
<img src="src/images/two.png" alt="image" loading="lazy"><br>
<img src="src/images/one.png" alt="image" loading="lazy"><br>
<img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2FRandomCoderOrg%2Fubuntu-on-android.svg?type=shield" alt="FOSSA Status" loading="lazy"></p>
<p>A small help from me if you want to build your own rootfs wiki_page</p>
<h1 id="devolopers--credits">Devolopers & credits</h1>
<p>Made with ❤️ from:</p>
<p>DEV #0 -> Saicharankandukuri</p>
<p>Dev #1 -> Gxmersam</p>
<h1 id="licence">Licence</h1>
<p>MIT<br>
Copyright (c) 2021 Saicharan Kandukuri</p>
<h2 align="center"> More Updates coming soon 💛</h2>
<ul>
<li>feel free to contribute to this repo 😃</li>
</ul>
<p><img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2FRandomCoderOrg%2Fubuntu-on-android.svg?type=large" alt="FOSSA Status" loading="lazy"></p>
</div>
<div id="MySignature" role="contentinfo">
#Carrawayang written<br><br>
来源:https://www.cnblogs.com/Carrawayang/p/15746965.html
頁:
[1]