Saturday, 29 December 2012

Forwarding X session to your Mac or Linux

This would have saved me countless hours messing with VNC that were not necessary.

You can forward x session programs (firefox, wireshark, etc.) from your linux server to your Mac or Linux workstation without using VNC.

It is done instead by ssh forwarding.

Open a terminal and create a ssh connection
ssh -Y user@serveraddress

The -Y option is what does all the magic and enables x session forwarding.

EXCEPTIONS AND REQUIREMENTS:
You must have the X Window System installed on your remote computer you are trying to connect to.
You can run the following command to ensure that you have all the required packages installed.
yum groupinstall “X Window System” “GNOME Desktop Environment”

once you are at the terminal run any program or script that you have access to.

voila!

If you are using a Mac, it will open an X11 session for you and display the program accordingly

0 comments:

Post a Comment