Skip to content

Xauth not setup: failed creating new xdo instance #14

@mttbrt

Description

@mttbrt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions