The simplest method is adding the command(s) to
/etc/rc.local (file/location depends on the distribution but Ubuntu uses that; create it if it does not exist). Then you probably want to run your program in background mode using the shell's
&
operator (space separated at the end of the line):
/path_to_app [options] &
If the application uses X11, you can tell X11 to start your application. See for example
Xsession - Debian Wiki[
^] and
CustomXSession - Ubuntu Wiki[
^] . Again use the shell's
&
operator.
If the application does not use X11 (e.g. when it writes directly to the frame buffer), it can be also started as service using a run level script. This is the common method for window less systems in kiosk mode but requires writing a run-level script and confuring that (depends on the method used by the Linux distribution).
These are the methods that come to my mind but there are more.
Showing an image when idle should be handled by the application. It may also show your logo when started.
If you want to show your logo when the system is powered up, you have to change the boot splash image. That depends on the used system and distribution and is an advanced task because it must be done as early as possible in the boot process and requires the SPI display to be ready.
Alternatively you can check if you can use
Plymouth - Ubuntu Wiki[
^] (it might be tricky because you must have your SPI display already up and running).
Quote:
Also I am newbie in Linux and don't know much about it and need a straightforward tutorial!
We all started once with no or little knowledge. But you usually have to understand what you are doing instead of just coyping from a tutorial and should at least know the very basics about the shell and (for your project) the boot and startup process. This applies especially to your system which is not a standard desktop, server, or often used (like the Raspberry Pi) so that many sources (like tutorials) can't be used without modification.