No matter how much you want to escape running graphical applications on a remote Linux
server there are times (like when configuring Oracle WebLogic
domains for example) that you are forced to do so. Sometimes, the user you have to be running these applications as is not the same as the your login user, this leads to errors like this...
Ooops! This is easy to resolve though.
Before continuing, make sure you are running ssh
with the -X
switch (and that you have an X11 server
running on your
machine). Now after logging in as your initial user, do this:
That will give you some output similar to this...
Take note of the above and change to the user you need to run the graphical app as...
Now you need to run xauth
again, but this time not using 'list'
and after the 'add'
command you provide the info that the 'list'
command gave you above, like so...
Then if everything went right, you can run your graphical app (xclock
in the screenshot below).
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer