App loading at linux boot

General programming chat and advice for beginners

5 posts
by unnamed7 » Mon Jun 18, 2012 8:52 pm
Hi,

i would like to start my custom graphical application on linux startup just like in this video - http://www.youtube.com/watch?v=iKhnoQMwjmQ

where do i start ? thanks for any help
Posts: 32
Joined: Mon Jun 18, 2012 8:44 pm
by gordon@drogon.net » Tue Jun 19, 2012 2:07 pm
unnamed7 wrote:Hi,

i would like to start my custom graphical application on linux startup just like in this video - http://www.youtube.com/watch?v=iKhnoQMwjmQ

where do i start ? thanks for any help


The file (shell script) /etc/rc.local gets run by the startup scripts when the system has been initialised and before it does the last thing which is to print the prompt and allow you to login.

You can put something in there... But whwn your program ends, then the system will carry on and print the login prompt, etc. so you might want to make sure your program never ends, or does a shutdown...

-Gordon
--
Gordons projects: https://projects.drogon.net/
User avatar
Posts: 1544
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
by unnamed7 » Tue Jun 19, 2012 2:19 pm
thanks, but i know this, actually i was rather thinking about how to write app that will start as visual app from command line withouth starting xwindows.

what language should i choose, what libs, maybe any how to's ?

sorry for my poor english, pretty hard for me to explain what i'am thining about :P
Posts: 32
Joined: Mon Jun 18, 2012 8:44 pm
by gordon@drogon.net » Tue Jun 19, 2012 5:02 pm
unnamed7 wrote:thanks, but i know this, actually i was rather thinking about how to write app that will start as visual app from command line withouth starting xwindows.

what language should i choose, what libs, maybe any how to's ?

sorry for my poor english, pretty hard for me to explain what i'am thining about :P


Well, I have written an app. that starts this way without X. It uses the SDL graphics libraries. It's a 2D type of graphics library. Very low level. However you can run 3D apps. using Open GL and it's varianta that are supported on the Pi. e.g. have a look at the hello_triangle demo - it doesn't need X.

-Gordon
--
Gordons projects: https://projects.drogon.net/
User avatar
Posts: 1544
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
by unnamed7 » Tue Jun 19, 2012 5:33 pm
ok, so i'am gonna try with sdl :)

from the other angle, can someone explain to me how xbmc is written to boot like in the video above ?
Posts: 32
Joined: Mon Jun 18, 2012 8:44 pm