-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.sh
38 lines (30 loc) · 963 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# -----------------------------------------------------------------------------
# Author: Jothi Prasath
# GitHub: https://github.com/jothi-prasath/termux-dev-setup
# -----------------------------------------------------------------------------
# Update and upgrade packages
pkg update -y
pkg upgrade -y
# Clean up packages
pkg autoclean
pkg clean
# Packages list add or remove your needed packages
packages_list=(
curl wget zip grep bc htop nano openssh rsync net-tools
python python2 clang nodejs rust golang ruby
sqlite perl openjdk-17 termux-exec termux-api
)
# Install the packages
pkg install "${packages_list[@]}" -y
# Setting up sshd daemon
bashrc_path="$HOME/.bashrc"
sshd_entry="sshd"
if ! grep -q "$sshd_entry" "$bashrc_path"; then
echo "$sshd_entry" >> "$bashrc_path"
echo "Added sshd entry to .bashrc"
else
echo "sshd entry already exists in .bashrc"
fi
# Removing termux welcome message
rm $PREFIX/etc/motd