Various programming notes and half-baked ideas. Maybe I'll formalize them for public consumption (when I get the time -- HA!)
Cygwin packages needed to run the software build tools:
- pdksh (or mksh)
Create a new shortcut on the desktop that targets c:\cygwin\bin\rxvt.exe. Then right click -> Properties to change Target to:
C:\cygwin\bin\rxvt.exe -fn fixedsys -bg black -fg #[[C0FFC0]] +sb -g 126x47+0+0 -ls -title "cygwin_KSH" -e /usr/bin/ksh -l
Secure shell (ssh) lets us interact with the repository server without prompting for a password each and every time (except for this first time.) Be careful with the spacing and funky characters as you type in the commands.
- Double click on the cygwin_KSH shortcut on your Desktop. You'll get a unix shell and a bunch of weird text (we'll deal with that later.)
- Type mkdir ~/.ssh
- Type scp cvsuser@CVSSERVER:.ssh/id_rsa ~/.ssh/id_rsa
- When prompted if you want to trust the host, enter yes.
- When prompted for a password, use the administrator password du jour (I won't document it since it will change)
Let's get rid of that weird text when you start cygwin_KSH, and initialize the environment. You need to copy some files from the repository server.
- Double click on the cygwin_KSH icon that you just copied. You'll get a unix shell and a bunch of weird text (again.)
- Type scp cvsuser@CVSSERVER:.profile ~/.profile
- Type scp cvsuser@CVSSERVER:etc.profile /etc/profile
- Type exit
If you're a geek like me and you really care, here's what $HOME/.profile looks like:
export [[CVS_RSH]]=/usr/bin/ssh export CVSROOT=:ext:cvsuser@CVSSERVER:/apc/repository export BUILDTOOLS=$HOME/buildtools export PATH=$PATH:$BUILDTOOLS/shell:/cygdrive/c/ibm/uv/bin [ -d buildtools ] && cvs update –P –d buildtools
You also copied in a modified /etc/profile that comments out the PS1 environment settings.
If you want to access the source code repository from the internet (e.g. you're programming in a hotel room in Greensboro, while munching on a bag of Dorito's in your underwear), you can change the ip-address in your $HOME/.profile from CVSSERVER to 66.20.XXX.XXX using vi or your favorite Windows editor.
The buildtools directory contains scripts and programs for building products. Typing in the cvs command below (a) verifies that all the components are properly installed, and (b) checks out a fresh copy of the utilities.
- Double click on cygwin_KSH
- Type cvs checkout buildtools
- Type exit
Now you're ready to build your own work area.