Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
# Bash Script and Tutorial: Termux Environment Setup # This bash script will help you set up your Termux environment with various tools and graphical enhancements. You can run it by saving it as a file (e.g. `termux-setup.sh`) and executing it with `bash termux-setup.sh`. Alternatively, you can copy and paste the commands in the script to your terminal. ## Step 1: Grant Storage Access # The first step is to grant storage access to Termux, so that you can access your files and folders from the app. To do this, run the following command: ```bash termux-setup-storage ``` # You will be prompted to allow Termux to access your storage. Tap on **Allow** to grant permission. ## Step 2: Configure Repositories # The next step is to configure the repositories that Termux uses to install software packages. This will allow you to access a wider range of tools and libraries. To do this, run the following command: ```bash termux-change-repo ``` # You will see a menu with different options for each repository. You can use the arrow keys to navigate and the space bar to select or deselect an option. Press **Enter** when you are done. # For this tutorial, we will select the following options: # - For **Main** repository, select **grimler.se**. # - For **Science** repository, select **grimler.se**. # - For **Game** repository, select **grimler.se**. # - Enable **Root**, **Unstable**, and **X11** repositories. ## Step 3: Install Basic Packages # The third step is to install some basic packages that are essential for Termux. These packages will update the package lists, upgrade existing packages, and install some common utilities. To do this, run the following command: ```bash apt install root-repo unstable-repo x11-repo apt update pkg upgrade ``` # This command may take some time to complete, depending on your internet speed and device performance. You may be asked to confirm some actions or enter some information during the installation process. Follow the instructions on the screen. ## Step 4: Install Various Tools # The fourth step is to install a variety of tools that cover different purposes, from development to networking. These tools will enhance your Termux experience and allow you to perform various tasks. To do this, run the following command: ```bash apt-get install ack-grep apache2 aapt apt apt-transport-tor asciinema atomicparsley apksigner attr autoconf automake autossh bash bash-completion bat binutils-gold binutils ca-certificates-java ccache ccrypt coreutils clang cmake-curses-gui cmake cmark cmatrix colordiff coreutils cowsay curl daemonize darkhttpd datamash db debianutils debootstrap dialog diffutils direvent dnsutils espeak expect fakeroot figlet file findutils fontconfig fontconfig-utils fortune fossil freetype gawk gbt gcal getconf gettext ghostscript gifsicle git git-crypt glib glib-bin global gmic gnuit gnupg gnuplot gnutls golang golang-doc googletest gpgme gpgv gpsbabel graphicsmagick graphviz grep gtypist gzip hashdeep hexcurse hexedit httping hugo hunspell hunspell-en-us iconv icu-devtools imagemagick imgflo indent ipcalc iperf3 ipfs json-c json-glib keybase ldns libandroid-glob libandroid-shmem libandroid-support libarchive libbsd libbz2 libc++ libconfig libcrypt libcue libcurl libdb libedit libelf libgcrypt libgit2 libgmp libgnutls libgpg-error libllvm php php-apache php-fpm php-pgsql pkg-config postgresql potrace proot pure-ftpd pwgen python python2 ranger readline redir resolv-conf rhash ripgrep root-repo ruby ruby-ri rust rust-std-wasm32 scrypt serf socat sox sqlite squid ncurses-ui-libs ncurses-utils ndk-multilib ndk-sysroot neofetch neovim net-tools nginx nim ninja nmap nodejs nyancat oathtool openjpeg openjpeg-tools openssh openssl openssl-tool opus-tools opusfile p7zip pango par2 parted pass pass-otp pastebinit patch patchelf pathpicker perl libvterm libwebp libwebsockets libxapian libxml2 libxml2-utils libyaml lighttpd linux-man-pages littlecms littlecms-utils lld lldb llvm ltrace luarocks lynx lzip m4 make man mariadb mathomatic megatools memcached micro mime-support mlocate mosh msmtp mtools multitail nano ncdc ncdu ncmpcpp ncurses sshpass strace stunnel tar termux-am termux-api termux-apt-repo termux-auth termux-create-package termux-elf-cleaner termux-exec termux-keyring termux-tools timewarrior tinyproxy tinyscheme tmate tmux toilet tor torsocks tracepath tsocks tsu unrar unstable-repo unzip util-linux vim vim-runtime weechat weechat-lua-plugin weechat-perl-plugin weechat-python-plugin weechat-ruby-plugin wget wireguard-tools xapian-tools xmlsec xmlstarlet zip zsh ``` # This command may take a long time to complete, depending on your internet speed and device performance. You may be asked to confirm some actions or enter some information during the installation process. Follow the instructions on the screen. ## Step 5: Enhance Terminal and Graphical Environment # The fifth and final step is to enhance your terminal and set up a graphical environment. This will allow you to use Termux as a full-fledged Linux system, with a graphical user interface and various applications. To do this, run the following commands: # - Download the Nethunter framework, which is a custom kernel for Android devices that supports wireless network injection and monitoring: ```bash curl -LO https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter ``` # - Run the Nethunter setup script, which will download and install the Nethunter system and tools: ```bash bash kalinethunter ``` # You will be asked to choose a version of Nethunter. For this tutorial, we will choose **Minimal**. You will also be asked to choose an architecture. For this tutorial, we will choose **arm64**. You will also be asked to enter a username and password for the Nethunter system. Choose something that you can remember. # - Download the Xfce4 graphical environment script, which will install the Xfce4 desktop environment and some applications: ```bash wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh --no-check-certificate ``` # - Execute the Xfce4 script, which will download and install the Xfce4 packages and dependencies: ```bash bash de-apt-xfce4.sh ``` # Congratulations! You have successfully set up your Termux environment with various tools and graphical enhancements. You can now enjoy using Termux as a Linux system on your Android device. # To start the Nethunter system, run the following command: ```bash startkali ``` # To start the Xfce4 graphical environment, run the following command: ```bash vncserver-start ``` # You will need a VNC client app on your Android device to connect to the Xfce4 desktop. You can use any VNC client app that supports password authentication. For this tutorial, we will use **VNC Viewer** by RealVNC. # To connect to the Xfce4 desktop, open the VNC Viewer app and enter the following information: # - Address: **127.0.0.1:5901** # - Name: **Termux Xfce4** # - Password: **changeme** # You can change the password by running the following command in Termux: ```bash vncpasswd ``` # You should see the Xfce4 desktop on your Android device. You can use it as you would use any Linux desktop. # To stop the Xfce4 graphical environment, run the following command in Termux: ```bash vncserver-stop ``` #To stop the Nethunter system, run the following command in Termux: ```bash logout ``` # Written and published by Michael Errington.
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
SmartOS Zombie Zone Cleanup Script
Bash | 1 hour ago | 3.78 KB
Untitled
2 hours ago | 3.86 KB
Decentralized Money
2 hours ago | 0.42 KB
Change your mindset
2 hours ago | 0.08 KB
𝘉𝘐𝘗𝟥𝟤 𝘢𝘯𝘥 𝘉𝘐𝘗𝟦𝟦
3 hours ago | 2.01 KB
𝘌𝘵𝘩𝘦𝘳𝘦𝘶𝘮
3 hours ago | 1.64 KB
Bitcoin
5 hours ago | 0.23 KB
BIP32
5 hours ago | 0.35 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!