Skip to content

Instantly share code, notes, and snippets.

@Vitexus
Last active January 29, 2016 11:14
Show Gist options
  • Save Vitexus/9ef0b082887fcb97b77e to your computer and use it in GitHub Desktop.
Save Vitexus/9ef0b082887fcb97b77e to your computer and use it in GitHub Desktop.
How to show logs on remote X display
#!/bin/bash
TERM="urxvt"
killall $TERM
killall x2x
export DISPLAY=10.1.0.9:0
$TERM -sl 0 -geometry 320x20 -e ~/bin/syslog &
$TERM -sl 0 -geometry 320x30+0+265 -e ~/bin/sqllog &
$TERM -sl 0 -geometry 320x30+0+660 -e ~/bin/webserverlog &
x2x -west -from :0 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment