I'm trying to set up an Ubuntu 12.04 machine as a kiosk and I would like it, on boot, to automatically log in as my kiosk user "kiosk", and start the appropriate display manager, in this case blackbox.

I have configured /etc/lightdm/lightdm.conf as in this question and have an appropriate /usr/share/xsessions/blackbox.desktop to launch blackbox.

I managed to get initial autologin by using the dbus-send method in this question, however if I right-click and select "Exit" from blackbox, then I am taken back to the login screen.

How can I configure lightdm/ubuntu to always autologin as "kiosk" instead of displaying the login screen?

Or, failing that, how can I configure blackbox to not display a menu when I right-click?

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I don't know what Blackbox is but if you want to set a profile to auto login you can open the user accounts program and select your account you want to auto login then unlock the dialogue and select auto login.
–
Weylin SchreckOct 11 '12 at 21:19

1 Answer
1

As far as disabling the Exit button, have a look at this and this they explain that the default menu is located in /usr/share/blackbox/menu, but can be overidden with a ~/.blackbox/menu file referenced from a .blackboxrc. The man page also states that adding blackbox to your .xinitrc or .xsession will get blackbox to kill the X session on exit.

If you're doing a kiosk you'll have to make sure the account is locked down. That way, if somebody switches to a virtual terminal (Ctrl+Alt+F1-7) they can't do any damage.