Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#16 by link08 » 20 Oct 2017, 09:26

I successfully injected GTK3 into Porteus kiosk 32 bit. For now Firefox do not fail to start because of GTK3. However another error happen now.

Code: Select all

root@porteus-kiosk# firefox
XPCOMGlueLoad error for file /usr/lib/firefox-50.1.0/libmozgtk.so:
libcairo-gobject.so.2: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
The question is now - how do I find which package provide libcairo-gobject.so.2?

fanthom, thank you for participating in this thread. I really appreciate it.
We do not need NPAPI plugins. Our kiosk system will run only 1 not big site.
We do not need legacy addons. Also we do not need https - out site work over http.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#17 by Ed_P » 20 Oct 2017, 13:55

link08 wrote:
20 Oct 2017, 09:26
I successfully injected GTK3 into Porteus kiosk 32 bit. For now Firefox do not fail to start because of GTK3.
:celebrate3:
The question is now - how do I find which package provide libcairo-gobject.so.2?
Maybe one of these?

Code: Select all

root@porteus:/home/guest# usm -s gobject

gobject-introspection-1.46.0-x86_64-1.txz was found in slackware [installed]
pygobject-2.28.6-x86_64-2.txz was found in slackware []
pygobject3-3.18.2-x86_64-1.txz was found in slackware [downgrade]
pygobject3-python3-3.18.2-x86_64-2_slonly.txz was found in slackonly [downgrade]
py3gobject-3.18.2-x86_64-1gv.txz was found in salix [not installed]
Packages found:   5 

Use:   usm -i <package>  for more info
Use:   usm -g <package>  to download

root@porteus:/home/guest# 

These links may interest you also: https://support.mozilla.org/en-US/questions/1143306
https://www.google.com/search?source=hp ... FTgt1_mBf4
Ed

jssouza
DEV Team
DEV Team
Posts: 406
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#18 by jssouza » 20 Oct 2017, 15:03

libcairo-gobject should be in the cairo package.

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#19 by link08 » 20 Oct 2017, 18:46

jssouza wrote:
20 Oct 2017, 15:03
libcairo-gobject should be in the cairo package.
jssouza, I appreciate your help, but could you instead of feeding us - teach us how to find food? How do you determine part of which package is certain library?

jssouza
DEV Team
DEV Team
Posts: 406
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#20 by jssouza » 20 Oct 2017, 19:21

link08 wrote:
20 Oct 2017, 18:46
jssouza, I appreciate your help, but could you instead of feeding us - teach us how to find food? How do you determine part of which package is certain library?

Code: Select all

[root:/home/guest]# usm -s libcairo-gobject.so.2

 ----------------------------- 
 Are you searching for a library file? 

libcairo-gobject.so.2, it seems a library.
Would you like to find the package for it? [y/n]

 libcairo-gobject.so.2  was found in   cairo-1.14.6-x86_64-2.txz 
I would recommend download the MANIFEST.bz2 file from slackware and there you would find which library is in which package.

By the way, kiosk is gentoo, unlike porteus desktop. If possible, the best option would be to either use emerge or compile your own firefox from source.

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#21 by link08 » 23 Oct 2017, 10:38

I injected missing modules into Porteus kiosk 32 bit system. For now list of modules consists:
xzm\000-kernel.xzm
xzm\001-core.xzm
xzm\003-settings.xzm
xzm\004-wifi.xzm
xzm\at-spi2-atk-2.18.1-i586-1.xzm
xzm\at-spi2-core-2.18.3-i586-bundle.xzm
xzm\cairo-1.14.6-i586-2.xzm
xzm\firefox-50.1.0-i686.xzm
xzm\gtk+3-3.18.9-i586-1.xzm
For now I got the following error:

Code: Select all

firefox: symbol lookup error: /usr/lib/libgtk-3.so.0: undefined symbol: g_param_spec_get_name_quark
I now try to google to understand what does this mean.

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#22 by link08 » 23 Oct 2017, 13:07

I've found in google that this error is because glib2 is not installed, so I added package xzm\glib2-2.46.2-i586-2.xzm and Firefox launched successfully

Full package list is now:
xzm\000-kernel.xzm
xzm\001-core.xzm
xzm\003-settings.xzm
xzm\004-wifi.xzm
xzm\at-spi2-atk-2.18.1-i586-1.xzm
xzm\at-spi2-core-2.18.3-i586-bundle.xzm
xzm\cairo-1.14.6-i586-2.xzm
xzm\firefox-50.1.0-i686.xzm
xzm\glib2-2.46.2-i586-2.xzm
xzm\gtk+3-3.18.9-i586-1.xzm
But I have still few problems to resolve:
Under this link http://ftp.heanet.ie/mirrors/dl.porteus ... t/modules/ there are 2 versions of Firefox module:
firefox-50.1.0-i686.xzm which is already outdated
firefox-56.0b12-i686-1-ncm.xzm which is beta (hence not stable)
Please help me create my own Firefox 56 (latest for now) module and explain please how do you make module?

