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

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

City Code Table for Casio SGW300HD-1AV Watch

How to removed synced Picasa photos from Samsung Galaxy Nexus photo galery