Installing X11 for X11 forwarding

centos
$ sudo yum install -y xorg-x11-server-common
$ sudo yum install -y  xorg-x11-xauth

Then logout, login from your shell and execute your X windows application.

Explanation

  1. xorg-x11-server-common is needed for every common file needed in x11
  2. xorg-x11-xauth is needed for X11 authorization utilities