Linux2012. 5. 3. 12:47

CentOS5.8을 설치하고 yum install php를 하면 안타깝게도 5.1이 설치된다.


고럴때!


rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo

yum --enablerepo=webtatic install php


쫘잔



Posted by IanMK2
Linux2012. 5. 3. 10:00

센트가 yum으론 구버전 pear밖에 설치를 안한다.


wget http://pear.php.net/go-pear.phar
php go-pear.phar


로 수동설치

Posted by IanMK2
etc2012. 4. 13. 10:45

help-> new Software install

http://eclipse-color-theme.github.com/update 

추가 후 설정에서 요리


Posted by IanMK2
Objective-C2012. 2. 15. 10:00
xcode로 static library를 제작하면 디바이스용과 시뮬레이터용으로 나뉘어 빌드가 된다.
귀찮으니까 통합하자
한곳에 모아놓고
커맨드로 libtool -static lib디바이스.a lib시뮬.a -o lib샬롸샬롸.a
 
Posted by IanMK2
Linux2012. 1. 16. 17:12
주로 yum, apt를 패키지매니저로 많이 사용하는데..

yum이용시 검색은
yum search 이름

apt는
aptitude search 이름 
Posted by IanMK2
etc2011. 12. 29. 10:20
Git를 콘솔로 사용하기 좋아하는 저로서는 당연히 git의 기능들에 색이 있으면 좋겠지요.

그래서 찾아봤습니다.

 Git의 설정은 홈디렉토리/.gitconfig에 저장됩니다.
여길 열어 다음과 같이 설정하면 색이 입혀집니다.

[user]
        email = 이메일
        name = 이름
[color]
        diff = auto
        status = auto
        brach = auto

또는 색만 바로 입히고 싶은경우
git config --global color.ui auto


Posted by IanMK2
etc2011. 12. 28. 12:55
빠가의 머리를 가진 저이기에 잊어먹을꺼 뻔하니 나중에 다시 보기위해서라도

Git의 기본적인 사용법 및 명령어를 정리하려합니다.

회사의 소스는 당연히 회사내 리눅스Git서버에 보관하고있으며(곧 Git-hub로 이동), 개인소스는
Bitbucket에 보관하고있습니다.
Git-hub쪽이 더 좋다고는 하나, Git-hub에선는 private 저장소를 설정하기위해서는 돈을 내야합니다만
BitBucket에선 공동작업자수에 따라 과금을 하고, 용량, private저장소 수 등에서는 무료입니다.
자세한건 http://bitbucket.org 참조

git clone 저장소
저장소에서 로컬에 복사해온다

git init
git저장소로 저장되지않은 로컬폴더를 git 저장소로 설정한다.

git remote add 브랜치이름 저장소
지정한 브랜치이름으로 원격저장소 설정

git pull
브랜치의 최신소스를 받아옴

git add .
모든 파일들을 tracking함

git commit -a -m "커밋메세지"
커밋

git push (origin master)
브랜치에 커밋한 내용을 보냄
(origin에 master의 내용을 적용)

git log 
커밋로그보기

git diff
변경사항

git status
변경사항(러프하게)

git grep 찾을문자열
문자열을 찾아줌. 기존의 find + grep보다 좋고 빠름


 
Posted by IanMK2
etc2011. 12. 28. 12:24
에러:
Git클론 중 발생

Cloning into 'androidsasebo'...
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Connection abandoned.
fatal: The remote end hung up unexpectedly
 
해결:
putty로 bitbucket.org에 접속시도로 해결(로그인불필요) 
Posted by IanMK2
etc2011. 12. 28. 12:19
문제 :
FATAL ERROR: Disconnected: No supported authentication methods available
fatal: The remote end hung up unexpectedly

윈도우에서 Git로 클론을 할려는데 위와같은 에러가 발생
 
해결 :
 declare -x GIT_SSH="C:\Program Files\Git\bin\ssh.exe"
선언후 재시도 
Posted by IanMK2
Linux2011. 12. 6. 10:39

분명 아파치내의 웹루트에서는 파일접근이 되고 생성한 하부디렉토리는

퍼미션은 되어있지만 자꾸 forbidden이 떠서 짜증만발

조사해보니 범인은 보안을 강화시키는 목적으로 추가된 SELinux였다.



#chcon -R -t httpd_sys_content_t 디렉토리 

로 해결

후... 
Posted by IanMK2