How to configure start up apps on raspbian os - MrLiambi's blog

Breaking

My tweets

Advertisement

Saturday, 3 October 2020

How to configure start up apps on raspbian os

1) This is how you configure start up apps on raspbian :

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

2) Add the following code to the autostart script 

@sh /home/pi/startsynergy.sh

3) Now let create the startup script for example a script that lauches synergy keyboard and mouse sharing on raspberry pie :

nano startsynergy.sh

Put the following code in the script

#!/bin/sh 

killall synergyc

sleep 1

synergyc --name pi 192.168.1.66

exit 0

4) Now add execute permissions to the script

   sudo chmod +x /home/pi/startsynergy.sh


5) Reboot your pie

sudo shutdown -r 0




No comments:

Post a Comment