-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntuTasks.sh
executable file
·72 lines (69 loc) · 2.52 KB
/
ubuntuTasks.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
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
ans=$(zenity --list --width=350 --height=400 --text "Initial Ubuntu Tasks" --checklist --column "Select" --column "Options" TRUE "Uninstall Mono" TRUE "Install SBackup" TRUE "Install Restricted Extras & Codecs" TRUE "Install MS Core Fonts" TRUE "Install FileZilla FTP" TRUE "Install Wine" TRUE "Install VLC Media Player" TRUE "Install K3B" TRUE "Enable 5.1 Surround Sound" --separator=":");
arr=$(echo $ans | tr "\:" "\n")
for x in $arr
do
if [ $x = "Mono" ]
then
echo "=================================================="
echo "Uninstalling Mono..."
echo "=================================================="
sudo apt-get -y remove --purge mono-common libmono0
fi
if [ $x = "SBackup" ]
then
echo "=================================================="
echo "Installing SBackup"
echo "=================================================="
sudo apt-get -y install sbackup
fi
if [ $x = "Restricted" ]
then
echo "=================================================="
echo "Installing Restricted Extras & Codecs"
echo "=================================================="
sudo apt-get -y install ubuntu-restricted-extras && sudo aptitude install w32codecs
fi
if [ $x = "Fonts" ]
then
echo "=================================================="
echo "Installing Fonts"
echo "=================================================="
sudo apt-get -y install msttcorefonts && sudo fc-cache -fv
fi
if [ $x = "VLC" ]
then
echo "=================================================="
echo "Installing VLC Media Player"
echo "=================================================="
sudo apt-get -y install vlc
fi
if [ $x = "K3B" ]
then
echo "=================================================="
echo "Installing K3B"
echo "=================================================="
sudo apt-get -y install k3b
fi
if [ $x = "Wine" ]
then
echo "=================================================="
echo "Installing Wine"
echo "=================================================="
sudo apt-get -y install wine
fi
if [ $x = "FileZilla" ]
then
echo "=================================================="
echo "Installing FileZilla FTP"
echo "=================================================="
sudo apt-get -y install filezilla
fi
if [ $x = "Sound" ]
then
echo "=================================================="
echo "Enabling 5.1 Playback"
echo "=================================================="
sudo perl -pi -w -e 's/\; default-sample-channels \= 2/default-sample-channels \= 6/g;' /etc/pulse/daemon.conf
fi
done