-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig-ubuntu-gnome-xenial.sh
259 lines (236 loc) · 6.42 KB
/
config-ubuntu-gnome-xenial.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
#!/bin/bash
#Baserat på Ubuntu Gnome
i () {
clear
sudo apt install -y -qq $1
}
u () {
sudo apt -qq -y update && sudo apt -qq -y upgrade
}
clear
# Välj paket
dist=$(lsb_release -c | cut -d':' -f 2 | xargs echo -n)
if [ "$dist" = "artful" ]
then
echo "Vill du ha klassiska Gnome? J/n"
read classic
fi
echo "Ljud och video? J/n"
read ljudvideo
echo "Grafik och foto? J/n"
read grafikfoto
echo "GIS och sånt...? J/n"
read gisochsant
echo "Spel och Steam? J/n"
read spel
echo "Spotify? J/n"
read spotify
echo "Dropbox och kontor? J/n"
read dropboxkontor
echo "Play on Linux - SketchUp, AirPort Tool, etc J/n"
read playonlinux
echo "Laptop verktyg? j/N"
read laptop
echo "MATE Software Botique? j/N"
read mate
echo "Sublime Text? J/n"
read sublime
sudo add-apt-repository ppa:dawidd0811/neofetch -y
sudo add-apt-repository ppa:obsproject/obs-studio -y
sudo add-apt-repository ppa:team-xbmc/ppa -y
sudo add-apt-repository ppa:webupd8team/java -y
sudo add-apt-repository ppa:otto-kesselgulasch/gimp -y
sudo add-apt-repository ppa:hugin/hugin-builds -y
sudo add-apt-repository ppa:kdenlive/kdenlive-stable -y
sudo add-apt-repository ppa:libreoffice/ppa -y
sudo add-apt-repository ppa:thomas-schiex/blender -y
u
i sshfs
i neofetch
echo "neofetch" >> ~/.bashrc
i cryptsetup
i htop
i ubuntu-restricted-extras
i libavcodec-extra
i alacarte
i tracker-gui
i gparted
i papirus-icon-theme
# Fixa så att Qt applikationer följer GTK+ tema
echo "QT_STYLE_OVERRIDE=GTK+" | sudo tee -a /etc/environment
i cowsay
if [ "$classic" != "n" ]
then
i gnome-session
i vanilla-gnome-desktop
fi
if [ "$ljudvideo" != "n" ]
then
i breeze-icon-theme
i obs-studio
i kdenlive
i kazam
i vlc
i audacity
i kodi
i guvcview
i enblend
i handbrake
i pavucontrol
i libdvd-pkg
i libaacs0
i libbluray-bdj
i libbluray1
mkdir -p ~/.config/aacs/
cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg
cd ~
sudo add-apt-repository ppa:heyarje/makemkv-beta
sudo apt-get purge -yyqq gstreamer1.0-fluendo-mp3
u
i makemkv-bin
i makemkv-oss
fi
if [ "$grafikfoto" != "n" ]
then
i gimp
i darktable
i inkscape
i synfigstudio
i blender
i hugin
fi
if [ "$gisochsant" != "n" ]
then
dist=$(lsb_release -c | cut -d':' -f 2 | xargs echo -n)
if [ "$dist" = "xenial" ]
then
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 089EBE08314DF160
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 073D307A618E5811
echo deb http://qgis.org/ubuntugis xenial main | sudo tee /etc/apt/sources.list.d/qgis.list
echo deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main | sudo tee -a /etc/apt/sources.list.d/qgis.list
else
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 073D307A618E5811
echo deb http://qgis.org/debian $dist main | sudo tee /etc/apt/sources.list.d/qgis.list
fi
u
i qgis
i python-qgis
i qgis-plugin-grass
i gpsbabel
i mtkbabel
i gpsd
i gpsd-clients
i gpsbabel-gui
i meshlab
i freecad
i pgadmin3
i saga
i python-saga
i libotb
i otb-bin
i python-otb
i python-exif
i python-scipy
i libwxgtk3.0-dev
i libgdal-dev
i pyqt4-dev-tools
i python-sphinx
i bluefish
i git
i python-pip
sudo pip install jupyter bokeh pandas
fi
if [ "$spel" != "n" ]
then
i steam
i oracle-java8-installer
mkdir minecraft
cd minecraft
wget http://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
chmod +x Minecraft.jar
cd ..
fi
if [ "$spotify" != "n" ]
then
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
u
i spotify-client
fi
if [ "$playonlinux" != "n" ]
then
i playonlinux
fi
if [ "$dropboxkontor" != "n" ]
then
wget "https://github.com/Automattic/simplenote-electron/releases/download/v1.0.8/simplenote-1.0.8.deb"
sudo dpkg -i simplenote-1.0.8.deb
wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
i thunderbird
i virtualbox
fi
if [ "$sublime" != "n" ]
then
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
u
i sublime-text
fi
if [ "$laptop" == "j" ]
then
i powertop
i laptop-mode-tools
sudo powertop --auto-tune --html
firefox powertop.html &
sudo update-rc.d laptop-mode defaults
fi
if [ "$mate" == "j" ]
then
i ubuntu-mate-welcome
fi
sudo apt -f install -y -qq && sudo apt dist-upgrade -y -qq
clear
echo "Installationen är klar!" > postinstall.txt
if [ "$classic" "= #n" ]
then
echo "Starta om för att byta till Klassisk Gnome vid inloggningen." >> postinstall.txt
echo "Detta krävs för att kunna göra en del förändringar i gränssnittet." >> postinstall.txt
else
echo "Ubuntu varianten av Gnome kan inte hantera alla justeringar nedan." >> postinstall.txt
fi
echo "Att göra:" >> postinstall.txt
echo "1. Lägg till Lightning kalendern i Thunderbird" >> postinstall.txt
echo " Lägg till Provider for Google Calendar om du har Google konto" >> postinstall.txt
echo "2. Lägg till/Aktivera extensions till Gnome:" >> postinstall.txt
echo " - Dash to Panel" >> postinstall.txt
echo " - Applications Menu" >> postinstall.txt
echo " - OpenWeather" >> postinstall.txt
echo " - Dynamic Panel Transparency" >> postinstall.txt
echo " - Coverflow Alt-Tab" >> postinstall.txt
echo " - ShellTile" >> postinstall.txt
echo "3. Ljudet med pavucontol - vid behov" >> postinstall.txt
echo "4. Kontrollera Ytterligare drivrutiner" >> postinstall.txt
echo "5. Ställ in Dropbox - om installerat" >> postinstall.txt
echo "6. Om du installerat PlayOnLinux så starta den för att lägga till PC mjukvara" >> postinstall.txt
echo "7. Lägg till fler program via Software Botique - om installerat" >> postinstall.txt
echo "8. Skapa egna genvägar i menyn med alacarte" >> postinstall.txt
echo "9. Om \"tracker\" kräver mycket ram (kolla med htop), ändra hur systemet indexerar filer" >> postinstall.txt
echo "10.Om du installerat SublimeText kanske du vill ha med Emmet?" >> postinstall.txt
echo " a. shift+ctrl+P sök efter Install Package Control" >> postinstall.txt
echo " b. Package Control: Install Package..." >> postinstall.txt
echo " c. Emmet" >> postinstall.txt
alacarte &
thunderbird &
software-properties-gtk --open-tab=4 &
firefox extensions.gnome.org &
gedit postinstall.txt &
if [ "$dropboxkontor" != "n" ]
then
~/.dropbox-dist/dropboxd &
fi
if [ "$playonlinux" != "n" ]
then
playonlinux &
fi
clear
cowsay -f tux "Nu kan du stänga detta fönster"