Last active
December 26, 2020 16:35
-
-
Save numbnet/16283d639aa316c8a1925c779dbd225c to your computer and use it in GitHub Desktop.
UNIX.scripts.Centros.Termux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============= .bashrc ============= # | |
##==================≠================== | |
## Aliases | |
##==================≠================== | |
alias ls="ls -a" | |
alias rm='rm -rf' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
##==================≠================== | |
## Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
##==================≠================== | |
# ====BASH COMMANDS==== | |
##==================≠================== | |
### 1.Отображение Даты и Времени | |
export HISTTIMEFORMAT="%Y%m%d %H:%M [$(whoami)@$(hostname -b)]# " | |
##==================≠================== | |
### 2.Увеличиваем размер и количество строк | |
export HISTSIZE=50000 | |
export HISTFILESIZE=50000 | |
##==================≠================== | |
### 3.Добавл Команд Bash в Файл с Историей | |
shopt -s histappend | |
##==================≠================== | |
### 4. Мгновенно Сохранять Историю | |
###* / == РАНЕЕ НЕ ЗАДАНА : | |
PROMPT_COMMAND='history -a' | |
###* / == РАНЕЕ ЗАДАНА : | |
#PROMPT_COMMAND='$PROMPT_COMMAND; history -a' | |
##==================≠================== | |
## 5. Контролируйте Bash History | |
### HISTCONTROL — список опций, разделенных двоеточиями. | |
export HISTCONTROL=ignorespace:erasedups | |
##==================≠================== | |
## 6. Игнорировать Определенные Команды | |
export HISTIGNORE="ls:ps:history" # Не сохранять команды ls, ps и history: | |
##==================≠================== | |
## 7. Исправление случайных ошибок. | |
shopt -s cdspell | |
##==================≠================== | |
## 8.все строки многостроч.,в одной записи | |
shopt -s cmdhist | |
##==================≠================== | |
## 9. Изменить Имя Файла с Историй Команд | |
export HISTFILE=~/.history_"$USER" | |
##==================≠================== | |
## Применить изменения в ~/.bashrc: | |
$ source ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs='git status ' | |
alias ga='git add .' | |
alias gs='git commit -m "File edit or ... add new file" ' | |
alias gb='git branch ' | |
alias gps='git push ' | |
alias gpu='git pull ' | |
alias gs='git status ' | |
alias gd='git diff ' | |
alias gco='git checkout ' | |
alias gk='gitk --all&' | |
alias gx='gitx --all' | |
alias got='git ' | |
alias get='git ' | |
alias gacpp='git status;git add .;git commit -m "Add file...";git push;git pull ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## NAME: .zshrc | |
## AVTOR: numbnet | |
## If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
## Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
## Set name of the theme to load --- if set to "random", it will load a random theme each time oh-my-zsh is loaded, in which case, to know which specific one was loaded, run: echo $RANDOM_THEME | |
## See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" | |
plugins=( | |
git | |
web-search | |
zsh-completions | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
) | |
source $ZSH/oh-my-zsh.sh | |
## User configuration | |
autoload -U compinit && compinit | |
# export MANPATH="/usr/local/man:$MANPATH" | |
## You may need to manually set your language environment | |
## export LANG=en_US.UTF-8 | |
## Preferred editor for local and remote sessions | |
## if [[ -n $SSH_CONNECTION ]]; then | |
## export EDITOR='vim' | |
## export EDITOR='nano' | |
## else | |
## export EDITOR='mvim'w | |
## fi | |
## Compilation flags | |
## export ARCHFLAGS="-arch x86_64" | |
## SSH PATH | |
# export SSH_KEY_PATH="~/.ssh/rsa_id" | |
## Set personal aliases, overriding those provided by oh-my-zsh libs, plugins, and themes. Aliases can be placed here, though oh-my-zsh users are encouraged to define aliases within the ZSH_CUSTOM folder. For a full list of active aliases, run. | |
zstyle ':completion:*' insert-tab false | |
## Автокомплит для первого символа | |
HISTFILE=~/.zhistory | |
### Число команд, сохраняемых в HISTFILE | |
SAVEHIST=500000 | |
### Чucлo команд, coxpaняeмыx в сеансе | |
HISTSIZE=50000 | |
DIRSTACKSIZE=20 | |
#### Опции истории команд #### | |
## Добавляет в историю время выполнения команды. | |
setopt extended_history | |
alias history='fc -il 1' | |
alias ls='ls -a' | |
## История становится общей между всеми сессиями / терминалами. | |
setopt share_history | |
## Дополнение файла истрии | |
setopt APPEND_HISTORY | |
## Добавить команду в историю не после выполнения а перед | |
setopt INC_APPEND_HISTORY | |
## Игнopupoвaть вce пoвтopeнuя команд | |
setopt HIST_IGNORE_ALL_DUPS | |
## Удалять из файл истории пустые строки | |
setopt HIST_REDUCE_BLANKS | |
## команды «history» и «fc» в историю заноситься не будут | |
setopt HIST_NO_STORE | |
## если набрали путь к директории без комманды CD, то перейти | |
setopt AUTO_CD | |
## Сообщать при изменении статуса фонового задания | |
setopt NOTIFY | |
## Перемещение стрелочками по выбору | |
# setopt menucomplete | |
# zstyle ':completion:*' menu select=1 _complete _ignored _approximate | |
## Вести себя как в BASH | |
# setopt AUTO_MENU BASH_AUTO_LIST | |
## исправлять неверно набранные комманды | |
setopt CORRECT_ALL | |
## вопрос на автокоррекцию | |
SPROMPT='zsh: Заменить '\''%R'\'' на '\''%r'\'' ? [Yes/No/Abort/Edit] ' | |
## Можно вводить комментарии начинающиеся с #. | |
setopt interactive_comments | |
autoload -U compinit promptinit | |
compinit | |
promptinit; | |
## Дополняем спрятанные .файлы: | |
_comp_options+=(globdots) | |
## экранируем спецсимволы в url, например &, ?, ~ и так далее | |
autoload -U url-quote-magic | |
zle -N self-insert url-quote-magic | |
## Включение поддержки выражений вроде «{1-3}» или «{a-d}» — они будут разворачиваться в «1 2 3» и «a b c d» соответственно | |
setopt BRACECCL | |
## После перехода в директорию вызываем ls. | |
function lcd() {cd "$1" && ls} | |
# =======END====== # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 1Etap.sh #### | |
# https://gist.githubusercontent.com/numbnet/16283d639aa316c8a1925c779dbd225c/raw/e44a093421e9988ffcfee7c43b2da95b5be98b57/1Etap.sh | |
# Кастомизации Termux | |
##############) | |
#* | |
TMPDIR=$PREFIX/tmp | |
XDG_CACHE_HOME=$HOME/.cache | |
XDG_TMP_HOME=$HOME/.tmp | |
RESTIC_CACHE_DIR=$PREFIX/var/cache | |
TERM_STORAGE="$HOME/storage/shared" | |
export XDG_TMP_HOME=$HOME/.tmp | |
export TMPDIR=$PREFIX/tmp | |
export XDG_CACHE_HOME=$HOME/.cache | |
export RESTIC_CACHE_DIR=$PREFIX/var/cache | |
#* | |
####################### | |
# Добавляем wget curl и др. | |
WGET=`which wget 2> /dev/null` | |
ZSH=`which zsh 2> /dev/null` | |
MICRO=`which micro 2> /dev/null` | |
NANO=`which nano 2> /dev/null` | |
CURL=`which curl 2> /dev/null` | |
if test "-$WGET-" = "--" || test "-$ZSH-" = "--" || test "-$MICRO-" = "--" || test "-$NANO-" = "--" || test "-$CURL-" = "--" | |
then | |
echo "You must install wget apt install wget zsh micro curl nano."; | |
pkg install zsh micro wget curl; | |
fi | |
sh -c "$(curl -fsSL https://github.com/numbnet/termux-ohmyzsh/raw/master/install.sh)" | |
git clone https://github.com/numbnet/Termux-Banner.git | |
cd Termux-Banner/zsh | |
chmod +x requirement.sh requirement.sh t-ban.sh | |
bash requirement.sh | |
bash t-ban.sh | |
# Открываем новую сессию, и наблюдаем новые изменения. внешняя кастомизация закончена | |
chsh -s zsh | |
#**********×**********# | |
echo "Плюшки к shell zsh:" | |
sleep 5 | |
git clone https://github.com/numbnet/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/numbnet/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/numbnet/zsh-completions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions | |
# create dir | |
function mkhometmp { | |
if [[ ! -e $XDG_TMP_HOME ]]; | |
then | |
# termux-setup-storage | |
mkdir $XDG_TMP_HOME | |
mkdir $XDG_CACHE_HOME | |
elif [[ ! -d $XDG_TMP_HOME ]]; | |
then | |
echo "$XDG_TMP_HOME exists, but is not a dir" 1>&2 | |
fi | |
} | |
function TermSetStor { | |
if [[ ! -e $TERM_STORAGE ]]; | |
then | |
termux-setup-storage | sleep 10; | |
# mkdir | |
elif [[ ! -d $TERM_STORAGE ]]; | |
then | |
echo "$TERM_STORAGE существует, это не каталог" 1>&2 | |
fi | |
} | |
mkhometmp | |
TermSetStor | |
cd $XDG_CACHE_HOME | |
cat ".zshrc" > .zshrc.bac | |
rm -rf .zshrc.sh | |
wget https://gist.githubusercontent.com/numbnet/16283d639aa316c8a1925c779dbd225c/raw/a88c5a72761d37089bd6d7d39ea32fe0f0ba4238/.zshrc.sh | |
cat $XDG_CACHE_HOME/.zshrc.sh > ~/.zshrc | |
rm -rf $XDG_CACHE_HOME/.zshrc.sh | |
exit 1 | |
# Теперь вам доступны такие команды как: google текст поиска. Открывает браузер с вашим запросом в google: lcd path/to/dir ; переходит в каталог и сразу показывает файлы == cd && ls; Чтоб поменять цвет: ~/.termux/colors.sh Чтоб поменять шрифт: ~/.termux/fonts.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#==== RESTIC with CENTOS & RHATT ====# | |
##==================≠================== | |
yum install yum-plugin-copr -y | |
yum copr enable copart/restic -y | |
yum install restic -y | |
##==================≠================== | |
## or ADD NEW REPO | |
##==================≠================== | |
yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/copart/restic/repo/epel-7/copart-restic-epel-7.repo | |
##==================≠================== | |
restic version | |
restic self-update | |
##==================≠================== | |
# restic generate --bash-completion /etc/bash_completion.d/restic | |
# writing bash completion file to /etc/bash_completion.d/restic | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######## backupCentos.sh ###### | |
BDIR='/home/backup'; | |
FDIR= '/'; | |
EXCLUDE='{"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/home/backup/*","/media/*","/lost+found"}'; | |
if [ -d $BDIR ]; then | |
echo "Folder exists" | |
cd /mnt && ln -s $BDIR; | |
else | |
mkdir $BDIR | echo 'Folder "$BDIR" is create'; | |
fi | |
rsync -aAXv --delete-after --exclude=$EXCLUDE $FDIR $BDIR; | |
exit | |
#### Info #### | |
## For AutoBackup,save in /etc/cron.daily/backup | |
##link# curl --raw https://pastebin.com/raw/ddAdx23v > ~/backup.sh | chmod +x ~/backup.sh | cp -r ~/backup.sh /etc/cron.daily/backup | chmod +x /etc/cron.daily/backup; | |
##$ rsync -a --delete --quiet $FDIR $BDIR; | |
##$ rsync -aAXv --delete-after --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/backup; | |
##$ rsync -aAXv --delete-after --exclude={"/boot/*","/etc/*","/lib/*","/media/*","/opt/*","/sbin/*","/sys/*","/usr/*","/bin/*","/dev/*","/home/*","/lib64/*","/mnt/*","/proc/*","/run/*","/srv/*","/tmp/*","/var/*"} / /home/backup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
##==================≠================== | |
#= ==Backing up Termux== | |
## ==BACKUP== ==RESTIC== | |
##==================≠================== | |
##==================≠================== | |
# Ensure that storage permission is granted: | |
termux-setup-storage | |
##==================≠================== | |
# Create Dir | |
cd $HOME | |
mkdir -p $HOME/storage/emulated | |
ln -s /storage/emulated/0 $HOME/storage/emulated/0 | |
##==================≠================== | |
# create dir Repo RESTIC | |
RESTIC_REPOSITORY=$HOME/storage/shared/Directory/restic-repo | |
if [[ ! -e $RESTIC_REPOSITORY ]]; | |
then | |
mkdir $RESTIC_REPOSITORY; | |
# environment variable permanently is put below statement in your script, | |
#if [[ ! -d "$VARNAME" ]]; then | |
# export VARNAME="$VARVALUE" | |
# echo 'export "$VARNAME"="$VARVALUE"' >> ~/.bashrc | |
#fi | |
TMPDIR=$PREFIX/tmp | |
XDG_CACHE_HOME=$HOME/.cache | |
RESTIC_CACHE_DIR=$PREFIX/var/cache | |
RESTIC_REPOSITORY=$HOME/storage/shared/Directory/restic-repo | |
export TMPDIR=$PREFIX/tmp | |
export XDG_CACHE_HOME=$HOME/.cache | |
export RESTIC_CACHE_DIR=$PREFIX/var/cache | |
echo 'export TMPDIR=$PREFIX/tmp' >> ~/.bashrc | |
echo 'export XDG_CACHE_HOME=$HOME/.cache' >> ~/.bashrc | |
echo 'export RESTIC_CACHE_DIR=$PREFIX/var/cache' >> ~/.bashrc | |
elif [[ ! -d $RESTIC_REPOSITORY ]]; | |
then | |
echo "$RESTIC_REPOSITORY exists, but is not a dir" 1>&2 | |
rm -rf $RESTIC_REPOSITORY && mkdir $RESTIC_REPOSITORY; | |
fi | |
# mkdir -p $HOME/storage/shared/Directory/restic-repo | |
##== Restic is a utility for doing incremental backups. It can work with both local and remote backups. Backed up data is encrypted and de-duplicated. This package is not available by default. Install it with the following command: | |
# echo "name pkg:" & read PKG; | |
WGET=`which wget 2> /dev/null` | |
BUSYBOX=`which busybox 2> /dev/null` | |
MICRO=`which miocro 2> /dev/null` | |
NANO=`which nano 2> /dev/null` | |
CURL=`which curl 2> /dev/null` | |
RESTIC=`which restic 2> /dev/null` | |
TAR=`which tar 2> /dev/null` | |
$PKG='wget busybox miocro nano curl restic tar'; | |
if test "-$WGET-" = "--" || test "-$BUSYBOX-" = "--" || test "-$MICRO-" = "--" || test "-$NANO-" = "--" || test "-$CURL-" = "--" || test "-$RESTIC-" = "--"|| test "-$TAR-" = "--" | |
then | |
echo "You must install $PKG" | |
sleep 5; | |
apt install $PKG -y; | |
# exit 1 | |
else | |
echo "$PKG is installed"; | |
fi | |
# Notice: restic is for advanced users only. | |
# While it provides more features than tar, it is harder in use. | |
# Most people will use it in scripts rather than manually in the command line. | |
# Instructions here provided only as an example. | |
# restic -r /srv/restic-repo backup ~/work | |
##==================≠================== | |
## BACKUP | |
echo "#== START Backing up ==#" | |
# These steps will backup only sysroot (prefix) and not your home. The repository will be stored on shared storage. | |
##== Initialize local restic repository. You will be prompted for a password because encryption is enabled (no way to turn off). If the password is lost - your data will be locked forever. | |
##==================≠================== | |
## INIT | |
echo "## ====INIT==== ##" | |
restic init -r $RESTIC_REPOSITORY | |
sleep 5 | |
##==================≠================== | |
## Backing up sysroot ($PREFIX): | |
echo "## ==Backup SYSROOT== ##" | |
restic backup -r $RESTIC_REPOSITORY --tag termux $PREFIX | |
##==================≠================== | |
## Backup ($HOME) directory in this way: | |
echo "##== Backing up ( $HOME ): " | |
sleep 5 | |
restic backup -r $RESTIC_REPOSITORY --tag termux-home $HOME | |
##==================≠================== | |
## END EXIT | |
echo "#== END ==#" | |
sleep 5 | |
exit | |
##==================≠================== | |
#== Restoring | |
##==================≠================== | |
# Same as with tar-based backups, restoring of sysroot is tricky. Following steps are applicable only for local backups: | |
##==================≠================== | |
##== Make sure that restic is available install restic | |
#$ pkg install restic | |
##==================≠================== | |
##== Ensure that storage permission is granted: | |
#$ termux-setup-storage | |
##==================≠================== | |
##Copy restic binary to $HOME. We are going to erase sysroot. | |
#$ cp $PREFIX/bin/restic $HOME/restic | |
##==================≠================== | |
##== Erase sysroot. All packages will be deleted. | |
#$ rm -rf $PREFIX | |
##==================≠================== | |
##== Restore sysroot from latest snapshot: | |
#$ unset LD_PRELOAD | |
#$ $HOME/restic restore -r $RESTIC_REPOSITORY --tag termux --target / latest | |
##== If everything is done right, you should now have a Termux restored from the backup. Close your Termux application and open it again. | |
##== Tip: if you do not want to enter a restic password or specify repository each time, you can set environment variables "RESTIC_PASSWORD" and "RESTIC_REPOSITORY". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
##==================≠================== | |
#== Backing up Termux ==# | |
##==================≠================== | |
# On this page, you will find some methods of backing up and restoring your Termux installation. It is highly recommended to understand what commands listed here do before copy-pasting them. Misunderstanding the purpose of each step may irrecoverably damage your data, if that happened to you - do not complain. | |
##==================≠================== | |
## ==BACKUP== ==TAR== ## | |
##==================≠================== | |
# Archiving sysroot and home directories is the simplest way to backup your data. You can install it using TAR. | |
#$ pkg install tar | |
#== START ==# | |
#== Backing up ==# | |
# In this example, a backup of both home and sysroot will be shown. The resulting archive will be stored on your shared storage (/sdcard) and compressed with gzip. | |
##== Ensure that storage permission is granted: | |
#$ termux-setup-storage | |
##==================≠================== | |
##== Go to Termux base directory: | |
#$ cd /data/data/com.termux/files | |
##==================≠================== | |
# 2.2 Create Dir | |
#$ mkdir -p /sdcard/Directory/termux-backup-tar | |
##==================≠================== | |
##== Backing up files: | |
#$ tar -zcvf /sdcard/Directory/termux-backup-tar/termux-backup.tar.gz home usr | |
# Backup should be finished without any error. There shouldn't be any permission denials unless the user abused root permissions. Warnings about sockets are okay. | |
# Warning: never store your backups in Termux private directories. Their paths may look like: | |
# /data/data/com.termux # - private Termux directory on internal storage | |
# /sdcard/Android/data/com.termux # - private Termux directory on shared storage | |
# /storage/XXXX-XXXX/Android/data/com.termux # -private Termux directory on external storage, XXXX-XXXX is the UUID of your micro-sd card. | |
# ${HOME}/storage/external-1 # - alias for Termux private directory on your micro-sd. | |
# Once you clear Termux data from settings, these directories will be erased too. Unconditionally. | |
##==================≠================== | |
#== Restoring | |
##==================≠================== | |
# Instructions for home directory and usr (sysroot or prefix) are separate, though if you did backup in the way shown above, these directories are stored in the same archive. There also will be assumed you have granted access to shared storage and your archive is stored at /sdcard/Directory/termux-backup-tar/termux-backup.tar.gz . By following these instructions all your Termux files will be overwritten with ones from back up. | |
#== Home directory ==# | |
##== Go to Termux base directory: | |
#$ cd /data/data/com.termux/files | |
##== Replace home directory with one from your backup: | |
#$rm -rf home | |
#$ tar -zxvf /sdcard/Directory/termux-backup-tar/termux-backup.tar.gz home | |
##== The home directory isn't runtime-critical, no additional steps like closing/re-opening Termux required. | |
#=== Sysroot (prefix) ===# | |
##== Go to Termux base directory: | |
#$ cd /data/data/com.termux/files | |
##== Copy busybox binary in the way shown here. You can't use any other archiver binary here as only busybox doesn't have dependencies which will gone in next step. | |
#$ pkg install busybox | |
#$ cp ./usr/bin/busybox ./tar | |
##== Erase sysroot. At this point, all packages will be deleted. | |
#$ rm -rf usr | |
##== Restore sysroot from backup: | |
#$ unset LD_PRELOAD | |
#$ ./tar -zxvf /sdcard/termux-backup.tar.gz usr | |
##==================≠================== | |
##== Now close Termux with the "exit" button from notification and open it again. | |
#$ exit | |
##=================END================= | |
##==================≠================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "Продолжить? (y/n) " | |
read item | |
case "$item" in | |
y|Y) echo "Ввели «y», продолжаем..." | |
;; | |
n|N) echo "Ввели «n», завершаем..." | |
exit 0 | |
;; | |
*) echo "Ничего не ввели. Выполняем действие по умолчанию..." | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Установить GIT на CentOS 7 | |
sudo yum update -y | |
sudo yum groupinstall "Development Tools" -y | |
sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel -y | |
curl -LJ0 https://github.com/git/git/archive/v2.29.2.tar.gz --output git.tar.gz | |
tar -zxf git.tar.gz | |
cd git-2.29.2 | |
make configure | |
./configure --prefix=/usr/local | |
sudo make install | |
echo "====END====" | |
sleep 5 | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh instalPhyton.sh | |
echo "###### PHYTON START ######" | |
cd $HOME | |
PKGIN="pkg install -y" | |
$PKGIN python && pip list >> ~/appListPhyton.txt | |
$PKGIN build-essential | |
$PKGIN clang | |
$PKGIN make | |
$PKGIN pkg-confi | |
$PKGIN unstable-repo | |
$PKGIN electrum | |
pip install numpy | |
git clone https://github.com/matplotlib/matplotlib | |
cd matplotlib | |
sed 's@#enable_lto = True@enable_lto = False@g' setup.cfg.template > setup.cfg && pip install . | |
export CFLAGS="-Wno-deprecated-declarations -Wno-unreachable-code" | |
pip install pandas | |
echo "### Numpy and Scipy ###" | |
curl -LO https://its-pointless.github.io/setup-pointless-repo.sh && bash setup-pointless-repo.sh | |
$PKGIN numpy | |
$PKGIN scipy | |
echo "# ===OpenCV=== #" | |
$PKGIN build-essential cmake libjpeg-turbo libpng python | |
echo "# ==========|========== #" | |
LDFLAGS=" -llog -lpython3" cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_opencv_python3=on -DBUILD_opencv_python2=off -DWITH_QT=OFF -DWITH_GTK=OFF .. | |
make && make install | |
echo "### ins Tkinter ###" | |
$PKGIN python-tkinter | |
$PKGIN termux-exec ; find . -type f -not -path '*/\.*' -exec termux-fix-shebang "{}" \; python setup.py install | |
$PKGIN termux-exec -y; python setup.py install -y | |
echo "### END PHYTON INSTALLER ###" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/sh | |
echo "installing Prequisities \n" | |
apt update && apt upgrade | |
apt install autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev \ | |
postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config \ | |
postgresql-contrib wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses | |
echo "\n" | |
echo "cloning Metasploit framework\n" | |
git clone https://github.com/rapid7/metasploit-framework --depth 1 | |
cd metasploit-framework | |
echo "\n" | |
echo "Installing bundler" | |
gem install bundler | |
echo "\n" | |
echo "Installing nokogiri\n" | |
gem install nokogiri -- --use-system-libraries | |
echo "\n" | |
echo "installing Network_interface" | |
cd $HOME | |
gem unpack network_interface | |
cd network_interface-0.0.1 | |
sed 's|git ls-files|find -type f|' -i network_interface.gemspec | |
curl -L https://wiki.termux.com/images/6/6b/Netifaces.patch -o netifaces.patch | |
patch -p1 < netifaces.patch | |
echo "\n" | |
echo "Building gem\n" | |
gem build network_interface.gemspec | |
gem install network_interface-0.0.1.gem | |
cd .. | |
rm -r network_interface-0.0.1 | |
echo "\n" | |
echo "Installing grpc" | |
sed 's|grpc (.*|grpc (1.4.1)|g' -i Gemfile.lock | |
gem unpack grpc -v 1.4.1 | |
cd grpc-1.4.1 | |
curl -LO https://raw.githubusercontent.com/grpc/grpc/v1.4.1/grpc.gemspec | |
curl -L https://wiki.termux.com/images/b/bf/Grpc_extconf.patch -o extconf.patch | |
patch -p1 < extconf.patch | |
gem build grpc.gemspec | |
gem install grpc-1.4.1.gem | |
cd .. | |
rm -r grpc-1.4.1 | |
echo "\n" | |
echo "Installig gems\n" | |
cd $HOME/metasploit-framework | |
bundle install -j5 | |
echo "\n" | |
echo "Performing shebang fix" | |
$PREFIX/bin/find -type f -executable -exec termux-fix-shebang \{\} \; | |
echo "\n" | |
echo "Metasploit Successfully installed" | |
echo | |
echo "Type ./msfconsole to start metasploit" | |
echo | |
cd $HOME/metasploit-framework |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Перед работай с termux выполняем команды. | |
pkg install root-repo -y | |
pkg install science-repo -y | |
pkg install x11-repo -y | |
pkg install game-repo -y | |
pkg install termux-apt-repo -y | |
pkg install unstable-repo -y | |
apt update -y && apt upgrade -y | |
pkg install curl nano wget git micro openssl openssl-dev ncurses-utils -y | |
## У кого есть root, выполняем: | |
pkg install tsu | |
## Эмуляция рут прав | |
pkg install fakeroot | |
fakeroot | |
## Фикс исправления прав если | |
## установили или обновились | |
## через tsu или tsudo | |
uid=$(id -u) | |
su -c chown -R $uid:$uid /data/data/com.termux/ && su -c restorecon -RF /data/data/com.termux | |
echo "**** -select- *****" | |
echo "*********************" | |
echo " 1) Кастомизация Termux" | |
echo " 2) Установка DarkFly (tools 500+) и Множество разных инструментов" | |
echo " 3) Установка metasploit" | |
echo " 4) Установка Tmux-Bunch" | |
echo " 5) Установка Tmux" | |
echo " 6) Полный фарш на для Python:" | |
echo " 7) Установка Kali" | |
echo " 8) Установка instainsane в termux/nethunter (Брут Instagram)" | |
echo " 9) Установка Java" | |
echo "*********************" | |
read n | |
case $n in | |
1) # кастомизация Termux | |
function kastomizationtermux { | |
sleep 3 | |
cd $HOME | |
apt install zsh micro wget curl | |
sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)" | |
git clone https://github.com/Bhai4You/Termux-Banner | |
cd Termux-Banner/zsh | |
chmod +x requirement.sh t-ban.sh | |
bash requirement.sh | |
bash t-ban.sh | |
chsh -s zsh | |
echo "#* Прикручиваем плюшки к shell zsh: *#" | |
sleep 5 | |
cd $HOME | |
git clone https://github.com/numbnet/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/numbnet/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/numbnet/zsh-completions.git ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | |
# Делаем резервную копию | |
cp .zshrc > .zshrc.backup.sh | |
# Идем на github и копируем: | |
cd $HOME && wget https://gist.githubusercontent.com/numbnet/16283d639aa316c8a1925c779dbd225c/raw/a88c5a72761d37089bd6d7d39ea32fe0f0ba4238/.zshrc.sh | |
# # Удалем все настройки которые по дефолту, чтоб быстрей удалить, выполните команду в termux | |
## echo "" > .zshrc | |
cat .zshrc.sh > .zshrc | |
# Теперь вставьте скопированные настройки в .zshrc | |
sleep 5 | |
echo "# Открывает браузер с запросом в google: google текст поиска" | |
echo "# *** переходит в каталог и сразу показывает файлы == cd && ls ***: lcd ~/ " | |
echo" Чтоб поменять цвет: ~/.termux/colors.sh" | |
echo " Чтоб поменять шрифт: ~/.termux/fonts.sh" | |
echo "# ========END======== #" | |
sleep 5 | |
} | |
kastomizationtermux | |
;; | |
2) # Установка DarkFly | |
sleep 5 | |
pkg install python2 git php -y | |
git clone https://github.com/Ranginang67/DarkFly-Tool | |
cd DarkFly-Tool | |
chmod +x install.py | |
python2 install.py | |
echo "Меню установщика запускаем: DarkFly" | |
DarkFly | |
;; | |
3) # Установка metasploit в termux: | |
function installmetasplout { | |
sleep 5 | |
cd $HOME | |
pkg install unstable-repo | |
pkg install metasploit | |
# Обновляем | |
apt update -y && apt upgarde -y | |
# Устанавливаем Wget : | |
apt install wget -y | |
# Скачиваем скрипт установки Metasploit-Framework: | |
wget https://gist.githubusercontent.com/numbnet/16283d639aa316c8a1925c779dbd225c/raw/e7d60e3720df67a7091a2c572dff1ea422a7fbf8/metasploit.sh | |
# Запуск скрипт установки: | |
chmod +x metasploit.sh | |
bash metasploit.sh | |
# Переходим в папку с установленным Metasploit: | |
cd metasploit-framework | |
# Запускаем msfconsole!: | |
./msfconsole | |
} | |
installmetasplout | |
;; | |
4) # Установка Tmux-Bunch в termux: | |
sleep 5 | |
cd $HOME | |
apt install axel -y | |
# axel https://github.com/Hax4us/Tmux-Bunch/releases/download/v2.7/Tmux-Bunch-2.7.tar.gz | |
axel https://github.com/numbnet/Tmux_Bunch/releases/download/v2.7/Tmux-Bunch-2.7.tar.gz | |
tar -xf Tmux-Bunch-2.7.tar.gz | |
cd Tmux-Bunch | |
bash setup | |
# Теперь запускаем из любого каталога | |
tmuxbunch | |
# =========END========== # | |
;; | |
5) # Установка Tmux: | |
function installtmux { | |
cd $HOME | |
pkg install tmux -y | |
tmux | |
echo "# P.s: шпора по tmux:" | |
echo "#> https://habr.com/post/126996" | |
sleep 5 | |
echo "# =========END========= #" | |
}; | |
installtmux | |
;; | |
6) # Полный фарш на termux для Python: | |
function installpython { | |
sleep 5 | |
cd $HOME | |
pkg install micro python python2 nano -y | |
pkg install python -y || pkg reinstall python -y | |
pkg install python2 -y || pkg reinstall python2 -y | |
echo hello > test.py | |
./test.py | |
echo "# =========END========= #" | |
} | |
installpython | |
;; | |
7) # Установка Kali | |
function installkali { | |
sleep 5 | |
## у кого активировано su в Termux ## | |
cd $HOME | |
curl -LO https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter | |
chmod +x kalinethunter # tsudo chmod +x kalinethunter | |
./kalinethunter --insecure # tsudo ./kalinethunter --insecure | |
#запускаем Kali: | |
startkali # tsudo startkali | |
# wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb | |
# apt install ./kali-archive-keyring_2018.1_all.deb | |
wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb | |
apt install ./kali-archive-keyring_2020.2_all.deb | |
apt-get update | |
apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base | |
# удаляет старые пакеты: | |
apt-get autoremove | |
# чистит кэш: | |
apt-get clean | |
apt-get install tightvncserver | |
#После этих команд выполните: | |
vncserver :1 -geometry 700x1400 -dpi 320 | |
############### | |
## Только замените на своё разрешение экрана. потом введите пароль любой, нажмите enter и повтори пароль, потом нажми - Y/N Спрашивает нужен ли пароль для режима "просмотр" Y или N, решать Вам! | |
################ | |
#Если ввели не верные значения, то: | |
# vncserver -kill :1 | |
#И снова введите, но уже с изменёнными значениями | |
# vncserver :1 -geometry 720x1420 -dpi 120 | |
#Включаем VNC: | |
# установлена bVNC и выглядят настройки так | |
#Вход из под Termux: | |
# startkali # tsudo startkali | |
#Запуск: | |
# vncserver :1 -geometry 240x320 -dpi | |
#(Где YYY, QQQ, NNN - Ваши значения) | |
#Выключение: | |
# vncserver -kill :1 | |
#Выход в Termux: | |
# logout | |
# =========END========= # | |
} | |
installkali | |
;; | |
8) # Установка instainsane в termux/nethunter (Брут Instagram) | |
# Установить в termux kali | |
installkali | |
# В termuxe | |
startkali | |
git clone https://github.com/thelinuxchoice/instainsane | |
cd instainsane | |
chmod +x instainsane.sh install.sh | |
./install.sh | |
# Теперь запускаем | |
./instainsane.sh | |
# P.s. Брут работает только через WiFi, но есть способ обхода и теперь можно брутить с мобильного интернета, правда не всегда успешно коннектиться | |
# Ну а теперь сам метод: | |
# 1) Скачиваем Orbot (tor для мобилы) | |
# 2) Запускаем Orbot, снизу нажимаем шестеренку, выбираем termux, возвращаемся назад, нажимаем луковицу, ждём подключения и затем уже нажимаем VPN. | |
#3) Вот и все теперь весь трафик termuxa будет проходить через Tor. И можем брутить с мобильного интернета. | |
9) # Java | |
apt update && apt upgrade | |
pkg install git wget -y | |
cd $HOME && git clone https://github.com/numbnet/Termux-Java-Install.git | |
cd ~/Termux-Java-Install && chmod +x *java* | |
bash installjava | |
## Remove | |
# cd ~/Termux-Java-Install && bash uninstall_java.sh | |
echo "==END install Java==" | |
;; | |
10)cd $HOME | |
echo "You chose Option $n" | |
;; | |
11)cd $HOME | |
echo "You chose Option $n" | |
;; | |
12)cd $HOME | |
echo "You chose Option $n" | |
;; | |
*)cd $HOME | |
echo "Exit" | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh startTERMUX.sh | |
######################################### | |
## START First install termux | |
######################################### | |
sleep 5 | |
cd $HOME | |
apt update -y && apt upgrade -y | |
pkg install curl wget git micro openssl openssh ncurses-utils -y | |
function activateroot { | |
## Eсть root,но не активирован: ### | |
cd $HOME | |
pkg install tsu | |
tsudo | |
} | |
# Активация root | |
activateroot | |
# Эмуляция рут прав | |
pkg install fakeroot | |
fakeroot | |
# Исправлееия розрешения | |
uid=$(id -u) | |
su -c chown -R $uid:$uid /data/data/com.termux/ && su -c restorecon -RF /data/data/com.termux | |
################# -END- ################# | |
######################################### | |
## Кастомизации termux | |
## выполняем под обычным пользователем | |
######################################### | |
sleep 5 | |
cd $HOME | |
apt install zsh micro wget curl | |
sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)" | |
git clone https://github.com/Bhai4You/Termux-Banner | |
cd Termux-Banner/zsh | |
chmod +x requirement.sh t-ban.sh | |
bash requirement.sh | |
bash t-ban.sh | |
chsh -s zsh | |
echo "Kastomization is end" | |
################# -END- ################# | |
######################################### | |
## Прикручивать плюшки к shell zsh: | |
######################################### | |
sleep 5 | |
cd $HOME | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
wget https://pastebin.com/raw/yJpsDYKM | |
cat yJpsDYKM > .zshrc | |
################# -END- ################# | |
######################################### | |
## Установка DarkFly в termux(tools 500+) | |
## Множество разных инструментов: | |
######################################### | |
sleep 5 | |
cd $HOME | |
pkg install -y python2 git php | |
git clone https://github.com/Ranginang67/DarkFly-Tool | |
cd DarkFly-Tool | |
chmod +x install.py | |
python2 install.py | |
echo "Меню установщика запускаем командой: DarkFly" | |
# DarkFly | |
#*********** -END- ***********# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Перед работай с termux выполняем команды: | |
apt update && apt upgrade -y | |
pkg install curl wget git micro openssl openssl-dev ncurses-utils -y | |
У кого есть root, выполняем: | |
pkg install tsu | |
Эмуляция рут прав | |
pkg install fakeroot | |
fakeroot | |
Фикс исправления прав, если установили или обновились через tsu или tsudo | |
uid=$(id -u) | |
su -c chown -R $uid:$uid /data/data/com.termux/ && su -c restorecon -RF /data/data/com.termux | |
# | |
Кастомизации Termux | |
Приступаем к кастомизации нашего termux, все действия выполняем под обычным пользователем не под root | |
Все шаги выполняем по порядку: | |
1) | |
apt install zsh micro wget curl | |
2) | |
sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)" | |
3) | |
git clone https://github.com/Bhai4You/Termux-Banner | |
4) | |
cd Termux-Banner/zsh | |
5) | |
chmod +x requirement.sh t-ban.sh | |
6) | |
bash requirement.sh | |
7) | |
bash t-ban.sh | |
После последнего действия необходимо прописать свой никнейм или же любое слово которое будет под самим изображением | |
Затем прописывайте то что будет написанно с верху маленьким шрифтом. | |
8) | |
chsh -s zsh | |
Открываем новую сессию, и наблюдаем новые изменения. | |
# | |
На этом внешняя кастомизация закончена. | |
Теперь начинаем прикручивать плюшки к shell zsh: | |
1) | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
2) | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
3) Идем на пасту то есть сюда https://pastebin.com/qjqJ8E5q | |
и копируем настройки | |
4) В termux вводим | |
cd $HOME && micro .zshrc | |
5) Удалем все настройки которые по дефолту, чтоб быстрей удалить, выполните команду в termux | |
"" > .zshrc | |
Или | |
echo "" > .zshrc | |
Таким образом мы разом очистим файл с конфигами. | |
6) Теперь вставьте скопированные настройки в .zshrc и нажмите ctrl + s и ctrl + q (Всё мы сохранили и вышли) | |
Теперь вам доступны такие команды как: | |
google текст поиска | |
Открывает браузер с вашим запросом в google | |
lcd path/to/dir | |
переходит в каталог и сразу показывает файлы == cd && ls | |
Чтоб поменять цвет | |
~/.termux/colors.sh | |
Чтоб поменять шрифт | |
~/.termux/fonts.sh | |
Ну вот и всё готово, теперь открываем новую сессию и пользуемся... Удачи! | |
# | |
Установка instainsane в termux/nethunter (Брут Instagram) | |
Установка instainsane в termux/nethunter (брут Instagram): | |
1) Установить в termux kali | |
2) В termuxe | |
startkali | |
3) | |
git clone https://github.com/thelinuxchoice/instainsane | |
4) | |
cd instainsane | |
5) | |
chmod +x instainsane.sh install.sh | |
6) | |
./install.sh | |
7) Теперь запускаем | |
./instainsane.sh | |
P.s. Брут работает только через WiFi, но есть способ обхода и теперь можно брутить с мобильного интернета, правда не всегда успешно коннектиться. | |
Ну а теперь сам метод: | |
1) Скачиваем Orbot (tor для мобилы) | |
2) Запускаем Orbot, снизу нажимаем шестеренку, выбираем termux, возвращаемся назад, нажимаем луковицу, ждём подключения и затем уже нажимаем VPN. | |
3) Вот и все теперь весь трафик termuxa будет проходить через Tor. И можем брутить с мобильного интернета. | |
# | |
Установка DarkFly (tools 500+) | |
Установка DarkFly в termux (tools 500+) | |
Множество разных инструментов: | |
1) | |
pkg install python2 | |
2) | |
pkg install git | |
3) | |
pkg install php | |
4) | |
git clone https://github.com/Ranginang67/DarkFly-Tool | |
5) | |
cd DarkFly-Tool | |
6) | |
chmod +x install.py | |
7) | |
python2 install.py | |
8) Меню установщика запускаем командой | |
DarkFly | |
# | |
Установка metasploit в Termux | |
Установка metasploit в termux: | |
pkg install unstable-repo && pkg install metasploit | |
# | |
Установка Tmux-Bunch в termux (аналог apktool) | |
Установка Tmux-Bunch в termux: | |
1) | |
cd $HOME | |
2) | |
apt install axel | |
3) | |
axel https://github.com/Hax4us/Tmux-Bunch/releases/download/v2.7/Tmux-Bunch-2.7.tar.gz | |
4) | |
tar -xf Tmux-Bunch-2.7.tar.gz | |
5) | |
cd Tmux-Bunch | |
6) | |
bash setup | |
7) Теперь запускаем из любого каталога | |
tmuxbunch | |
P.s. Во время установки могут появляться не значительные ошибки, просто не обращаем внимание на них. | |
# | |
Установка Tmux (менеджер терминалов, работа в нескольких окнах одновременно) | |
Установка Tmux: | |
1) | |
pkg install tmux -y | |
2) | |
tmux | |
P.s: шпора по tmux: | |
https://habr.com/post/126996/ | |
# | |
Всё для работы с Python | |
Полный фарш на termux для Python: | |
pkg install micro python python2 | |
pip install bpython ipython | |
micro test.py | |
И начинаем кодить. | |
Предупреждение! | |
Установка долгая! | |
# | |
Установка Kali | |
# | |
Для тех, у кого активировано su в Termux | |
1) | |
curl -LO https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter | |
2) | |
tsudo chmod +x kalinethunter | |
3) | |
tsudo ./kalinethunter --insecure | |
4) запускаем Kali: | |
tsudo startkali | |
5) | |
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb | |
6) | |
apt install ./kali-archive-keyring_2018.1_all.deb | |
7) | |
apt-get update | |
8) | |
apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base | |
Девятая команда удаляет старые пакеты, десятая команда чистит кэш: | |
9) | |
apt-get autoremove | |
10) | |
apt-get clean | |
11) | |
apt-get install tightvncserver | |
12) После этих команд выполните: | |
vncserver :1 -geometry 700x1400 -dpi 120 | |
Только замените на своё разрешение экрана. | |
13) потом введите пароль любой, нажмите enter и повтори пароль, потом нажми - Y/N | |
Спрашивает нужен ли пароль для режима "просмотр" | |
Y или N, решать Вам! | |
Зы: | |
Если ввели не верные значения, то: | |
vncserver -kill :1 | |
И снова введите, но уже с изменёнными значениями | |
vncserver :1 -geometry 720x1420 -dpi 120 | |
14) Включаем VNC: | |
У меня установлена программа bVNC и выглядят настройки так | |
# | |
Выхлоп: | |
# | |
15) На всякий... | |
Вход из под Termux: | |
tsudo startkali | |
Запуск: | |
vncserver :1 -geometry YYYxQQQ -dpi NNN | |
(Где YYY, QQQ, NNN - Ваши значения) | |
Выключение: | |
vncserver -kill :1 | |
Выход в Termux: | |
logout | |
# | |
Для тех, у кого есть root права, но они не активированы в Termux | |
1) | |
pkg install tsu | |
2) | |
tsudo | |
И выполняем все перечисленные действия из спойлера - выше. | |
# | |
Скрины | |
# | |
Java в termux | |
Инструкция по установке Java в termux | |
apt update && apt upgrade | |
apt install git | |
git clone https://github.com/Hax4us/java | |
mv java/openjdk/java /data/data/com.termux/files/usr/bin | |
chmod +x /data/data/com.termux/files/home/java/openjdk/bin/java | |
На Андроиде 9 могут быть проблемы (пробуйте) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME | |
apt update && apt install wget && wget https://github.com/numbnet/Termux-ADB/raw/master/InstallTools.sh && bash InstallTools.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment