Auto Setup $DISPLAY pointing to connecting client machine

HOST=$(who -mR |awk -F\( '{print $NF}' |awk -F\) '{print $1}')
export HOST
DISPLAY=$HOST:0.0
export DISPLAY

Comments

Popular posts from this blog