This is a basic example of how to launch a basic Web page on the HDMI screen of a device. It uses a Epiphany Browser and matchbox, a lightweight window manager.
This demo should run on RPI 1 and 2
It is also recommended that you increase the amount of memory given to the GPU on the RPI,
you can do this by mounting the SD card on your Computer and opening the config.txt
file in the resin-boot
partition.
In config.txt
you will need to comment out the line:
gpu_mem=16
and uncomment the line:
##gpu_mem=256
This can be done by removing the leading ##
.
You can change the default URL by setting an environment variable in your Resin.io dashboard.
Just create a variable called URL
and set the value to the web address.
####Currently not working.
- Youtube videos work, but the lag is incredibly bad.
This starts an openssh server on port 22. You can then ssh into the running container
using ssh root@<IP_ADDRESS>
the default password for root
is resin
.
At after pushing you may encounter and re-sshing back into the device you may encounter this error message as the host key changes when an update occurs on the device.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
To get around this remove the key.
$ ssh-keygen -R <YOUR-PI'S-IP>
It will then work as expected
$ @root<YOUR-PI'S-IP>