How to use terminal in the termux shell

As mentioned before, the termux shell also features a package manager for installing packages in the environment.


As this is already default (as many other Linux distros) you won’t have to do anything special when installing the basic tools.


Here is what I mean:


$ termux.sh shell



Here is how to launch a simple command to list available commands:


$ termux.sh ls


Examples:


$ echo hello world >/dev/null


$ chmod +x hello.sh


$ chmod +x hello.sh hello.sh


$ uname -a Linux name debian-7-x86_64


$ mkdir /data


$ ps aux | grep amd


$ grep -A -B "amd" /proc/cpuinfo


$ chkconfig pmd on


$ rm /tmp/debian.conf


$ apt-get install -y `/bin/sh`


$ apt-get install apt-transport-https `/bin/sh`


$ apt-get install nautilus


$ sudo apt-get install osh


$ sudo apt-get install ruby


$ sudo apt-get install screen


$ git clone https://github.com/hashicorp/termux.git


$ cd termux


$ git clone https://github.com/hashicorp/apt


$ git clone https://github.com/hashicorp/coreutils


$ git clone https://github.com/hashicorp/coreutils/apt-transport-https


$ git clone https://github.com/hashicorp/pentoo


$ git clone https://github.com/hashicorp/x-utils


$ git clone https://github.com/hashicorp/zenity


$ git clone https://github.com/hashicorp/linux-extra-ports


$ git clone https://github.com/hashicorp/apt


$ git clone https://github.com/hashicorp/enchant


$ git clone https://github.com/hashicorp/marta


$ git clone https://github.com/hashicorp/lightweight-multi-threaded-cpus


$ git clone https://github.com/hashicorp/extras


$ git clone https://github.com/hashicorp/livereload


$ git clone https://github.com/hashicorp/pinions


$ git clone https://github.com/hashicorp/mupen64plus/


$ git clone https://github.com/hashicorp/kmod


$ git clone https://github.com/hashicorp/termux


$ git clone https://github.com/hashicorp/ssh-keygen


$ cd ~/.bashrc


$ cat ~/.bashrc


if [ -e "alias ssh='ssh -L'" ]; then


alias xs='ps aux | grep "x", "x.gpg" | xargs -L'; echo 'SHELL=/bin/sh'


The termux shell is available under the MIT license.


While the console part of termux is usually not a big issue, you will eventually want to add some GUI components to the shell.


The qt-lisp-glib package provides some of these components.


This package is the default Termux shell itself, and can be used without installing anything else.


But, if you want to add additional GUI components to your Termux shell, you need to install the termux-gui package:


$ sudo apt-get install termux-gui


The termux-gui package is the one that you can use to customize your Termux shell with different kinds of GUI components.


Here is the list of the major components:


Qt-lisp-glib-base is the library that provides Qt-based GUI components.


is the library that provides Qt-based GUI components. qt-frame-library is the library that provides qt-kitchen-style GUI components.


is the library that provides qt-kitchen-style GUI components. qt-skeleton-components is the library that provides functionality to expose the Qt-based GUI components to skeleton application files.


is the library that provides functionality to expose the Qt-based GUI components to skeleton application files. Glib-based framework consists of the GLib classes and the Swing classes.


comprised of the GLib classes and the Swing classes. QML-based components are a simple QML (Qt Quick) based interface to Qt-based GUI components.


React-based components are a simple view layer for generating effects, having the design intentions of being lightweight and generic.


In terms of developing your own GUI components, the termux-component-module provides a basic set of components and events.


Here are the official documentation pages:


Termux provides a set of robust modules for handling different kinds of Unix tools.


To install the following modules:


dbg is a collection of utility programs for debugging applications.


is a collection of utility programs for debugging applications. debugger-toolbox provides a collection of tools for handling debuggers.


provides a collection of tools for handling debuggers. gdb is a debugger that can be used with many Linux distributions, including Mac OS X.


The two list of dependencies for using the GNU Compiler Collection (GCC):


install-toolchain-sources (supported by GNU make)


(supported by GNU make) cpio-sources (supported by GNU make)


(supported by GNU make) libc-sources (supported by GNU make)


(supported by GNU make) libpng (supported by GNU make)


To build termux from sources:


$ cd ~/bin


$ git clone https://github.com/hashicorp/termux.git


$ cd termux


$ make


$ make install


# apt-get install git, gcc, python


# debootstrap


# make install


$ touch /boot/config.txt


# vi /boot/config.txt


Your terminal needs to be a full-screen terminal.


Note: in order to run the Termux command in a terminal window, you need to have the 'nano' extension installed.


# apt-get install nano


To activate the git repository repository:


$ cd ~/termux


$ git remote add origin https://github.com/hashicorp/termux.git


# git clone https://github.com/hashicorp/termux.git


$ cd ~/termux/release


$ make install


$ make check


$ make install


To bootstrap your Termux:


$ cd ~/termux/install


$ cd root/repo/


$ git clone https://github.com/hashicorp/termux.git


$ cd ~


$ make init


$ cd ~


$ make install


And, it will create the following file:


$ cd ../termux/

Installing modules:

$ ls -l total 12 drwxrwx--- 14 termux staff 225 Feb 25 12:02 . drwxrwx--- 48 termux staff 650 Feb 25 12:02 .. -rw------- 1 termux staff 2744 Feb 25 12:02 .gitignore -rw-r--r-- 1 termux staff 2744 Feb 25 12:02 .makedevs.plist -rw-r--r-- 1 termux staff 2744 Feb 25 12:02 .precache.d -rw-r--r-- 1 termux staff 2744 Feb 25 12:02 .qmuxrc -rw-r--r-- 1 termux staff 2744 Feb 25 12:02 .termuxrc drwxrwx--- 14 termux staff 255 Feb 25 12:02 .rodata -rw-r--r-- 1 termux staff 2516 Feb 25 12:02 .config -rw-r--r-- 1 termux staff 8185 Feb 25 12:02 .log -rw-r--r-- 1 termux staff 6264 Feb 25 12:02 .rodata/conf -rw-r--r-- 1 termux staff 2516 Feb 25 12:02 .modules/ -rw-r--r-- 1 termux staff 732 Feb 25 12:02 .modules/rodata.minimal.fast.de.omh -rw-r--r-- 1 termux staff 2516 Feb 25 12:02 .modules/vmhba32-Sierra -rw-r--r-- 1 termux staff 8194 Feb 25 12:02 .modules/omhba32-Sierra.net -rw-r--r-- 1 termux staff 1843 Feb 25 12:02 .modules/smnklm -rw-r--r-- 1 termux staff 1843 Feb 25 12:02 .modules/skms -rw-r--r-- 1 termux staff 7540 Feb 25 12:02 .modules/skms/glance-tiny -rw-r--r-- 1 termux staff 2802 Feb 25 12:02 .modules/skms/glance-mini -rw-r--r-- 1 termux staff 2617 Feb 25 12:02 .modules/skms/modulink-pkgpkgconfig-glance -rw-r--r-- 1 termux staff 10963 Feb 25 12:02 .modules/skms/modulink-pkgconfig-glance-pkgconfig -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/skms/slhmi -rw-r--r-- 1 termux staff 5685 Feb 25 12:02 .modules/xorg -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-cdrom -rw-r--r-- 1 termux staff 5837 Feb 25 12:02 .modules/xorg-cdrom.xorg.x2fs -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl -rw-r--r-- 1 termux staff 4839 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x65 -rw-r--r-- 1 termux staff 1008 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x68 -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x74 -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x1c -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x58 -rw-r--r-- 1 termux staff 10884 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x2b -rw-r--r-- 1 termux staff 5236 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x79 -rw-r--r-- 1 termux staff 1812 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x7b -rw-r--r-- 1 termux staff 1812 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x68 -rw-r--r-- 1 termux staff 10884 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x7c -rw-r--r-- 1 termux staff 1812 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x79.x5b -rw-r--r-- 1 termux staff 1812 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x61 -rw-r--r-- 1 termux staff 1194 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x59 -rw-r--r-- 1 termux staff 4667 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x2b -rw-r--r-- 1 termux staff 1202 Feb 25 12:02 .modules/xorg-xserver-amd64.x86_64.zbl.x7a -rw-r--r-- 1 term

and you are all set with the basic to professional tool kits in your handy Termux.


Post a Comment

Previous Post Next Post