ubuntuusers.de

Bitte um "waterfox-binary-install-helper.sh" Skript Test

Status: Ungelöst | Ubuntu-Version: Kubuntu 25.04 (Plucky Puffin)
Antworten |

trollsportverein

Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Ich habe eine sehr alte CPU, die nativ das Waterfox Binary nicht ausführen kann, da man dort bei https://waterfox.net/ wohl der Meinung ist, dass alle immer neues Zeug kaufen müssen.

Um wenigstens etwas selbst testen zu können, musste ich den Intel® Software Development Emulator benutzen:

Das ist beschwerlich auf meiner alten Kiste, denn das Waterfox Fertigbinary ist inkompatibel mit march=x86-64-v1 gemacht worden

Wer aber mindestens eine CPU hat, die march=x86-64-v2 erfüllt, kann das waterfox-binary-install-helper.sh Skript testen.

  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
#!/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" && \
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" && \
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." && kbuildsycoca5 --noincremental ; kbuildsycoca6 --noincremental || \
echo "No KDE Desktop found." && \
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."

Das waterfox-binary-install-helper.sh Skript holt das jeweils aktuellste Waterfox Binary von https://www.waterfox.net/support/install-waterfox-linux/ und entpackt Waterfox nach /opt/waterfox. Erstellt einen Symlink für Waterfox nach /usr/bin/waterfox, ein Desktop Starter nach $HOME/.local/share/applications/waterfox.desktop, einen Waterfox Updater nach /usr/bin/waterfox-updater.sh und Timer und Service Units für Systemd. Rund 5 Minuten nach dem booten überprüft der Waterfox Updater, von Systemd gestartet, ob es eine neuere Version auf den Waterfox Servern gibt, und wenn das System länger läuft, dann nach 24 Stunden wieder.

Moderiert von rklm:

Verschoben, da keine Supportanfrage erkennbar

Bearbeitet von rklm:

Syntaxhighlighting

Gastmarant

Anmeldungsdatum:
24. September 2025

Beiträge: 150

Livesystem, was steht da. (dachte testest mal ohne sudo apt update) /usr/bin/waterfox startet,.desktop ist da, der Updater ist auch da.., Nur mit Dessen Test wird's schwierig.(startet/schliesst zumindest manuell gestartet). Notfalls, wenn Keiner weiter probiert, kann ich ggf. BS z. Testen inst.(Uhrzeit ist Käse, CMOS Batt. ist leer, Irgendwas da gesetzt)

  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
mint@mint:~$ /home/mint/Downloads/waterfox.sh

 ==> Current Waterfox version 6.6.5.1    ==> ...  
 
--2025-12-01 14:49:35--  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 14:49:35--  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.73MB/s    in 25s     

