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

apt-cyg라는 간단한 script를 깔면 된다.


설치:

$ wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg

$ install apt-cyg /bin


사용:

$ apt-cyg install emacs


refs:

https://stackoverflow.com/questions/9260014/how-do-i-install-cygwin-components-from-the-command-line

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


happy hackin'


doxymacs on cygwin

tips & tricks/Win 2014. 10. 21. 17:27 by manywaypark

의존성은 내 경우 libxml2-devel 이었는데, 기본적인 autotools등도 필요하다.

emacs가 PATH에 있는지 확인

$ which emacs

......

$ git clone git://git.code.sf.net/p/doxymacs/code doxymacs-code

......

$ ./bootstrap

......

$ ./configure --prefix=/usr/local

......

$ make install


일반적인 제대로 된 설정(?)이라면 위와 같이 하면 동작할 것이다.

나는 일종의 종합선물 세트인 emacs.d를 쓰고 있으므로[각주:1] 관리의 편의를 위해 emacs.d쪽으로 옮긴다. 
$ cp /usr/local/share/emacs/site-lisp/*.el ~/.emacs.d/site-lisp/
또한 eshell에서 /usr/local/bin 이 PATH에 걸려있는지 확인한다. (특히 cygwin에서 제공하는 emacs가 아닌 GNU emacs를 따로 설치한 경우 확인 필요)
마지막으로 적당한 곳(~/.emacs 또는 ~/.emacs.d/lisp/init-local.el)에 다음 라인을 추가한다 (추가하기 싫다면 필요시 eval 해도된다).
(require 'doxymacs)

refs:
http://doxymacs.sourceforge.net/
https://www.emacswiki.org/emacs/DoxyMacs

happy hackin'


  1. 사실 .emacs.d에서 쓰는 packaging system인 MELPA에서 doxymacs를 지원했으면 이따위 수고로운 작업따위 필요없었을텐데. 아숩. [본문으로]

[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'

나는 startxwin으로 MS windows에서 창으로 표시되는(windowed mode?) 형태로 주로 사용했는데, 데스크탑을 보고 싶다는 사용자의 요구(?)가 있어서 좀 찾아보았다.

대충 startx 같은거 실행하면 깔려있는 기본 WM이 뜬다(local에서 X server가 실행되는 방식).

XDMCP를 사용하면 완전히 서버에 client로 접속하는 것같다. 아래처럼 한다.

# 일반적으로 접속

X -query remote_hostname_or_ip_address

# 여러 서버 접속

X :0 -query remote_hostname_or_ip_address

X :1 -query remote_hostname_or_ip_address


refs: 

http://x.cygwin.com/docs/ug/using-window-managers.html

http://x.cygwin.com/docs/ug/using-remote-session.html

http://jamesmcdonald.id.au/it-tips/cygwin-startxdmcp-bat-displays-blankblack-x-window -> XDMCP 문제해결. DHCP 환경?


문제:
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'


패키지 하나를 소스로 컴파일하려고 할 때 다음 오류가 발생하면서 configure 스크립트가 멈추었다.

환경: Cygwin on Windows XP
에러 메시지 : 
configure: error: --with-x=yes (default) and X11 headers/libs are not available
해결:
setup을 실행한 후에 다음 패키지들을 설치한다.
libX11 
libX11-devel
libXt
libXt-devel

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'
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 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-25 00:02