├── termux-install-ansible.sh ├── LICENSE └── README.md /termux-install-ansible.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash 2 | yes | pkg upgrade && \ 3 | yes | pkg install \ 4 | python \ 5 | python-dev \ 6 | libffi \ 7 | libffi-dev \ 8 | openssl \ 9 | openssl-dev \ 10 | libsodium \ 11 | clang \ 12 | cmake 13 | # Install the latest Python package manager. 14 | # The version of pip that comes with Python may be outdated. 15 | pip install --upgrade pip 16 | pip list --outdated --format=freeze | \ 17 | grep -v '^\-e' | \ 18 | cut -d = -f 1 | \ 19 | xargs -n1 pip install -U && \ 20 | # The pynacl dependency originally did not install because 21 | # it gave problems building dependencies' 22 | pip install --upgrade pynacl 23 | pip install --upgrade ansible 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Hans Kruse 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Termux-setup 2 | 3 | This project contains scripts to configure [Termux](https://termux.com/) for dev(ops) purposes. 4 | It allows me and you to setup Termux in a repeatable way. 5 | 6 | [Termux](https://termux.com/) is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. 7 | 8 | ## Installing Ansible 9 | 10 | [Ansible](https://www.ansible.com/) is an open-source software provisioning, configuration management, and application deployment tool. 11 | It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own [YAML](https://yaml.org/) based declarative language to describe system configuration. 12 | 13 | I created a script that installs Ansible and all it's necessary dependencies on Termux. 14 | If you just install python and then try to install ansible with the Python package manager `pip`, you will run into several dependency errors. It will allow you to use Ansible with remote hosts. I have not tested it on `localhost` aka Termux itself yet! 15 | 16 | The script does the following: 17 | 18 | 1. Update dependencies that are needed to compile some of the dependencies of Ansible using `pkg`. 19 | 2. Update `pip` 20 | 3. Update other Python packages using `pip` 21 | 4. Install `pynacl` with `pip` 22 | 5. install `ansible` with `pip` 23 | 24 | You can run this script as follows. 25 | 26 | ```bash 27 | > pkg install wget 28 | > wget https://raw.githubusercontent.com/nicenemo/termux-setup/master/termux-install-ansible.sh 29 | > sh termux-install-ansible.sh 30 | ``` 31 | 32 | ## Installing dev system 33 | 34 | > To be determined. I am not certain yet whether I want to do this with Ansible or just a bunch of `pkg install ...` or `apt install ...` commands. By default `apt` is not available. After running the script for ansible, `apt` is available. So I should be able to use Ansible. 35 | --------------------------------------------------------------------------------