If I download Firefox 56 from official site I get firefox-56.0.1.tar.bz2 file. If I then extract it I can successfully launch firefox from the folder, but how I convert this folder to a module? I tried using dir2xzm utility and created module, but when I inject that module into Porteus kiosk - it doesn't start Firiefox because it can not find the file firefox - the directory structure in module is incorrect. How do I create module of latest Firefox? I also tried to use usm -s firefox - to download module from slackware repositories, but there is not Firefox 56 version - only 52.

I have few other problems:
- Firefox do not start in full screen in Porteus kiosk
- how do I set up home page so that it will always load on start up?
- how do I disable Firefox autostart in Porteus kiosk so that I see if there are some errors after launching firefox from terminal?

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#23 by Ed_P » 23 Oct 2017, 14:58

link08 wrote:
23 Oct 2017, 13:07
I've found in google that this error is because glib2 is not installed, so I added package xzm\glib2-2.46.2-i586-2.xzm and Firefox launched successfully
:Yahoo!:
firefox-56.0b12-i686-1-ncm.xzm which is beta (hence not stable)
Please help me create my own Firefox 56 (latest for now) module and explain please how do you make module?
I don't like the beta versions either and use the current stable extended support version instead which is 52.4 at this point. You can use USM to download it and make a module. Search for ESR to find it.

This link explains the ESR version: https://www.mozilla.org/en-US/firefox/organizations/ :)
Ed

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#24 by link08 » 25 Oct 2017, 12:46

At the moment I successfully added home page to Firefox. I used tutorial http://porteus-kiosk.org/modules.html
1 unsquashfs firefox module
2 go to preferences file which is located at

Code: Select all

squashfs-root/home/guest/.mozilla/firefox/dxsqumip.default/prefs.js
3 change

Code: Select all

user_pref("browser.startup.homepage", "http://my.site");
The next problem is how to force Firefox to start maximized, with address bar disabled and in full screen.
Also - how to disable browser auto start so that I can start browser manually and see if any errors occur (or may be I can check log files?)
Ed_P wrote:
23 Oct 2017, 14:58
I don't like the beta versions either and use the current stable extended support version instead which is 52.4 at this point. You can use USM to download it and make a module. Search for ESR to find it.
For now my USM for some reason doesn't want to update. It hangs on

Code: Select all

Starting salix database update
Downloading: CHECKSUMS.md5 -->
But as I recall I didn't see Firefox 52 version there.

Also I can use Firefox 52 version - but how can I make module from Firefox 56 - latest stable version?
Last edited by link08 on 26 Oct 2017, 08:21, edited 1 time in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#25 by Ed_P » 25 Oct 2017, 15:34

link08 wrote:
25 Oct 2017, 12:46
For now my USM for some reason doesn't want to update. It hangs on

Code: Select all

Starting salix database update
Downloading: CHECKSUMS.md5 -->
That happens periodically. Some options are discussed here: Save files
But as I recall I didn't see Firefox 52 version there.
It's there for x86_64.
Also I can use Firefox 52 version - but how can I make module from Firefox 56 - latest stable version?
Download the .tar.bz2 file of the Firefox version you want from Mozilla, https://download-installer.cdn.mozilla. ... inux-i686/, save it to the /tmp folder then run, as root, update-firefox.

:)
Ed

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#26 by link08 » 25 Oct 2017, 18:37

Ed_P wrote:
25 Oct 2017, 15:34
Download the .tar.bz2 file of the Firefox version you want from Mozilla, https://download-installer.cdn.mozilla. ... inux-i686/, save it to the /tmp folder then run, as root, update-firefox.
How do I create xzm module of it? I need the module that will be injected in Porteus kiosk on boot.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#27 by Ed_P » 25 Oct 2017, 18:51

update-firefox will create the xzm module for you in the /tmp folder, using the .tar.bz2 file in the /tmp folder. You then move it to where you want it.
Ed

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#28 by link08 » 26 Oct 2017, 12:15

I've successfully updated Firefox to 56 version using instructions that you provided.

At the moment I have following problem:
- Firefox 56 do not start in maximized window mode. Firefox 38 (that was included with Porteus kiosk 32 bit) start in maximized mode successfully. Please help me start Firefox 56 in maximized mode.

