Re: Shutdown montitor via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 09.12.2005 um 16:13 schrieb Andy Pieters:

I was trying to execute the

xset dpms force off

command via ssh on a remote machine but it keeps saying

xset: unable to open display ""

Hi Andy, so far normal behavior.

When I am physically on that machine, doing the same command results in the
montitor shutting off.

I tried ssh -X, and ssh -x, tried DISPLAY=:0.0 xset but none of it works.

You dont want to forward to your local X session. Dont do that ;)


Anyone has a clue?

set up your environment

# export DISPLAY=:0

- If your X server is up,
- and no one is logged in.

Which display mananger is running (gdm, xdm ,kdm) ?


You need access to the X session cookie.

Keyword: MIT-MAGIC-COOKIE-1, XDM-AUTHORIZATION-1

Read man Xsecurity and man xauth

It should be in your .Xauthority file ...

Coping as root is enough.

something like

# cp /etc/X11/xdm/......MIT-MAGIC-COOKIE-1 $HOME/.Xauthority

Its to long ago to be exact. Just look into man pages.

Good luck.

Moire


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux