I write a bash file thus:
#!/bin/bash
echo 1000 |sudo tee /sys/class/backlight/intel_backlight/brightness
(that changes the screen's brightness)
I need it to run at startup, but because it requires the sudo pass-phrase I must enter the pass-phrase manually. How can I reform this code not to require the sudo pass-phrase at run time?