Skip to content

Commit 88b3b78

Browse files
structure changes
1 parent 324c424 commit 88b3b78

26 files changed

Lines changed: 709 additions & 39 deletions

README.md

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,7 @@ Scripts for running lots of different works
1515
that's it
1616
ENJOY
1717

18-
1)TO RUN server_fast.sh
19-
20-
chmod +x server_fast.sh
21-
./server_fast.sh
22-
23-
AUTOMATED APACHE SERVER
24-
Execute apache2 server commands faster with just enter few numbers
25-
--> A list is available to { start | stop | reload | restart | and checking server status} of apache server.
26-
27-
--> Enable or Disable a website configuration with choosing numbers.
28-
29-
--> Beyond that you can create a website configuration file without hassle and just copy your files to apache website root directory folder and get running website quickly (Also a small help section to learn how it works).
30-
31-
--> Manage firewall to listen on port 80(http) and https(443) and even reset and check firewall status (NOTE:- ONLY IPTABLES SUPPORTED install it on your linuxbox to use this feature.)
32-
--> Finally a settings to Enable or Disable running apache web server on boot.
33-
34-
Supported to most of the linux distos (REDHAT/CENTOS DEBIAN/UBUNTU ARCH and OpenSuSE)
35-
Report any bugs to kmr.ashit1303@gmail.com
36-
Open to feedbacks and further feature requests
37-
38-
2)TO RUN kill_app_port.sh
18+
-)TO RUN kill_app_port.sh
3919

4020
chmod +x kill_app_port.sh
4121
./kill_app_port.sh
@@ -44,22 +24,6 @@ KILL APPLICATION USING SPECIFIED PORT
4424
Run and enter the port no you want to know which application is using it
4525
enter "yes" to kill that application.
4626

47-
3)TO RUN virtual_hosting.sh
48-
49-
chmod +x virtual_hosting.sh
50-
./virtual_hosting.sh
51-
Complete automated Create virtual host configuration file for apache servers and automated
52-
53-
a2ensite
54-
a2dissite
55-
56-
Create virtual hosting files for apache configuration without hassle
57-
just enter details and it will create file in default folder
58-
Enable and Disable website options are also avaiable
59-
(ie a2ensite and a2dissite)
60-
It will also create document root folder in default folder
61-
62-
Supported to most of the linux distos (REDHAT/CENTOS DEBIAN/UBUNTU ARCH and OpenSuSE)
6327
Report any bugs to kmr.ashit1303@gmail.com
64-
still under development
28+
6529

arp-scan