Also I have another problem - there is no sound in Firefox 56 and Firefox itself ask me to install pulse audio. I'll try that and will report.
Also I would like to somehow to see what messages does Firefox print when it start - are there some errors. Where are log files for this?

link08
Black ninja
Black ninja
Posts: 30
Joined: 27 Sep 2017, 14:40
Distribution: Porteus-Kiosk-3.7.0-i586

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#29 by link08 » 26 Oct 2017, 13:27

After adding package xzm\pulseaudio-9.0-i586-1.xzm Firefox do not want to load.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Install latest Chromium instead of Chrome in Porteus kiosk 32-bit 3.7.0

Post#30 by Ed_P » 26 Oct 2017, 15:33

link08 wrote:
26 Oct 2017, 12:15
I've successfully updated Firefox to 56 version using instructions that you provided.
:celebrate14:
At the moment I have following problem:
- Firefox 56 do not start in maximized window mode. Firefox 38 (that was included with Porteus kiosk 32 bit) start in maximized mode successfully. Please help me start Firefox 56 in maximized mode.
I have no idea how to do that. I suspect it is a Firefox setting and if it is it means you will have to remake the module with the change included. Not an impossibility but a little more complex to do.
Also I have another problem - there is no sound in Firefox 56 and Firefox itself ask me to install pulse audio. I'll try that and will report.
Also I would like to somehow to see what messages does Firefox print when it start - are there some errors. Where are log files for this?
I don't know if kiosk supports sound. As for Firefox start errors, try starting Firefox from a terminal window rather than an icon. The command should be just firefox. Log files are in /var/log/ in normal Porteus.

-update-

Ok, to the Firefox desktop files add -fullscreen to the Exec statement.

/usr/share/applications/Firefox

Code: Select all

[Desktop Entry]
#Exec=firefox %u
Exec=firefox -fullscreen %u
Icon=firefox
Type=Application
Categories=Network;
Name=Firefox
Name[bn]=ফায়ারফক্স
Name[eo]=Mozilo Fajrovulpo
Name[fi]=Mozilla Firefox
Name[pa]=ਫਾਇਰਫੋਕਸ
Name[tg]=Рӯбоҳи оташин
GenericName=Web Browser
GenericName[af]=Web Blaaier
GenericName[ar]=متصفح ويب
GenericName[az]=Veb Səyyahı
GenericName[bg]=Браузър
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[br]=Furcher ar Gwiad
GenericName[bs]=WWW Preglednik
GenericName[ca]=Fullejador web
GenericName[cs]=WWW prohlížeč
GenericName[cy]=Porydd Gwe
GenericName[da]=Browser
GenericName[de]=Web-Browser
GenericName[el]=Περιηγητής Ιστού
GenericName[eo]=TTT-legilo
GenericName[es]=Navegador web
GenericName[et]=Veebilehitseja
GenericName[eu]=Web arakatzailea
GenericName[fa]=مرورگر وب
GenericName[fi]=WWW-selain
GenericName[fo]=Alnótsfar
GenericName[fr]=Navigateur web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hi]=वेब ब्राउज़र
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[is]=Vafri
GenericName[it]=Browser Web
GenericName[ja]=ウェブブラウザ
GenericName[ko]=웹 브라우저
GenericName[lo]=ເວັບບຣາວເຊີ
GenericName[lt]=Žiniatinklio naršyklė
GenericName[lv]=Web Pārlūks
GenericName[mk]=Прелистувач на Интернет 
GenericName[mn]=Веб-Хөтөч
GenericName[nb]=Nettleser
GenericName[nds]=Nettkieker
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[nso]=Seinyakisi sa Web
GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator de web
GenericName[ru]=Веб-браузер
GenericName[se]=Fierpmádatlogan
GenericName[sk]=Webový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sr]=Веб претраживач
GenericName[sr@Latn]=Veb pretraživač
GenericName[ss]=Ibrawuza yeWeb 
GenericName[sv]=Webbläsare
GenericName[ta]=வலை உலாவி
GenericName[tg]=Тафсиргари вэб
GenericName[th]=เว็บบราวเซอร์
GenericName[tr]=Web Tarayıcı
GenericName[uk]=Навігатор Тенет
GenericName[uz]=Веб-браузер
GenericName[ven]=Buronza ya Webu
GenericName[vi]=Trình duyệt Web
GenericName[wa]=Betchteu waibe
GenericName[xh]=Umkhangeli zincwadi we Web
GenericName[zh_CN]=网页浏览器
GenericName[zh_TW]=網頁瀏覽器
GenericName[zu]=Umcingi we-Web
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
X-KDE-StartupNotify=true
The question becomes if you make this change how does kiosk remember it. Does kiosk support persistence? :hmmm:
Ed

Post Reply