NOV 27

It took me a little while to put this all together, but here’s my configuration. Sharing from an HP MediaSmart to Ubuntu 8.10. I’m not sure if smbfs is required, since I’m using cifs.

$ apt-get install smbfs winbind

/etc/fstab

//foo/bar /mnt/foo cifs    rw,uid=1000,gid=1000,auto,file_mode=0644,dir_mode=0755,credentials=/root/.smb_credentials 0 0

uid and gid set the permissions on the share to my user account. file_mode and dir_mode are there to make the permissions on the files and directories correct.

/root/.smb_credentials

username=foo
password=bar

Don’t forget to make sure .smb_credentials are properly chown’ed to root and chmod’ed to 600 so that no one else can read them!

NOV 14

A demonstration of code/syntax highlighting in Typo. To install:

$ script/plugin install git://github.com/kejadlen/typo_textfilter_ultraviolet.git

Some examples:

class Foo
  def bar
    puts "hello world"
  end
end

C with blackboard theme and line numbers:

   1  void bar() {
   2    printf("hello world\n");
   3  }

Objective-C with the idle theme:

#import <Foundation/NSObject.h>

@interface Fraction: NSObject {
    int numerator;
    int denominator;
}

-(void) print;
-(void) setNumerator: (int) d;
-(void) setDenominator: (int) d;
-(int) numerator;
-(int) denominator;
@end