Quick and Dirty Things

I find a lot of solutions to problems that don’t necessarily warrant a full blog post. Here’s where they end up so others searching for answers can find them.

Linux

Error when trying to print with lpr
When trying to print (on a recently setup Debian Linux box) from the command line with “lpr file-to-print.txt” I received the following error: “lpr: Error – no default destination available.” A simple fix was to load up CUPS (http://hostname:631), go to Manage Printers, and set a default printer.

OS X

OS X Dock not centered
I checked out DockSpaces and then realized it’s not really going to be useful to me. For some reason it changed my dock so that it was down in the corner on the left side, rather than centered on the left like I have it. In order to reset it I had to drop to Terminal and type:
defaults write com.apple.dock pinning middle; killall Dock