Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Solution to the error: “cannot open display: :0.0″

Leer en espanol
Solution to the error: “cannot open display: :0.0″

Table of contents

CODEtextxset -dpms off No protocol specified Can't open display :0 To solve it ===

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 :0

To solve it we execute the following:

Bash
echo «» >> $HOME/.bashrc && echo «export XAUTHORITY=$HOME/.Xauthority» >> $HOME/.bashrc && cd $HOME && . .bashrc

Regards, rokitoh

:wq!

Comments