Search code examples
raspberry-pi

On Raspberry Pi - Auto start terminal after login?


I'm working on a small project right now. I want the python script to automatically run after loggin into the GUI.

I followed the steps here: https://www.raspberrypi.org/forums/view ... 91&t=65607

But it didn't work for me. What it did was whenever I open up the terminal, the script will run automatically, but not after loggin into the GUI.

So I figured a easy solution is to configure the system so terminal runs after loggin into GUI.

Any suggestions?


Solution

  • To auto-start the terminal on boot, open this file with nano:

    nano ~/.config/lxsession/LXDE-pi/autostart
    

    Add this line to the end of the file:

    @lxterminal
    

    Close, save and reboot

    Reference and some other goodies to run a script on startup as well which may have been what you are actually looking for: http://blog.startingelectronics.com/auto-start-a-desktop-application-on-the-rapberry-pi/