User Tools

Site Tools


Sidebar

code:cygwin

Cygwin

Quick install from commandline

Download 32bit installer of Cygwin

setup-x86.exe -q -l c:\cygwin\packages -R c:\cygwin -P unzip,zip,git,git-completion,nano,mc,curl,openssh,rsync,wget,ncurses,python3

Packages list can be found on http://cygwin.com/packages/

Po instalační praxe

  • zkopírovat profil složku do /cygwin/home/
  • zkopírovat /etc/fstab
none /  cygdrive binary,posix=0,user 0 0
c:/ /c ntfs binary,posix=0,user 0 0
c:/projects /projects ntfs binary,posix=0,user 0 0
  • spustit mount -a

Drives w/o /cygdrive/ prefix

From http://alecthegeek.wordpress.com/2010/01/13/handy-hack-make-changes-to-the-cygwin-mount-prefix-permanent/

Into file /etc/fstab add line:

none /  cygdrive binary,posix=0,user 0 0

SSH Agent pod Cygwin

Nejdříve je třeba vytvořit novou proměnnou ve Windows (Systém > Upřesnit nastavení systému > Proměnné prostředí > …) SSH_AUTH_SOCK s její hodnotou /tmp/.ssh-socket

Pak vložit do svého ~/.bashrc či ~/.zshrc:

### ssh
 
ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then
    # exit-status 2 = couldn't connect to ssh-agent
 
    rm -f $SSH_AUTH_SOCK
 
    echo -n "Starting SSH agent ..."
    eval `ssh-agent -a $SSH_AUTH_SOCK`
 
    echo ""
    eval `ssh-add`
    echo ""
else
    echo "SSH agent is active"
    echo ""
fi

Pak stačí spustit ssh-add a zadat heslo :)

Cygwin SSH-Agent: WARNING: UNPROTECTED PRIVATE KEY FILE!

Cygwin Apt-cyg

From https://github.com/transcode-open/apt-cyg

Install apt-cyg:

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > ~/apt-cyg
install ~/apt-cyg ~/bin

After that you'll be able to search say the package “python” including dependencies by running:

apt-cyg search python

Možnost použít příkaz "clear" (balíček ncurses)

apt-cyg install ncurses

Problémy s COMPASS

Viz http://stackoverflow.com/questions/6515018/error-with-compass-polling-on-windows-7

V souboru cca někde: cygwin\lib\ruby\gems\1.9.1\gems\fssm-0.2.9\lib\fssm\pathname.rb zakomentovat řádek 26 (array[0] += File::SEPARATOR if path[0, 3] =~ SEPARATOR_PAT)

curl: (77) error setting certificate verify locations:

wget http://curl.haxx.se/ca/cacert.pem;
cp -f cacert.pem /usr/ssl/certs/ca-bundle.crt;
chmod 644 /usr/ssl/certs/ca-bundle.crt;

Pip & Easy install

code/cygwin.txt · Last modified: 2015/08/26 10:26 (external edit)