-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgo.sh
executable file
·115 lines (101 loc) · 2.28 KB
/
go.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
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
#!/bin/bash
set -euo pipefail
declare -a PPAS=(
"ppa:webupd8team/java"
)
echo " "
echo "***********"
echo "Installing PPAs"
for P in "${PPAS[@]}"
do
echo "installing PPA: $P"
set -x
sudo add-apt-repository -y $P
set +x
done
echo "*********"
echo "update apt-repo so we can install from ppas"
sudo apt-get update
echo " "
echo "***********"
echo "Installing packages..."
# install packages
declare -a PACKAGES=(
"alarm-clock-applet"
"amarok"
"build-essential"
"colordiff"
"compiz-plugins-extra"
"compizconfig-settings-manager"
"curl"
"clusterssh"
"git"
"gitk"
"gimp"
"gnome-do"
"gparted"
"graphviz"
"jq"
"keepassx"
"lxrandr"
"meld"
"maven"
"moreutils"
"mpg321"
"multitail"
"mysql-client-core-5.7"
"nmon"
"plantuml"
"postgresql-client"
"postgresql-common"
"redis-tools"
"ubuntu-restricted-extras"
"speedcrunch"
"synaptic"
"vim"
)
PACKAGES_STRING=""
for P in "${PACKAGES[@]}"
do
PACKAGES_STRING=("$PACKAGES_STRING $P")
done
echo "list of packages: $PACKAGES_STRING"
set -x
sudo apt-get install -y $PACKAGES_STRING
set +x
echo " "
echo "*********"
echo "Install oracle Java 8"
sudo apt-get install -y oracle-java8-installer
echo "**********"
echo "Setting some defaults..."
#echo "make alt-right-drag resize windows"
#gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
#echo "move buttons to right"
#gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
#echo "restore normal scrollbars"
#gsettings set com.canonical.desktop.interface scrollbar-mode normal
echo "Replace marco with compiz as the default window manager"
gsettings set org.mate.session.required-components windowmanager compiz
echo "Kill those login sound files"
set +e # do not fail if these files have already been moved
sudo mv /usr/share/sounds/ubuntu/stereo/desktop-login{,-disabled}.ogg
sudo mv /usr/share/sounds/ubuntu/stereo/system-ready{,-disabled}.ogg
set -e
echo "Add upd script"
sudo echo '#!/bin/bash' > upd
sudo echo "sudo apt-get update ; sudo apt-get upgrade" >> upd
sudo mv upd /usr/bin
sudo chmod +x /usr/bin/upd
echo "Install Chrome"
set -x
pushd .
mkdir -p tmp
cd tmp
wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
ls
pwd
sudo dpkg -i google-chrome-stable_current_amd64.deb
popd
echo "****************************"
echo "All done!"