|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
dem nicht so feuchten Firefox,
🤣
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
Stand:
Nun noch libnotify-bin
Installation läuft durch, waterfox OK. + Update manuell getriggert:(nee, nicht 19:25 😬 ) Ansonsten, OK - kein Update.
sudo /usr/bin/waterfox-updater.sh
--2025-12-01 19:25:10-- https://cdn1.waterfox.net/waterfox/releases/latest/linux
Resolving cdn1.waterfox.net (cdn1.waterfox.net)... 2606:4700:10::ac42:9e32, 2606:4700:10::6814:1280, 172.66.158.50, ...
Connecting to cdn1.waterfox.net (cdn1.waterfox.net)|2606:4700:10::ac42:9e32|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2 [following]
--2025-12-01 19:25:11-- https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2
Reusing existing connection to [cdn1.waterfox.net]:443.
HTTP request sent, awaiting response... 200 OK
Length: 97269269 (93M) [application/x-bzip2]
Saving to: ‘/tmp/waterfox.tar.bz2’
/tmp/waterfox.tar.b 100%[===================>] 92.76M 3.72MB/s in 25s
2025-12-01 19:25:36 (3.67 MB/s) - ‘/tmp/waterfox.tar.bz2’ saved [97269269/97269269]
removed '/tmp/waterfox.tar.bz2'
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
xubuntu 24.04.2 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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467 | VirtualBox:~$ /home/miau/Downloads/waterfox.sh
++ id -un
+ USER_NAME=miau
++ id -u
+ USER_UID=1000
+ WATERFOX_INSTALL_PREFIX=/opt
+ PREFIX=/usr
++ curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' https://cdn1.waterfox.net/waterfox/releases/latest/linux
++ grep location
++ sed 's/.*waterfox-//g;s/.tar.bz2//g'
++ xargs
++ sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g'
+ WATERFOX_VERSION=6.6.5.1
+ printf '\n \033[45m\033[1;36m==> Current Waterfox version 6.6.5.1 \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n'
==> Current Waterfox version 6.6.5.1 ==> ...
+ echo 'Install some requirements'
Install some requirements
+ sudo apt-get install curl bzip2 libnotify-bin
[sudo] Passwort für miau:
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
curl ist schon die neueste Version (8.5.0-2ubuntu10.6).
bzip2 ist schon die neueste Version (1.0.8-5.1build0.1).
libnotify-bin ist schon die neueste Version (0.8.3-1build2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
++ dpkg -l
++ awk '/libkf6/{ print $2}'
++ head -n1
+ '[' '!' -z ']'
+ echo 'No libkf5. Ok'
No libkf5. Ok
++ dpkg -l
++ awk '/libkf6/{ print $2}'
++ head -n1
+ '[' '!' -z ']'
+ echo 'No libkf6. Ok'
No libkf6. Ok
+ wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux
--2025-12-02 06:46:32-- https://cdn1.waterfox.net/waterfox/releases/latest/linux
Auflösen des Hostnamens cdn1.waterfox.net (cdn1.waterfox.net) … 104.20.18.128, 172.66.158.50, 2606:4700:10::6814:1280, ...
Verbindungsaufbau zu cdn1.waterfox.net (cdn1.waterfox.net)|104.20.18.128|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2 [folgend]
--2025-12-02 06:46:32-- https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2
Wiederverwendung der bestehenden Verbindung zu cdn1.waterfox.net:443.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 97269269 (93M) [application/x-bzip2]
Wird in ‘/tmp/waterfox.tar.bz2’ gespeichert.
/tmp/waterfox.tar.b 100%[===================>] 92,76M 3,87MB/s in 24s
2025-12-02 06:46:57 (3,81 MB/s) - ‘/tmp/waterfox.tar.bz2’ gespeichert [97269269/97269269]
+ printf '\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n'
==> Directory for Waterfox is being created and populated. ==> ...
+ '[' '!' -d /opt ']'
+ echo '/opt exists. Ok.'
/opt exists. Ok.
+ sudo tar xjfv /tmp/waterfox.tar.bz2 -C /opt
waterfox/
waterfox/icons/
waterfox/icons/updater.png
waterfox/libmozsqlite3.so
waterfox/libxul.so
waterfox/libmozgtk.so
waterfox/application.ini
waterfox/vaapitest
waterfox/libfreeblpriv3.so
waterfox/libnspr4.so
waterfox/libmozsandbox.so
waterfox/fonts/
waterfox/fonts/TwemojiMozilla.ttf
waterfox/update-settings.ini
waterfox/libplc4.so
waterfox/precomplete
waterfox/libplds4.so
waterfox/updater
waterfox/libsmime3.so
waterfox/libmozwayland.so
waterfox/glxtest
waterfox/waterfox-bin.sig
waterfox/libmozavutil.so
waterfox/liblgpllibs.so
waterfox/updater.ini
waterfox/gmp-clearkey/
waterfox/gmp-clearkey/0.1/
waterfox/gmp-clearkey/0.1/manifest.json
waterfox/gmp-clearkey/0.1/libclearkey.so
waterfox/gmp-clearkey/0.1/libclearkey.so.sig
waterfox/libmozavcodec.so
waterfox/dependentlibs.list
waterfox/libnss3.so
waterfox/browser/
waterfox/browser/chrome/
waterfox/browser/chrome/icons/
waterfox/browser/chrome/icons/default/
waterfox/browser/chrome/icons/default/default48.png
waterfox/browser/chrome/icons/default/default128.png
waterfox/browser/chrome/icons/default/default64.png
waterfox/browser/chrome/icons/default/default32.png
waterfox/browser/chrome/icons/default/default16.png
waterfox/browser/chrome/icons/default/default256.png
waterfox/browser/chrome/icons/default/default24.png
waterfox/browser/chrome/icons/default/default22.png
waterfox/browser/omni.ja
waterfox/platform.ini
waterfox/waterfox.sig
waterfox/libgkcodecs.so
waterfox/waterfox
waterfox/libssl3.so
waterfox/removed-files
waterfox/omni.ja
waterfox/libnssutil3.so
waterfox/libxul.so.sig
waterfox/defaults/
waterfox/defaults/pref/
waterfox/defaults/pref/channel-prefs.js
waterfox/waterfox-bin
waterfox/libsoftokn3.so
+ rm -fv /tmp/waterfox.tar.bz2
'/tmp/waterfox.tar.bz2' wurde entfernt
+ sudo ln -sf /opt/waterfox/waterfox /usr/bin/waterfox
+ printf '\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n'
==> Create Waterfox program launcher. ==> ...
+ '[' '!' -d /home/miau/.local/share/applications ']'
+ mkdir -pv /home/miau/.local/share/application
+ echo '[Desktop Entry]
Exec=waterfox %u
Icon=/opt/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
'
/home/miau/Downloads/waterfox.sh: Zeile 247: /home/miau/.local/share/applications/waterfox.desktop: Datei oder Verzeichnis nicht gefunden
+ kbuildsycoca6 --noincremental
/home/miau/Downloads/waterfox.sh: Zeile 249: kbuildsycoca6: Befehl nicht gefunden
+ echo 'No KDE Desktop found.'
No KDE Desktop found.
+ sudo update-desktop-database
+ printf '\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n'
==> Make Waterfox Updater. ==> ...
+ echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
+ sudo tee /usr/bin/waterfox-updater.sh
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME=miau && \
USER_UID=1000 && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."'
+ sudo chmod 755 /usr/bin/waterfox-updater.sh
+ printf '\n \033[45m\033[1;36m==> Make waterfox-updater systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n'
==> Make waterfox-updater systemd timer and service. ==> ...
+ echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target'
+ sudo tee /etc/systemd/system/waterfox-updater.timer
+ echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
+ sudo tee /etc/systemd/system/waterfox-updater.service
ExecStart=/usr/bin/waterfox-updater.sh'
+ sudo systemctl enable waterfox-updater.timer
+ sudo systemctl enable waterfox-updater.service
The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,
Also=, or Alias= settings in the [Install] section, and DefaultInstance= for
template units). This means they are not meant to be enabled or disabled using systemctl.
Possible reasons for having these kinds of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/, .requires/, or .upholds/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.
+ sudo systemctl daemon-reload
+ '[' xubuntu = KDE ']'
+ echo 'No libkf5. Ok'
No libkf5. Ok
++ dpkg -l
++ awk '/libkf6/{ print $2}'
++ head -n1
+ '[' '!' -z ']'
+ echo 'No libkf5. Ok'
No libkf5. Ok
+ sudo update-desktop-database
+ printf '\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n'
==> Install Waterfox successful. ==> Done.
+ printf '\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n'
==> Waterfox REMOVE? ==> ?
+ echo ''
+ echo 'Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation.'
Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation.
+ read -e -p '
[y/N] ' YN
[y/N]
|
|
|
trollsportverein
(Themenstarter)
Anmeldungsdatum: 21. Oktober 2010
Beiträge: 5811
|
Es ist tatsächlich in Zeile 29 zweimal ein "s" beim copy & paste hinten verloren gegangen. Was bei mir nicht auffallen konnte, da das Verzeichnis schon lange genutzt wurde. Ausgebesserte Version: waterfox-binary-install-helper.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359 | #!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "Install some requirements" && \
sudo apt-get install curl bzip2 libnotify-bin && \
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get install libkf5service-bin || echo "No libkf5. Ok" && \
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get install libkf6service-bin || echo "No libkf6. Ok" && \
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && kbuildsycoca5 --noincremental ; kbuildsycoca6 --noincremental || \
echo "No KDE Desktop found." && \
sudo update-desktop-database 2> /dev/null && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee $PREFIX/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 $PREFIX/bin/waterfox-updater.sh && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make waterfox-updater systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart='$PREFIX'/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
sudo systemctl enable waterfox-updater.timer > /dev/null && \
sudo systemctl enable waterfox-updater.service > /dev/null && \
sudo systemctl daemon-reload > /dev/null && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ ! -z $(dpkg -l | awk '/libkf5/{ print $2}' | head -n1) ] && kbuildsycoca5 --noincremental || echo "No libkf5. Ok" && \
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && kbuildsycoca6 --noincremental || echo "No libkf5. Ok" && \
sudo update-desktop-database 2> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n" ; \
#-------------------------------------------------------------------------
# If needed, Waterfox deinstall.
#-------------------------------------------------------------------------
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -v $PREFIX/bin/waterfox && \
rm -v $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv $PREFIX/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
echo "" && \
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && \
echo "Not removed."
|
Wegen dem notify-send, XServer oder Wayland? Bei Wayland bin ich raus. Da kann ich nichts machen.
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
application
Stimmt, hatte nachgeschaut, wohl früh noch gepennt, hatte das übersehen. Vmtl. sinnvoll Variable dafür zu setzen.
notify-send
Deine Ausgaben sind gemeint, nicht notify-send selbst, das funktioniert.(X11) Schaue mir das später ggf. an.
|
|
trollsportverein
(Themenstarter)
Anmeldungsdatum: 21. Oktober 2010
Beiträge: 5811
|
Noch etwas weiter daran gearbeitet: waterfox-binary-install-helper.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359 | #!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "Install some requirements ..." && \
echo ". "
sudo apt-get -qq install curl bzip2 libnotify-bin && \
echo ".."
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf5service-bin || echo "No libkf5. Ok" && \
echo "..."
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf6service-bin || echo "No libkf6. Ok" && \
echo "...."
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee $PREFIX/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 $PREFIX/bin/waterfox-updater.sh && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make waterfox-updater systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart='$PREFIX'/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
sudo systemctl enable --quiet waterfox-updater.timer && \
sudo systemctl enable --quiet waterfox-updater.service && \
sudo systemctl daemon-reload && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ -f $PREFIX/bin/kbuildsycoca5 ] && kbuildsycoca5 --noincremental || echo "No kbuildsycoca5. Ok" && \
[ -f $PREFIX/bin/kbuildsycoca6 ] && kbuildsycoca6 --noincremental || echo "No kbuildsycoca6. Ok"
sudo update-desktop-database &> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n" ; \
#-------------------------------------------------------------------------
# If needed, Waterfox deinstall.
#-------------------------------------------------------------------------
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -v $PREFIX/bin/waterfox && \
rm -v $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv $PREFIX/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
echo "" && \
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && \
echo "Not removed."
|
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
edit Sehe gerade notify-send sind im Updater drin, war notify-send nicht gestern auch in der installation? Hättest ja mal was sagen können.
Schritt für Schritt.. Unten das von mir etwas editierte Script, Remove habe ich hochgesetzt hat sonst wenig Sinn. Zum fehlenden notify-send – Ab Zeile 301, Ausgaben?? Habe mir $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION nicht weiter angesehen, brauche erstmal nen Kafee. Übersichtlich nicht gerade das Ganze. Und ließe sich auch zusammenfassen, z.b. die notify-send Ausgaben. waterfox startet immer über die .desktop mit Profilmanager, Glaube die 4 exec Angaben stimmen nicht, lässt sich bei xubuntu auch nicht mit dem eigenen .desktop Werkzeug öffnen. Das frische xubuntu meldet nun auch dauerhaft schwerwiegenden Systenfehler. Habe noch nicht ins Journal gesehen. Zuviel auf Einmal. VirtualBox:~$ /home/miau/Downloads/waterfox.sh
==> Current Waterfox version 6.6.5.1 ==> ...
Install some requirements ...
.
[sudo] Passwort für miau:
..
No libkf5. Ok
...
No libkf6. Ok
....
--2025-12-02 16:53:13-- https://cdn1.waterfox.net/waterfox/releases/latest/linux
Auflösen des Hostnamens cdn1.waterfox.net (cdn1.waterfox.net) … 104.20.18.128, 172.66.158.50, 2606:4700:10::ac42:9e32, ...
Verbindungsaufbau zu cdn1.waterfox.net (cdn1.waterfox.net)|104.20.18.128|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2 [folgend]
--2025-12-02 16:53:14-- https://cdn1.waterfox.net/waterfox/releases/6.6.5.1/Linux_x86_64/waterfox-6.6.5.1.tar.bz2
Wiederverwendung der bestehenden Verbindung zu cdn1.waterfox.net:443.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 97269269 (93M) [application/x-bzip2]
Wird in ‘/tmp/waterfox.tar.bz2’ gespeichert.
/tmp/waterfox.tar.b 100%[===================>] 92,76M 3,87MB/s in 24s
2025-12-02 16:53:39 (3,80 MB/s) - ‘/tmp/waterfox.tar.bz2’ gespeichert [97269269/97269269]
==> Directory for Waterfox is being created and populated. ==> ...
/opt exists. Ok.
waterfox/
waterfox/icons/
waterfox/icons/updater.png
waterfox/libmozsqlite3.so
waterfox/libxul.so
waterfox/libmozgtk.so
waterfox/application.ini
waterfox/vaapitest
waterfox/libfreeblpriv3.so
waterfox/libnspr4.so
waterfox/libmozsandbox.so
waterfox/fonts/
waterfox/fonts/TwemojiMozilla.ttf
waterfox/update-settings.ini
waterfox/libplc4.so
waterfox/precomplete
waterfox/libplds4.so
waterfox/updater
waterfox/libsmime3.so
waterfox/libmozwayland.so
waterfox/glxtest
waterfox/waterfox-bin.sig
waterfox/libmozavutil.so
waterfox/liblgpllibs.so
waterfox/updater.ini
waterfox/gmp-clearkey/
waterfox/gmp-clearkey/0.1/
waterfox/gmp-clearkey/0.1/manifest.json
waterfox/gmp-clearkey/0.1/libclearkey.so
waterfox/gmp-clearkey/0.1/libclearkey.so.sig
waterfox/libmozavcodec.so
waterfox/dependentlibs.list
waterfox/libnss3.so
waterfox/browser/
waterfox/browser/chrome/
waterfox/browser/chrome/icons/
waterfox/browser/chrome/icons/default/
waterfox/browser/chrome/icons/default/default48.png
waterfox/browser/chrome/icons/default/default128.png
waterfox/browser/chrome/icons/default/default64.png
waterfox/browser/chrome/icons/default/default32.png
waterfox/browser/chrome/icons/default/default16.png
waterfox/browser/chrome/icons/default/default256.png
waterfox/browser/chrome/icons/default/default24.png
waterfox/browser/chrome/icons/default/default22.png
waterfox/browser/omni.ja
waterfox/platform.ini
waterfox/waterfox.sig
waterfox/libgkcodecs.so
waterfox/waterfox
waterfox/libssl3.so
waterfox/removed-files
waterfox/omni.ja
waterfox/libnssutil3.so
waterfox/libxul.so.sig
waterfox/defaults/
waterfox/defaults/pref/
waterfox/defaults/pref/channel-prefs.js
waterfox/waterfox-bin
waterfox/libsoftokn3.so
'/tmp/waterfox.tar.bz2' wurde entfernt
==> Create Waterfox program launcher. ==> ...
/home/miau/.local/share/applications exists. Ok.
==> Make Waterfox Updater. ==> ...
==> Make waterfox-updater systemd timer and service. ==> ...
No kbuildsycoca5. Ok
No kbuildsycoca6. Ok
==> Install Waterfox successful. ==> Done. 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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364 |
#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr
waterfox_remove() {
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -v $PREFIX/bin/waterfox && \
rm -v $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv $PREFIX/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Exit.\033[0m \n \n"
read x;exit
}
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && waterfox_remove
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "Install some requirements ..." && \
echo ". "
sudo apt-get -qq install curl bzip2 libnotify-bin && \
echo ".."
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf5service-bin || echo "No libkf5. Ok" && \
echo "..."
[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf6service-bin || echo "No libkf6. Ok" && \
echo "...."
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ]
echo "###########################################"
echo "USER_NAME:$USER_NAME USER_ID:$USER_UID PREFIX:$PREFIX WATERFOX_INSTALL_PREFIX:$WATERFOX_INSTALL_PREFIX"
$PREFIX/bin/notify-send "Testttttttttttttttttttttttttttttt"
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee $PREFIX/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 $PREFIX/bin/waterfox-updater.sh && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make waterfox-updater systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart='$PREFIX'/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
sudo systemctl enable --quiet waterfox-updater.timer && \
sudo systemctl enable --quiet waterfox-updater.service && \
sudo systemctl daemon-reload && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ -f $PREFIX/bin/kbuildsycoca5 ] && kbuildsycoca5 --noincremental || echo "No kbuildsycoca5. Ok" && \
[ -f $PREFIX/bin/kbuildsycoca6 ] && kbuildsycoca6 --noincremental || echo "No kbuildsycoca6. Ok"
sudo update-desktop-database &> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Exit.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n"
|
Was ist eigentlich Zeile 294 bis 297? X=$X ?
|
|
trollsportverein
(Themenstarter)
Anmeldungsdatum: 21. Oktober 2010
Beiträge: 5811
|
Ziemlich weit oben lege ich den Prefix "/opt"für die Waterfox Installation fest:
WATERFOX_INSTALL_PREFIX=/opt
... und das Prefix für die Installatin vom link zum Waterfox Binary und Updater:
PREFIX=/usr
Dort ließe es sich ändern bei Bedarf. Der Updater aber, wird ja erst durch das echo via tee generiert, und dann ins Dateisystem gestempelt. Da im Updater müssen aber auch Usernamen und UID und die Prefixe drin stehen, die aber die sein sollen, die ganz oben im Skript definiert werden, falls man das mal ändern möchte. Vielleicht möchte ja irgendjemand den Waterfox nicht nach "/opt" instllieren, das ließe sich ganz oben im Skript leicht ändern und würde dann auch im updater selbst übernommen, wenn der via echo und tee generiert wird. Ich habe hier übrigens eine nochmals überarbeitete Version. waterfox-binary-install-helper.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367 | #!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "Install some requirements ..." && \
echo ". "
sudo apt-get -qq install curl bzip2 libnotify-bin && \
echo ".."
[ $XDG_SESSION_DESKTOP = KDE ] && [ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf5service-bin || echo "No libkf5. Ok" && \
echo "..."
[ $XDG_SESSION_DESKTOP = KDE ] &&[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf6service-bin || echo "No libkf6. Ok" && \
echo "...."
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
[ -f $HOME/.local/share/applications/waterfox.desktop ] && \
echo "Waterfox starter created." && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee $PREFIX/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 $PREFIX/bin/waterfox-updater.sh && \
[ -f $PREFIX/bin/waterfox-updater.sh ] && \
echo "Waterfox Updater created." && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater Systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.timer ] && \
echo "Systemd waterfox-updater.timer created." && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart='$PREFIX'/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.service ] && \
echo "Systemd waterfox-updater.service created." && \
sudo systemctl enable --quiet waterfox-updater.timer && \
sudo systemctl enable --quiet waterfox-updater.service && \
sudo systemctl daemon-reload && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ -f $PREFIX/bin/kbuildsycoca5 ] && kbuildsycoca5 --noincremental || echo "No kbuildsycoca5. Ok" && \
[ -f $PREFIX/bin/kbuildsycoca6 ] && kbuildsycoca6 --noincremental || echo "No kbuildsycoca6. Ok" && \
sudo update-desktop-database &> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n" ; \
#-------------------------------------------------------------------------
# If needed, Waterfox deinstall.
#-------------------------------------------------------------------------
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -v $PREFIX/bin/waterfox && \
rm -v $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv $PREFIX/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
echo "" && \
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && \
echo "Not removed."
|
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
Ziemlich weit oben lege ich
Wirklich..? Du machst Witze, das sieht doch ein Blinder mit Krückstock. Warum steht mein Funktionsaufruf Darunter? Würde momentan alles was den Updater betrifft auf Eis legen, nur die normale Installation/Deinstallation betrachten. Wenn Du Remove unten belässt bin ich raus. Um zu Deinstallieren, den ganzen Installationsprozess wieder zu durchlaufen nervt. Update könnte selektiv zu Remove gewählt werden.(am Anfang natürlich)
|
|
trollsportverein
(Themenstarter)
Anmeldungsdatum: 21. Oktober 2010
Beiträge: 5811
|
Den Updater habe ich nun hartcodiert auf /usr/bin/waterfox-updater.sh gelegt, da sollte er im Pfad liegen. Hier das geänderte Script. waterfox-binary-install-helper.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367 | #!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "Install some requirements ..." && \
echo ". "
sudo apt-get -qq install curl bzip2 libnotify-bin && \
echo ".."
[ $XDG_SESSION_DESKTOP = KDE ] && [ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf5service-bin || echo "No libkf5. Ok" && \
echo "..."
[ $XDG_SESSION_DESKTOP = KDE ] &&[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf6service-bin || echo "No libkf6. Ok" && \
echo "...."
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
[ -f $HOME/.local/share/applications/waterfox.desktop ] && \
echo "Waterfox starter created." && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee /usr/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 /usr/bin/waterfox-updater.sh && \
[ -f /usr/bin/waterfox-updater.sh ] && \
echo "Waterfox Updater created." && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater Systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.timer ] && \
echo "Systemd waterfox-updater.timer created." && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.service ] && \
echo "Systemd waterfox-updater.service created." && \
sudo systemctl enable --quiet waterfox-updater.timer && \
sudo systemctl enable --quiet waterfox-updater.service && \
sudo systemctl daemon-reload && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ -f $PREFIX/bin/kbuildsycoca5 ] && kbuildsycoca5 --noincremental || echo "No kbuildsycoca5. Ok" && \
[ -f $PREFIX/bin/kbuildsycoca6 ] && kbuildsycoca6 --noincremental || echo "No kbuildsycoca6. Ok" && \
sudo update-desktop-database &> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n" ; \
#-------------------------------------------------------------------------
# If needed, Waterfox deinstall.
#-------------------------------------------------------------------------
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -v /usr/bin/waterfox && \
rm -v $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv /usr/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
echo "" && \
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && \
echo "Not removed."
|
Ohne Updater macht meiner Meinung solch ein Webbrowser Binary keinen Sinn. Wenn man mal bedenkt, wie oft es beim original Firefox Sicherheitsupdates gibt.
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
Irgendwie reden wir aneinander vorbei. Gemeint war sich dem Updater erst nach dem Anderem zu widmen. Bis dahin hätte er so bleiben können wie gehabt.(der Kern) Die Installation/Deinstallation selbst ist noch nicht OK, das sollte erstmal im Ganzen laufen.
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
Könntest z.B. so unter der Wertzuweisung der Variablen wg. Update u. Remove. (Remove Funktion auch darüber) Damit kann Update so bleiben wie es ist. | if [ -d "$WATERFOX_INSTALL_PREFIX/waterfox" ]; then
read -p "Waterfox [U]pdate or [R]emove: " choice
case "$choice" in
u|U) echo "Update";;
r|R) echo "Remove";;
*) echo "Please [U] or [R] -- Exit!";read x;exit;;
esac
fi
|
Und..,würde mehr mit Funktionen arbeiten, macht es übersichtlicher.
|
|
trollsportverein
(Themenstarter)
Anmeldungsdatum: 21. Oktober 2010
Beiträge: 5811
|
Gastmarant schrieb: Irgendwie reden wir aneinander vorbei. Gemeint war sich dem Updater erst nach dem Anderem zu widmen. Bis dahin hätte er so bleiben können wie gehabt.(der Kern) Die Installation/Deinstallation selbst ist noch nicht OK, das sollte erstmal im Ganzen laufen.
Nun, bei mir funktioniert das Skript, auch wenn es für mich sinnlos ist, da das Waterfox Binary wegen Inkompatibiltät zu march=x86-64-v1 nicht funktioniert. Der Intel® Software Development Emulator ist ja keine alltagstaugliche Lösung für die beim compilern vom Waterfox Binary unnötig geschaffene Inkompatibiltiät. Aber ich habe nun den Wunsch erfüllt, die Waterfox Binary Installation überspringen zu können, um nur die Deinstallation aufzurufen, wenn der Binary Waterfox bereits installiert ist. Also hier die nächste Version: waterfox-binary-install-helper.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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376 | #!/usr/bin/env bash
#-------------------------------------------------------------------------
# Waterfox Binary Install little helper script.
# https://www.waterfox.net
# https://www.waterfox.net/support/install-waterfox-linux/
#------------------------------------------------------------------------
USER_NAME=$(id -un) && \
USER_UID=$(id -u) && \
WATERFOX_INSTALL_PREFIX=/opt && \
PREFIX=/usr && \
WATERFOX_VERSION=$(curl -H 'Cache-Control: no-cache' -s -i -k --max-time 2 --write-out '%{http_code} %{size_header} %{redirect_url} ' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed 's/.*waterfox-//g;s/.tar.bz2//g' 2>/dev/null | \
sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | xargs) && \
printf "\n \033[45m\033[1;36m==> Current Waterfox version on Server $WATERFOX_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
printf "\n \033[43m\033[1;36m==> Waterfox INSTALL? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to install Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
(echo "Install some requirements ..." && \
echo ". "
sudo apt-get -qq install curl bzip2 libnotify-bin && \
echo ".."
[ $XDG_SESSION_DESKTOP = KDE ] && [ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf5service-bin || echo "No libkf5. Ok" && \
echo "..."
[ $XDG_SESSION_DESKTOP = KDE ] &&[ ! -z $(dpkg -l | awk '/libkf6/{ print $2}' | head -n1) ] && sudo apt-get -qq install libkf6service-bin || echo "No libkf6. Ok" && \
echo "...."
wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux && \
printf "\n \033[45m\033[1;36m==> Directory for Waterfox is being created and populated. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $WATERFOX_INSTALL_PREFIX ] && mkdir -pv $WATERFOX_INSTALL_PREFIX || echo "$WATERFOX_INSTALL_PREFIX exists. Ok." && \
sudo tar xjfv /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
sudo ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox /usr/bin/waterfox && \
printf "\n \033[45m\033[1;36m==> Create Waterfox program launcher. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ ! -d $HOME/.local/share/applications ] && mkdir -pv $HOME/.local/share/applications || echo "$HOME/.local/share/applications exists. Ok." && \
echo '[Desktop Entry]
Exec=waterfox %u
Icon='$WATERFOX_INSTALL_PREFIX'/waterfox/browser/chrome/icons/default/default256.png
StartupWMClass=waterfox
Name=Waterfox
Name[ach]=Waterfox
Name[af]=Waterfox
Name[an]=Waterfox
Name[ar]=Waterfox
Name[ast]=Waterfox
Name[az]=Waterfox
Name[be]=Waterfox
Name[bg]=Waterfox
Name[bn]=Waterfox
Name[br]=Waterfox
Name[bs]=Waterfox
Name[ca]=Waterfox
Name[ca_valencia]=Waterfox
Name[cak]=Waterfox
Name[cs]=Waterfox
Name[cy]=Waterfox
Name[da]=Waterfox
Name[de]=Waterfox
Name[dsb]=Waterfox
Name[el]=Waterfox
Name[en_CA]=Waterfox
Name[en_GB]=Waterfox
Name[eo]=Waterfox
Name[es_AR]=Waterfox
Name[es_CL]=Waterfox
Name[es_ES]=Waterfox
Name[es_MX]=Waterfox
Name[et]=Waterfox
Name[eu]=Waterfox
Name[fa]=Waterfox
Name[ff]=Waterfox
Name[fi]=Waterfox
Name[fr]=Waterfox
Name[fur]=Waterfox
Name[fy_NL]=Waterfox
Name[ga_IE]=Waterfox
Name[gd]=Waterfox
Name[gl]=Waterfox
Name[gn]=Waterfox
Name[gu_IN]=Waterfox
Name[he]=Waterfox
Name[hi_IN]=Waterfox
Name[hr]=Waterfox
Name[hsb]=Waterfox
Name[hu]=Waterfox
Name[hy_AM]=Waterfox
Name[ia]=Waterfox
Name[id]=Waterfox
Name[is]=Waterfox
Name[it]=Waterfox
Name[ja]=Waterfox
Name[ka]=Waterfox
Name[kab]=Waterfox
Name[kk]=Waterfox
Name[km]=Waterfox
Name[kn]=Waterfox
Name[ko]=Waterfox
Name[lij]=Waterfox
Name[lt]=Waterfox
Name[lv]=Waterfox
Name[mk]=Waterfox
Name[mr]=Waterfox
Name[ms]=Waterfox
Name[my]=Waterfox
Name[nb_NO]=Waterfox
Name[ne_NP]=Waterfox
Name[nl]=Waterfox
Name[nn_NO]=Waterfox
Name[oc]=Waterfox
Name[pa_IN]=Waterfox
Name[pl]=Waterfox
Name[pt_BR]=Waterfox
Name[pt_PT]=Waterfox
Name[rm]=Waterfox
Name[ro]=Waterfox
Name[ru]=Waterfox
Name[sat]=Waterfox
Name[sc]=Waterfox
Name[sco]=Waterfox
Name[si]=Waterfox
Name[sk]=Waterfox
Name[skr]=Waterfox
Name[sl]=Waterfox
Name[son]=Waterfox
Name[sq]=Waterfox
Name[sr]=Waterfox
Name[sv_SE]=Waterfox
Name[szl]=Waterfox
Name[ta]=Waterfox
Name[te]=Waterfox
Name[tg]=Waterfox
Name[th]=Waterfox
Name[tl]=Waterfox
Name[tr]=Waterfox
Name[trs]=Waterfox
Name[uk]=Waterfox
Name[ur]=Waterfox
Name[uz]=Waterfox
Name[vi]=Waterfox
Name[xh]=Waterfox
Name[zh_CN]=Waterfox
Name[zh_TW]=Waterfox
X-GNOME-FullName=Waterfox
X-GNOME-FullName[ach]=Waterfox
X-GNOME-FullName[af]=Waterfox
X-GNOME-FullName[an]=Waterfox
X-GNOME-FullName[ar]=Waterfox
X-GNOME-FullName[ast]=Waterfox
X-GNOME-FullName[az]=Waterfox
X-GNOME-FullName[be]=Waterfox
X-GNOME-FullName[bg]=Waterfox
X-GNOME-FullName[bn]=Waterfox
X-GNOME-FullName[br]=Waterfox
X-GNOME-FullName[bs]=Waterfox
X-GNOME-FullName[ca]=Waterfox
X-GNOME-FullName[ca_valencia]=Waterfox
X-GNOME-FullName[cak]=Waterfox
X-GNOME-FullName[cs]=Waterfox
X-GNOME-FullName[cy]=Waterfox
X-GNOME-FullName[da]=Waterfox
X-GNOME-FullName[de]=Waterfox
X-GNOME-FullName[dsb]=Waterfox
X-GNOME-FullName[el]=Waterfox
X-GNOME-FullName[en_CA]=Waterfox
X-GNOME-FullName[en_GB]=Waterfox
X-GNOME-FullName[eo]=Waterfox
X-GNOME-FullName[es_AR]=Waterfox
X-GNOME-FullName[es_CL]=Waterfox
X-GNOME-FullName[es_ES]=Waterfox
X-GNOME-FullName[es_MX]=Waterfox
X-GNOME-FullName[et]=Waterfox
X-GNOME-FullName[eu]=Waterfox
X-GNOME-FullName[fa]=Waterfox
X-GNOME-FullName[ff]=Waterfox
X-GNOME-FullName[fi]=Waterfox
X-GNOME-FullName[fr]=Waterfox
X-GNOME-FullName[fur]=Waterfox
X-GNOME-FullName[fy_NL]=Waterfox
X-GNOME-FullName[ga_IE]=Waterfox
X-GNOME-FullName[gd]=Waterfox
X-GNOME-FullName[gl]=Waterfox
X-GNOME-FullName[gn]=Waterfox
X-GNOME-FullName[gu_IN]=Waterfox
X-GNOME-FullName[he]=Waterfox
X-GNOME-FullName[hi_IN]=Waterfox
X-GNOME-FullName[hr]=Waterfox
X-GNOME-FullName[hsb]=Waterfox
X-GNOME-FullName[hu]=Waterfox
X-GNOME-FullName[hy_AM]=Waterfox
X-GNOME-FullName[ia]=Waterfox
X-GNOME-FullName[id]=Waterfox
X-GNOME-FullName[is]=Waterfox
X-GNOME-FullName[it]=Waterfox
X-GNOME-FullName[ja]=Waterfox
X-GNOME-FullName[ka]=Waterfox
X-GNOME-FullName[kab]=Waterfox
X-GNOME-FullName[kk]=Waterfox
X-GNOME-FullName[km]=Waterfox
X-GNOME-FullName[kn]=Waterfox
X-GNOME-FullName[ko]=Waterfox
X-GNOME-FullName[lij]=Waterfox
X-GNOME-FullName[lt]=Waterfox
X-GNOME-FullName[lv]=Waterfox
X-GNOME-FullName[mk]=Waterfox
X-GNOME-FullName[mr]=Waterfox
X-GNOME-FullName[ms]=Waterfox
X-GNOME-FullName[my]=Waterfox
X-GNOME-FullName[nb_NO]=Waterfox
X-GNOME-FullName[ne_NP]=Waterfox
X-GNOME-FullName[nl]=Waterfox
X-GNOME-FullName[nn_NO]=Waterfox
X-GNOME-FullName[oc]=Waterfox
X-GNOME-FullName[pa_IN]=Waterfox
X-GNOME-FullName[pl]=Waterfox
X-GNOME-FullName[pt_BR]=Waterfox
X-GNOME-FullName[pt_PT]=Waterfox
X-GNOME-FullName[rm]=Waterfox
X-GNOME-FullName[ro]=Waterfox
X-GNOME-FullName[ru]=Waterfox
X-GNOME-FullName[sat]=Waterfox
X-GNOME-FullName[sc]=Waterfox
X-GNOME-FullName[sco]=Waterfox
X-GNOME-FullName[si]=Waterfox
X-GNOME-FullName[sk]=Waterfox
X-GNOME-FullName[skr]=Waterfox
X-GNOME-FullName[sl]=Waterfox
X-GNOME-FullName[son]=Waterfox
X-GNOME-FullName[sq]=Waterfox
X-GNOME-FullName[sr]=Waterfox
X-GNOME-FullName[sv_SE]=Waterfox
X-GNOME-FullName[szl]=Waterfox
X-GNOME-FullName[ta]=Waterfox
X-GNOME-FullName[te]=Waterfox
X-GNOME-FullName[tg]=Waterfox
X-GNOME-FullName[th]=Waterfox
X-GNOME-FullName[tl]=Waterfox
X-GNOME-FullName[tr]=Waterfox
X-GNOME-FullName[trs]=Waterfox
X-GNOME-FullName[uk]=Waterfox
X-GNOME-FullName[ur]=Waterfox
X-GNOME-FullName[uz]=Waterfox
X-GNOME-FullName[vi]=Waterfox
X-GNOME-FullName[xh]=Waterfox
X-GNOME-FullName[zh_CN]=Waterfox
X-GNOME-FullName[zh_TW]=Waterfox
Exec=waterfox --new-window %u
Exec=waterfox --private-window %u
Exec=waterfox --ProfileManager
StartupNotify=true
Categories=Network;WebBrowser;
GenericName=Web Browser
' > $HOME/.local/share/applications/waterfox.desktop && \
[ -f $HOME/.local/share/applications/waterfox.desktop ] && \
echo "Waterfox starter created." && \
#-------------------------------------------------------------------------
# waterfox-updater
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '#!/usr/bin/env bash
#-------------------------------------------------------------------------
# Update Waterfox when newer version available online.
# Get version info from cdn1.waterfox.net.
#-------------------------------------------------------------------------
WATERFOX_LATEST_RELEASE=$(curl -H '\''Cache-Control: no-cache'\'' -s -i -k --max-time 2 --write-out '\''%{http_code} %{size_header} %{redirect_url} '\'' \
"https://cdn1.waterfox.net/waterfox/releases/latest/linux" | \
grep location | sed '\''s/.*waterfox-//g;s/.tar.bz2//g'\'' 2>/dev/null | \
sed -e '\''s/^[[:space:]]*//g;s/[[:space:]]*$//g'\'' | xargs) && \
MY_WATERFOX_VERSION=$(waterfox -v | awk '\''{ print $3 }'\'' 2>/dev/null) ; \
USER_NAME='$USER_NAME' && \
USER_UID='$USER_UID' && \
WATERFOX_INSTALL_PREFIX='$WATERFOX_INSTALL_PREFIX' && \
PREFIX='$PREFIX' && \
[ $WATERFOX_LATEST_RELEASE = $MY_WATERFOX_VERSION ] 2>/dev/null && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) is up to date." && \
exit || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Waterfox Update.... " && \
wget -O /tmp/waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
/usr/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"Extract new Waterfox Binary in Place.... " && \
rm -rf $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo tar xjf /tmp/waterfox.tar.bz2 -C $WATERFOX_INSTALL_PREFIX && \
rm -fv /tmp/waterfox.tar.bz2 && \
ln -sf $WATERFOX_INSTALL_PREFIX/waterfox/waterfox $PREFIX/bin/waterfox && \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i $WATERFOX_INSTALL_PREFIX/waterfox/browser/chrome/icons/default/default128.png \
"$($WATERFOX_INSTALL_PREFIX/waterfox/waterfox -v) update successful." || \
sudo -u $USER_NAME DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USER_UID/bus \
$PREFIX/bin/notify-send -i dialog-error.png \
"Update Waterfox failed."' | sudo tee /usr/bin/waterfox-updater.sh > /dev/null && \
sudo chmod 755 /usr/bin/waterfox-updater.sh && \
[ -f /usr/bin/waterfox-updater.sh ] && \
echo "Waterfox Updater created." && \
#-------------------------------------------------------------------------
# Waterfox systemd timer and service units.
#-------------------------------------------------------------------------
printf "\n \033[45m\033[1;36m==> Make Waterfox Updater Systemd timer and service. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo '[Unit]
Description=Waterfox Updater on boot
[Timer]
OnStartupSec=310
OnUnitActiveSec=24h
[Install]
WantedBy=timers.target' | sudo tee /etc/systemd/system/waterfox-updater.timer > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.timer ] && \
echo "Systemd waterfox-updater.timer created." && \
echo '[Unit]
Description=Waterfox Updater
Requires=graphical.target
[Service]
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/bin/waterfox-updater.sh' | sudo tee /etc/systemd/system/waterfox-updater.service > /dev/null && \
[ -f /etc/systemd/system/waterfox-updater.service ] && \
echo "Systemd waterfox-updater.service created." && \
sudo systemctl enable --quiet waterfox-updater.timer && \
sudo systemctl enable --quiet waterfox-updater.service && \
sudo systemctl daemon-reload && \
[ $XDG_SESSION_DESKTOP = KDE ] && \
echo "KDE Desktop found." && \
[ -f $PREFIX/bin/kbuildsycoca5 ] && kbuildsycoca5 --noincremental || echo "No kbuildsycoca5. Ok" && \
[ -f $PREFIX/bin/kbuildsycoca6 ] && kbuildsycoca6 --noincremental || echo "No kbuildsycoca6. Ok" && \
sudo update-desktop-database &> /dev/null && \
printf "\n \033[45m\033[1;36m==> Install Waterfox successful. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Install Waterfox failed.\033[0m \n \n")
#-------------------------------------------------------------------------
# If needed, Waterfox deinstall.
#-------------------------------------------------------------------------
printf "\n \033[43m\033[1;36m==> Waterfox REMOVE? \033[0m\033[41m\033[1;36m ==> ? \033[0m \n" && \
echo "" && \
echo "Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation." && \
read -e -p "
[y/N] " YN
[[ $YN == "Yes" ]] && \
sudo rm -rfv $WATERFOX_INSTALL_PREFIX/waterfox && \
sudo rm -fv /usr/bin/waterfox && \
rm -fv $HOME/.local/share/applications/waterfox.desktop && \
sudo rm -fv /usr/bin/waterfox-updater.sh && \
sudo rm -fv /etc/systemd/system/waterfox-updater.timer && \
sudo rm -fv /etc/systemd/system/waterfox-updater.service && \
sudo systemctl daemon-reload && \
printf "\n \033[45m\033[1;36m==> Waterfox removed. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
echo "" && \
[ -d $WATERFOX_INSTALL_PREFIX/waterfox ] && \
echo "Not removed."
|
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
@trollsportverein Du lässt ja durchblicken, daß es eigentlich für Dich sinnlos ist. So ist es, solange Du Sachen nicht nachvollziehen kannst. Scheitert bei Dir ja schon an VBox. Wenn Du es so siehst, daß Du mir in Deinem Projekt Wünsche erfüllst, dann stimmt was nicht.
ich habe nun den Wunsch erfüllt,
OK, "ich habe nun zur Kenntnis genommen," – Hatte natürlich das selbst getan, um mehrmals zu (Installieren/) Deinstallieren tat ich mir garantiert jedesmal das Installationsprozedere komplett an. 🙄 (vllt. kamen auch dadurch die Probleme in xubuntu(systemd), sollte aber möglich sein, das automat. Starten des Profilmanagers von WF ist eine andere Sache, sowie daß sich die Desktop Datei über das UserMenue(Name vergessen) nicht öffnen ließ) Was soll es, wenn ich Sachen sehe, die ich für unsinnig halte, sage ich es oder mit anderen Worten, ich mag nicht mehr. Trotzdem das Beste für Dein Projekt! editiert
|
|
Gastmarant
Anmeldungsdatum: 24. September 2025
Beiträge: 150
|
@trollsportverein
Nochmal bei frischem xubuntu installiert. .desktop wie gehabt korrupt, ersetzt. Im Anschluß steht die die funktionierte.(vllt. aus 2 eine machen, man könnte natürlich auch ne Originale holen,(viel zu einfach) oder FF sollte es als Vergleich auch tun) curl Befehl steht vor der curl Installation.(Zeile 13) Ansonsten lief das Script durch. Mehr sage ich Morgen.(Ich mag keine unfertigen Sachen, deshalb..) [Desktop Entry]
Type=Application
Name=Waterfox
GenericName=Web Browser
Comment=Waterfox Web Browser
Icon=/opt/waterfox/browser/chrome/icons/default/default256.png
Exec=waterfox %u
StartupNotify=true
Categories=Network;WebBrowser;
StartupWMClass=Waterfox
Actions=NewWindow;PrivateWindow;ProfileManager;
[Desktop Action NewWindow]
Name=Neues Fenster
Exec=waterfox --new-window %u
OnlyShowIn=GNOME;Unity;
[Desktop Action PrivateWindow]
Name=Privates Fenster
Exec=waterfox --private-window %u
OnlyShowIn=GNOME;Unity;
[Desktop Action ProfileManager]
Name=Profilmanager
Exec=waterfox --ProfileManager
OnlyShowIn=GNOME;Unity;
|