Nethence Documentation Lab Webmail Your IP BBDock  


Those documents are obsolete, please use the Nethence Documentation instead.

HomeUnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigsPrivate

Cygwin configuration
 
Installation
Fetch cygwin (http://www.cygwin.com/) and add those packages (use the search box),
devel/cvs
devel/gcc
devel/gcc-g++
devel/make
editors/vim
graphics/ImageMagick
net/lftp
net/openssh
#net/openssl
net/rsync
system/util-linux
shells/pdksh (WTF only mksh is now available?)
utils/bzip2
#utils/diffutils (now by default!)
#utils/file (now by default!)
utils/mc
utils/screen
web/wget
#x11/xauth
Note. Don't install "x11-base", use Xming instead.
Note. GNU screen is now included !!! (utils/screen) -- no need to hack anymore
Note. if you can't find a package in the setup tree, try to search it from there : http://cygwin.com/packages/ . And fetch it directly from the repo : http://cygwin.cict.fr/ & ftp://mirror.cict.fr/cygwin/ .
 
Terminal configuration
New configuration,
right click on title bar > options
Mouse / right click action: Paste
Window / Rows: 50
 
Bash environment
Inside cygwin's terminal,
cd ~/
mv .bashrc .bashrc.dist
sed '/^$/d; /^#/d' .bashrc.dist | tee .bashrc.dist.clean > .bashrc
vi .bashrc
add,
case "$-" in *i*)
PS1='$HOSTNAME> '

alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias ll='ls -alkF'
;;
esac
note. previous version used to start with,
#unset TMP
#unset TEMP
but it is now starting with,
[[ "$-" != *i* ]] && return
apply,
. ./.bashrc 
 
 

Last update: May 14, 2013