[SLL] screen caviot WAS: vim is slow to launch
Brian Hatch
bri at ifokr.org
Tue Jan 22 09:27:58 PST 2008
At practically 2008-01-21 21:21 -0800, Ryan Allen vocalized:
> On host system start a screen session, make a few windows, detach.
> Later, ssh into that system remotely, and re-attach screen. The env
> implies you are sitting at a X session, but you aren't...
Yeah, I've had that problem too.
I've got a few scripts that help out in this situation:
whichx: shows you what X display you're using (and
if it's functional)
getxdisplay: find an X display that's functional and
output the DISPLAY and related variables.
Looks through the environment of processes
(x-session-manager, gnome-screensaver, etc)
to find suitable displays. Will find
local, ssh, and nx displays.
rex: alias to import variables from getxdisplay
renx: alias to import variables from getxdisplay -nx
resshx: alias to import variables from getxdisplay -sshx
I'll see if I can pretty these up and post them.
--
Brian Hatch "I only talk seriously
Systems and on the first Thursday
Security Engineer of every month.
http://www.ifokr.org/bri/ Between one and three."
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists2.linuxjournal.com/pipermail/linux-list/attachments/20080122/66dd8b4d/attachment.sig
More information about the linux-list
mailing list