Firefox50 and Color Emoji

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.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
rob
White ninja
White ninja
Posts: 15
Joined: 07 Nov 2016, 06:05
Distribution: 4.1
Location: NY

Firefox50 and Color Emoji

Post#1 by rob » 08 Nov 2016, 03:23

We display progress (Andon) at our factory via a webpage and have a few TVs that display this status. (Digital signage) With all the iPads we have given out and people using their phones, Emoji are getting used more often. So I was asked to render Emoji in color. Emoji DemoThis requires Firefox 46 or newer and porteus-kiosk is using Firefox 45 ESR. So I took a shot at modules, one to replace the stock Firefox and a second to make changes to the distribution.

Firefox Light was at version 48 and even smaller than ESR! Audio worked on vbox, but was garbled (ran too fast) over HDMI to TV so I also did the current Firefox.
if you want to try it, add these two lines to your kiosk_config:

Code: Select all

root_password=toor
debug=yes
reboot the kiosk
Note the BOOTING DEVICE and IP_number
remove the two lines from kiosk_config
ssh root@IP_number

Code: Select all

mount `sed -ne 's/boot_dev=//p' /opt/scripts/extras` /mnt
mkdir iso
cp -a /mnt/* iso
cd iso/xzm
wget mc.rob.com/porteus/002-firefox50.xzm -O 002-firefox.xzm
wget mc.rob.com/porteus/ff50libs.xzm
Optionally add audio and mksquashfs/unsquashfs

Code: Select all

wget mc.rob.com/porteus/codec.xzm   
wget mc.rob.com/porteus/squashfs.xzm
Update the boot device:

Code: Select all

cd ..
echo | ./make_iso.sh ; cd ..
isohybrid -u Porteus-Kiosk.iso
dd if=Porteus-Kiosk.iso of=/dev/sda
reboot
once the squashfs.xzm module is loaded you can do tricks like

Code: Select all

unsquashfs 003-settings.xzm
echo > squashfs-root/usr/lib64/HelloWorld
mksquashfs squashfs-root new.xzm -comp xz -b 256K -Xbcj x86 -noappend
mv new.xzm 003-settings.xzm
rm -rf squashfs-root
Thanks for an outstanding distro!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Firefox50 and Color Emoji

Post#2 by fanthom » 08 Nov 2016, 09:15

Hello Rob,

I see you have reached an expert level in kiosk modifications :)

Code: Select all

unsquashfs 003-settings.xzm
echo > squashfs-root/usr/lib64/HelloWorld
mksquashfs squashfs-root new.xzm -comp xz -b 256K -Xbcj x86 -noappend
mv new.xzm 003-settings.xzm
rm -rf squashfs-root
One advice: its better to keep all customization in a separate module - easier to remember what was changed and upgrading to new kiosk version is as easy as moving custom xzm to new ISO (with a bit of luck things will work ootb).

Thank you.
Please add [Solved] to your thread title if the solution was found.

Locked