If you need to use X applications/GUI over a remote SSH connection via PuTTY, this tutorial is for you.
What you needXming : an X-Server that starts on top of your desktop. Download Xming and install it. PuTTY : an SSH client. Download PuTTY and save it on your hard disk. Configure Xming
Running X apps as root
This requires a little tweak. Suppose your regular user home directory is /var/home/arul and the root user home directory is /root
If you were able to login as a normal user earlier, a file called .Xauthority would be created in the home directory. Chmod the .Xauthority to 555.
chmod 555 ~/.Xauthority
Login as root from your regular user account.
su - root
Copy the .Xauthority from the regular user's home directory to root user's home directory.
cp /var/home/arul/.Xauthority /root
Now try to open any X apps like xterm or emacs. It should work.
Troubleshooting
If you're not able to open any X apps from the session, you may need to enable X11 SSH Forwarding in the /etc/ssh/ssh_config file
No comments:
Post a Comment