@@ -6,12 +6,12 @@ export TEXTDOMAINDIR="/usr/share/locale"
6
6
export TEXTDOMAIN=calamares-biglinux
7
7
8
8
# md5sum
9
- if [ " $( ps -e | grep biglinux-verify) " != " " ]; then
9
+ if [ " $( ps -e | grep biglinux-verify) " != " " ]; then
10
10
windowID=" $( xprop -root ' \t$0' _NET_ACTIVE_WINDOW | cut -f 2) "
11
- sleep 600 | zenity --attach=" $windowID " --width=300 --progress --title=$" Aguarde ..." --pulsate --no-cancel --auto-close --text $" Verificando a integridade do download e dispositivo de armazenamento ..." &
11
+ sleep 600 | zenity --attach=" $windowID " --width=300 --progress --title=$" Please wait ..." --pulsate --no-cancel --auto-close --text $" Checking the integrity of the download and storage device ..." &
12
12
fi
13
13
14
- while [ " $( ps -e | grep biglinux-verify) " != " " ]; do
14
+ while [ " $( ps -e | grep biglinux-verify) " != " " ]; do
15
15
sleep 1
16
16
done
17
17
@@ -24,20 +24,20 @@ if [ ! -f "/tmp/checksum_biglinux_ok.html" ]; then
24
24
fi
25
25
fi
26
26
27
- # se a ISO foi gerada a mais de 30 dias emiter ALERTA
27
+ # if the ISO was generated more than 30 days ago, issue ALERT
28
28
if [ " $( echo $(( $(date +% s) / 86400 )) ) " -gt " $(( $(cat / etc/ big- release | grep UNIX_TIMESTAMP= | cut - d "= " - f2 ) + 30 )) " ]; then
29
29
yad --image=emblem-warning --image-on-top --form --width=500 --height=100 --fixed \
30
30
--align=center \
31
- --field=$" <b>Deseja prosseguir com a instalação dessa versão antiga assim mesmo ?</b>
31
+ --field=$" <b>Do you want to proceed with the installation of this old version anyway ?</b>
32
32
:LBL" \
33
- --text $" O BigLinux é um sistema de atualizações semanais e esta versão foi lançada a mais de um mês.\nRecomendamos que faça o download de uma versão mais recente .
33
+ --text $" BigLinux is a system with weekly updates and this version was released more than a month ago.\nWe recommend downloading a more recent version .
34
34
" \
35
- --button=$" Continue" :0 \
36
- --button=$" Fechar " :1 \
37
- --center --on-top --borders=20 --title=$" Versão Desatualizada " \
35
+ --button=$" Continue" :0 \
36
+ --button=$" Close " :1 \
37
+ --center --on-top --borders=20 --title=$" Outdated Version " \
38
38
--window-icon=emblem-warning
39
39
40
- if [ " $? " = " 1" ]; then
40
+ if [ " $? " = " 1" ]; then
41
41
exit 1
42
42
fi
43
43
fi
312
312
umount " $i "
313
313
done
314
314
315
-
316
-
317
315
# boot EFI without partition EFI
318
316
if [ -d /sys/firmware/efi ] && [ " $( cat /tmp/efi-partitions) " = " " ] ;
319
317
then
320
318
LIVEBOOT=EFI
321
319
PARTITION=LEGACY
322
320
323
- TEXT_01=$" Deseja prosseguir com com a instalação em modo EFI?"
324
- TEXT_02=$" O boot atual está utilizando o modo <span color='#CC2222'>EFI</span>, porém não encontrei nenhuma
325
- partição EFI neste computador.
321
+ TEXT_01=$" Do you want to proceed with the installation in EFI mode?"
322
+ TEXT_02=$" The current boot is using <span color='#CC2222'>EFI</span> mode, but I did not find any EFI partition on this computer.
326
323
327
- Se este computador já possui outro sistema instalado e você pretende
328
- que ele permaneça instalado, provavelmente será necessário alterar a
329
- configuração na BIOS para fazer boot em modo Legacy, também
330
- chamado de modo BIOS."
324
+ If this computer already has another system installed and you intend
325
+ to keep it installed, you will probably need to change the
326
+ configuration in the BIOS to boot in Legacy mode, also
327
+ called BIOS mode ."
331
328
yad --image=drive-harddisk --image-on-top --form --width=500 --height=100 --fixed \
332
329
--align=center \
333
330
--field=" <b>$TEXT_01 </b>
334
331
:LBL" \
335
332
--text " $TEXT_02
336
333
" \
337
- --button=$" Continue" ! gtk-apply:0 \
338
- --button=$" Fechar " ! gtk-cancel:1 \
339
- --center --on-top --borders=20 --title=$" Instalar o sistema " \
334
+ --button=$" Continue" ! gtk-apply:0 \
335
+ --button=$" Close " ! gtk-cancel:1 \
336
+ --center --on-top --borders=20 --title=$" Install the system " \
340
337
--window-icon=" /usr/share/icons/hicolor/scalable/apps/icon-big-hd-install.svg"
341
338
342
- if [ " $? " = " 1" ];
343
- then
339
+ if [ " $? " = " 1" ]; then
344
340
exit
345
341
fi
346
342
fi
347
343
348
344
349
- # boot legacy and partition EFI
350
- if [ ! -d /sys/firmware/efi ] && [ " $( cat /tmp/efi-partitions) " != " " ] ;
351
- then
345
+ # legacy boot and EFI partition
346
+ if [ ! -d /sys/firmware/efi ] && [ " $( cat /tmp/efi-partitions) " != " " ]; then
352
347
LIVEBOOT=LEGACY
353
348
PARTITION=EFI
354
- TEXT_03=$" Deseja prosseguir com com a instalação em modo Legacy/BIOS?"
355
- TEXT_04=$" O boot atual está utilizando o modo <span color='#CC2222'>Legacy/BIOS</span>, porém encontrei pelo
356
- menos uma partição EFI neste computador.
349
+ TEXT_03=$" Do you want to proceed with the installation in Legacy/BIOS mode?"
350
+ TEXT_04=$" The current boot is using <span color='#CC2222'>Legacy/BIOS</span> mode, but I found at least one EFI partition on this computer.
357
351
358
- Para que a instalação seja bem sucedida, provavelmente será necessário
359
- alterar a configuração na BIOS para fazer boot em modo EFI ou UEFI."
352
+ For the installation to be successful, you will probably need to
353
+ change the configuration in the BIOS to boot in EFI or UEFI mode ."
360
354
yad --image=drive-harddisk --image-on-top --form --width=500 --height=100 --fixed \
361
355
--align=center \
362
356
--field=" <b>$TEXT_03 </b>
363
357
:LBL" \
364
358
--text " $TEXT_04
365
359
" \
366
- --button=$" Continue" ! gtk-apply:0 \
367
- --button=$" Fechar " ! gtk-cancel:1 \
368
- --center --on-top --borders=20 --title=$" Instalar o sistema " \
360
+ --button=$" Continue" ! gtk-apply:0 \
361
+ --button=$" Close " ! gtk-cancel:1 \
362
+ --center --on-top --borders=20 --title=$" Install the system " \
369
363
--window-icon=" /usr/share/icons/hicolor/scalable/apps/icon-big-hd-install.svg"
370
364
371
- if [ " $? " = " 1" ];
372
- then
365
+ if [ " $? " = " 1" ]; then
373
366
exit
374
367
fi
375
368
fi
376
369
377
370
rm -f /tmp/start_calamares
378
371
379
- cd /usr/share/bigbashview/bcc/ apps/bigbashview- calamares/
380
- QT_QUICK_BACKEND=software QMLSCENE_DEVICE=softwarecontext QTWEBENGINE_CHROMIUM_FLAGS= " --disable-logging --disable-gpu --no-sandbox --single-process --disable-gpu-compositing " bigbashview -n $" Instalar o BigLinux " -s 1100x650 -c transparent index.sh.htm -i /usr/share/icons/hicolor/scalable/apps/icon-big-hd-install.svg
372
+ cd /usr/share/bigbashview/apps/calamares/
373
+ bigbashview -s 1100x600 -n calamares-biglinux -p calamares-biglinux -c transparent -w frameless index.html
381
374
382
375
# Start calamares
383
376
if [ -e " /tmp/start_calamares" ]; then
@@ -391,29 +384,29 @@ if [ -e "/tmp/start_calamares" ]; then
391
384
cp /root/.cache/calamares/session.log /home/$user /calamares.log
392
385
chown $user :$user /home/$user /calamares.log
393
386
394
- send () {
395
- # sudo -u $user curl --upload-file " /home/$user/calamares.log" https://transfer.sh | tee "/home/$user/transfer.url" | zenity --modal --progress --pulsate --no-cancel --auto-close --text $"Enviando, aguarde ..."
396
- sudo -u $user curl -data-binary -H " filename: /home/ $user /calamares.log " https://filebin.net | tee " /home/ $user /transfer.url " | zenity --modal --progress --pulsate --no-cancel --auto-close --text $" Enviando, aguarde... "
397
-
398
- if [ -f /usr/bin/falkon ] ; then
399
- sudo -u $user falkon https://filebin.net/ $( cat " /home/ $user /transfer.url " | grep ' "id": " ' | cut -f4 -d ' " ' )
400
- elif [ -f /usr/bin/brave ] ; then
401
- sudo -u $user brave-browser --new-window --no-sandbox https://filebin.net/ $( cat " /home/ $user /transfer.url " | grep ' "id": " ' | cut -f4 -d ' " ' )
402
- fi
403
- }
404
-
405
- yad --buttons-layout=center \
406
- --width=480 \
407
- --button=$" Abrir " :1 \
408
- --button=$" Enviar para a nuvem " :2 \
409
- --button =$" Fechar " :3 \
410
- --title =$" calamares LOG " \
411
- --text= $" \nDeseja visualizar ou enviar o arquivo de log da instalação para a nuvem?\ngerar um link para enviar no grupos de suporte.\n "
412
-
413
- case $? in
414
- 1) sudo -u $user kate /home/ $user /calamares.log ;;
415
- 2) send ;;
416
- 3) echo $" Fechando arquivo... " ;;
417
- esac
387
+ send () {
388
+ sudo -u $user curl --data-binary -H " filename: /home/$user /calamares.log" https://filebin.net | tee " /home/$user /transfer.url" | zenity --modal --progress --pulsate --no-cancel --auto-close --text $" Sending, please wait ..."
389
+
390
+ if [ -f /usr/bin/falkon ] ; then
391
+ sudo -u $user falkon https://filebin.net/ $( cat " /home/ $user /transfer.url " | grep ' "id": " ' | cut -f4 -d ' " ' )
392
+ elif [ -f /usr/bin/brave ] ; then
393
+ sudo -u $user brave-browser --new-window --no-sandbox https://filebin.net/ $( cat " /home/ $user /transfer.url " | grep ' "id": " ' | cut -f4 -d ' " ' )
394
+ fi
395
+ }
396
+
397
+ yad --buttons-layout=center \
398
+ --width=480 \
399
+ --button= $" Open " :1 \
400
+ --button=$" Send to the cloud " :2 \
401
+ --button=$" Close " :3 \
402
+ --title =$" calamares LOG " \
403
+ --text =$" \nDo you want to view or send the installation log file to the cloud?\nGenerate a link to send in support groups.\n "
404
+
405
+ case $? in
406
+ 1) sudo -u $user kate /home/ $user /calamares.log ;;
407
+ 2) send ;;
408
+ 3) echo $" Closing file... " ;;
409
+ esac
410
+
418
411
fi
419
412
fi
0 commit comments