PuTTY export client display on login for opening X application and terminal.

export DISPLAY=$(echo $SSH_CLIENT |awk \'{print $1\”:0.0\”}\’)


SSH_CLIENT contains the IP and the port of the client machine. So we need to export (Client IP):0.0 for the display on the client machine. If the above is put in .bashrc or .bash_profile or .profile, then the DISPLAY variable will be set based on the client machine.

On screen display of a command

Bookmark this category
delay: 2d On screen display of a command. $ date|osd_cat This is very useful if you need to show someone some text from a distance. (Like someone standing over your shoulder…)

I\’d recommend aliasing it to something like:

alias osd_cat=\”osd_cat -o 400 -s 8 -c blue -d 60 -f osd_cat -f -*-bitstream vera sans-*-*-*–200-*-*-*-*-*-*-*\”

xosd is the utility that provides osd_cat.

* View this command to comment, vote or add to favourites * View all commands by din7


by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/fWCQvX-EYxw/on-screen-display-of-a-command.