Author Archive

HWCursor?

Sunday, December 14th, 2008

Sometimes I wake up to find that the cursor on my workstation has disappeared.   And it doesn’t seem to be simply invisible, it’s actually not interacting with the desktop in any way.   I can still see the mouse in the list of enumerated USB devices.   Generally the keyboard is still working.

One suggestion I keep running across in my normal google searches is to disable HWCursor in xorg.conf.   Messed around with that for a few days.

After a lot of tests, it turns out that killing xscreensaver fixes the problem…. no need to restart X.

Lately, the problem has stopped happening, so I am considering that an update to x11-misc/xscreensaver may have fixed the problem.

Solaris recovery

Sunday, March 23rd, 2008

Recently, a friend contacted me about recovery of a Solaris box he had made a bit of a mistake on. The problem was, he had moved everything from / into a subdirectory of /, let’s call it /cores for our purposes here. Commands wouldn’t work. He had a running /sbin/sh shell but that was it…. so shell built-ins were all he could do e.g. “echo *”. We fixed it pretty quick, with only minor residual problems, but I thought I’d put down the method here in case it helps someone sometime.

The first problem is that libraries are no longer found along their proper paths…. libc.so is the first problem. That’s easily fixed, however.

# export LD_LIBRARY_PATH=/cores/usr/lib:/cores/lib

That’s the simple part, I’m sure most people know the LD_LIBRARY_PATH tricks to force searching for libraries in other directories. The part that I don’t think people get is… once you’ve done that “ld.so.1″ (the runtime linker) is still in the wrong place. ld.so.1 is responsible for using the LD_* variables in the first place, among the many other wonderful things it does. So running commands from, for example, /cores/usr/bin is still impossible, at least in the standard way.

The second and final trick you need to fix this is to use ld.so.1 to “run” the executable. So, this fails:

# /cores/usr/bin/mv /cores/* /
mv: Cannot find /usr/lib/ld.so.1
Killed

But this allows you to run a command like you’d expect:

/cores/usr/lib/ld.so.1 /cores/usr/bin/mv /cores/* /

Turns out, you can use “ld.so.1″ as an “interpreter” of sorts for executables on some flavors of Unix. At least Solaris and Linux, but I would not be surprised if this works elsewhere, I simply haven’t tested it. On Linux, for example, you would use something like:

/lib/ld-linux.so.2 /bin/ls

To run “ls” in this fashion.

The lesson, boys and girls, is to know your runtime linker, it may save you one day.

Mess

Friday, January 25th, 2008

Glad I don’t have to sort through this.

Cloverfield

Sunday, January 20th, 2008

Just got home an hour ago from seeing Cloverfield. As with a lot of people, I could do without the shaky camera. I never get motion sickness that I can recall but this got close. It’s not the first time camera work in this style this has annoyed me (I’m looking at you, Bourne).

Oh, and not to spoil it for anyone, but the weapons the various military units had available (even conventional) should have turned the big monster into something the consistency of paste, unless it had some unseen and unexplained powers. I mean seriously, they hit it with a lot of ordnance. Once you’ve decide it’s ok to drop bombs on your own city, that opens up a lot of options. That B-2 Spirit alone cares 20 2,000 pound bombs… I mention it because they show a bomb run that gets a couple of direct hits. And then I was wondering why they hadn’t napalmed it yet.

I realize that normally I’d be expected to suspend disbelief (it’s a monster movie, after all), and I would… but going back to my first point with the shaky camera, once I get a bit annoyed at a film, I start to pick it apart. I feel bad about it, but I do it anyway. In other words, giving me a bit of a headache does nothing for my enjoyment of the movie.

I think other than the headache it was an interesting piece of work. I hope they do another one without the hand-held camera, while somehow preserving some of the better aspects. Just so they can explain some things, if nothing else.

WSOP

Friday, July 6th, 2007

John’s at the WSOP again, new blog here.

Getting Emacs to build on Solaris 10.

Tuesday, December 12th, 2006

One of the tools I build on new unix boxes after I get a toolchain of some kind (vendor or GNU) is invariably emacs.

I’ve been working on Solaris 10 more lately, and found that emacs wouldn’t build, and I found that odd… clearly other people had got it to build.

The interesting bit is that it’ll build if you use the right options, but it’ll crash when it exits. I was puzzled by this for awhile, but eventually found the answer on the tubes of the interweb. Unfortunately, I’ve had to recompile it now several times, both at work and home, and I keep having to rediscover this little platform-specific tidbit. Hopefully now that it’s posted here I’ll remember.

I gather than GCC 3.3.x puts some zero-initialized variables in the .bss segment, and that’s a problem with Solaris (at least on SPARC), so the answer is to add “-fno-zero-initialized-in-bss” to $CFLAGS before configure.

I’m still working out how to compile this with Studio 11 from Sun, I’ll update this when I remember the changes necessary.

Storage Networking’s Heaviest Hitters

Wednesday, October 18th, 2006

Knowing Dan-o like I do… I find this hilarious. Article where they interview Dan about storage costs

300

Friday, October 13th, 2006

Just saw a trailer for 300. It’ll be on my list of things to see.

Edit:  Every bit as good as I’d hoped.

Prey

Saturday, August 26th, 2006

I finished a couple of single player games recently… the first of which was Prey. I actually enjoyed it, I thought some of the gameplay ideas were interesting, and I’m sure you’ll see some of these gimmicks showing up in other games. I particular, the idea of a portal has a lot of potential. You can see them in an enhanced form in the upcoming “Portal” game from Valve, to be released with Half-Life 2 Episode 2 I believe.

Themes

Saturday, August 26th, 2006

I finally went looking for a better theme.

This is so much better.