| Misc | |||||||||||||||||||||||||||||||||||||||||||||
| ** | 2/17/25 | Raspberry_Pi | |||||||||||||||||||||||||||||||||||||||||||
| Misc | |||||||||||||||||||||||||||||||||||||||||||||
| Home | |||||||||||||||||||||||||||||||||||||||||||||
| my_rpi | https://www.raspberrypi.org/forums/viewtopic.php?t=65607 | ||||||||||||||||||||||||||||||||||||||||||||
| Misc | |||||||||||||||||||||||||||||||||||||||||||||
| vcgencmd | Re: HowTo auto-run LXTerminal from LXDE desktop at startup | ||||||||||||||||||||||||||||||||||||||||||||
| Quote | |||||||||||||||||||||||||||||||||||||||||||||
| Mon Jul 25, 2016 5:39 pm | |||||||||||||||||||||||||||||||||||||||||||||
| Sure you can. And depending on what you're doing and how you want it to work you may not need "lxterminal". | |||||||||||||||||||||||||||||||||||||||||||||
| This is the auto start file for one of the Pi's at my desk (Pi3B). Since it's at my desk I use Synergy, so the Pi uses my Windows PC mouse/keyboard and I only need the HDMI and power plugged into the PI (really cuts down on cable mess and the need for another keyboard/mouse). Synergy runs in the background so I start the script directly, and I use the "@" so it will restart should it die for some reason. | |||||||||||||||||||||||||||||||||||||||||||||
| I also have a 24 segment LED bargraph display that shows CPU temp and load, and that runs in the background as well, using Python. | |||||||||||||||||||||||||||||||||||||||||||||
| Just to test I added a second line to run the test.sh script twice and each shows up in it's own terminal as expected. | |||||||||||||||||||||||||||||||||||||||||||||
| Code: Select all | |||||||||||||||||||||||||||||||||||||||||||||
| @lxpanel --profile LXDE-pi | |||||||||||||||||||||||||||||||||||||||||||||
| @pcmanfm --desktop --profile LXDE-pi | Raspberry Pi Connect | ||||||||||||||||||||||||||||||||||||||||||||
| @xscreensaver -no-splash | |||||||||||||||||||||||||||||||||||||||||||||
| @/home/jimmy/.startsynergy.sh | [email protected] | (BW00) | |||||||||||||||||||||||||||||||||||||||||||
| sudo python /home/jimmy/scripts/bargraph1.py | mdhvezda | ||||||||||||||||||||||||||||||||||||||||||||
| @lxterminal -e "/home/jimmy/scripts/projects/test.sh" | |||||||||||||||||||||||||||||||||||||||||||||
| @lxterminal -e "/home/jimmy/scripts/projects/test.sh" | recovery code: | /home/mdh/downloads | |||||||||||||||||||||||||||||||||||||||||||
| http://connect.raspberrypi.com | |||||||||||||||||||||||||||||||||||||||||||||
| *************************************************************************** | |||||||||||||||||||||||||||||||||||||||||||||
| Put this in my "Tunnell Scripts" | |||||||||||||||||||||||||||||||||||||||||||||
| #!/bin/bash | |||||||||||||||||||||||||||||||||||||||||||||
| pause(){ | |||||||||||||||||||||||||||||||||||||||||||||
| Â read -n1 -rsp $'Press any key to close the terminal...\n' | |||||||||||||||||||||||||||||||||||||||||||||
| } | |||||||||||||||||||||||||||||||||||||||||||||
| echo Script is running | |||||||||||||||||||||||||||||||||||||||||||||
| pause | |||||||||||||||||||||||||||||||||||||||||||||
| *************************************************************************** | |||||||||||||||||||||||||||||||||||||||||||||