-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdogescript.sh
More file actions
326 lines (267 loc) · 8.94 KB
/
Copy pathdogescript.sh
File metadata and controls
326 lines (267 loc) · 8.94 KB
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
#!/bin/bash
# IMPROVING
#installing java should be seperate
#I'd prefer the app NOT to crash if something does not install
#I'd prefer it to print anything that did not install
# This also makes it less ubuntu dependent so I can
# use it on a more pure Debian environment
# && creates an if conditional
# ; runs code regardless
# newline?
#Take out dead repos
#add komodo and fix lamp
#Test autojump after install, last time there seemed to be a
# problem but that could've been the setting it was run.
clear
echo Hello. Hola. Bonjour. Salam Aleikum. Shalom Alekum.
echo
echo
echo "
▄ ▄
▌▒█ ▄▀▒▌
▌▒▒▀▄ ▄▀▒▒▒▐
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀██▀▒▌
▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
▌▀▐▄█▄█▌▄▒▀▒▒▒▒▒▒░░░░░░▒▒▒▐
▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒▒▒░░░░░░▒▒▒▒▌
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
▐▀▒▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀
"
echo "Welcome to Cina's Post-install linux script."
echo dogeislove
echo dogeislife
echo this is an old meme
echo
baseinstall()
{
sudo ufw enable
sudo add-apt-repository -y ppa:noobslab/icons
sudo add-apt-repository ppa:satyajit-happy/themes
##^This is for Orion
#
sudo apt-get update
sudo apt-get -y install gedit
sudo apt-get -y install orion-gtk-theme
sudo apt-get -y install idle3
sudo apt-get -y install python3
sudo apt-get -y install autojump
sudo apt-get -y install kolourpaint
sudo apt-get install -y comix
sudo apt-get install -y rar
sudo apt-get install -y vlc
sudo apt-get install -y higan
sudo apt-get install -y pulseaudio-module-bluetooth
sudo apt-get install -y exaile
sudo apt-get -y remove thunderbird banshee pidgin gmusicbrowser parole mousepad
#So here there is an if else statement.
#The script requests the cpu info
#then downloads the appropriate deb
cd /tmp
if uname -i | grep -q x86_64
then wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*; sudo apt-get -f -y install
else wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
fi
#it actually installs it here
#note that it installs it indiscriminantly.
sudo dpkg -i google-chrome*; sudo apt-get -f -y install
echo ". /usr/share/autojump/autojump.sh" >> ~/.bashrc
#does it revert to where it was before?
#yes
}
xfce_theme_manager()
{
sudo add-apt-repository -y ppa:rebuntu16/other-stuff
sudo apt-get -y install xfce-theme-manager
}
java()
{
sudo apt-get -y install openjdk-7-jdk
sudo apt-get -y install icedtea-7-plugin
sudo apt-get -y install openjdk-7-jre
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get -y install oracle-java8-installer
}
themes()
{
# numix
sudo add-apt-repository -y ppa:numix/ppa
sudo apt-get -y install numix-gtk-theme
sudo apt-get -y install numix-icon-theme
sudo apt-get -y install numix-icon-theme-circle
# vibrancy
sudo add-apt-repository -y ppa:ravefinity-project/ppa
sudo apt-get install -y vibrancy-colors
}
linuxmintrepos()
{
sudo sh -c 'echo "deb http://packages.linuxmint.com/ qiana main" >> /etc/apt/sources.list.d/mint.list'
sudo apt-get update
sudo apt-get install -y --force-yes linuxmint-keyring mintstick
#gotta test if this works without asking for yes
}
asusn13driver()
#gotta fix this and make it local so that if it is removed from github, it still works
{
#echo "You need the internet for this to work"
#sudo apt-get install -y linux-headers-generic build-essential dkms
#sudo apt-get install -y git
#git clone https://github.com/pvaret/rtl8192cu-fixes.git
#sudo dkms add ./rtl8192cu-fixes
#sudo dkms install 8192cu/1.9
#sudo depmod -a
#sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
#echo "And reboot. You're done."
#^this doesn't work and takes the network out for some reason
#below fix is from the same repo but doesn't need the net since its already on there
#also uses different instructions
cd ./drivers/rt8192cudriver
sudo make
sudo make install
#cd ..
#cd ..
}
codecs()
{
sudo apt-get -y install xubuntu-restricted-extras
sudo apt-get -y install libavcodec-extra
sudo apt-get install -y libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
}
installt440()
{
#cd ./internal/rtlwifi_new-master/
#^old one, where was this coming from?
cd ./drivers/t440_driver/
sudo make
sudo make install
#cd ..
#cd ..
}
androidstudio()
{
sudo apt-add-repository -y ppa:paolorotolo/android-studio
sudo apt-get install -y android-studio
}
spotify()
{
sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" &&
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 &&
sudo apt-get update -qq &&
sudo apt-get --force-yes install spotify-client
}
xfce4shortcuts()
{
sudo cp xfce4-keyboard-shortcuts.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/
}
xfce4backup()
{
sudo cp ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml xfce4-keyboard-shortcuts.xml
}
#an auto backup function would be cool
#needs to be updated
lampgit()
{
sudo apt-get install -y git
sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
}
#find a way to make this into the above function, take user input and pass this into that function
#sudo chown -R username:group /var/www
#replace username:group with the username:username
#also maybe configurating :
# git config --global user.email "you@example.com"
# git config --global user.name "Your Name"
n=1
while [ $n -eq 1 ] #this variable n tests whether the user still wants the program to run
do
echo -e "Type in a \e[1;34mphrase\e[0m containing each installation element you'd like to install."
echo -e "Base install = \e[1;34mBi\e[0m "
echo -e "Mint repos = \e[1;34mMr\e[0m"
echo -e "LAMP and Git = \e[1;34mLa\e[0m"
echo -e "Asusn13 driver = \e[1;34mAw\e[0m"
echo -e "Internal Laptop Wifi driver for t440 = \e[1;34mLw\e[0m"
echo -e "install spotify = \e[1;34mSp\e[0m"
echo -e "Install android studio = \e[1;34mAs\e[0m"
echo -e "Install xfce4 shortcuts = \e[1;34mXs\e[0m"
echo -e "Backup xfce4 shortcuts = \e[1;34mBc\e[0m"
echo -e "Spotify = \e[1;34mSp\e[0m"
echo -e "Android studio = \e[1;34mAs\e[0m"
echo
echo "NOTE: These are case sensitive. You can have white space between phrases or not."
echo "All phrases start with a capital and end with a lowercase"
echo "LAMP installation requires the user to setup mysql so, do NOT leave the computer"
echo
read choice
echo "You wrote '" $choice "' Are you sure?"
echo "Type y to continue or anything else to restart"
read confirm
if echo $confirm | grep -q y;
then
installed=""
#declare it first but empty
if echo $choice | grep -q Bi;
then
baseinstall
installed+=" Base install- "
fi
if echo $choice | grep -q Mr;
then
linuxmintrepos
installed+=" Linux Mint repos- Mintstick, Mintformat- "
fi
if echo $choice | grep -q La;
then
lampgit
installed+=" Lamp & Git installation"
fi
if echo $choice | grep -q Aw;
then
asusn13driver
installed+=" Asusn13 driver- "
fi
if echo $choice | grep -q Lw;
then
installt440
installed+=" T440 Driver- "
fi
if echo $choice | grep -q Sp;
then
spotify
installed+=" Spotify- "
fi
if echo $choice | grep -q As;
then
androidstudio
installed+=" Android Studio- "
fi
if echo $choice | grep -q Bc;
then
xfce4backup
installed+=" XFCE4 keyboard backup- "
fi
if echo $choice | grep -q Xs;
then
xfce4shortcuts
installed+=" XFCE4 keyboard shortcuts"
fi
echo "The following software was installed: "
echo
echo $installed
echo "If you would like to keep going, type in 1, if not, type in any other number"
read n
else
echo "Program will restart"
fi
done