Last active
June 26, 2020 06:25
-
-
Save duament/c73d3943d5745c4538c0eff1b8c26614 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Setup pointless repo and install packages | |
echo "APT::Acquire::Retries \"3\";" > $PREFIX/etc/apt/apt.conf.d/80-retries | |
apt-get update | |
apt-get --assume-yes -o Dpkg::Options::=--force-confnew upgrade | |
apt-get --assume-yes -o Dpkg::Options::=--force-confnew install coreutils util-linux gnupg curl wget root-repo | |
mkdir -p "$PREFIX/etc/apt/sources.list.d" | |
echo "deb https://its-pointless.github.io/files/24 termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list | |
curl -sL https://its-pointless.github.io/pointless.gpg | apt-key add - | |
apt-get update | |
apt-get --assume-yes -o Dpkg::Options::=--force-confnew install dnsutils git man openssh scipy termux-api tsu vim zsh iw hping3 mtr nethogs tcpdump wireless-tools | |
# Setup termux | |
mkdir -p "$HOME/.termux" | |
echo "extra-keys = [['ESC','|','HOME','[','UP',']','PGUP'],['TAB','CTRL','END','LEFT','DOWN','RIGHT','PGDN']]" > "$HOME/.termux/termux.properties" | |
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.zip | |
unzip -p Hack.zip 'Hack Regular Nerd Font Complete.ttf' > "$HOME/.termux/font.ttf" | |
rm Hack.zip | |
echo "# breeze | |
#background=#31363b | |
foreground=#eff0f1 | |
#cursor=#fffacd | |
color0=#31363b | |
color1=#ed1515 | |
color2=#11d116 | |
color3=#f67400 | |
color4=#1d99f3 | |
color5=#ffc0cb | |
color6=#1abc9c | |
color7=#eff0f1 | |
color8=#7f8c8d | |
color9=#c0392b | |
color10=#1cdc9a | |
color11=#fdbc4b | |
color12=#3daee9 | |
color13=#ffb6ce | |
color14=#16a085 | |
color15=#fcfcfc" > "$HOME/.termux/colors.properties" | |
termux-reload-settings | |
# Setup ssh | |
mkdir "$HOME/.ssh" | |
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINdmqOuypyBe2tF0fQ3R5vp9YkUg1e0lREno2ezJJE86" > "$HOME/.ssh/authorized_keys" | |
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' "$PREFIX/etc/ssh/sshd_config" | |
echo " | |
HostKey /data/data/com.termux/files/usr/etc/ssh/ssh_host_ed25519_key | |
Ciphers [email protected],[email protected] | |
KexAlgorithms curve25519-sha256,[email protected] | |
MACs [email protected],[email protected] | |
LoginGraceTime 15s | |
PermitRootLogin no | |
MaxAuthTries 3 | |
PubkeyAuthentication yes | |
AuthorizedKeysFile .ssh/authorized_keys | |
ChallengeResponseAuthentication no" >> "$PREFIX/etc/ssh/sshd_config" | |
# Setup zsh | |
mkdir -p "$HOME/.zsh/plugins" | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$HOME/.zsh/plugins/powerlevel10k" | |
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh/plugins/zsh-syntax-highlighting" | |
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions "$HOME/.zsh/plugins/zsh-autosuggestions" | |
git clone --depth=1 https://github.com/zsh-users/zsh-history-substring-search.git "$HOME/.zsh/plugins/zsh-history-substring-search" | |
chsh -s zsh | |
# Install python packages | |
pip install ipython sympy requests cryptography | |
termux-setup-storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment