serene 0 Posted October 12, 2021 Hi, I installed x11vnc and I want to make it run at startup. I already set it as a service, but I would like to know where the startup script is in Tinkerboard 2S (Debian 10 - Buster). I saw an old post that in 2S the startup script is the same as the one in previous generation, which is /system/etc/init.asus.sh So, I put the command in there, reboot, but it doesn't autorun. I set the permission to be executable (chmod 755). I also experimented by putting it in /boot/cmdline.txt - no luck. Where is the startup script location? Share this post Link to post Share on other sites
Joe 3 Posted October 19, 2021 Hi @serene sudo vi ~/.config/lxsession/LXDE/autostart And add this line to the bottom @x11vnc -noxrecord -forever Thank you. Joe Share this post Link to post Share on other sites
serene 0 Posted October 22, 2021 On 10/18/2021 at 8:25 PM, Joe said: Hi @serene sudo vi ~/.config/lxsession/LXDE/autostart And add this line to the bottom @x11vnc -noxrecord -forever Thank you. Joe Thanks @Joe Is that the generic autostart script location? Can I put other things there to make it automatically run at startup? Share this post Link to post Share on other sites
Joe 3 Posted October 28, 2021 Hi serene: You can refer to the following link https://www.shubhamdipt.com/blog/how-to-create-a-systemd-service-in-linux/ https://www.cloudsavvyit.com/3092/how-to-add-your-own-services-to-systemd-for-easier-management/ https://www.suse.com/support/kb/doc/?id=000019672 Thank. Joe Share this post Link to post Share on other sites
serene 0 Posted November 1, 2021 @Joe Hi Joe, all I ask is about generic autostart script location, for generic purpose, like executing my custom app. Is ~/.config/lxsession/LXDE/autostart for general purpose? Share this post Link to post Share on other sites