STEP1: apt get update

sTEP2: apt get install gnome-terminal

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:
[Desktop Entry] Type=Application Exec=gnome-terminal --command="sudo python /home/user/top_block.py" Hidden=false X-MATE-Autostart-enabled=true Name[en_US]=terminal
save and exit.
STEP4: autologin to the Raspberry pi or desktop: from (https://ubuntu-mate.community/t/auto-login-to-the-desktop/60)
To configure the Desktop to auto-login (Ubuntu MATE 14.04) addan autologin-user line specifying your user name tothe /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file. For example:
[SeatDefaults] greeter-session=lightdm-gtk-greeter autologin-user=srackham 

Conf files in the /usr/share/lightdm/lightdm.conf.d/ directory are cascaded into the lightdm login manager in alpha order.


STEP5: SUDO not ask for password:

type: sudo visudo

And add the following entry, replace user with your username, for example gogo:

user ALL=(ALL) NOPASSWD:ALL