Tuesday, April 17, 2007

Linux Programming Environment Settings in Windows XP (with VMware)

  • GNU Emacs color settings & syntax highlighting for 256-color terminals (with PuTTy and screen):
    • See EmacsWiki: PuTTy for PuTTy settings.
      • Just change "xterm-256color" to "putty-256color" in "terminal-type-string".
    • Install "xterm-256color.el" under "lisp/term" directory.
      • Create "putty-256color.el" having the following line in the same directory:
        • (load "term/xterm-256color" nil t)
    • Install (from source) 256-color-enabled "screen".
    • Add "term putty-256color" in "$HOME/.screenrc".
  • Static IP address with NAT for Ubuntu server in VMware:
    • Update "interface" file under "/etc/networking" as follows:
      • From:

        iface eth0 inet dhcp


      • To:

        iface eth0 inet static
        address xxx.yyy.zzz.abc
        gateway xxx.yyy.zzz.2
        netmask 255.255.255.0
        network xxx.yyy.zzz.0
        broadcast xxx.yyy.zzz.255