-
Notifications
You must be signed in to change notification settings - Fork 465
/
installer.sh
executable file
·36 lines (27 loc) · 1.22 KB
/
installer.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
#!/bin/bash
# Ensure we are being ran as root
if [ $(id -u) -ne 0 ]; then
echo "This script must be ran as root"
exit 1
fi
# For upgrades and sanity check, remove any existing i2p.list file
rm -f /etc/apt/sources.list.d/i2p.list
# Install gnupg if not installed
if ! command -v gpg; then
apt-get update
apt-get install -y gnupg
fi
# Compile the i2p ppa
echo "deb https://ppa.launchpadcontent.net/i2p-maintainers/i2p/ubuntu noble main" > /etc/apt/sources.list.d/i2p.list # Default config reads repos from sources.list.d
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB9660B9EB2CC88B # Add i2p maintainer keys # TODO: Is there a more universal way to do this?
apt-get update # Update repos
apt-get install -y secure-delete tor i2p i2p-router # install dependencies, just in case
# Configure and install the .deb
dpkg-deb -b kali-anonsurf-deb-src/ kali-anonsurf.deb # Build the deb package
dpkg -i kali-anonsurf.deb || (apt-get -f install && dpkg -i kali-anonsurf.deb) # this will automatically install the required packages
# Check if kali-anonsurf package is already installed
if ! dpkg -l | grep -qw kali-anonsurf; then
echo "The package 'kali-anonsurf' did not install successfully."
exit 1
fi
exit 0