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).
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...