Достаточно прописать в /etc/profile (или в $HOME/.profile, если нет рутовых прав)

DISPLAY="`who -m | cut -f2 -d'(' | cut -f1 -d')'`:0.0" # Solaris, Linux, Tru64
#DISPLAY="`who -mR | cut -f2 -d'(' | cut -f1 -d')'`:0.0" # HP-UX
export DISPLAY

Обсуждение закрыто.