Quantcast
Viewing all articles
Browse latest Browse all 4825

Advanced users • Re: KEEP autostart terminal open like in UI

You're making an assumption in that because the address and port cannot be bound your script is already running. It might not be. It's possible for a program to crash and not have the port released.

Code:

ps -a
or

Code:

ps -fu pi
will list the processes running for you user.

I do very little with lxterminal and autostart so am not the best person to help debug this.

I suggest a methodical, step by step approach:
  1. Change your autostart entry to

    Code:

    lxterminal
    reboot and see if you get a terminal opened on your desktop.
  2. Change your autostart entry to

    Code:

    lxterminal --geometry=120x40
    reboot and see if you get a terminal opened on your desktop.
  3. Change your autostart entry to

    Code:

    lxterminal --geometry=120x40 --title=Updating
    reboot and see if you get a terminal opened on your desktop.
  4. Change your autostart entry to

    Code:

    lxterminal --geometry=120x40 --title=Updating -e bash -c  '/home/pi/grott/autostartgrott.sh'
    reboot and see if you get a terminal opened on your desktop with your script running. I'm guessing you won't.
  5. Change your autostart entry to

    Code:

    lxterminal --geometry=120x40 --title=Updating -e bash -c  '/home/pi/grott/autostartgrott.sh 2>/home/pi/grott.log'
    reboot and see if you get a terminal opened on your desktop with your script running. Check /home/pi/grott.log for any error messages.
    1. Remove your autostart entry.
    2. Reboot
    3. Open a terminal and run

      Code:

      lxterminal --geometry=120x40 --title=Updating -e bash -c  '/home/pi/grott/autostartgrott.sh' 
And if the only thing you need to be displayed on the screen is your script, it doesn't need the desktop, and you don't need to do anything else on the Pi that can't be done over ssh consider an alternate method such as booting to the commandline without auto login and running just your script from rc.local.

TL;DR: with knowing the cause or error message I can't suggets a fix.

Statistics: Posted by thagrol — Tue Mar 19, 2024 9:55 pm



Viewing all articles
Browse latest Browse all 4825

Trending Articles