Tuesday, December 31, 2013

How to show custom splash screen logo on boost


When you start your Raspberry Pi you want to show splash same above picture. 


1. Install FBI.


sudo apt-get install fbi                                                                                            








2. Create a config file.

sudo nano /etc/init.d/asplashscreen                                                                








3. Copy text below and then past it to the file.


#! /bin/sh

### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:    
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO


do_start () {


    /usr/bin/fbi -T 1 -noverbose -a /etc/splash.png  

    exit 0
}

case "$1" in

  start|"")
    do_start
    ;;
  restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
  stop)
    # No-op
    ;;
  status)
    exit 0
    ;;
  *)
    echo "Usage: asplashscreen [start|stop]" >&2
    exit 3
    ;;
esac

:



4. Save and Exit by press Ctrl+X ,y and Enter


5. Use FileZilla upload file "splash.png" to folder /home/pi






6. Use terminal move file "splash.png" to folder /etc/ by command below.

sudo mv splash.png /etc/splash.png                                                                


7. Set permission.


sudo chmod a+x /etc/init.d/asplashscreen                                                      

sudo insserv /etc/init.d/asplashscreen                                                             

8. Reboot.


sudo reboot                                                                                                         





9. Oh Perfect!.


No comments:

Post a Comment