-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_linux_env_for_linux_app.sh
More file actions
executable file
Β·34 lines (28 loc) Β· 1.39 KB
/
setup_linux_env_for_linux_app.sh
File metadata and controls
executable file
Β·34 lines (28 loc) Β· 1.39 KB
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
#!/usr/bin/bash
echo "###########################################################################################################"
echo "******************************** Beginning setup environment for Linux App ********************************"
echo "###########################################################################################################"
echo "π Updating apt packages..."
sudo apt update
packages=("procps" "util-linux" "sysstat" "lm-sensors" "psmisc" "stress" "beep" "sox")
echo "π Checking installed packages..."
for package in "${packages[@]}"; do
if (! dpkg -s "$package" &> /dev/null); then
echo "π Installing package ($package)..."
sudo apt install "$package"
echo "β
Installed ($package)"
else
echo "β
Require package ($package) is installed"
fi
done
if [[ -f IVI-System-App ]]; then
chmod a+x IVI-System-App
elif [[ -f IVI-system-Linux-App ]]; then
chmod a+x IVI-system-Linux-App
else
echo "β You need to download IVI-system-Linux-App and put it in the same folder as $(basename \"$0\")"
exit 1
fi
echo "###########################################################################################################"
echo "***** Successfully established the environment, hope you have a pleasant experience with our products *****"
echo "###########################################################################################################"