manywaypark's Blog
개발, 검색, 함수

[cygwin] sshd service

tips & tricks/Win 2014. 8. 27. 17:04 by manywaypark

refs:

  • http://kwon37xi.egloos.com/2496478
  • http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/

happy hackin'

MSBuild.exe MyProj.proj /property:Configuration=Debug

ref: http://msdn.microsoft.com/en-us/library/dd393574.aspx


happy hackin'

문제:
linux에서는 "exec ssh-agent" 로 하면 되었던 것으로 기억하는데 cygwin bash 환경에서는 제목과 같은 오류가 나면서 제대로 동작하지 않았다.

해결:
다음과 같이 ssh-agent를 실행한다.
$ exec ssh-agent /usr/bin/bash

refs:
http://linuxindetails.wordpress.com/2010/06/07/could-not-open-a-connection-to-your-authentication-agent/

happy hackin'
problem:
원본 저장소는 svn이지만 git을 쓰고싶어서 git-svn을 사용하려 했는데
cygwin에 포함된 git-svn이 다음과같은 이상한 에러를 내면서 제대로 동작하지 않았다.

      0 [main] perl 4888 child_info_fork::abort: address space needed by 'cygsvn_client-1-0.dll' (0x13A0000) is already occupied


solution:
모든 cygwin process를 닫고 cmd에서 ash또는 dash에서 다음을 수행;
(exit all the cygwin processes and in the shell(ash or dash));

cd \cygwin\bin
$ ash
$ PATH=. rebaseall -v
......
foo/bar.dll new base = 1234, new size = 56
......


2013-04-10 윈도우 업데이트 실행 후에 동일 증상 나타났음 (아마도 root cause 인듯)

happy hackin'


1. 설치 미디어 준비
odd가 있는 장치에서 설치 디스크를 외장하드나 USB로 복사한다.
iso 이미지를 가지고 있다면 가상 드라이브로 마운트 한 후 복사한다.

2. 외장 미디어 부팅 가능하게 만들기
설치 디스크의 /boot/bootsect.exe를 다른 장소에 복사한 후
bootsect.exe /nt60 [외장 미디어 drive letter]

내 경우는  bootsect.exec:에 복사했고 외장 미디어는  F 드라이브로 잡혔으므로 다음과 같이 했다.
c:>bootsect.exe /nt60 F:
설치하고자하는 박스(아마 보통 놋북이겠지)를 재시작하고 BIOS 메뉴에 들어가서 USB/External HDD 부팅을 활성화하고 외장 매체로 부팅하면 윈도7 설치 화면이 뜬다. 끝!

note: 내 경우 P1620이라는 후지쯔의 노트북에 적용했는데  USB memory로 했을 때는 이상한 에러가 뜨면서 제대로 안됐고, 외장하드를 사용했을 경우는 정상적으로 설치가 되었다.
note2: bootsect.exe는 드라이브를 unmount한 후에 제대로 동작한다(MBR을 다시 쓰는 듯). 하여, 외장 매체에서 바로 자기 자신에게 적용할 수 없다. 마운트 해제가 안되기 때문에... 꼭 다른 곳에 복사한 후 실행해야만한다.
 
ref:
Bootsect Command-Line Options

happy hackin' 

[ERR] no OPENSSL_Applink

tips & tricks/Win 2009. 10. 20. 19:19 by manywaypark
win32환경에서 openssl을 사용하는 프로젝트에 관련 라이브러리(libeay32.lib)를 추가하고 성공적으로 실행파일을 만들어서 테스트 하려고 돌리는 순간 다음과 같은 에러가 나면서 진행되지 않았다.
OPENSSL_Uplink(nnnnnnnn,nn): no OPENSSL_Applink

win32환경에서는 openssl 소스 설치 디렉토리의 바로 하위에 있는 ms/applink.c를 해당 프로젝트에 추가해주어야만 runtime에 제대로 동작한다고 한다(먼가 복잡한 dll 관련 설정인듯 보인다).
역시 win32에서의 일이므로 further research는 당연히 안한다.^^

refs: http://www.mail-archive.com/openssl-users@openssl.org/msg51836.html

happy hackin'

[ERR] link: extra operand `/opt:ref'

tips & tricks/Win 2009. 10. 19. 19:31 by manywaypark
openssl을 win32 환경에서 빌드하는데 다음과 같은 에러가 나면서 링크되지 않았다.
link: extra operand `/opt:ref'

대충 찾아보니 cygwin과 충돌이 나서 그렇다고 한다.
PATH에서 VC관련된 것들을 cygwinbin앞쪽으로 설정하면 해결됐다.
win32 관련된 것이므로 더이상 파고들지 않는다. ^^;

refs:
http://mail.openjdk.java.net/pipermail/build-dev/2008-July/001306.html
http://osdir.com/ml/java.openjdk.build.devel/2008-07/msg00063.html

happy hackin'

[TIP] 초간단 Cygwin/X 설정

tips & tricks/Win 2009. 1. 15. 13:40 by manywaypark
설치할 cygwin package:
 xorg-x11-server, xinit, xorg-x11-docs, X-start-menu-icons

cygwin을 기본 디렉토리에 설치하지 않았다면,
\path\to\your\cygwin\bin\startxwin.bat 편집:
SET CYGWIN_ROOT=\path\to\your\cygwin

startxwin.bat를 실행하거나, 시작 > 프로그램 > Cygwin-X > XWin Server

putty로 원격 서버 접속 후 X 응용프로그램 실행해서 확인.
(putty의 Connection > SSH > X11 에서 Enable X11 forwarding 활성화 되어있어야함)

참고: http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html

happy hackin'

2013-04-18 package 명 변경: xorg-x11-server -> xorg-server


cygwin 업그레이드 후에 이전에 본적 없는 눈에 거슬리는 이상한 메시지가 명령을 내릴 때 마다 출력되었다.
윈도우에서 fstab를 찾는 것은 좀 이상하지 않은가?
Huh?  No /etc/fstab file?  Using default root and cygdrive prefix...

mount
로 현재 마운트 된것들을 살펴보고 그것들을 %CYGWIN_HOME%/etc/fstab에 저장해주면 된다.

다음은 내 경우다. (c와 d가 hdd이므로 마운트하고, e는 SD card 이므로 안 써준다.)

C:\>mount
Huh?  No /etc/fstab file?  Using default root and cygdrive prefix...
c:\cygwin on / type ntfs (binmode,system)
c: on /cygdrive/c type ntfs (binmode,noumount,user)
d: on /cygdrive/d type ntfs (binmode,noumount,user)
e: on /cygdrive/e type vfat (binmode,noumount,user)


/etc/fstab :
c:/cygwin / system binary 0 0
c:/cygwin/bin /usr/bin system binary 0 0
c:/cygwin/lib /usr/lib system binary 0 0
# c: /c system binary 0 0
# d: /d system binary 0 0

왜 이렇게 불편하게 되었는지는 모르겠다.
(맨 밑에 두줄은 대충 되는 것같기도 하나, PATH 설정이 좀 꼬여서 특정 application(make 등)에서
문제가 생기는 듯하다. 빼자.)
참고: http://article.gmane.org/gmane.os.cygwin/97894

happy hackin'

 

1 2 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
Linux/Unix (57)
Win (19)
Qt (11)
Xcode (1)
Mac (8)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-26 06:33