查看: 132|回覆: 1

[Ubuntu] termux安装Ubuntu

[複製鏈接]

3

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2010-3-17
發表於 2021-12-29 22:18:00 | 顯示全部樓層 |閲讀模式

Screenshot_20210605-115657_VNC Viewer

Ubuntu 21.04 On android

A tweaked ubuntu-21.04 with xfce4 runs on android with termux/proot-distro

This means now you can install ubuntu like above screenshot right in your smartphone without destroying your phone with rooting

This project is
img
img2
status
img3
Maintainence status
stale
Platform Android Termux App (proot prtace() )
Linux Distribution
badge3
Community
Support Server
Join the chat at https://gitter.im/ubuntu-on-android/community
Code quality & stats
CodeFactor
  • codename -> udroid
Note & Disclaimer (Must read !)

A note before you try

  • As lot of it is preinstalled you can login and start right after you install
  • As this runs on termux and on software rendering so performence clearly depends on CPU, ram and storage read-write speed!
  • Don't try heavy apps unless you have a good device 😃
  • If you have any issues or suggestions make sure i know at https://github.com/RandomCoderOrg/ubuntu-on-android/issue (create an issue)

Disclaimer :

  • i dont work with any company or organization of ubuntu or any third party sources took in making fs(for now).
  • 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.
  • 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 ptrace() a low level access in android kernel
  • Graphics performence is really bad cause proot and usage on VNC, we dont support any adoptation on improving it for now cause insufficient data on android (ping me in discord if you have any ideas or any codes on this)
    • (Update) see https://github.com/RandomCoderOrg/ubuntu-on-android/wiki/XWayland-in-proot to run smooth and fast session
  • This project comes without warranties or data protection

supported architectures status

arch status
arm64
stat
armv7l
stat
armv8l
stat
amd64
stat
Others not started

Installation

  • First install termux from termux.com or F-Droid!

Getting Sources and install scripts

# 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

Basic Usage

Command Usage
udroid To login to shell
udroid upgrade to upgrade fs or to get new features if available
startvnc start vncserver at port 1 (you can change default port by exporting env varaible DEFAULT_VNC_PORT to a port number)
udroid stopvnc stop vncserver at given or default port 1
udroid --enable-dbus To start udroid with dbus hack enabled
udroid --enable-dbus-vnc To start vnc session with dbus hack enabled

Environment Variables

  • DEFAULT_VNC_PORT to set vnc port for scripts
  • HIPPO_BRANCH to set custom branch for cloning code

🔊 Audio

pulseaudio starts everytime you invoke start commands with udroid

You can start audio manually with this command

pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1

Default passwords

password
udroid user secret
vncserver root secret

some Screenshots

image

image

image

image

image

image

FOSSA Status

A small help from me if you want to build your own rootfs wiki_page

Devolopers & credits

Made with ❤️ from:

DEV #0 -> Saicharankandukuri

Dev #1 -> Gxmersam

Licence

MIT
Copyright (c) 2021 Saicharan Kandukuri

More Updates coming soon 💛

  • feel free to contribute to this repo 😃

FOSSA Status

回覆

使用道具 舉報

0

主題

2092

回帖

1萬

積分

琼殿精英

金币
10581
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2011-10-11
發表於 2026-6-14 08:26:43 | 顯示全部樓層
哇塞!终于看到有人把Ubuntu搬到手机上跑了!之前就想过在安卓上体验Linux桌面,苦于需要root一直不敢尝试看到这个项目真的激动人心啊![strong]支持一下![/strong]

看了一下你的分享,感觉这个项目真的很用心啊,连预装的软件都帮你弄好了。而且不需要root就能跑,对我们这些不想刷机的用户太友好了![em01]

不过有几点想请教一下:

1. 流畅度怎么样?我看说明里提到性能取决于CPU、RAM和存储读写速度,我用的是比较老的手机,不知道能不能流畅运行xfce4?

2. 这个和termux自带的proot-distro安装ubuntu有什么区别吗?看你这个预装了很多东西的样子。

3. 默认密码是secret,安全性方面有啥建议吗?毕竟涉及远程访问。

4. 安卓后台被杀进程的话,这个vnc会话会不会直接断开啊?[em02]

总之感谢分享!等下就去试试,之前就 想在手机上学学Linux命令行,现在终于有机会了![em06]

如果有啥问题我会再来请教的,也欢迎各位坛友一起交流经验![strong]圆梦公社果然卧虎藏龙![/strong]
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:dzh188@hotmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部