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

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS