Cog Browser Demo#

The simpleswitch-cog offers a demo of Cog Browser based on Webkit technology. It will open the Tria Website in fullscreen mode.

Registration

If you want to test SimpleCore™, SimpleSwitch™ or any of our packages from our SimpleCore™ incubator program, please register here and we will grant you access.

Configure Cog#

To add startup settings to all browsers, edit /apps/browser/homepage.txt. To add startup settings to Cog only, edit /apps/cog/homepage.txt. The Cog configuration file takes precedence over the global browser configuration file.

Multiple settings can be specified as a multiline list, for example

https://www.google.com
--scale=0.1
--bg-color=FF0000

The lines can contain spaces. However, neither use \ separators nor options as –option=’1 2 3’ (it should not happen as most cog options are switches or coma separated lists).

# can be used in an option free line to write license informations or comments.

Settings example :
  • Add https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-ogv-file.ogv to show case video support.

  • Specify the URL

  • Add --scale=FACTOR to set the zoom factor applied to web content

  • Add --doc-viewer to disable Cog’s resource cache (useful for systems with limited RAM)

See Cog command line options for an extended overview of the available settings:

cog -h
cog --help-all

How to get it#

  • container-helper
  • Scotty
  • Bitbake
    ## From the base image run
    $ skopeo login ghcr.io
    $ export machine=$CONTAINER_HELPER_ARCH
    $ export package=simpleswitch-cog
    $ export tag=$RELEASE_VERSION
    $ container-helper registry-install ghcr.io ghcr.io/avnet-embedded/simpleswitch/${machine}/${package}:${tag}
    $ simpleswitch-helper start ${package}
    ## On your computer run
    $ scotty build simpleswitch-cog
    ## On your computer run
    $ bitbake simpleswitch-cog

Note

This recipe needs meta-webkit in the layer setup, if you want to build it yourself.

  • Scotty
  • Bitbake
    ## On your computer run
    $ scotty setup --features-layers-set webkit --features-layers-set simpleswitch
    ## On your computer run
    $ bitbake-layers add-layer <path to meta-webkit>