• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Initial Repo Setup For Termux Android Linux Environment

By Abhishek Ghosh April 15, 2018 10:58 pm Updated on April 25, 2018

Initial Repo Setup For Termux Android Linux Environment

Advertisement

In our previously published article on Android Terminal Apps, we clearly indicated that Termux is practical app to us and we are going to write guides on Termux in future. Here is CLI Guide For Initial Repo Setup For Termux Android Linux Environment to Make it Like Regular GNU/Linux Server to Run Apache HTTP Server, PHP, MySQL, Python etc. Termux does what Homebrew does to a Mac – kind of missing package manager. How funny, they sell us some sort of unix system without a bash. Community hugely working with Termux repositories and sooner, like Mac we can avoid tapping on Google Play Store like monkeys for installing Free Software packages. I believe that many developer users want to install Apache2, Python on Android and play while on the road, queue etc.

Initial Repo Setup For Termux Android Linux Environment

 

Initial Repo Setup For Termux Android Linux Environment

 

Open Termux. We can use apt or pkg command. First update, upgrade :

Vim
1
2
3
4
pkg update
# apt update
pkg upgrade
apt update

You’ll notice that the setup lacks sources.list file. Also many GNU Tools are not installed by default. Let us install them :

Advertisement

---

Vim
1
2
3
4
5
pkg upgrade
pkg install wget curl dirmngr gnupg-curl
pkg install autoconf automake bison bzip2 clang cmake
pkg install coreutils diffutils flex gawk git grep gzip libtool make patch perl
pkg install sed silversearcher-ag tar

Now, to setup sources.d directory and sources.list file, we need to perform the below steps :

Vim
1
2
3
4
5
6
# Download key from keyserver:
apt-key adv --keyserver pgp.mit.edu --recv A46BE53C
mkdir -p $PREFIX/etc/apt/sources.list.d
# Setup repo
echo "deb [trusted=yes] https://grimler.se root stable" > $PREFIX/etc/apt/sources.list.d/termux-root.list
apt update

It is not abnormal to receive error after running :

Vim
1
apt-key adv --keyserver pgp.mit.edu --recv A46BE53C

Those may appear out of firewall or some missing packages or bug. You may try this :

Vim
1
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 379CE192D401AB61

The above is for advanced setup. Normally you can run commands to search packages :

Vim
1
2
3
pkg search apache2
pkg search nginx
pkg search python

Here are repositories and more information :

Vim
1
2
3
https://github.com/termux/termux-packages/tree/master/packages
https://github.com/termux/termux-apt-repo
https://wiki.termux.com/wiki/Package_Management

Tagged With TERMUX , pkg install root-repo , termux sources list , termux repository , android reposp for termux , best termux repos 2021 , termux lxc , termux root-repo , termux initial setup , termux etc/apt/sources list
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Initial Repo Setup For Termux Android Linux Environment

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • How to Use Android Smartphone as IoT Device (Termux, Node-RED)

    We can use any modern Android Smartphone something like a Raspberry Pi with camera, all the sensors & send the collected to any IoT platform.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy