I have a CentOS 7.4 machine that I need to start in kiosk mode. There is a touch screen attached to that machine and on boot, google chrome must start in full screen and load a certain web page.
What I did so far was the following:
- installed google chrome 70.x (yum install google-chrome-stable)
- created a 'kiosk' user without a password
- I setup the kiosk user to autologin
- created the following file: - /home/kiosk/.config/autostart/chrome-kiosk.desktopwhich contains (among several lines) the following line:- Exec=/usr/bin/google-chrome-stable --incognito --kiosk --disable-web-security --user-data-dir=/home/kiosk/Documents/kiosk/tmp/ --test-type file:///home/kiosk/Documents/kiosk/offline.html 
When the computer starts, kiosk user automatically logins and chrome starts in full screen loading the offline.html page as I specified in the above config file.
So far so good. Bu the problem is that on first load (after setting kiosk user to autologin) the system tells me that 'an application wants to create a new keyring called "Default keyring"'. Then prompts the user to enter a keyring password. 
I got rid of that by following the steps described here: http://ask.xmodulo.com/disable-entering-password-unlock-default-keyring.html. Actually I instructed the user of the machine to perform the steps described there, as I only have ssh access to the machine and I cannot acces the graphical interface.
But what I need to do is to find an automated way to get rid of that keyring stuff. I found plenty of links that describe how to solve this issue but all of them requires access to the graphical interface, but as I said I only have ssh access.
I have a shell script that installs chrome and other packages, creates the kiosk user, adds the /home/kiosk/.config/autostart/chrome-kiosk.desktop config file, etc.. I want to fix the keyring stuff also by command line completely. There are several machines that I will have to run the script on. I don't want to instruct the users to perform the manual steps described in the link above but instead to solve everything from command line.
Is there any way to do that? The security is not an issue as the machines will be some local (offline) machines.


