---------------------/etc/profile-------------- /usr/local/bin /usr/bin /bin /usr/X11R6/bin ---------------------------------------------??? /usr/local/bin /usr/bin /bin /usr/X11R6/bin --------------------startxwinlocal.bat------------ . /usr/bin /cygdrive/c/WINDOWS/system32 /cygdrive/c/WINDOWS /cygdrive/c/WINDOWS/system32/WBEM /cygdrive/c/Program Files/java/jdk1.6.0_11/bin /cygdrive/c/Program Files/java/jdk1.6.0_11/jre/bin /cygdrive/c/Program Files/java/jdk1.6.0_11/jre/bin/client /cygdrive/c/ant/apache-ant-1.7.1/bin -----------------------------------??? /usr/bin /usr/bin -------------------------------/etc/profile.d/lapack.sh /usr/lib/lapack ################################################## startxwinlocal.bat ################################################## Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. c:\>cd cygwin c:\cygwin>cd bin c:\cygwin\bin>startxwinlocal.bat >REM @echo off >SET DISPLAY=127.0.0.1:0.0 >REM >REM The path in the CYGWIN_ROOT environment variable assignment assume >REM that Cygwin is installed in a directory called 'cygwin' in the root >REM directory of the current drive. You will only need to modify >REM CYGWIN_ROOT if you have installed Cygwin in another directory. For >REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need >REM to change \cygwin to \foo\bar\baz\cygwin. >REM >REM This batch file will almost always be run from the same drive (and >REM directory) as the drive that contains Cygwin/X, therefore you will >REM not need to add a drive letter to CYGWIN_ROOT. For example, you do >REM not need to change \cygwin to c:\cygwin if you are running this >REM batch file from the C drive. >REM >SET CYGWIN_ROOT=\cygwin >SET RUN=\cygwin\bin\run -p /usr/bin >SET PATH=.;\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\java\jdk1.6.0_11\bin;C:\Program Files\java\jdk1.6.0_11\jre\bin;C:\Program Files\java\jdk1.6.0_11\jre\bin\client;C:\ant\apache-ant-1.7.1\bin >REM >REM Cleanup after last run. >REM >if not exist \cygwin\tmp\.X11-unix\X0 goto CLEANUP-FINISH >if exist \cygwin\tmp\.X11-unix rmdir \cygwin\tmp\.X11-unix >REM >REM The error "Fatal server error: could not open default font 'fixed'" is >REM caused by using a DOS mode mount for the mount that the Cygwin/X >REM fonts are accessed through. See the Cygwin/X FAQ for more >REM information: >REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof >REM >if "Windows_NT" == "Windows_NT" goto OS_NT >REM Windows NT/2000/XP/2003 >echo startxwin.bat - Starting on Windows NT/2000/XP/2003 startxwin.bat - Starting on Windows NT/2000/XP/2003 >REM Brief descriptions of XWin-specific options: >REM >REM -screen scr_num [width height] >REM Enable screen scr_num and optionally specify a width and >REM height for that screen. >REM Most importantly, any parameters specified before the first -screen >REM parameter apply to all screens. Any options after the first -screen >REM parameter apply only to the screen that precedes the parameter. >REM Example: >REM XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2 >REM All screens will be fullscreen, but screen 2 will be depth 8, while >REM screens 0 and 1 will be the default depth (whatever depth Windows >REM is currently running at). >REM -multiwindow >REM Start an integrated Windows-based window manager. Not to be used >REM with -rootless nor -fullscreen. >REM -rootless >REM Use a transparent root window with an external window manager >REM (such as twm). Not to be used with -multiwindow nor >REM with -fullscreen. >REM -fullscreen >REM Use a window as large as possible on the primary monitor. >REM -multiplemonitors >REM Create a root window that covers all monitors on a >REM system with multiple monitors. >REM -clipboard >REM Enable the integrated version of xwinclip. Do not use in >REM conjunction with the xwinclip program. >REM -depth bits_per_pixel >REM Specify the screen depth to run at (in bits per pixel) using a >REM DirectDraw-based engine in conjunction with the -fullscreen >REM option, ignored if the -fullscreen option is not specified. >REM By default, you will be using a DirectDraw based engine on any >REM system that supports it. >REM -unixkill >REM Trap Ctrl+Alt+Backspace as a server shutdown key combination. >REM -nounixkill >REM Disable Ctrl+Alt+Backspace as a server shutdown key combination (default). >REM Example: >REM XWin -unixkill -screen 0 -screen 1 -screen 2 -nounixkill >REM Screens 0 and 1 will allow Ctrl+Alt+Backspace, but screen 2 will not. >REM -winkill >REM Trap Alt+F4 as a server shutdown key combination (default). >REM -nowinkill >REM Disable Alt+F4 as a server shutdown key combination. >REM -scrollbars >REM Enable resizing of the server display window. Do not use in conjunction >REM with -multiwindow nor with -rootless. >REM -nodecoration >REM Draw the server root window without a title bar or border. >REM Do not use with -mutliwindow nor with -rootless. >REM -lesspointer >REM Hide the Windows mouse cursor anytime it is over any part of the >REM window, even if Cygwin/X is not the window with the focus. >REM -refresh rate_in_Hz >REM Specify a refresh rate to use when used with the -fullscreen option. >REM -trayicon >REM Enable the tray icon (default). >REM -notrayicon >REM Disable the tray icon. >REM Example: >REM XWin -notrayicon -screen 0 -screen 1 -screen 2 -trayicon >REM Screens 0 and 1 will not have tray icons, but screen 2 will. >REM -emulate3buttons [timeout] >REM Emulate 3 button mouse with an optional timeout in milliseconds. >REM -xf86config >REM Specify an XF86Config-style configuration file. >REM -keyboard >REM Specify a keyboard device from the configuration file. >REM >REM Startup the programs >REM >REM Startup the X Server with the integrated Windows-based window manager. >REM WARNING: Do not use 'xwinclip' in conjunction with the ``-clipboard'' >REM command-line parameter for XWin. Doing so would start two clipboard >REM managers, which is never supposed to happen. >\cygwin\bin\run -p /usr/bin XWin -multiwindow -clipboard -silent-dup-error >REM Startup an xterm, using bash as the shell. >\cygwin\bin\run -p /usr/bin xterm -ls -sb +tb -sl 9999 -bg yellow -e /usr/bin/bash -v -l >REM >REM Startup the twm window manager. >REM WARNING: Do not use an external window manager in conjunction with >REM the ``-multiwindow'' command-line parameter for XWin. Doing so >REM would start two window managers, which is never supposed to happen. >REM >REM \cygwin\bin\run -p /usr/bin twm >REM Set a background color. Only needed when not using -multwindow for XWin. >REM \cygwin\bin\run -p /usr/bin xsetroot -solid aquamarine4 > ########################################################### shell in verbose mode ########################################################### # base-files version 3.7-1 # WARNING # # IF THIS FILE IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN # SETUP PROGRAM. IT BECOMES YOUR RESPONSIBILITY. # The latest version as installed by the Cygwin Setup program can # always be found at /etc/defaults/etc/profile # Some resources... # Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69 # Consistent BackSpace and Delete Configuration: # http://www.ibb.net/~anne/keyboard.html # The Linux Documentation Project: http://www.tldp.org/ # The Linux Cookbook: http://www.tldp.org/LDP/linuxcookbook/html/ # Setup some default paths. Note that this order will allow user installed # software to override 'system' software # If you wish to change the path for all users, it is recommended you edit # /etc/bash.bashrc # If you wish all future users to have some default setup, it is recommended you # edit /etc/skel/.bashrc # If you wish to change the path on a user by user basis, it is recommended you # edit ~/.bashrc PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH export PATH MANPATH=/usr/local/man:/usr/share/man:/usr/man:$MANPATH export MANPATH INFOPATH=/usr/local/info:/usr/share/info:/usr/info:$INFOPATH export INFOPATH # Set the user id USER="`id -un`" id -un export USER # Here is how HOME is set, in order of priority, when starting from Windows # 1) From existing HOME in the Windows environment, translated to a Posix path # 2) from /etc/passwd, if there is an entry with a non empty directory field # 3) from HOMEDRIVE/HOMEPATH # 4) / (root) # If the home directory doesn't exist, create it. if [ ! -d "${HOME}" ]; then mkdir -p "${HOME}" echo "Copying skeleton files." echo "These files are for the user to personalise" echo "their cygwin experience." echo echo "These will never be overwritten." echo cd /etc/skel /bin/find . -type f | while read f; do fDest=`echo ${f} | sed -e 's/^\.//g'` if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then /usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}" fi done fi chmod 1777 /tmp 2>/dev/null # Default to unix make mode MAKE_MODE=unix export MAKE_MODE # It is recommended that cvs uses ssh for it's remote shell environment CVS_RSH=/bin/ssh export CVS_RSH # Patches to Cygwin always appreciated ;) # CVSROOT=:pserver:anoncvs@sources.redhat.com:/cvs/src # export CVSROOT # Shell dependent settings case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_/ /'`" in bash | -bash | */bash | \ bash.exe | -bash.exe | */bash.exe ) # Set a HOSTNAME variable HOSTNAME=`hostname` export HOSTNAME # Set a default prompt of: user@host and current_directory PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' ;; ksh* | -ksh* | */ksh* | \ ksh*.exe | -ksh*.exe | */ksh*.exe ) # Set a HOSTNAME variable typeset -l HOSTNAME # Set a default prompt of: user@host and current_directory PS1='^[]0;${PWD}^G ^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m $ ' ;; zsh* | -zsh* | */zsh* | \ zsh*.exe | -zsh*.exe | */zsh*.exe ) # Set a default prompt of: user@host, a command counter, and current_dir ectory PS1='(%n@%m)[%h] %~ %% ' # Set SHELL if not set if [ ! -z "${ZSH_NAME}" -a -z "${SHELL}" ]; then SHELL="/bin/zsh" export SHELL fi ;; sh | -sh | */sh | \ sh.exe | -sh.exe | */sh.exe ) # Set a simple prompt PS1='$ ' ;; * ) # Sorry, this shell has no defaults in /etc/profile, # feel free to add your own. # If you have some recommendations for what these defaults # should be, please contact cygwin@cygwin.com with the # shell details and what you would like added. # Thanks PS1='$ ' ;; esac echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_//' hostname export PS1 # Run all of the profile.d scripts # Note that these are supplied by separate packages # Ascending alphanumerical order enforced if [ -d "/etc/profile.d" ]; then while read f; do if [ -f "${f}" ]; then . "${f}" fi done <<- EOF `/bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort` EOF fi /bin/find -L /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sort LA_PREFIX=/usr LA_LIBDIR=${LA_PREFIX}/lib LA_BINDIR=${LA_LIBDIR}/lapack # Check if the PATH variable is empty or not if test -n "${PATH}"; then # PATH is not empty # Check if path is already in PATH if ! /bin/echo ${PATH} | /bin/grep -q "${LA_BINDIR}" ; then # Path is not already in PATH, append it to PATH export PATH="${PATH}:${LA_BINDIR}" fi else # PATH is empty export PATH="${LA_BINDIR}" fi unset LA_PREFIX unset LA_LIBDIR unset LA_BINDIR alias mc='. /usr/share/mc/bin/mc-wrapper.sh' export MANPATH="${MANPATH}:/usr/ssl/man" export QTDIR=/usr/lib/qt3 export QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++ export MANPATH="${MANPATH}:/usr/share/qt3/doc/man" # tetex-profile.sh -- setup TEXDOCVIEW variables for texdoc on Cygwin # 'cygstart %s' as suggested by Igor Pechtchanski TEXDOCVIEW_dvi=${TEXDOCVIEW_dvi-'cygstart %s'} TEXDOCVIEW_html=${TEXDOCVIEW_html-'cygstart %s'} TEXDOCVIEW_pdf=${TEXDOCVIEW_pdf-'cygstart %s'} TEXDOCVIEW_ps=${TEXDOCVIEW_ps-'cygstart %s'} TEXDOCVIEW_txt=${TEXDOCVIEW_txt-'cygstart %s'} export TEXDOCVIEW_dvi TEXDOCVIEW_html TEXDOCVIEW_pdf TEXDOCVIEW_ps TEXDOCVIEW_tx t # set SHELL if not set if [ ! -z "$ZSH_NAME" -a -z "$SHELL" ]; then export SHELL="/bin/zsh" fi # Uncomment to use the terminal colours set in DIR_COLOR # eval "`dircolors -b /etc/DIR_COLORS`" # Default to removing the write permission for group and other # (files normally created with mode 777 become 755; files created with # mode 666 become 644) umask 022 # Define default printer PRINTER="" case `uname -s` in CYGWIN_NT-*) PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVer sion\Windows\Device' | sed 's/,.*$//'`" ;; CYGWIN_9?-*) PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print \Printers\Default'`" ;; esac uname -s regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Devic e' | sed 's/,.*$//' export PRINTER # Make sure we start in home unless invoked by CHERE if [ ! -z "${CHERE_INVOKING}" ]; then unset CHERE_INVOKING else cd "${HOME}" fi # Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails # about this on the lists! # If this message keeps appearing and you are sure it's a mistake (ie, don't # email about it!), comment out the test below. case `id -ng` in mkpasswd ) echo "Your group is currently \"mkpasswd\". This indicates that" echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "Note that the -d switch is necessary for domain users." ;; mkgroup ) echo "Your group is currently \"mkgroup\". This indicates that" echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "Note that the -d switch is necessary for domain users." ;; mkgroup_l_d ) echo "Your group name is currently \"mkgroup_l_d\". This indicates that not" echo "all domain users and groups are listed in the /etc/passwd and" echo "/etc/group files." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l -d > /etc/passwd" echo "mkgroup -l -d > /etc/group" echo echo "This message is only displayed once (unless you recreate /etc/group)" echo "and can be safely ignored." # only display the above once cp -f /etc/group "${HOME}/group.mkgroup_l_d" \ && ( [ -w /etc/group ] || chmod --silent a+w /etc/group ; )\ && sed -e 's/^mkgroup_l_d/mkgroup-l-d/' "${HOME}/group.mkgroup_l_d" > /etc/gro up \ && chmod --silent --reference=/etc/passwd /etc/group rm -f "${HOME}/group.mkgroup_l_d" ;; esac id -ng # base-files version 3.7-1 # To pick up the latest recommended .bash_profile content, # look in /etc/defaults/etc/skel/.bash_profile # Modifying /etc/skel/.bash_profile directly will prevent # setup from updating it. # The copy in your home directory (~/.bash_profile) is yours, please # feel free to customise it to create a shell # environment to your liking. If you feel a change # would be benifitial to all, please feel free to send # a patch to the cygwin mailing list. # ~/.bash_profile: executed by bash for login shells. # source the system wide bashrc if it exists if [ -e /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi # base-files version 3.7-1 # WARNING # # IF THIS bash IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN # SETUP PROGRAM. IT BECOMES YOUR RESPONSIBILITY. # # The latest version as installed by the Cygwin Setup program can # always be found at /etc/defaults/etc/bash.bashrc # System-wide .bashrc file # source the users bashrc if it exists if [ -e "${HOME}/.bashrc" ] ; then source "${HOME}/.bashrc" fi # base-files version 3.7-1 # To pick up the latest recommended .bashrc content, # look in /etc/defaults/etc/skel/.bashrc # Modifying /etc/skel/.bashrc directly will prevent # setup from updating it. # The copy in your home directory (~/.bashrc) is yours, please # feel free to customise it to create a shell # environment to your liking. If you feel a change # would be benificial to all, please feel free to send # a patch to the cygwin mailing list. # User dependent .bashrc file # Shell Options # ############# # See man bash for more options... # Don't wait for job termination notification # set -o notify # Don't use ^D to exit # set -o ignoreeof # Use case-insensitive filename globbing # shopt -s nocaseglob # Make bash append rather than overwrite the history on disk # shopt -s histappend # When changing directory small typos can be ignored by bash # for example, cd /vr/lgo/apaache would find /var/log/apache # shopt -s cdspell # Completion options # ################## # These completion tuning parameters change the default behavior of bash_complet ion: # Define to access remotely checked-out files over passwordless ssh for CVS # COMP_CVS_REMOTE=1 # Define to avoid stripping description in --option=description of './configure --help' # COMP_CONFIGURE_HINTS=1 # Define to avoid flattening internal contents of tar files # COMP_TAR_INTERNAL_PATHS=1 # If this shell is interactive, turn on programmable completion enhancements. # Any completions you add in ~/.bash_completion are sourced last. # case $- in # *i*) [[ -f /etc/bash_completion ]] && . /etc/bash_completion ;; # esac # History Options # ############### # Don't put duplicate lines in the history. # export HISTCONTROL="ignoredups" # Ignore some controlling instructions # export HISTIGNORE="[ ]*:&:bg:fg:exit" # Whenever displaying the prompt, write the previous line to disk # export PROMPT_COMMAND="history -a" # Aliases # ####### alias rit='xterm -sb +tb -sl 9999 -e ssh -Y kayrun.cs.rit.edu -l swm &' alias rita='xterm -sb +tb -sl 9999 -e ssh -Y aragorn.cs.rit.edu -l swm &' alias ritd='xterm -sb +tb -sl 9999 -e ssh -Y donetsk.cs.rit.edu -l swm &' alias ritn='xterm -sb +tb -sl 9999 -e ssh -Y nial.cs.rit.edu -l swm &' alias ritq='xterm -sb +tb -sl 9999 -e ssh -Y queeg.cs.rit.edu -l swm &' alias ritp='xterm -sb +tb -sl 9999 -e ssh -Y paradise.cs.rit.edu -l swm &' alias ritm='xterm -sb +tb -sl 9999 -e ssh -Y moxie.cs.rit.edu -l swm &' alias x='xterm -ls -sb +tb -sl 9999 &' alias ls='ls -F' # Some example alias instructions # If these are enabled they will be used instead of any instructions # they may mask. For example, alias rm='rm -i' will mask the rm # application. To override the alias instruction use a \ before, ie # \rm will call the real rm not the alias. # Interactive operation... # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' # Default to human readable figures # alias df='df -h' # alias du='du -h' # Misc :) # alias less='less -r' # raw control characters # alias whence='type -a' # where, of a sort # alias grep='grep --color' # show differences in colour # Some shortcuts for different directory listings # alias ls='ls -hF --color=tty' # classify files in colour # alias dir='ls --color=auto --format=vertical' # alias vdir='ls --color=auto --format=long' # alias ll='ls -l' # long list # alias la='ls -A' # all but . and .. # alias l='ls -CF' # # Functions # ######### # Some example functions # function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; } DISPLAY=127.0.0.1:0.0 export DISPLAY # Set PATH so it includes user's private bin if it exists # if [ -d "${HOME}/bin" ] ; then # PATH=${HOME}/bin:${PATH} # fi # Set MANPATH so it includes users' private man if it exists # if [ -d "${HOME}/man" ]; then # MANPATH=${HOME}/man:${MANPATH} # fi # Set INFOPATH so it includes users' private info if it exists # if [ -d "${HOME}/info" ]; then # INFOPATH=${HOME}/info:${INFOPATH} # fi sidney@quarkhome ~ $