Banana Pi: Autostart things

Banana Pi: Autostart things
This is what worked:
Make a file called "XXX.desktop" that looks something liike:

[Desktop Entry]
Name=HotelCity Autostart
Exec=/home/hotelcity/Desktop/HotelCityContent/autostart.sh
Type=Application
Terminal=false

Save it in:
/etc/xdg/autostart

The actual script referred to above can have logic in it, etc...




Run script after login (couldn't get this to work)
edit /etc/rc.local

export DISPLAY=:0
export VDPAU_DRIVER=sunxi

/home/hotelcity/Desktop/autostart.sh

Autostart after login (couldn't get this to work)
Add a .desktop file to your ~/.config/autostart directory (create one if not available) like:
[Desktop Entry] 
Type=Application
Exec=/home/user/Desktop/script.sh

Automatically at lightDm startup:
(Note this is NOT what you want if you want a script to run after login, for that see above)
Edit: /etc/lightdm/lightdm.conf
Add: session-setup-script =/home/pi/Desktop/SCRIPT.sh

Auto-login account

SSH without password

Banana Pi: Quiet Boot

Banana Pi: Quiet Boot
Eliminate boot messages:
edit uEnv.txt. Replace console=tty0 with console=/dev/null

Note the tux logo is not removable (it's compiled into the kernel)


Custom splash:
In theory you can use plymouth, but I never got it to work properly.

You can also use something like FBI (frame buffer image) but I never got this to work properly either:

Enable insserv:
sudo ln -s /usr/lib/insserv/insserv /sbin/insserv

Do this:
http://www.edv-huber.com/index.php/problemloesungen/15-custom-splash-screen-for-raspberry-pi-raspbian

After:
update-rc.d a_splashscreen defaults 98 02