Install X11
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xauth
Install X11 on the Client
Mac
Apple contributes to the development of XQuartz, an X11 server designed to run on OS X. Download the software here and follow the installer’s instructions.
Windows
Connect
Connecting from a Linux or OS X client requires adding one extra parameter to your SSH command, the -X flag:
ssh -X root@12.34.56.78
Test
First lets install a simple graphic application to test with:
sudo apt-get install x11-apps
Run the following command to launch a program that watches your cursor:
xeyes