-1.62 MB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ install_liftbridge() {
7878

7979
echo "Downloading Liftbridge for ${liftbridge_os}/${liftbridge_arch}..."
8080
liftbridge_file="${liftbridge_bin}_${version}_termux_${liftbridge_os}_${liftbridge_arch}${liftbridge_dl_ext}"
81-
liftbridge_url="https://github.com/ashit1303/liftbridge/releases/download/${liftbridge_file}"
81+
liftbridge_url="https://github.com/liftbridge-io/liftbridge/releases/download/${liftbridge_file}"
8282

8383
dl="$PREFIX/tmp/${liftbridge_file}"
8484
rm -rf -- "$dl"

buildScripts/install-noip-duc.sh

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#!/bin/bash
2+
3+
# Exit on error
4+
set -e
5+
6+
# Variables
7+
NOIP_VERSION="2.1.9-1"
8+
INSTALL_DIR="$PREFIX/bin"
9+
BUILD_DIR="$PREFIX/tmp/noip-duc"
10+
CONF_DIR="$PREFIX/etc"
11+
INSTALL_DIR="/usr/local/bin"
12+
13+
# Check if running as root
14+
if [ "$EUID" -ne 0 ]; then
15+
echo "Please run as root"
16+
exit 1
17+
fi
18+
19+
# Install dependencies
20+
echo "Installing dependencies..."
21+
if command -v apt-get >/dev/null; then
22+
apt-get update
23+
apt-get install -y make gcc
24+
elif command -v yum >/dev/null; then
25+
yum install -y make gcc
26+
else
27+
echo "Unsupported package manager"
28+
exit 1
29+
fi
30+
31+
# Create build directory
32+
mkdir -p "$BUILD_DIR"
33+
cd "$BUILD_DIR"
34+
35+
# Download and extract
36+
echo "Downloading No-IP DUC..."
37+
wget "http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz"
38+
tar xzf noip-duc-linux.tar.gz
39+
cd "noip-$NOIP_VERSION"
40+
41+
# Build
42+
echo "Building No-IP DUC..."
43+
make
44+
45+
# Install
46+
echo "Installing No-IP DUC..."
47+
make install
48+
49+
# Create systemd service
50+
cat > /etc/systemd/system/noip-duc.service <<EOF
51+
[Unit]
52+
Description=No-IP Dynamic Update Client
53+
After=network.target
54+
55+
[Service]
56+
Type=forking
57+
ExecStart=/usr/local/bin/noip2
58+
Restart=always
59+
60+
[Install]
61+
WantedBy=multi-user.target
62+
EOF
63+
64+
# Reload systemd
65+
systemctl daemon-reload
66+
67+
# Configure No-IP
68+
echo "Configuring No-IP DUC..."
69+
/usr/local/bin/noip2 -C
70+
71+
# Start service
72+
echo "Starting No-IP DUC service..."
73+
systemctl enable noip-duc
74+
systemctl start noip-duc
75+
76+
# Cleanup
77+
echo "Cleaning up..."
78+
cd /
79+
rm -rf "$BUILD_DIR"
80+
81+
# Verify installation
82+
if systemctl is-active --quiet noip-duc; then
83+
echo "No-IP DUC installed and running successfully"
84+
echo "Service status:"
85+
systemctl status noip-duc
86+
else
87+
echo "Installation completed but service failed to start"
88+
echo "Check logs with: journalctl -u noip-duc"
89+
exit 1
90+
fi

buildScripts/install-ollama.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
git clone --depth 1 https://github.com/ollama/ollama.git
2+
cd ollama
3+
go generate ./...
4+
go build .

buildScripts/install-vector.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/data/data/com.termux/files/usr/bin/bash
2+
3+
# Step 1: Install dependencies
4+
pkg update -y
5+
pkg install -y wget tar curl
6+
7+
# Step 2: Detect architecture
8+
ARCH=$(uname -m)
9+
if [ "$ARCH" == "aarch64" ]; then
10+
VECTOR_ARCH="aarch64-unknown-linux-musl"
11+
elif [ "$ARCH" == "armv7l" ]; then
12+
VECTOR_ARCH="armv7-unknown-linux-musleabihf"
13+
elif [ "$ARCH" == "x86_64" ]; then
14+
VECTOR_ARCH="x86_64-unknown-linux-musl"
15+
else
16+
echo "Unsupported architecture: $ARCH"
17+
exit 1
18+
fi
19+
20+
# Step 3: Download Vector binary
21+
VECTOR_VERSION="0.35.0" # Update to latest if needed
22+
VECTOR_URL="https://packages.timber.io/vector/$VECTOR_VERSION/vector-$VECTOR_ARCH.tar.gz"
23+
wget "$VECTOR_URL" -O vector.tar.gz
24+
25+
# Step 4: Extract and move binary
26+
tar -xzf vector.tar.gz
27+
mkdir -p ~/.vector
28+
mv vector-*/bin/vector ~/.vector/vector
29+
chmod +x ~/.vector/vector
30+
31+
# Step 5: Create a basic config file
32+
cat > ~/.vector/vector.toml <<EOF
33+
[sources.stdin]
34+
type = "stdin"
35+
36+
[sinks.console]
37+
type = "console"
38+
inputs = ["stdin"]
39+
encoding.codec = "json"
40+
EOF
41+
42+
# Step 6: Add Vector to PATH
43+
echo 'export PATH=$HOME/.vector:$PATH' >> ~/.bashrc
44+
source ~/.bashrc
45+
46+
# Step 7: Verify installation
47+
vector --version
48+
49+
echo "Vector installed successfully!"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/data/data/com.termux/files/usr/bin/bash
2+
3+
# Step 1: Install dependencies
4+
pkg update -y
5+
pkg install -y wget tar curl make clang golang git
6+
7+
# Step 2: Detect architecture
8+
ARCH=$(uname -m)
9+
if [ "$ARCH" == "aarch64" ]; then
10+
VM_ARCH="arm64"
11+
elif [ "$ARCH" == "armv7l" ]; then
12+
VM_ARCH="armv7"
13+
elif [ "$ARCH" == "x86_64" ]; then
14+
VM_ARCH="amd64"
15+
else
16+
echo "Unsupported architecture: $ARCH"
17+
exit 1
18+
fi
19+
20+
# Step 3: Download VictoriaMetrics binary (if available)
21+
VM_VERSION="v1.99.0" # Update to the latest version if needed
22+
VM_URL="https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/$VM_VERSION/victoria-metrics-linux-$VM_ARCH.tar.gz"
23+
24+
wget "$VM_URL" -O victoria-metrics.tar.gz
25+
if [ $? -eq 0 ]; then
26+
echo "✅ Downloaded VictoriaMetrics binary."
27+
tar -xzf victoria-metrics.tar.gz
28+
mkdir -p ~/.victoriametrics
29+
mv victoria-metrics-prod ~/.victoriametrics/victoria-metrics
30+
chmod +x ~/.victoriametrics/victoria-metrics
31+
else
32+
echo "⚠️ Binary not available for this architecture. Building from source..."
33+
34+
# Step 4: Build VictoriaMetrics from source
35+
export GOPATH=$HOME/go
36+
export PATH=$GOPATH/bin:$PATH
37+
mkdir -p $GOPATH/src/github.com/VictoriaMetrics
38+
cd $GOPATH/src/github.com/VictoriaMetrics
39+
git clone --depth=1 https://github.com/VictoriaMetrics/VictoriaMetrics.git
40+
cd VictoriaMetrics
41+
make victoria-metrics
42+
mkdir -p ~/.victoriametrics
43+
mv bin/victoria-metrics ~/.victoriametrics/
44+
fi
45+
46+
# Step 5: Add to PATH
47+
echo 'export PATH=$HOME/.victoriametrics:$PATH' >> ~/.bashrc
48+
source ~/.bashrc
49+
50+
# Step 6: Verify installation
51+
victoria-metrics --version
52+
53+
echo "✅ VictoriaMetrics installed successfully!"

0 commit comments

Comments
 (0)