2025-12-01 14:50:00 (3.66 MB/s) - ‘/tmp/waterfox.tar.bz2’ saved [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
removed '/tmp/waterfox.tar.bz2'

 ==> Create Waterfox program launcher.    ==> ...  
 
/home/mint/Downloads/waterfox.sh: line 244: kbuildsycoca6: command not found
No KDE Desktop found.

 ==> Make Waterfox Updater.   ==> ...  
 

 ==> Make waterfox-updater systemd timer and service.   ==> ...  
 
Created symlink /etc/systemd/system/timers.target.wants/waterfox-updater.timer  /etc/systemd/system/waterfox-updater.timer.
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.
/home/mint/Downloads/waterfox.sh: line 327: kbuildsycoca6: command not found
No KDE Desktop found.

 ==> Install Waterfox successful.   ==> Done. 
 

 ==> Waterfox REMOVE?    ==> ?   

Only if you realy like to remove Waterfox, type ==> Yes <== for confirmation.

[y/N] 

PS. 26.04 u. Deine CPU?

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Ja, ich habe das auf mein KDE Desktop auf Kubuntu ausgelegt. kbuildsycoca6 kommt aus dem Paket libkf6service-bin auf Kubuntu Plucky PUffin

Kannst Du mal den Waterfox Updater manuell anstoßen, und gucken, ob die Pop-ups funktionieren:

sudo /usr/bin/waterfox-updater.sh

Gastmarant

Anmeldungsdatum:
24. September 2025

Beiträge: 150

editiert

..failed, notify-send kommt (2*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
sudo /usr/bin/waterfox-updater.sh
++ 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'
++ sed -e 's/^[[:space:]]*//g;s/[[:space:]]*$//g'
++ xargs
+ WATERFOX_LATEST_RELEASE=
++ waterfox -v
++ awk '{ print $3 }'
+ MY_WATERFOX_VERSION=6.6.5.1
+ USER_NAME=mint
+ USER_UID=1000
+ WATERFOX_INSTALL_PREFIX=/opt
+ PREFIX=/usr
+ '[' = 6.6.5.1 ']'
+ sudo -u mint DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/notify-send -i /opt/waterfox/browser/chrome/icons/default/default128.png 'Waterfox Update.... '
+ wget -O /tmp/waterfox.tar.bz2 https://cdn1.waterfox.net/waterfox/releases/latest/linux
--2025-12-01 15:38:37--  https://cdn1.waterfox.net/waterfox/releases/latest/linux
Resolving cdn1.waterfox.net (cdn1.waterfox.net)... failed: Name or service not known.
wget: unable to resolve host address ‘cdn1.waterfox.net’
+ sudo -u mint DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/notify-send -i dialog-error.png 'Update Waterfox failed.'

TK87

Anmeldungsdatum:
8. Juli 2019

Beiträge: 301

Wohnort: Aachen

Moin,

trollsportverein schrieb:

Wer aber mindestens eine CPU hat, die march=x86-64-v2 erfüllt, kann das waterfox-binary-install-helper.sh Skript testen.

  • Skript überprüft keine Abhängigkeiten - mindestens curl, bzip2 und libkf6service-bin. Zum Beispiel...

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    install_requirements(){
      for PKG;do
        which "$PKG" 1>/dev/null || local install+=" $PKG"
      done
      if [ -n "$install" ];then
        sudo apt-get update -qqq
        sudo apt-get install -y "$install"
      fi
    }
    
    install_requirements curl bzip2 libkf6service-bin
    
  • Skript überprüft beim Erstellen des Starters nicht, ob der Pfad "$HOME/.local/share/applications" existiert.

Zeile 323:

1
sudo systemctl enable waterfox-updater.service > /dev/null && \

scheitert, weil keine Install-Sektion vorhanden ist (welche auch nicht nötig ist, weil die Service-Unit ja vom Timer getriggert wird).

Gruß Thomas

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Huch? 😲 Woher kommen denn die Pluszeichen? Zeige doch mal bitte den Inhalt von /usr/bin/waterfox-updater.sh:

cat /usr/bin/waterfox-updater.sh

Gastmarant

Anmeldungsdatum:
24. September 2025

Beiträge: 150

set -x
 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
#!/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=mint && \
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."

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Eigentlich sieht /usr/bin/waterfox-updater.sh so aus, wie es soll. Ich hatte schon befürtet, es wäre etwas beim reinstempeln mittels tee schief gegangen. Aber das sieht richtig aus.

Hier aber eine verbesserte Version von /usr/bin/waterfox-updater.sh, die curl und bzip2 DEB-Pakete installiert, falls diese wirklich nicht installiert sein sollten. Außerdem schaut es nach libkf5 und libkf6 und installiert dann jeweils das libkf5service-bin und/oder libkf5service-bin DEB-Paket, falls die Libraries der jeweiligen KDE Frameworks installiert sind.

  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 && \
[ ! -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/application || echo "$HOME/.local/share/application 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 libkf6. 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."

TK87

Anmeldungsdatum:
8. Juli 2019

Beiträge: 301

Wohnort: Aachen

trollsportverein schrieb:

Huch? 😲 Woher kommen denn die Pluszeichen?

Die kommen, wenn man

set -x

am Anfang des Skripts ergänzt. So sieht man auch die ausgeführte Codezeile (eben mit den Pluszeichen gekennzeichnet) und kann es leichter debuggen, weil man sieht, wo der Fehler liegt.

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Aha, wieder was dazu gelernt. 😎 👍

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Nun noch libnotify-bin DEB-Paket Installation hinzugefügt, ins waterfox-binary-install-helper.sh Skript:

  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/application || echo "$HOME/.local/share/application 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."

Gastmarant

Anmeldungsdatum:
24. September 2025

Beiträge: 150

Sag mal, wenn ich das richtig verstehe kannst Du praktisch nie mit der CPU das/den sinnvoll nutzen, wozu also bei dem Aufwand?

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Wenn ich das Waterfox Binary "benutzen" will, dann mus ich den Intel® Software Emulator für Architektur Befehlssatzerweiterungen nutzen, sogar nur für die Versionsabfrage ist das eine Quälerei:

/opt/intel-sde/sde -nhm -- waterfox -v

Aber immerhin macht der Intel® Software Emulator für Architektur Befehlssatzerweiterungen möglich, was eigentlich unmöglich wäre. Bloß dauern Wunder nun mal immer etwas länger, und RAM vernascht das Ding auch, dass es nicht mehr feierlich ist.

Eigentlich™ steht ja auf der Waterfox Webseite, dass der Waterfox ab Intel Core 2 laufen sollte:

Bloß ist das seit 4 Tagen falsch, denn der Compilerschalter das Binary für march=x86-64-v2 zu bauen, ist erst vor 4 Tagen ins Git gekommen:

Oben rechts bei History, da sehts.

Gastmarant

Anmeldungsdatum:
24. September 2025

Beiträge: 150

Ich will Dir nicht zu nahe treten, vllt. wird's doch Zeit sich von der/dem geliebten Rosinante(ja, nicht in dem Bezug, aber ich habe mir Deinen Spaß gemerkt und finde passt jetzt) innerlich zu verabschieden.

„Die Erinnerung ist ein Fenster durch das ich Dich sehen kann, wann immer ich will.“

Gib dem Anfangs 'nen Ehrenplatz, ich kann übrigens keine Technik entsorgen, tut nach gemeinsamen Erlebnissen irgendwie weh, schlimm bei Autos. 😀 Muss aber sein.

trollsportverein

(Themenstarter)
Avatar von trollsportverein

Anmeldungsdatum:
21. Oktober 2010

Beiträge: 5811

Meine alte Kiste ist aber im Desktop Einsatz rasend schnell beim sörfen, mit dem nicht so feuchten Firefox, auch FreeTube funktioniert vorzüglich. Video und Audio und Bluetooth funktionieren ebenfalls vorzüglich und etwas Spiele geht auch, wenn mir der Sinn danach steht. Sogar mit Wine (wine-staging vom WineHQ) und dazu gefrickeltem dxvk und vkd3d-proton und dxvk-nvapi und wine-nvml.

Sonst ist fast alles orginal Kubuntu, nun ja, bis auf FFmpeg, bluez und pipewire und einige Teile von KDE aus dem Git, aber sonst, ja sonst, nun ja fast, fast alles original Kubuntu. Das läuft gut auf meiner alte Kiste, das Kubuntu. 😎

Antworten |