This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Misc programs/scripts/config files I wrote


When I update/build cygwin, I must make sure to kill all cygwin
processes, or I will be required to reboot. So I just wrote a script
using win32 native python to terminate all process that has cygwin1.dll
loaded:

    terminateModule.py cygwin1.dll

Sadly, I can't simply post the .py file out, because it uses a few other
files (I'm too lazy). You can check out
    http://code.google.com/p/windows-config/ 
for details.

Now this might be inappropriate for this ml, but I'm posting in the hope
that what I have done could be useful to other cygwin users. These are
not completely cygwin, but it is definitely most related.

Run the following commands:

    svn checkout http://windows-config.googlecode.com/svn/trunk/ windows-config-read-only
    #(perform a virus scan if you don't trust me:-)
    cd windows-config-read-only/bin/windows
    ./after-check-out.sh #you will see webpages opened, these are some tools you need to install
    ./startup.sh

It started as a simple .bashrc, and I used a local svn server to version
control it in the belief that we should VC anything (of value). Then I
found out google code and switched to avoid syncing my .rc files using a
USB stick between home and work.

There are some .exe files in windows-config-read-only/bin/windows, the
source code of them can be found in windows-config-read-only/gcode.

Some other .exe files are also installed by download-external.sh
(invoked by after-check-out.sh), for e.g., some programs from
sysinternals, Procmon/Procexp/handles/winobj, etc.

startup.sh will invoke substartup.sh to start some programs in
windows-config-read-only/bin/windows/startup, and then it will "ln -sf"
itself into your "$HOMEDRIVE$HOMEPATH/Start Menu/Programs/Startup" so
that next time you login Windows, it will run itself again. 

It will also change your /etc/passwd to set your HOME to
windows-config-read-only! Be careful:-)

Don't worry Windows don't know how to start your startup.sh, startup.sh
will invoke setreg.sh to setup the registry for .sh/bash association,
among other things.

Some other useful things:

= Access MSDN from Emacs (.emacs, helpEmacs.py)

= Integrate windows programs and cygwin programs (grep for shellHelper_vc6/shellHelper_cyg)

= Compile vc6/vc7/vc8/vc9 projects from Emacs with compilation mode (vccompile)

= Access JDK help documents from Emacs (.emacs jdkhelp.sh)

= grep registry (regrep.py)

= replace registry using regexp (regsub.py)

(for e.g. regsub.py 'c:.documents and settings' 'd:\\Profiles' to point
the windows user folder to another disk, which can be useful if you
re-install windows)

= open regedit.exe with the current item specified on the command line
(regopen.py 'HKEY_CLASSES_ROOT\.sh')

= bashHere/emacsedit with right mouse menu for Explorer

= source code reading (grepall.py -e "printf" .)

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]