DEV Community

Starch1
Starch1

Posted on

1

Como criar .Xauthority manualmente.

Se o arquivo .Xauthority não existe no seu diretorio home, você deve ver o seguinte erro

xauth
xauth:  file /root/.Xauthority does not exist
Using authority file /root/.Xauthority
Enter fullscreen mode Exit fullscreen mode

Criando o .Xauthority

touch ~/.Xauthority

# Gera um magic cookie aleatorio de 128 bit hex
xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
Enter fullscreen mode Exit fullscreen mode

Depois verifique o arquivo.

xauth list
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay