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

Share this

Related Posts

Latest
Previous
Next Post »