linux - How to run an X program from outside the X session (e.g. from the console or SSH) -


Person without logging in to the console, how can I run an X application and display it on that X session? Suppose I am either a root, or I am the only user who is logged in, so in principle I have overtaken it to do so.

  • Login with SSH and run the program that is displayed on the screen of the remote computer (<
  • Amazon import command < Li> Running a keystroke logger for audit purposes

This

No Li

The answer in short is to set you the DISPLAY environment variable Hoog And then the app will run.

The long answer is that we have Xauth, and as long as you are not running on the same machine as the same user who is not likely to work Going on, you do not export Xauth credentials with the account running X client X account. ssh -X handles it for you, which is why it is great, but in the manual process X Run xauth extract - $ DISPLAY on the server account And the data is fed to the xauth merge - to the client account. (Warning: Data is binary.)

On the modern Linux system, there is an X session: 0 and X11 authorization data file is always $ HOME / .Xauthority In Bash:

  export XAUTHORITY = / home / $ your_username / .xauthority export DISPLAY = ': 0' In   

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -