2009년 12월 2일 수요일

참고site

script.aculo.us  다양한 효과의 자바스크립트 API 제공

mochaui.com 오픈 소스 UI 프레임 워크 제공

2009년 11월 18일 수요일

ubuntu 9.10 open office 한글 깨짐 현상

ALT-F2 누른 후 gksu rm /etc/fonts/conf.d/29-language-selector-ko-kr.conf

꽤 오래된 한글 설정 문제라고 한다. :(

2009년 11월 11일 수요일

정보통신기술용어해설

http://www.ktword.co.kr/abbr_view.php?m_choice=view_large&mtid=&mgid=102&m_temp1=1676

2009년 10월 16일 금요일

리눅스 eth0 eth1 연결

# cat /proc/sys/net/ipv4/ip_forward
# 0
0을 1로 바꾸어 주면 eth0과 eth1 사이에 연결이 이루어진다. :ㅇ


/etc/iptables.conf 설정을 바꿔준다.

-A POSTROUTING -s 소스ip -o eth0 -j MASQUERADE
eth0 은 목적지 interface 이다.

2009년 10월 11일 일요일

update-rc.d 등록 방법

이전에 등록됐던 데몬을 지운다.
update-rc.d -f PD_server.win remove


새로 등록 (99는 부팅 시 올라오는 순서, 90은 꺼질 때)
update-rc.d PD_server defaults 99 90

LVM 만들기

순서 pv → vg →lv

 파티션 생성

fdisk /dev/sda
파티션 생성 시 LVM 타입으로 지정

물리 볼륨 목록 보기    pvs (pvdisplay)
LV 목록 보기    lvs (lvdisplay)
볼륨 그룹 목록 보기   vgs (vgdisplay)



② 물리 볼륨 선언
e. g)
pvcreate /dev/sda2
pvcreate /dev/sdb1



볼륨그룹 만들기
vgcreate pd_vg /dev/sda2 /dev/sdb1



④ 만들어진 볼륨 그룹을 LVM으로 합치기
lvcreate -L 140G -n  pd_vg  만들LV이름



ext3 파일 시스템으로 만들기
mkfs.ext3 /dev/pd_vg/pd_storage

pvcreate 시 파일 시스템이 사용중이라고 나오면서 재부팅해야 적용된다는 매시지가 나온다.
이 때 재부팅을 안하고 바로 적용할 수 있는 프로그램으로 parted 가 있다.
parted 는 디스크 리사이징 프로그램이다
apt-get install parted
partprobe /dev/sda

만들어진 LVM 파일 시스템을 실행 시 자동으로 마운트 해 주기 위해서
vim /etc/fstab 에 설정해 준다.

기본명령

  • COMMIT
svn status (상태 확인)
svn diff (코드 차이점 채크)
svn ci 파일명 (주석달고 저장)

  • ADD
svn add 폴더명
svn ci 폴더명
ex) img 폴더안에 addressbook 폴더를 만드려면
     /img 까지 들어가서 svn add addressbook

  • UPDATE
svn status - - show-updates (상태 확인)
svn update 파일 이름
scn update 디렉토리 이름 (디렉토리안에 모든 파일 추가 시)

CherryPy 설치

* pakage 설치


Once you have installed a svn client, you need to type the following command :

svn {co} {http://svn.cherrypy.org}

This will download the complete source code to your computer.


Installing the package from the Subversion repository

If you have downloaded the source code from the CherryPy subversion repository, then you should have a directory called svn.cherrypy.org. Then type the following commands:

cd {svn.cherrypy.org/trunk}

Then issue the following command (as root if you are under Unix/Linux):

python {setup.py} {install}

Alternately, since CherryPy has no dependencies, you don't have to run setup.py. Instead, checkout /trunk/cherrypy into a directory which is on your Python path, such as site-packages/cherrypy.




* config설정


cherrypy.config.update({'server.socket_host': '0.0.0.0',
                            'server.socket_port': 9999, })

conf = {'/images': {'tools.staticdir.on': True,
        'tools.staticdir.dir': '/home/eur/cherrypy/images'}}

cherrypy.quickstart(Root(), '/', config=conf)