Page 1 of 1

Firefox50 and Color Emoji

Posted: 08 Nov 2016, 03:23
by rob
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!

Re: Firefox50 and Color Emoji

Posted: 08 Nov 2016, 09:15
by fanthom
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.