nano ~/.config/openbox/autostart
Set the content like:
#!/bin/sh
chromium --kiosk --incognito www.catonrug.net/p/raspberry-pi.html
Set the file executable:
sudo chmod +x ~/.config/openbox/autostart
If you want to work this solution for all the new users in future you need to create new config file for new user profile:Create necessary directory structure:
sudo mkdir -p /etc/skel/.config/openbox
Create new file:
sudo nano /etc/skel/.config/openbox/autostart
Set what to do:
#!/bin/sh
chromium --kiosk --incognito www.catonrug.net/p/raspberry-pi.html
Set this file executable for all users:
sudo chmod 755 /etc/skel/.config/openbox/autostart
Now when you create new user the startup script will be automatically added from /etc/skel
pi@raspberrypi ~ $ sudo adduser ben
Adding user `ben' ...
Adding new group `ben' (1014) ...
Adding new user `ben' (1013) with group `ben' ...
Creating home directory `/home/ben' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for ben
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
No comments:
Post a Comment