This is what i got with
systemctl status rc-local.service
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: No protocol specified
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: Error: Can't open display: (null)
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: Failed creating new xdo instance
- déc. 07 16:09:48 PKPIE01 sudo[2161]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/firefox -url "theurl"
- déc. 07 16:09:48 PKPIE01 sudo[2161]: pam_unix(sudo:session): session opened for user root by (uid=0)
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: No protocol specified
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: Failed to connect to Mir: Failed to connect to server socket: Aucun fichier ou dossier de ce type
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: Unable to init server: Impossible de se connecter : Connexion refusée
- déc. 07 16:09:48 PKPIE01 rc.local[2157]: Error: cannot open display: :0.0
- déc. 07 16:09:48 PKPIE01 sudo[2161]: pam_unix(sudo:session): session closed for user root
And this is what i execute in my /etc/rc.local
working when I run
sudo /etc/rc.local
in terminal but doesn't work at restart :
sleep 45s
export DISPLAY=:0.0 xdotool
export DISPLAY=:0.0 firefox
sudo /usr/bin/firefox -url "the url"
exit 0
Any clues ? I'm really new to this, so if you have any good advices or best practices, let me know !
sudo
is not applicable in rc.local. – chili555 Dec 07 '17 at 15:45I forgot to put my xdotool line there, but it's present in my rc.local
– Kyl' Dec 08 '17 at 06:14