2

I need to run xrestop on a remote machine. When I connect through ssh and run xrestop I get the results for my local machine.

I see that there is an option -display but I don't know how to use it.

How to run xrestop remotely ?

Sam
  • 2,458
  • 5
  • 21
  • 28
Barth
  • 175
  • 1
  • 6
  • Maybe it's because of X11Forwarding. Can you try with **ForwardX11** set to **No** in _~/.ssh/config_ ? – Coren May 09 '12 at 12:38
  • 1
    See also [If you SSH into another computer, how to access other X displays?](http://unix.stackexchange.com/q/26225) and [Open a window on a remote X display (why "Cannot open display")?](http://unix.stackexchange.com/q/10121) – Gilles 'SO- stop being evil' May 11 '12 at 00:37

1 Answers1

3

You use the -display option as normal. The standard display is :0. So if you're logged in via ssh you can run:

xrestop -display :0

Generally you can also explicitly set your DISPLAY shell variable to :0 and all X programs will interact with the remote machines primary display.

utopiabound
  • 3,244
  • 21
  • 19
  • Thank you this is exactly what I wanted. I had tried with "-display :0.0" without success. – Barth May 09 '12 at 12:48