-
Notifications
You must be signed in to change notification settings - Fork 1
/
firefox
296 lines (284 loc) · 10.9 KB
/
firefox
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
#!/bin/sh
mkdir /opt/firefox
cd /opt/firefox
if [[ $(grep "[[:space:]]ro[[:space:],]" /proc/mounts) ]]; then
mkdir -p /usr/local/share/applications
sed -i 's#/usr/share/applications#/usr/local/share/applications#g' ./$arg
SHARE_APPLICATIONS="local/share/applications"
else
SHARE_APPLICATIONS="share/applications"
fi
echo "#!/bin/sh
rm -R -f /opt/firefox /usr/$SHARE_APPLICATIONS/firefox-stable.desktop /usr/local/bin/firefox" >> /opt/firefox/remove
chmod a+x /opt/firefox/remove
mkdir tmp;
cd ./tmp;
echo "
Available languages:
COUNTRY CODE
Acholi ach
Afrikaans af
Albanian sq
Arabic ar
Aragonese an
Armenian hy-AM
Assamese as
Asturian ast
Azerbaijani az
Basque eu
Belarusian be
Bengali (Bangladesh) bn-BD
Bengali (India) bn-IN
Bosnian bs
Breton br
Bulgarian bg
Catalan ca
Chinese (Simplified) zh-CN
Chinese (Traditional) zh-TW
Croatian hr
Czech cs
Danish da
Dutch nl
English (British) en-GB
English (South African) en-ZA
English (United States) en-US
Esperanto eo
Estonian et
Finnish fi
French fr
Frisian fy-NL
Fulah ff
Gaelic (Scotland) gd
Galician gl
German de
Greek el
Gujarati (India) gu-IN
Hebrew he
Hindi (India) hi-IN
Hungarian hu
Icelandic is
Indonesian id
Irish ga-IE
Italian it
Kannada kn
Kazakh kk
Khmer km
Korean ko
Latvian lv
Ligurian lij
Lithuanian lt
Lower Sorbian dsb
Macedonian mk
Maithili mai
Malay ms
Malayalam ml
Marathi mr
Norwegian (Bokmål) nb-NO
Norwegian (Nynorsk) nn-NO
Oriya or
Persian fa
Polish pl
Portuguese (Brazilian) pt-BR
Portuguese (Portugal) pt-PT
Punjabi (India) pa-IN
Romanian ro
Romansh rm
Russian ru
Serbian sr
Sinhala si
Slovak sk
Slovenian sl
Songhai son
Spanish (Argentina) es-AR
Spanish (Chile) es-CL
Spanish (Mexico) es-MX
Spanish (Spain) es-ES
Swedish sv-SE
Tamil ta
Telugu te
Thai th
Turkish tr
Ukrainian uk
Upper Sorbian hsb
Uzbek uz
Vietnamese vi
Welsh cy
Xhosa xh"
read -r -p "(Default: en-US) Type the language: " response
case $response in
''|'ach'|'af'|'sq'|'ar'|'an'|'hy-AM'|'as'|'ast'|'az'|'eu'|'be'|'bn-BD'|'bn-IN'|'bs'|'br'|'bg'|'ca'|'zh-CN'|'zh-TW'|'hr'|'cs'|'da'|'nl'|'en-GB'|'en-ZA'|'en-US'|'eo'|'et'|'fi'|'fr'|'fy-NL'|'ff'|'gd'|'gl'|'de'|'el'|'gu-IN'|'he'|'hi-IN'|'hu'|'is'|'id'|'ga-IE'|'it'|'kn'|'kk'|'km'|'ko'|'lv'|'lij'|'lt'|'dsb'|'mk'|'mai'|'ms'|'ml'|'mr'|'nb-NO'|'nn-NO'|'or'|'fa'|'pl'|'pt-BR'|'pt-PT'|'pa-IN'|'ro'|'rm'|'ru'|'sr'|'si'|'sk'|'sl'|'son'|'es-AR'|'es-CL'|'es-MX'|'es-ES'|'sv-SE'|'ta'|'te'|'th'|'tr'|'uk'|'hsb'|'uz'|'vi'|'cy'|'xh')
wget "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=$response" --trust-server-names;;
*) rm -R -f /opt/firefox && echo " $response is not a valid language code, installation aborted!"; exit;;
esac
tar fx firefox-*.tar.bz2
cd ..
mv ./tmp/firefox/* ./
rm -R ./tmp
currentuser=$(who | awk '{print $1}')
chown -R $currentuser /opt/firefox
ln -s /opt/firefox/firefox /usr/local/bin/firefox
rm -R -f /usr/$SHARE_APPLICATIONS/firefox-stable.desktop
echo "[Desktop Entry]
[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[es]=Navegador web
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[hu]=Webböngésző
GenericName[it]=Browser Web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[sk]=Internetový prehliadač
GenericName[sv]=Webbläsare
Comment=Browse the Web
Comment[ca]=Navegueu per el web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[de]=Im Internet surfen
Comment[es]=Navegue por la web
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Navigue sur Internet
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[sk]=Prehliadanie internetu
Comment[sv]=Surfa på webben
Exec=/opt/firefox/firefox %u
Terminal=false
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;profile-manager-window;
[Desktop Action Private]
Exec=/opt/firefox/firefox --private-window %u
Name=Open a New Private Window
Name[ach]=Dirica manyen me mung
Name[af]=Nuwe privaatvenster
Name[an]=Nueva finestra privada
Name[ar]=نافذة خاصة جديدة
Name[as]=নতুন ব্যক্তিগত উইন্ডো
Name[ast]=Ventana privada nueva
Name[az]=Yeni Məxfi Pəncərə
Name[be]=Новае акно адасаблення
Name[bg]=Нов прозорец за поверително сърфиране
Name[bn-BD]=নতুন ব্যক্তিগত উইন্ডো
Name[bn-IN]=নতুন ব্যক্তিগত উইন্ডো
Name[br]=Prenestr merdeiñ prevez nevez
Name[brx]=गोदान प्राइभेट उइन्ड'
Name[bs]=Novi privatni prozor
Name[ca]=Finestra privada nova
Name[cak]=K'ak'a' ichinan tzuwäch
Name[cs]=Nové anonymní okno
Name[cy]=Ffenestr Breifat Newydd
Name[da]=Nyt privat vindue
Name[de]=Neues privates Fenster
Name[dsb]=Nowe priwatne wokno
Name[el]=Νέο παράθυρο ιδιωτικής περιήγησης
Name[en-GB]=New Private Window
Name[en-US]=New Private Window
Name[en-ZA]=New Private Window
Name[eo]=Nova privata fenestro
Name[es-AR]=Nueva ventana privada
Name[es-CL]=Nueva ventana privada
Name[es-ES]=Nueva ventana privada
Name[es-MX]=Nueva ventana privada
Name[et]=Uus privaatne aken
Name[eu]=Leiho pribatu berria
Name[fa]=پنجره ناشناس جدید
Name[ff]=Henorde Suturo Hesere
Name[fi]=Uusi yksityinen ikkuna
Name[fr]=Nouvelle fenêtre de navigation privée
Name[fy-NL]=Nij priveefinster
Name[ga-IE]=Fuinneog Nua Phríobháideach
Name[gd]=Uinneag phrìobhaideach ùr
Name[gl]=Nova xanela privada
Name[gn]=Ovetã ñemi pyahu
Name[gu-IN]=નવી ખાનગી વિન્ડો
Name[he]=חלון פרטי חדש
Name[hi-IN]=नयी निजी विंडो
Name[hr]=Novi privatni prozor
Name[hsb]=Nowe priwatne wokno
Name[hu]=Új privát ablak
Name[hy-AM]=Սկսել Գաղտնի դիտարկում
Name[id]=Jendela Mode Pribadi Baru
Name[is]=Nýr huliðsgluggi
Name[it]=Nuova finestra anonima
Name[ja]=新しいプライベートウィンドウ
Name[ja-JP-mac]=新規プライベートウインドウ
Name[ka]=ახალი პირადი ფანჯარა
Name[kk]=Жаңа жекелік терезе
Name[km]=បង្អួចឯកជនថ្មី
Name[kn]=ಹೊಸ ಖಾಸಗಿ ಕಿಟಕಿ
Name[ko]=새 사생활 보호 모드
Name[kok]=नवो खाजगी विंडो
Name[ks]=نْو پرایوٹ وینڈو&
Name[lij]=Neuvo barcon privou
Name[lo]=ເປີດຫນ້າຕ່າງສວນຕົວຂື້ນມາໃຫມ່
Name[lt]=Naujas privataus naršymo langas
Name[ltg]=Jauns privatais lūgs
Name[lv]=Jauns privātais logs
Name[mai]=नया निज विंडो (W)
Name[mk]=Нов приватен прозорец
Name[ml]=പുതിയ സ്വകാര്യ ജാലകം
Name[mr]=नवीन वैयक्तिक पटल
Name[ms]=Tetingkap Persendirian Baharu
Name[my]=New Private Window
Name[nb-NO]=Nytt privat vindu
Name[ne-NP]=नयाँ निजी सञ्झ्याल
Name[nl]=Nieuw privévenster
Name[nn-NO]=Nytt privat vindauge
Name[or]=ନୂତନ ବ୍ୟକ୍ତିଗତ ୱିଣ୍ଡୋ
Name[pa-IN]=ਨਵੀਂ ਪ੍ਰਾਈਵੇਟ ਵਿੰਡੋ
Name[pl]=Nowe okno prywatne
Name[pt-BR]=Nova janela privativa
Name[pt-PT]=Nova janela privada
Name[rm]=Nova fanestra privata
Name[ro]=Fereastră privată nouă
Name[ru]=Новое приватное окно
Name[sat]=नावा निजेराक् विंडो (W )
Name[si]=නව පුද්ගලික කවුළුව (W)
Name[sk]=Nové okno v režime Súkromné prehliadanie
Name[sl]=Novo zasebno okno
Name[son]=Sutura zanfun taaga
Name[sq]=Dritare e Re Private
Name[sr]=Нови приватан прозор
Name[sv-SE]=Nytt privat fönster
Name[ta]=புதிய தனிப்பட்ட சாளரம்
Name[te]=కొత్త ఆంతరంగిక విండో
Name[th]=หน้าต่างส่วนตัวใหม่
Name[tr]=Yeni gizli pencere
Name[tsz]=Juchiiti eraatarakua jimpani
Name[uk]=Приватне вікно
Name[ur]=نیا نجی دریچہ
Name[uz]=Yangi maxfiy oyna
Name[vi]=Cửa sổ riêng tư mới
Name[wo]=Panlanteeru biir bu bees
Name[xh]=Ifestile yangasese entsha
Name[zh-CN]=新建隐私浏览窗口
Name[zh-TW]=新增隱私視窗" >> /usr/$SHARE_APPLICATIONS/firefox-stable.desktop
echo "";
echo " Firefox Stable has been installed! ";
echo "";