How can I setup 16.04 as a Chrome-based "kiosk"? I.e.:
chrome --kiosk
as the only app visible to user,- user can only click on what's showed by Chrome (no Settings, Unity or other apps or other URLs),
- ideally user has maximally limited privileges,
- user has "autologin" (no password required) enabled,
- admin/superuser can login with some magical key combination or something (e.g. Ctrl-Alt-F1 + login + password) and switch to "full friendly desktop".
Basic googling and other AskUbuntu answers lead me only to some old guides, ~14.04 or older, which I have trouble applying in 16.04 because of many differences between the distributions (systemd vs. old init, also big changes in GUIs, esp. for system settings).
edit: Ideally, I'd prefer a console/script-based guide, so that I could automate it over many computers. But a GUI-based guide would be still better than nothing.
Best Answer
Below is what I managed to build in the end, stitching together various scraps and hints I could find plus some "original research" of my own. I consider it very rough and downright ugly in places, but I need some solution, and it seems to work for now. Fingers crossed...
PLEASE NOTE you should also consider hardening your Linux for security,
which is absolutely not covered by the presented script!
To get back to "normal user", press Alt-F4 to close Chrome; LightDM will show, where you can login to your "normal" admin/root/... (super-)user. To get back to "kiosk", run:
TODO: didn't disable screensaver yet (or did it?).
Also, no warranty, it may shoot off your leg, eat your homework, etc, etc.