Some kind of kiosk.
Hi:
I need to setup my Lubuntu system to serve as a kind of kiosk, where a custom Java application should be run on startup, and it should be avoid that users interact with the desktop environment. Because of this I would like to ask the advice of the community to: 1. Make the system run the custom java application on startup.This application should run as root. 2. Avoid the desktop environment to load. 3. Autologin to the system. The session started can be root. As the custom app is going to be the only UI, there should not be risk in start the session as root. Thanks for your reading and for the tips you could give me. |
In general, doing this is not complicated. You can do it with any distro you like as a start.
I would use Arch Linux for it. Then only install what you need, and set up a systemd unit to run the java application on startup. |
I did something similar to this on a Raspberry Pi running Fedora. The application I needed to start was Python, not Java, but it's actually pretty easy.
It is detailed here http://makerbox.wordpress.com/2014/0...tric-painting/ However, I have not done exactly what you are looking to do; I did not need a GUI. So I'm thinking out loud here, with some ideas rather than exact instructions: The way I think I'd go about what you are trying to do is to uninstall the desktop (LXDE) and the session manager (I think Lubuntu uses LightDM). You will probably want to do that from a text console (ctrl-alt-F3, for example). Then find the systemd startup script that executes the graphical server (X). Modify it such that when the X environment starts, so does your java application. I'm not sure what *buntu does when no session manager is found, so you might need to enable auto login to your text console. That's detailed in the post. It will require some experimentation and testing. If you try this sort of thing, let me know how it goes and what you did to make it happen, and I'll make my responses here less dependent on the external link. |
A search for "ubuntu kiosk mode" turns up so many links that I couldn't pick on one to post here. There are even YouTube tutorials.
They likely won't address your particular application (most of them are about enabling kiosk mode for a browser), but they should get you started. |
Quote:
Code:
[Desktop Entry] Where should be located getty@.service you mention in the link?.I did not find a file with the same name. Thanks. |
Hi.
I followed this tutorial, where it is given the instruction for, starting from a "text only" system, you install xorg, and nodm to setup the kiosk. Now, all went well with xorg. If I run: Code:
$ startx Code:
#!/usr/bin/env bash Code:
NODM_ENABLED=true I hope I could get some help in this regard. |
All times are GMT -5. The time now is 06:53 PM. |