Updated on 9 Dec 2003

Cygwin (GNU+Cygnus+Windows)

Cygwin is a Linux-like environment for Windows

Installation

  1. Download setup.exe from http://cygwin.com/. It downloads all programs, installs and maintains versions.
  2. Execute setup.exe, select [Install from Internet] and click [Next-->] button. The total size will be more than 50MB.

Start Cygwin and bash configuration

  1. To start Cygwin, launch [Cygwin] icon on the desktop. You will automatically login by Windows user, and home directory will be made (/home/logon name). There is no root user for Cygwin, and you do not need to shutdown. If you want to use the other user, you need to login by the other user to Windows.
  2. If you want to configure bash, edit .bashrc in your home directory as below.
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi

    export SHELL=/bin/bash
    export PATH=/usr/X11R6/bin:$PATH

    export PS1="$HOSTNAME:\w$ "

    if [ -n ${DISPLAY} ]; then
    export DISPLAY=localhost:0.0
    fi

    if [ ! -n "${TERM}" ]; then
    TERM=cygwin
    fi

    alias ls="ls -F --color=auto"
    alias la="ls -aF"
    alias ll="ls -l"

Install KDE

  1. Execute setup.exe and enter the url (http://kde-cygwin.sourceforge.net/install). Select all to install.
  2. After the installation, configure the environment. First, grep files
    $ grep "profile.d" /etc/profile
    for i in /etc/profile.d/*.sh ; do
    If you see [for i in /etc/profile.d/*.sh ; do],
    $ ln -s /opt/kde2/bin/kde_setenv /etc/profile.d/kde2.sh
    Otherwise
    $ echo ". /opt/kde2/bin/kde_setenv" >>/etc/profile
    Create
  3. Create configuration file for KDE. create .xserverrc
    $ echo "exec X -screen 0 1024x768x16 -engine 4 -ac -nowinkill -noreset -emulate3buttons 100" > ~/.xserverrc
  4. .xinitrc
    $ echo "/opt/kde2/bin/startkde" > ~/.xinitrc
  5. Start KDE
    $ startx &

Install GNOME

  1. Launch setup.exe and enter the url (http://cygnome.sourceforge.net/install). Select all to install.
  2. Edit C:\Cygwin\startgnome.bat
    set bash=%CYGWIN_ROOT%\bash
    to
    set bash=%CYGWIN_ROOT%\bin\bash
  3. Give an executive permission.
    $ chmod +x /startgnome.bat
  4. After installing KDE, you may see error and not be able to install GNOME. In such a case, execute setup.exe again and select [GNOME-apps], [GNOME-base] etc, and select option [Default] to [Install].

Install GNOME application

  1. CyGNOME distributes applications as GIMP binary. You can download and install.
  2. Open CyGNOME, file list page (http://sourceforge.net/project/showfiles.php?group_id=67909), and download gimp-x.x.x-x.tar.bz2. Extract and install as below,
    $ bzip2 -d gimp-x.x.x-x.tar.bz2
    $ ls gimp*
    gimp-x.x.x-x.tar
    $ tar Cxf / gimp-x.x.x-x.tar

Back - Support
Google
Web www.grape-info.com