export DISPLAY=`echo $SSH_CLIENT |cut -d ' ' -f 1`:0.0
This bash script set "DISPLAY" environment variable automatically with your ssh client IP address. Put this line in ".bash_profile" if you want to run this whenever you login with ssh connection.
댓글 없음:
댓글 쓰기