There are times when using the sudo command or, as in the example, the xset command, we encounter the following error:
CODE
text
xset -dpms off
No protocol specified
Can't open display :0To solve it we execute the following:
Bash
echo «» >> $HOME/.bashrc && echo «export XAUTHORITY=$HOME/.Xauthority» >> $HOME/.bashrc && cd $HOME && . .bashrcRegards, rokitoh
:wq!
Comments