Termux and Ubuntu Setup Guide
Пример установки Linux на смартфоне:
Termux and Ubuntu Setup Guide
Installation and Setup
1. Install Ubuntu via Termux
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
2. Install Necessary Packages
apt update
apt install tigervnc-standalone-server
apt install xfce4 xfce4-goodies # Install XFCE desktop environment
apt install novnc websockify # Install noVNC and Websockify
3. Configure VNC Server
tigervncserver :3 -localhost no
After starting the VNC server, use the websockify
command to proxy VNC to WebSocket:
websockify --web /usr/share/novnc 6080 localhost:5903 &
Running Applications in Background
To run a command in the background, add &
at the end of the command:
nohup websockify --web /usr/share/novnc 6080 localhost:5903 &
Installing and Running TigerVNC via Termux
pkg update
pkg upgrade
pkg install tigervnc
Using proot
to Launch Ubuntu
proot -r ~/ubuntu/ /bin/bash
If the folder ~/ubuntu/
does not exist, create it:
mkdir -p ~/ubuntu
proot -r ~/ubuntu/ /bin/bash
Checking and Setting Up Permissions
termux-setup-storage
Moving Files to Accessible Folders
cp ~/yourfile /storage/emulated/0/Download/
Now the file yourfile
will be available in the Download
folder on your device.
Conclusion
If you encounter any issues, try reinstalling Termux and all necessary packages to ensure all dependencies and correct versions of programs are installed.
и вот ещё пример для требовательных parserposter.ru/noVNC/
5 comments
pwd
ls
touch way
cat way
nano way
cd way
rm way
vncserver -list
vncserver -kill :1
vncserver :1
top
htop
wget URL
apt install NAME
pkg install NAME
pip install NAME
find
export
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=13897
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list deb https://grimler.se/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list) deb https://grimler.se/termux/termux-x11 x11 main Updatable packages:
All packages up to date
termux-tools version:
1.43.2 Android version:
11
Kernel build information:
Linux localhost 4.14.186 #1 SMP PREEMPT Tue Oct 26 11:10:20 WIB 2021 aarch64 Android
Device manufacturer:
Xiaomi
Device model: Redmi Note 8 Pro
LD Variables:
LD_LIBRARY_PATH= LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~qPutcwLo-OJQAgI3cwiDAw==/com.termux-vWdLRFdD2KZaXxEEpFKPzw==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1020
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.1
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=10100
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.1
TERMUX__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c40,c257,c512,c768
TERMUX__SE_INFO=default:targetSdkVersion=28:complete
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c40,c257,c512,c768
TERMUX__UID=10296
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
Updatable packages:
libsoxr/stable 0.1.3-7 aarch64 [upgradable from: 0.1.3-6]
libvidstab/stable 1.1.1-1 aarch64 [upgradable from: 1.1.1]
ncurses-ui-libs/stable 6.4.20231001-5 aarch64 [upgradable from: 6.4.20231001-4]
ncurses/stable 6.4.20231001-5 aarch64 [upgradable from: 6.4.20231001-4]
python-ensurepip-wheels/stable 3.11.9-4 all [upgradable from: 3.11.9-3]
python/stable 3.11.9-4 aarch64 [upgradable from: 3.11.9-3]
termux-tools version:
1.43.2
Android version:
13
Kernel build information:
Linux localhost 5.10.160-android12-9-00011 #1 SMP PREEMPT Tue Mar 14 06:23:51 UTC 2023 aarch64 Android
Device manufacturer:
Blackview
Device model:
Tab 18
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
~/noVNC/websockify_new $
https://vk.com/den.sochi?w=wall4472194_12383