STEP1: sTEP2:
STEP3: GUI: FIND STARTUP APPLICATION
GIVE OPTIONAL NAME GIVE THIS TO COMMAND BAR: "gnome-terminal --command= sudo python /home/user/myscript.py"
TERMINAL: go to /home/user/.config/autostart/
create a new optional xxx.desktop file
nano the file in terminal (nano xxx.desktop)
write this:
save and exit.
STEP4: autologin to the Raspberry
To configure the Desktop to auto-login (Ubuntu MATE 14.04) autologin-user /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
Conf files in STEP5: SUDO not ask for password: type: sudo visudo And add the following entry, replace user with your username, for user ALL=(ALL) NOPASSWD |