yum install vim-common xorg-* mesa-* caja -y # Rename the existing .Xauthority file by running the following command mv /root/.Xauthority /root/old.Xauthority # xauth with complain unless ~/.Xauthority exists touch /root/.Xauthority # only this one key is needed for X11 over SSH xauth generate :0 . trusted # generate our own key, xauth requires 128 bit hex encoding xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom) # To view a listing of the .Xauthority file, enter the following xauth list