-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbasic_setup.sh
More file actions
executable file
·37 lines (32 loc) · 1021 Bytes
/
basic_setup.sh
File metadata and controls
executable file
·37 lines (32 loc) · 1021 Bytes
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
#!/bin/bash
gStreamer="libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc
gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-pulseaudio"
#MainStarts Here
systemBasicUpdate
function installrequirements()
{
pip install -r requirements.txt --user
}
function systemBasicUpdate()
{
echo "#### Basic ubuntu update"
# Update the apt package index and Upgrade the Ubuntu system
sudo apt-get update && sudo apt-get -y upgrade
#Install Git
echo "#### Install gStreamer to play audio"
for pkg in $gStreamer; do
if dpkg --get-selections | grep -q "^$pkg[[:space:]]*install$" >/dev/null; then
echo -e "$pkg is already installed"
else
if sudo apt-get -qq install $pkg; then
echo "Successfully installed $pkg"
else
echo "Error installing $pkg"
fi
fi
done
}
#MainStarts
systemBasicUpdate
installrequirements