Sample Header Ad - 728x90

Startup script won't run on boot

0 votes
1 answer
250 views
I've been trying to get a very simple startup script but no matter what I try I can't get it to actually run on boot. For simplicity sake I while testing I just wanted to open my Browser, which works perfectly fine when manually executing the script. I'm using Ubuntu 22 LTS. The script itself looks the following and is named: #!/bin/bash google-chrome I tried everything, from placing the script under home/user and naming it startup.sh, trying to get it executed via a cronjob using @ Reboot or using init.d and later even trying to write up a systemd service. NOTHING WORKS. How can it take me multiple days of googling and nothing works? I've already tried the following tutorials and troubleshooting instructions: https://www.baeldung.com/linux/run-script-on-startup https://medium.com/@girishbhasinofficial/configuring-a-script-to-run-at-startup-on-ubuntu-22-04-ffe1f3e649d1 https://www.squash.io/executing-bash-script-at-startup-in-ubuntu-linux/ https://linuxconfig.org/how-to-run-script-on-startup-on-ubuntu-20-04-focal-fossa-server-desktop https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup
Asked by DrDecane (1 rep)
Nov 16, 2024, 08:24 PM
Last activity: Nov 16, 2024, 09:10 PM