Archives for linux

Installing antialiased Leo on Ubuntu

A little over a month ago I wrote about my off and on efforts to get the Leo text editor running under linux with decent looking antialiased fonts. At long last I have succeeded. Not through any heroic efforts on my part, but by waiting for python and tcltk to finally provide the needed font [...]

apt-get build-dep

I ran across a  tip I want to preserve and pass along.  The original post is at The Telarah Times. apt-get build-dep <package_name> This will get all the dependencies needed to compile your package – providing that package_name is something that would normally install using a simple apt-get install command. For example:If you wanted to [...]

leo font rendering woes

It has been months since I converted my work machine from Windows XP to Ubuntu Hardy. There is only one program I miss, the fabulous Leo text editor. Leo is not just a text editor. If it were only that I would have little use for Leo, since I already use Emacs, the one true [...]

Fixing updatedb in OS X

I find the locate command useful, and so like to keep the locate database more or less current. OS X makes this harder than it needs to be by hiding the updatedb command. Here’s how to fix it. sudo ln -s /usr/libexec/locate.updatedb /usr/local/bin/updatedb

CDPATH vs make

A reader made an interesting comment in reply to an old post. I had experienced some problems running a make file included with the sample code for Joe Armstrong’s Programming Erlang. Gijsbert de Haan wrote: About your directory troubles, you might have to unset CDPATH. I have never taken the time to figure out why, [...]

I want colors

I generally have several terminal windows open, and like them to have different background colors. I wrote this script to automatically rotate background colors as I launch new urxvt terminal instances. #!/bin/bash ## ## rotate background colors in succesive launchings of urxvt terminal ## ## The preferred colors, and how many there are colors=( “#ede1bb” [...]

fixing FreeAgent drives

Some months ago I bought a Seagate FreeAgent usb drive. It turned out that the drive did not play well with linux. After 15 idle minutes it spins down, and closes the usb connection. Later it remounts read-only. After much digging around in the Ubuntu forums I was able to make it work correctly. I [...]

flipping line endings

If you routinely move text files among Windows, Macs, and *nix machines, you may want to convert from one style of line endings to another. The flip program is very handy. Here’s the scoop: Usage: flip [-t|-u|-d|-m] filename[s] Converts ASCII files between Unix, MS-DOS/Windows, or Macintosh newline formats Options: -u = convert file(s) to Unix [...]