Run Qt on Boot up

36 views
Skip to first unread message

sam.a...@gmail.com

unread,
Aug 29, 2018, 9:29:47 PM8/29/18
to BeagleBoard

Hi All,

I am trying to run Qt program binary on boot up. I followed this process: https://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html
and made a script. I am able to start and stop the script and it works fine, but when I enter the command "sudo update-rc.d NameOfYourScript defaults"  and restart my board, it does not run at boot up.
How can I make my script run at boot up?

I would really appreciate any help.

Thanks

Robert Nelson

unread,
Aug 29, 2018, 9:44:17 PM8/29/18
to Beagle Board, Samer Abbas
Just use slim and openbox, see what i did here:

https://www.digikey.com/eewiki/display/linuxonarm/FLIR+Lepton+on+BeagleBone+Black+and+Green

Once tuned correctly, your qt app will be up within 15seconds of power on..

Regards,

--
Robert Nelson
https://rcn-ee.com/

sam.a...@gmail.com

unread,
Aug 30, 2018, 10:13:00 PM8/30/18
to BeagleBoard
Hi Robert,

I am able to get it working on beagleboard using slim and openbox, but its not working on my beagle clone. As in my beagle clone I don't have the HDMI display connected at the startup, and slim does not launch. How can I get slim to launch even if nothing is connected at HDMI, the way lightdm does?

Thank you

sam.a...@gmail.com

unread,
Sep 4, 2018, 3:46:31 PM9/4/18
to BeagleBoard
Hi Robert,

I finally got it working following procedure at the bottom of this link: https://gist.github.com/interwebjill/0b3dcdc56d2d9f0b646534a6207899f7

1. sudo vi /etc/xdg/autostart/myapp.desktop


2. Copy following in the file:

 [Desktop Entry]
 Type=Application
 Exec=/home/debian/./myapp
 Name=myapp
 Comment=Startup Myapp on load

And just restart, and Qt program loads at bootup.

Thank you
Reply all
Reply to author
Forward
0 new messages