Have you ever needed to run an X11 based program like emacs or firefox in a sudo session and received one of the following errors?
X11 connection rejected because of wrong authentication.
Error: cannot open display: localhost:10.0
This blog describes how to fix the problem.
Continue reading Make X11 programs work in an ssh sudo session