Notes

Overview/Contents

This page is a collection of things that should be easier found than they really are.
  1. `apt-get install`ed packages
  2. MacFUSE stuff
  3. Combining PDF files with Ghostscript
  4. TPM on OS X (Intel)
  5. Cursor position in X
  6. Macromedia Flash Player and fonts in Linux
  7. TkDiff directories
  8. OProfile and Hyper-Threading
  9. Ubuntu kernel packages
  10. Minolta 1350W Printer

`apt-get install`ed packages

Get the list of packages installed via apt-get that were not auto-installed (i.e. you requested them to be installed):

grep -B1 "Auto-Installed: 0" /var/lib/apt/extended_states |
grep "^Package: " | cut -f 2 -d ' '
-- February 14, 2008

MacFUSE stuff

  1. How do you get the version number of the installed MacFUSE?
    • Probe the loaded module:
      kextstat | grep fusefs
    • Look at CFBundleVersion key in /Library/Extensions/fusefs.kext/Contents/Info.plist
  2. Requisites for building sshfs
  3. MacFUSE tutorial
  4. Patch to fuse-j 2.2.3 to build and run on OS X
-- May 8, 2007

Combining PDF files with Ghostscript

Ghostscript makes it really easy to combine PDF files:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf \
input1.pdf input2.pdf  
-- April 10, 2007

TPM on OS X (Intel)

There is a great page on using the Trusted Platform Module (TPM) on an Intel Mac (first-gen Macbook Pro). Here's some of my errata:

-- March 13, 2007

Cursor position in X

I wasted about 10 minutes today trying to find a way to get the cursor position on my Linux box. I finally found it in the form of xwarppointer, a small program that will write out the location of the mouse on the screen. Note: I had to change the X11 lib directory in the Makefile to get it to compile.

Macromedia Flash Player and fonts in Linux

Fonts in Flash haven't ever worked for me, and it's been fine as most of the Flash I see is ads anyway. But I had to view the text in a Flash file today, so I searched for a while and found out the solution was a simple `apt-get install gsfonts-x11`. Who knew?

TkDiff

I couldn't figure out how to use TkDiff to diff directories, so I wrote this little script:

#/bin/sh
diff -r $1 $2 | grep ^diff | cut -f 3- -d ' ' |
while read line
do
  tkdiff $line &
done

OProfile

OProfile is an awesome tool, but every time I have to set it up, I find myself struggling with another unreported issue. I spent a good while figuring out why I couldn't get callgraph reports. Turns out that on a Pentium 4 with hyper-threading (and probably the rest of the processor family), you just can't get the callgraphs. So I turned it off, and guess what? NO performance hit to the application, and callgraphs worked! Thanks for a useless MP system, Intel!

Ubuntu kernel packages

Minolta 1350W



Thomas Kho <tom@tkho.net>
Last Updated: February 14, 2008