Skip to content

Latest commit

 

History

History
109 lines (70 loc) · 3.35 KB

proot-caontainer.md

File metadata and controls

109 lines (70 loc) · 3.35 KB

Expanding Termux Functionality with Distro Containers

Video Guide:- YouTube

Termux natively supports a limited selection of applications. However, with this script, you can extend Termux's capabilities by integrating applications from other Linux distributions using a Distro Container. The best part? There’s no need to log in to the Proot-based distro to access these apps; they seamlessly integrate into Termux, appearing in its desktop app menu and launching directly from the Termux terminal.


Key Features

  • Expand Termux’s App Ecosystem: Install additional applications from various Linux distributions into Termux.
  • Integrated Access: Run installed apps directly in Termux without needing to log in to the Proot distro.
  • Desktop Menu Integration: Applications can be added to the Termux desktop app menu for easy access.

How to Use the Script

  1. Run the Installer Script:

    • When prompted about setting up a Distro Container, type y to continue.
  2. Select a Distribution:

    • Choose a distribution from the list provided by typing the corresponding number. The script will handle the installation and configuration.
  3. Set Up a User Account:

    • It is recommended to create a user account during setup. Once complete, you’re ready to use the container.

Running Installed Apps in Termux

If you’ve installed an app in your distro (e.g., Debian) and want to run it directly from Termux, use the following command:

pdrun <package-name>

Example: To run LibreOffice, type:

pdrun libreoffice


Adding Apps to the Termux Desktop App Menu

You can add installed applications to the Termux desktop menu for quick access in two ways:

  1. Using the Terminal Command:

    • Type add2menu in the terminal, and select the app you want to add.
  2. Using the “Add to Menu” App:

    • Open the Add to Menu app from Termux, and choose the application you want to add.

Once added, the app will appear in the Termux desktop menu.


Installing and Adding Apps in One Step

For a faster setup, use the following command to install an app and add it to the Termux menu simultaneously:

<Distro-Name> install <package-name>

Example: To install and add LibreOffice in Debian, type:

debian install libreoffice

If this method doesn’t work for any reason, you can manually add the app to the menu using the steps outlined above.


Logging into the Installed Distro

  • Log in as a Regular User:

    • Type the name of the installed distribution, e.g., debian, to log in.
  • Log in as Root:

    • Use the --root or -r flag to log in as root:
    debian --root
  • Remove the Distro:

    • To uninstall the distribution and remove all related files, use:
    debian --remove
  • Show Help:

    • Display help information for the distribution with:
    debian --help