-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_parrot_Desktop.sh
60 lines (51 loc) · 1.6 KB
/
install_parrot_Desktop.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/data/data/com.termux/files/usr/bin/bash
# Function to display progress messages
log_message() {
echo "$1"
sleep 1
}
# Install initial dependencies
log_message "Installing initial dependencies..."
apt install -y python-pip cowsay figlet proot-distro git wget curl x11-repo termux-x11-nightly tur-repo pulseaudio
pip install lolcat
# Display script information
log_message "CODED BY..."
figlet "D I C E A I L S" | lolcat
# Prompt for update
read -p "Let's Update First (yes/y/Y or no/n/N): " answer
if [[ "$answer" =~ ^(yes|y|Y)$ ]]; then
log_message "Updating your system..."
apt update && apt upgrade -y
figlet "Update DONE" | lolcat
# Install Parrot CLI
log_message "Installing ParrotOS CLI..."
cd ~
wget -q https://github.com/LinuxDroidMaster/parrotOS-GUI-proot/archive/refs/heads/main.zip -O parrotOS.zip || {
echo "Failed to download ParrotOS. Exiting..."
exit 1
}
unzip -o parrotOS.zip
cd parrotOS-GUI-proot-main || {
echo "Directory not found. Exiting..."
exit 1
}
chmod +x *
./setup-parrot-cli
figlet "Setup Complete" | lolcat
# Enter Parrot CLI and execute setup
log_message "Logging into ParrotOS CLI..."
parrot -r << 'EOF'
apt update && apt upgrade -y
apt install -y sudo git
chmod +x *
./install-parrot-desktop
EOF
log_message "ParrotOS Desktop XFCE4 setup complete!"
elif [[ "$answer" =~ ^(no|n|N)$ ]]; then
log_message "Skipping updates..."
figlet "DONE" | lolcat
else
log_message "Invalid input. Please enter yes/y/Y or no/n/N."
exit 1
fi
log_message "Script execution completed!"