Ubuntu Version: 22.04.1 LTS
Hey! I'm trying to run startup.sh
located in /root/startup.sh
on startup. This is the content of the file:
synclient VertScrollDelta=-100
synclient CoastingFriction=35
synclient MinSpeed=0.05
synclient MaxSpeed=0.7
echo "All went according to plan..."
when I run the file manually using sudo /root/startup.sh
then all goes according to plan, but after I wrote the following line in the thing that opens when you type crontab -e
:
@reboot root sh /root/startup.sh >/dev/null 2>&1
and restarted my computer, nothing happened.I tried using this answer here, with the comment what you have to do on ubuntu.
Does anybody know how to fix this?
Logs:
Jan 17 11:04:10 sexy-cat-girl-computer CRON[1015]: (originalusernamelol) CMD (root sh /root/startup.sh >/dev/null 2>&1)
and with only @reboot root sh /root/startup.sh
:
Jan 17 11:01:34 sexy-cat-girl-computer CRON[1026]: (originalusernamelol) CMD (root sh /root/startup.sh)
Jan 17 11:01:34 sexy-cat-girl-computer CRON[976]: (CRON) info (No MTA installed, discarding output)
I think discarding output isn't bad, right?