Apr 092012
 

svn을 linux/unix 환경에서 사용하는 경우에 checkout을 처음 할때 서버의 계정과 클라이언트의 접속 계정이 다른 경우가 있습니다. 이런 경우에는 패스워드를 저장해두면 편리합니다. 다만 해당 계정이 다른 사람이 접근을 하게 된다면 문제가 되겠지만요.

일단 svn을 사용하게 되면 ~/.subversion 이라는 디렉토리가 생성이 됩니다.
해당 디렉토리에서 plaintext 형태로 패스워드를 저장할지를 선택해두면 편리하게 이용이 가능하다.

[root@localhost public_html]# diff ~/.subversion/servers.org ~/.subversion/servers
156c156
< # store-plaintext-passwords = no
---
> store-plaintext-passwords = yes
Print Friendly
Apr 092012
 

예전부터 사용하던 맥북 흰둥이가 문제가 있어서 OS를 재설치를 했습니다.
OSX 설치 CD를 못찾아서 Windows 만 설치하고, Bootcamp는 어둠의 경로를 통해서 구해서 설치를 했습니다.
BootCamp 3.3까지 업데이트를 했지만, 무선랜카드가 잡히지 않더군요. -_-
쉽게 드라이버를 구하지 못해서 며칠을 고생해서 아래와 같이 설치를 했습니다.

Wiki에서 확인해서 랜카드 정보를 확인했습니다.

http://en.wikipedia.org/wiki/MacBook

Integrated 802.11a/b/g/n (BCM43224 chipset) 모델에 대한 정보를 찾다가 아래의 사이트를 확인했습니다.

http://maxschmeling.me/2011/06/06/how-i-fixed-my-wifi-driver-that-windows-updates-broke/
ftp://ftp.hp.com/pub/softpaq/sp45501-46000/sp45524.exe

몇번 검색해서 시도해봤던 방법이지만, setup.exe를 실행하거나, 경로를 지정해서는 인식이 안됩니다.
대신 위의 블로그에 있는것과 같이 드라이버를 “컴퓨터의 장치 드라이버 목록에서 직접 선택”으로 지정을 하면 바로 등록이 됩니다.


같은 방법으로 사운드 카드도 설치가 가능합니다. 인식은 되지만 소리가 나오지 않아서 아래에서 같이 64비트용 드라이버를 받아서 위와 같은 방법으로 설치하면 드라이버가 설치가 됩니다.

https://discussions.apple.com/thread/2414330?start=30&tstart=0
http://www.cirrus.com/en/products/cs4207.html

Print Friendly
Apr 042012
 

UNIX 개발환경에서 파일 비교를 위해서 많이 사용하는 것 중에 diff 라는 명령어가 있습니다.

특히 해당 프로그램은 patch 명령어와 연동해서 사용하게 되면 버전 관리도 가능합니다.

소스 형상관리 소프트웨어(CVS, SVN)을 사용하지 않는 경우에는 diff가 상당히 유용할것입니다.

아래와 같은 명령어를 이용하면 사람이 가독하기 쉬운 형태의 diff 결과를 확인할 수 있다.

diff -Nur A B

최근 들어서는 형상관리 소프트웨어를 많이 사용하기 때문에 특정 디렉토리(.svn, CVS)를 제거하고 diff를 하는 경우가 있습니다.
이런 경우에는 아래와 같이 하면 편리합니다.

diff -Nur –exclude=”.svn” –exclude=”.gitignore” A B


참고로 위의 exclude 기능 관련해서 man 페이지에는 찾아보면 아래와 같다.

–exclude=pattern
디렉토리를 비교할 때, 파일과 하위 디렉토리의 basename이 pattern 과 일치하면무시한다.

–exclude-from=file
디 렉토리를 비교할 때, 파일과 하위 디렉토리의 basename이 file 에 있는 어떤 패턴과 일치하
면 무시한다.

Print Friendly
Apr 032012
 

SVN서버를 사용할때 오래된 OS(redhat 7.3)에는 설치하기가 힘듭니다. OS가 maintaince 기간이 만료되었기 때문에 rpm 구하기가 힘듭니다.

yum 도 사용하기 힘들기 때문에 소스를 컴파일해서 설치해서 사용해야 합니다.

설치를 하다 보면 APR(Apache Portable Runtime) 패키지가 없어서 아래와 같이 컴파일 에러가 납니다.

[root@guide1 subversion-1.7.4]# ./configure
configure: Configuring Subversion 1.7.4
configure: creating config.nice
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'

or

get it with SVN and put it in a subdirectory of this source:

svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x \
apr

Run that right here in the top level of the Subversion tree.
Afterwards, run apr/buildconf in that subdirectory and
then run configure again here.

Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both
--with-apr and --with-apr-util to 'configure', or
getting both from SVN with:

svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x \
apr-util

configure: error: no suitable apr found
[root@guide1 subversion-1.7.4]#

이런 문제를 해결하기 위해서는 최신 버전이 아닌 1.3.x 버전을 사용하면 해결이 가능합니다.

아래의 경로에서 다운로드 가능합니다.

http://archive.apache.org/dist/subversion/subversion-1.3.2.tar.gz

[root@guide1 root]# cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)
[root@guide1 root]# svn --version
svn, version 1.3.2 (r19776)
compiled Apr 3 2012, 15:09:18

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme

참고사이트 : http://svn.haxx.se/users/archive-2006-06/0713.shtml

Print Friendly
Plugin from the creators of Brindes :: More at Plulz Wordpress Plugins