I made a change in the blogger configuration to ease the later work when blogging. It is possible that older entries are not correctly formatted.

Showing posts with label cygwin. Show all posts
Showing posts with label cygwin. Show all posts

Thursday, 4 July 2013

Eclipse installation Problem onWindows7 with cygwin unzip

Once or twice I had problem using unzip to unpack the eclipse code under windows7. Thanks to this answer, it could start eclipse normally. After downloading eclipse:

$> cd dirtoput-eclipse
$> unzip pathwhere-eclipsezipis/eclipse...-version.zip
$> cd eclipse
$> find . -name "*.dll" -exec chmod +x {} \;

Saturday, 30 June 2012

Useful to open firefox files under cygwin

I use cygwin extensively under windows. So I often need to open urls in firefox or in some other client. I finally found a was to implement this with simple alias and a bash function. It took me sometimes, but I guess or hope I learnt some thing.

You only need to put this in the .bashrc file or equivalent.

alias firefox='defCommand "/cygdrive/c/Program\ Files\ \(x86\)/Mozilla\
Firefox/firefox.exe"'

function defCommand(){
  PARAM=`cygpath -m $2`
  NEW_COMMAND="$1 file:$PARAM";
  eval $NEW_COMMAND
}

Sunday, 24 June 2012

Cygwin Packages setup.exe and command line

It seems that there is the possibility to use setup.exe to perform some action for the management of cygwin packages. The link: http://cygwin.com/faq/faq.setup.html#faq.setup.cli shows the diverse options.

I will take a look at it and try to improve my pakage management.

Cygwin and Home directory

I was getting annoyed that my cygwin home directory was not easily accessible from my normal directory and vice versa. So I found out how to do this (I should have thought how this is done as an exercise first) by googling it. It is really easy. Just set the correct directory in the /etc/passwd file and the trick is done.