본문 바로가기

Lecture & Tip/linux programming[리눅스]

Amazon EC2에 TURN 서버 설정하기. Veckon 서비스는 WebRTC 기술을 사용한 서비스입니다. WebRTC에서 NAT 내부에 존재하는 Peer간의 연결을 위해서는 STUN/TURN 서버가 필요해 저희는 임시적으로 구글의 public stun server를 사용하고 있었습니다. 하지만 아래와 같은 이유로 자체 서버를 확보하지 않으면 안되게 되었습니다. 1) 거대 시장인 중국에서 구글 서비스가 되지않아 public stun server로의 접근이 되지 않음. -> 구글이외의 STUN Server Service가 필요.2) NAT에 설치된 방화벽중 일부에서 STUN 으로도 연결이 불가능한 경우 발생. -> TURN 서버 필요. 위와 같은 이유로 결국 TURN 서버를 자체 구축하기로 결정하였습니다.그래서 일단 webrtc forum에서 활발하.. 더보기
CentOS에서 NVIDIA 드라이버 설치가 안될때. 삼성 DM-Z59a에 CentOS5를 깔고 NVIDIA드라이버를 설치하는데 계속 실패를 하였다. log를 확인해보니 'nvidia.ko'를 insmod할때 애러가 나는 것.. '-1 : no such device' 두둥.....왜 카드를 못찾지? 구글 박사님 서치 후... /boot/grub/grub.conf에다가 noapci acpi=off 를 추가했더니... 덜컥 된다...이런 당황스런...냠냠..어쨌든 미션 컴플릿~!!! 더보기
리눅스 하드 읽기 속도 빠르게 하는 법!! 일단 하드 속도 체크를 한다. $ hdparm -t /dev/hda 더보기
Check, When XML String always misses all attributes by XBinder! I'm sure that the attribute values are set on xbinder structure, But XBinder always lost all values when it encodes. ex code) Init_a_ELEM(&pctxt, &a_ELEM); a_ELEM.u.attr1.value = blurblur; a_ELEM.u.attr2 = int_val; rtXmlSetEncBufPtr(&pctxt, ouput_string, 1024); XmlE_a_ELEM(&pctxt, &a_ELEM); result) -,.-;;;;;;; . So I was googling, but the result is useless... . ! . When I see the sample code, I .. 더보기
How to get file size ? Like this!! This is a example to get size of specific file. #include int main(){ struct stat buffer; stat("FILE LOCATION",&buffer); printf("file size : %d\n", buffer.st_size); } Is it worthy? kk I forgot where it is from but I know only found this by google. :) 더보기