-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare-box-safe.sh
executable file
·170 lines (130 loc) · 5.83 KB
/
prepare-box-safe.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
cd ~/
echo =======Remove LibreOffice
sudo apt-get remove --purge libreoffice --assume-yes
sudo apt-get remove --purge libreoffice* --assume-yes
sudo apt clean -y
sudo apt autoremove -y
echo =======Remove FireFox
sudo apt purge -y firefox
sudo rm -rf /usr/lib/firefox*
echo =======Remove Chromium
sudo apt-get remove --purge chromium --assume-yes
sudo apt clean -y
sudo apt autoremove -y
echo =======Install Flatpak
sudo apt-get install curl --assume-yes
sudo apt-get install flatpak --assume-yes
sudo flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
echo =======Install Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable --assume-yes
echo =======Install SDKMan
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
echo =======Install java
sdk install java 8.0.252-open
echo =======Install docker
sudo apt install -y docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
sudo usermod -aG docker $USER
echo =======Install docker-compose
sudo apt install -y docker-compose
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.26.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
echo -e '\nexport DOCKER_COMPOSE_LOCATION='"`which docker-compose`"'\n' >> ~/.profile
source ~/.profile
echo =======Install utils
sudo apt install -y htop
sudo apt install -y timeshift
sudo apt install -y gnome-tweak-tool
sudo apt install -y awscli
echo =======Install nodejs and npm
sudo apt install -y nodejs
sudo apt install -y npm
echo =======Install aws-azure-login
sudo curl -o /usr/local/bin/aws-azure-login https://raw.githubusercontent.com/sportradar/aws-azure-login/master/docker-launch.sh
sudo chmod o+x /usr/local/bin/aws-azure-login
echo =======Install privoxy
sudo apt install -y privoxy
echo =======Install desktop apps
flatpak install -y flathub io.dbeaver.DBeaverCommunity
flatpak install -y flathub com.microsoft.Teams
flatpak install -y flathub com.getpostman.Postman
sudo snap install intellij-idea-community --classic --edge
echo =======Install latest VirtualBox
sudo apt install -y virtualbox
echo =======Fixing DNS issue. See https://github.com/pop-os/pop/issues/773
sudo dpkg-reconfigure resolvconf
echo =======Install OpenConnect
sudo apt install -y openconnect network-manager-openconnect network-manager-openconnect-gnome
echo =======Adding VPN connection
nmcli c add con-name "CLV-EMEA.clarivate.com" ifname "AAA" type vpn vpn-type openconnect +vpn.data "gateway=CLV-EMEA.clarivate.com"
echo =======Install Keybase
curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
sudo apt install ./keybase_amd64.deb --assume-yes
echo =======Install Free Office
curl https://www.softmaker.net/down/softmaker-freeoffice-2018_976-01_amd64.deb --output ~/Downloads/softmaker-freeoffice-2018_976-01_amd64.deb
sudo apt install -y ~/Downloads/softmaker-freeoffice-2018_976-01_amd64.deb
sudo /usr/share/freeoffice2018/add_apt_repo.sh
echo =======Install dependencies for OneDrive
sudo apt install -y build-essential
sudo apt install -y libcurl4-openssl-dev
sudo apt install -y libsqlite3-dev
sudo apt install -y pkg-config
curl -fsS https://dlang.org/install.sh | bash -s dmd
sudo apt install -y libnotify-dev
echo =======Compile and install OneDrive
source ~/dlang/dmd-2.092.0/activate
cd ~/Downloads
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
./configure
make clean; make;
sudo make install
cd ~/
echo =======Configure and synchronize OneDrive
onedrive --synchronize
systemctl --user enable onedrive
systemctl --user start onedrive
systemctl --user status onedrive
echo =======Configure ssh
tar -zxf ~/OneDrive/Pop_OS/sshconfig.tar.gz
echo =======Configure aws cli
sudo mkdir ~/.aws
sudo cp ~/OneDrive/Pop_OS/aws/config ~/.aws
echo =======Configure privoxy
sudo mv /etc/privoxy/config /etc/privoxy/config.bak
sudo cp ~/OneDrive/Pop_OS/privoxy/config /etc/privoxy/
echo =======Create code dir
mkdir ~/code
cd ~/code
echo =======Start VPN connection
sudo openconnect --servercert pin-sha256:rby4MfqHAKveAOKiSdyw6tvoxp3wUk0bZGJA0zjxsGw= -b "CLV-EMEA.clarivate.com"
echo =======Clone all repos
git clone ssh://[email protected]/sp/1p-kafka-engine.git
git clone ssh://[email protected]/pas/1p-email-engine.git
git clone ssh://[email protected]/sp/1p-alert-manager.git
git clone ssh://[email protected]/sp/elasticsearch-loader.git
git clone ssh://[email protected]/sp/1p-alert-acceptance-test-example.git
git clone ssh://[email protected]/sp/alerts-admin.git
git clone ssh://[email protected]/sp/cassandra-manager.git
git clone ssh://[email protected]/ds/usage-data.git
git clone ssh://[email protected]/sp/1p-perf-eval.git
git clone ssh://[email protected]/sp/eiddo.git
git clone ssh://[email protected]/ui/tableau.git
git clone ssh://[email protected]/ls-cortellis-services/fireflight.git
git clone ssh://[email protected]/~johannes.barnard_clarivate.com/es-loader-jenkins-jobs.git
git clone ssh://[email protected]/~johannes.barnard_clarivate.com/jenkins-dsl.git
git clone ssh://[email protected]/~johannes.barnard_clarivate.com/simple-es-loader.git
git clone http://[email protected]/r/1pemailengine.git
git clone http://[email protected]/r/1palertmanager.git
git clone http://[email protected]/r/1pesloaderservice.git
git clone http://[email protected]/r/1pzuulfiltermaps.git
git clone http://[email protected]/r/1pcommon.git
git clone https://github.com/csi-lk/aws-ses-local.git
git clone https://github.com/hansbarnard/pop_os_helper.git
echo =======Success!!!!!!!