Debian: cannot connect to X server

English
, , ,

Quick tip on KDE based Debian:

When you receive the following error when trying to run a X application with sudo:

1
2
3
kassner@brian:~$ sudo unetbootin
No protocol specified
unetbootin: cannot connect to X server :0

Run the following command and try again:

1
2
kassner@brian:~$ xhost SI:localuser:root
localuser:root being added to access control list