Rex Gozar/Notes

From Pickwiki
Jump to navigationJump to search

Users >> Rex Gozar >> Rex's Notes

Brief

Various programming notes and half-baked ideas. Maybe I'll formalize them for public consumption (when I get the time -- HA!)

Cygwin Packages

Cygwin packages needed to run the software build tools:

  • cvs
  • cygutils
  • file
  • openssh
  • openssl
  • patch
  • patchutils
  • pdksh (or mksh)
  • rxvt
  • sharutils
  • unzip
  • vim
  • zip

cygwin_KSH Shortcut

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

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.

  1. 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.)
  2. Type mkdir ~/.ssh
  3. Type scp cvsuser@CVSSERVER:.ssh/id_rsa ~/.ssh/id_rsa
  4. When prompted if you want to trust the host, enter yes.
  5. When prompted for a password, use the administrator password du jour (I won't document it since it will change)


environment variables

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.

  1. Double click on the cygwin_KSH icon that you just copied. You'll get a unix shell and a bunch of weird text (again.)
  2. Type scp cvsuser@CVSSERVER:.profile ~/.profile
  3. Type scp cvsuser@CVSSERVER:etc.profile /etc/profile
  4. 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.


buildtools

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.

  1. Double click on cygwin_KSH
  2. Type cvs checkout buildtools
  3. Type exit

Now you're ready to build your own work area.


http://www.autopower.com/rgozar/pixel.gif