Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xauth not setup: failed creating new xdo instance #14

Open
mttbrt opened this issue Oct 12, 2019 · 0 comments
Open

Xauth not setup: failed creating new xdo instance #14

mttbrt opened this issue Oct 12, 2019 · 0 comments

Comments

@mttbrt
Copy link

mttbrt commented Oct 12, 2019

Hello, when I run the first time sudo blink-server I got this errors in the server after using swipe area:

No protocol specified
Error: Can't open display: (null)
Failed creating new xdo instance

I found a solution that worked for me:

  1. Add these instructions to ~/.bashrc file:
export DISPLAY=:0 
export XAUTHORITY=~/.Xauthority
  1. Apply changes:
source ~/.bashrc
  1. Remove old .Xauthority file
cd ~
rm .Xauthority
  1. Create a blank .Xauthority file
touch .Xauthority
  1. Generate a new .Xauthority file:
xauth generate :0 . trusted
  1. Create a new magic-cookie key
randomkey=`/usr/bin/ksh -c 'echo $(( $RANDOM * $RANDOM * 2 ))'` 
  1. Add a new entry for another server
xauth add ${HOST}:0 . $randomkey
  1. Run the server
xhost +local:
sudo blink-server

If someone has a better solution please let me know, I'm just a beginner in Linux environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant