unnamed7
Posts: 42
Joined: Mon Jun 18, 2012 8:44 pm

App loading at linux boot

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

User avatar
gordon@drogon.net
Posts: 1957
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: App loading at linux boot

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/

unnamed7
Posts: 42
Joined: Mon Jun 18, 2012 8:44 pm

Re: App loading at linux boot

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

User avatar
gordon@drogon.net
Posts: 1957
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: App loading at linux boot

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/

unnamed7
Posts: 42
Joined: Mon Jun 18, 2012 8:44 pm

Re: App loading at linux boot

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 ?

Return to “General programming discussion”

Who is online

Users browsing this forum: No registered users and 7 guests