맥(OSX 10.5.4)에서 samba를 이용해 linux에 있는 일반 파일과 디렉토리를 공유하는데는 특별한 문제가 없다. 그런데 공유하는 자료가 만약 심볼릭 링크를 포함하고 있다면 문제가 조금 다르다. 맥에서 링크를 따라가지 못하고 “original item can not be found”라는 에러를 토해 내는 것이다. 윈도우즈 머신은 아무런 문제가 없다. 윈도우즈는 일반 폴더나 심볼릭 링크나 브라우즈하는데 특별한 차이점을 보이지 않는다.
한동안 이 문제로 속을 썩히다 어제 드디어 몇시간의 구글링끝에 답을 찾았다. 리눅스쪽의 smb.conf 파일에다 “unix extensions = no”를 더해 주면 된다.
그런데 만약 내가 linux쪽의 셋팅을 고칠 수 없는 상황이면 어떡하나? 분명히 OSX client쪽에서 해당 옵션을 선택할 수 있는 방법이 있어야 할텐데?
-------
With my Macbook(OSX 10.5.4), I've had a problem with following symbolic links on my Linux share over samba. I still could see Linux shares and browse normal shared files and directories. However, when it comes to symbolic links, I kept getting the “original item can not be found” error whenever I clicked a symlink contained in a Linux share. Windows had no problem. It did not show any differences in following a regular folder and a symlink to a folder on Linux machines.
Yesterday, I finally got the solution to the problem after a couple of hours of Googling. By adding “unix extensions = no” to smb.conf on LINUX side (i.e. samba server’s side), my Macbook started to work like a charm with symbolic links. Voila~
BTW, what if I can't change the settings on linux side? Is there a corresponding option on the client side?
수요일, 8월 13, 2008
Samba connection to a Linux share from OS X
수요일, 7월 30, 2008
Mac Firefox에서 command(apple) key 대신 ctrl key 쓰기
about:config에서 ui.key.accelkey의 값을 17로 고친다.
참고로 Alt는 18, Meta (Mac OS command)는 224이다.
이 방법은 Thunderbird에도 써먹을 수 있다.
잡설이지만, 윈도우즈 키보드로 emacs를 쓰려면 caps lock과 ctrl키를 바꾸어 쓰는 경우가 많다. 그리고 금방 A키의 왼쪽자리가 얼마나 기가막힌 자리인지 알게 된다. 꼭 emacs를 쓰지 않더라도 그 자리를 자주 쓰지 않는 caps lock키에 할당하는 건 너무 아깝다.
토요일, 5월 24, 2008
Capri Perian 빌드
이 글은 Capri_Perian을 직접 빌드하여 설치하는 방법을 설명한다.
Perian은 QuickTime에서 Divx를 비롯한 여러가지 codec으로 인코딩된 동영상을 볼수 있도록 해주는 Mac용 codec 종합선물셋트이다. 다양한 비디오/오디오 코덱외에도, Perian은 ssa와 srt형식의 자막을 지원하는데, 여기에다 capri91님이 국내에서 많이 쓰이는 sami(.smi)형식의 자막을 볼 수 있도록 패치하여 배포한 것이 Capri_Perian 이다.
그러나 아쉽게도 외부 무단 링크 문제로 capri91님이 개발을 중단하고 모든 다운로드링크를 제거한 바람에, 이제는 다운로드는 물론 앞으로의 업데이트는 볼 수없을 것 같다. 그래도 한 가지 다행스러운 것은 Capri_Perian 소스코드가 LGPL로 공개되어 꼭 필요한 사람은 직접 빌드해서 사용할 수 있다는 사실이다. 한번 홍역을 거친 터라 이 글을 인터넷에 올리는 것이 조심스럽기는 하지만, 다시 한번 LGPL을 읽어 본 결과 바이너리가 아닌 빌드방법을 올리는 것은 제작자의 뜻에도 반하는 것이 아닐 것이라 결론을 내렸다.
먼저 필요한 준비물은 다음과 같다.
준비가 되었으면 터미널을 실행시켜 다음과 같이 Capri_Perian을 빌드하고 설치할 수 있다. Xcode IDE를 사용할 수도 있으나 여기서는 편리한(?) 터미널을 사용하기로 한다. 단순히 소스 파일을 다운로드 받아 Makefile을 실행하는 것이지만, make에 익숙하지 않은 초보자도 따라할 수 있도록 빌드과정을 1)소스코드 다운로드, 2)소스코드 압축해제, 3)패치 적용, 4)빌드의 4단계로 나누어 자세히 적었다. 아래의 예에서 초록색 글씨가 터미널에 입력해야 하는 부분이고 나머지는 명령실행 결과가 출력되는 부분이다.
1. 다운받은 소스 파일 확인
$ cd Downloads/ $ ls KeyRemap4MacBook-4.0.0.pkg.tar.gz StartVMFullUnity.zip KeyRemap4MacBook-4.0.0_src.tar.gz VMware-Fusion-1.1.2-87978.dmg LAME.dmg iMovieHD6.dmg OnMyCommand.dmg perian_sami_patch.zip Perian_1.1-src.zip마지막에 다운 받은 perian_sami_patch.zip과 Perian_1.1-src.zip파일이 보인다.
2. 소스파일 압축 해제
$ unzip perian_sami_patch.zip Archive: perian_sami_patch.zip creating: perian_sami_patch/ inflating: perian_sami_patch/.DS_Store creating: __MACOSX/ ... inflating: Perian-1.1/XCAResources.r동일한 방법으로 Perian_1.1-src.zip파일도 unzip해 준다. 압축이 풀리면 Perian-1.1이라는 디렉토리와 perian_sami_patch라는 디렉토리를 볼 수 있다.
또한 perian_sami_patch라는 디렉토리에는 perian_sami_patch라는 같은 이름의 패치 파일이 있음을 확인한다.
$ ls KeyRemap4MacBook-4.0.0.pkg.tar.gz StartVMFullUnity.zip KeyRemap4MacBook-4.0.0_src.tar.gz VMware-Fusion-1.1.2-87978.dmg LAME.dmg __MACOSX OnMyCommand.dmg iMovieHD6.dmg Perian-1.1 perian_sami_patch Perian_1.1-src.zip perian_sami_patch.zip $ ls perian_sami_patch LICENSE.txt README.txt perian_sami_patch
3. 패치 파일 복사 및 패치 적용
$ cp perian_sami_patch/perian_sami_patch Perian-1.1/ $ cd Perian-1.1/ $ patch -p1 < perian_sami_patch patching file Subtitles/SubContext.h patching file Subtitles/SubContext.m patching file Subtitles/SubImport.mm patching file Subtitles/SubUtilities.h patching file Subtitles/SubUtilities.m
4. 빌드 및 디스크 이미지 파일 생성
$ cd Release/ $ make release ... created: /Users/dks/Downloads/Perian-1.1/Release/build/Perian_1.1.dmg Disk image done Build finished한참을 어지럽게 화면 메세지가 출력된 후에 위의 메세지를 볼 수있으면 빌드가 성공적으로 된 것이다. 화면에서 알 수있듯이 /Users/dks/Downloads/Perian-1.1/Release/build/아래에 dmg파일이 생성되었다.
5. 설치
dmg 파일을 더블 클릭하여 보면 아래와 같은 설치화면이 나타난다.
왼쪽 상단에 Perian_prefPane파일이 .background파일과 겹쳐져서 이상하게 보이나 설치하는 데는 아무 지장이 없다.
Perian_prefPane파일을 적당히 위치로 끌어 겹치지 않게한 후, 더블클릭하여 설치하면 끝.
