-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup
120 lines (102 loc) · 2.88 KB
/
Setup
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
################### VARIABLES ######################
USER=$(whoami)
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
clear
echo -e "\e[38;5;4m | _ \ | _ \ _) | |"
echo -e "\e[38;5;25m __| | | __| __| _ \ __ '__ \ | | _ \ __| | / | | | | |"
echo -e "\e[38;5;55m ( | | \__ \ | ( | | | | __ < ( | ( < ___/ | ___ __|"
echo -e "\e[38;5;57m \___| \__,_| ____/ \__| \___/ _| _| _| _| \_\ \___/ \___| _|\_\ _| _| _|"
sleep 1
echo -e " The current User is: " "$USER" "\e[0m"
sleep 1
echo
sudo chmod +x ./scripts/1_install_wireguard
sudo chmod +x ./scripts/2_Install_MOTD
########## Install custom bashpromt?
while true
do
echo -e "\e[48;5;57m Do you want to customize your bashpromt?\e[48;5;235m[Y/n]\e[0m"
echo -e " The colors are like the colors in the custom RockPi4 banner above."
read -r -p " The temperature is also displayed in the promt." input
case $input in
[yY][eE][sS]|[yY])
echo -e "\e[0m Installing..."
sudo cat ./files/2payload_bashrc >> $HOME/.bashrc
echo -e " The changes are visible after reconnecting to terminal. Or after this command: \e[48;5;57msource ~/.bashrc\e[0m"
echo
break
;;
[nN][oO]|[nN])
echo " Not installed..."
break
;;
*)
echo " Invalid input..."
;;
esac
done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
########## Install custom MOTD?
while true
do
echo -e "\e[48;5;57m Do you want to install a custom Message of the Day?\e[48;5;235m[Y/n]\e[0m"
read -r -p " Lolcat and figlet will be installed." input
case $input in
[yY][eE][sS]|[yY])
sudo bash ./scripts/2_Install_MOTD
break
;;
[nN][oO]|[nN])
echo " Not installed..."
break
;;
*)
echo " Invalid input..."
;;
esac
done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxx
########## Install Wireguard?
while true
do
echo -e "\e[48;5;57m Do you want to install Wireguard VPN?\e[48;5;235m[Y/n]\e[0m"
echo -e " RockPi4 Kernelheaders will be installed."
read -r -p " Wireguard dependencies will be installed." input
case $input in
[yY][eE][sS]|[yY])
sudo bash ./scripts/1_install_wireguard
break
;;
[nN][oO]|[nN])
echo " Not installed..."
break
;;
*)
echo " Invalid input..."
;;
esac
done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxx
########## Install PiHole?
while true
do
echo -e "\e[48;5;57m Do you want to install PiHole?\e[48;5;235m[Y/n]\e[0m"
read -r -p " The script will be downloaded from https://install.pi-hole.net" input
case $input in
[yY][eE][sS]|[yY])
curl -sSL https://install.pi-hole.net | bash
break
;;
[nN][oO]|[nN])
echo " Not installed..."
break
;;
*)
echo " Invalid input..."
;;
esac
done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxx
################### FUNCTIONS ######################
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx