Sunday, July 11, 2010

Installing Crunchbang

  • Download Crunchbang development torrent
  • Format USB as FAT32
  • Download recent version of unetbootin
  • Create Debian Unstable HDMedia environment on USB
  • Copy Crunchbang ISO to USB at root
  • Boot from USB to install

Post install:
  • Add account to sudoers with visudo
  • Add http://ftp.debian.org/debian/ and http://www.debian-multimedia.org/ to /etc/apt/sources.list
  • Add "setxkbmap us &" to ~/.config/openbox/autostart.sh to set US keyboard
  • install ttf-* packages for foreign fonts (Chinese: arphic-uming, Korean: unfonts-extra)
  • Install vim, codecs, etc
  • Customize .vimrc, .bashrc

    Monday, July 5, 2010

    iso install

    1. Find path to USB with: ls -l /dev/disk/by-id/*usb*
    2. Format USB to FAT32: sudo umount /dev/sdx && sudo mkfs.vfat -I -n "custom name" /dev/sdX
    3. Replug USB
    4. Write ISO to usb with: sudo dd if=/path/to/iso of=/dev/sdX bs=4M;sync (or use UNetbootin)
    5. Make USB first in BIOS boot order (hit F2 or Del at startup)

    Thursday, July 1, 2010

    OCR for Linux

    I tried a few solutions to extract text out of a clear image containing alan0@hotmail.com:
    Install with: sudo apt-get install gocr tesseract ocrad

    $ gocr -i email.png
    aIan0hdmaiI.com

    $ convert email.png email.tif # requires tif
    $ tesseract email.tif out
    $ cat out.txt
    Ina rrykeeg a

    $ convert email.png email.ppm # requires p[bgp]m
    $ ocrad email.ppm
    alano_no_mall.


    Upscaling the image slightly improved the results but still none were correct.
    Disappointing ...