I rarely use X11 for system administration. There is one tool, however, which was always invaluable to me: xlax. Sure, there are other solutions but somehow, I got addicted to xlax ever since I was introduced to it by fellow sysadmin.
Until today, that is. I always have source on the disk since it was such a hard thing to find. I run quick xmkmf on it, and... it didn't work! However, since xlax now has a home page which explains everything about XTerm*allowSendEvents I was on right track.
But, now so fast, grasshopper!dpavlin@llin:/rest/unix/x11/xlax2.4$ make gcc -m32 -o xlax -g -O2 -fno-strict-aliasing xlax.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 xlax.o: In function `SetupInterface': /rest/unix/x11/xlax2.4/xlax.c:173: undefined reference to `strlcpy' collect2: ld returned 1 exit status make: *** [xlax] Error 1Argh. I started with Digital UNIX (called OSF/1 back then) and part of my brain which deals with minor adjustments hasn't died yet, so I decided to do quick google search for strlcpy which which has handy link to strlcpy implementation in OpenBSD. Licensing terms aside, I decided to give it a try.
After applying following patch:
diff -urw xlax2.4/Imakefile xlax2.4.strlcpy/Imakefile --- xlax2.4/Imakefile 2008-07-31 22:18:25.000000000 +0200 +++ xlax2.4.strlcpy/Imakefile 2009-04-30 21:32:15.000000000 +0200 @@ -5,8 +5,8 @@ # DEFINES = -DDEBUG DEPLIBS = XawClientDepLibs LOCAL_LIBRARIES = XawClientLibs - SRCS = xlax.c - OBJS = xlax.o + SRCS = xlax.c strlcpy.c + OBJS = xlax.o strlcpy.c ComplexProgramTarget(xlax)and quick xmkmf && make and I got it compiled.
Another trivial change was to implement automatic ssh to each host in mkxlax by adding -e 'ssh $ARGV[$i]' to system xterm line so I will have remote reminals opened by default.
And now, back to real work :-)