2008-10-28

Install Ubuntu 8.04 from Hard Disk

  • Make an ISO file ubuntu804.iso from Ubuntu's LiveCD (8.04 desktop), put the ISO file in D:/ubuntu804.iso
  • Mount the ISO file or the LiveCD, copy two files CDROM:/casper/{initrd.gz,vmlinuz} to Windows drive D:/
  • Download grub4dos, extract its files to C:/
  • Edit C:/boot.ini, add one new line: C:\grldr="GRUB4DOS"
  • Edit C:/menu.lst
    title Find and Install Ubuntu
    find --set-root /ubuntu804.iso
    kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu804.iso
    initrd /initrd.gz
  • Reboot Windows XP
  • Select GRUB4DOS from the boot menu
  • ... ...
  • Will boot to the same screen as if you're directly booting from the LiveCD.

2008-10-14

Less' history file

偶然发现看 man page 的时候 search 过的字符串是有 history 的, 猜想是 less 的功能, 查了一下根目录下的文件, 发现有一个 .lesshst, 查 less 的 manual, 里面有说到 .lesshst:

. . . Name of the history file used to remember search commands and shell commands between invocations of less. . .

2008-10-13

Compile GNU screen from source

  • $ git clone git://git.savannah.gnu.org/screen.git
  • $ cd screen/src
  • $ aclocal --force
  • $ libtoolize --copy --force
  • $ autoconf --force
  • $ autoheader --force
  • $ automake --add-missing --copy --force-missing
  • $ ./configure --prefix=/usr/local/screen-dev --enable-colors256
  • $ make && make install
N.B.: Run mktar.pl to make traditional screen-X.X.X.tar.gz

See full screen man pages on Fedora Core 3

ubuntu 6.06 上看 man pages 的时候能全屏显示, 但 Fedora 3 上却不能, 研究一番, 可以自己编译 man-db 来解决:

编译 man-db 可能需要依赖 gdbm-devel 或者 db4-devel (ubuntu 上对应 libgdbm-dev 或者 libdb-dev).