Linux2009. 11. 17. 00:49
요즘 웹캠보면 UVC라고 많이 나오길래 먼가 해서 봤더니 USB Video Class 라고 하며,
WinXP SP2 이후 부터, 그리고
리눅스 커널 2.6.26 이후 부터 포함되어 있다고 한다.

결론은 리눅스라도 UVC 지원된다고 광고하는 웹캠은
신형 리눅스에서는 무리없이 사용이 가능할 듯 하다.
(UVC 웹캠 + ffmpeg으로 DVR 구축?!)

[링크 : http://linux-uvc.berlios.de/]
[링크 : http://en.wikipedia.org/wiki/USB_video_device_class]

'Linux' 카테고리의 다른 글

리눅스 셸스크립트 튜토리얼  (2) 2009.11.17
Fedora Core 12  (0) 2009.11.17
tree  (0) 2009.11.16
설치하지 않은 rpm에 포함된 파일의 내용 보기  (0) 2009.11.04
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
Posted by 구차니
Linux2009. 11. 16. 10:49
$ tree --help
usage: tree [-adfgilnpqrstuxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]]
        [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
        [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]
        [<directory list>]
    -a          All files are listed.
    -d          List directories only.
    -l          Follow symbolic links like directories.
    -f          Print the full path prefix for each file.
    -i          Don't print indentation lines.
    -q          Print non-printable characters as '?'.
    -N          Print non-printable characters as is.
    -p          Print the protections for each file.
    -u          Displays file owner or UID number.
    -g          Displays file group owner or GID number.
    -s          Print the size in bytes of each file.
    -D          Print the date of last modification.
    -F          Appends '/', '=', '*', or '|' as per ls -F.
    -r          Sort files in reverse alphanumeric order.
    -t          Sort files by last modification time.
    -x          Stay on current filesystem only.
    -L level    Descend only level directories deep.
    -A          Print ANSI lines graphic indentation lines.
    -S          Print with ASCII graphics indentation lines.
    -n          Turn colorization off always (-C overrides).
    -C          Turn colorization on always.
    -P pattern  List only those files that match the pattern given.
    -I pattern  Do not list files that match the given pattern.
    -H baseHREF Prints out HTML format with baseHREF as top directory.
    -T string   Replace the default HTML title and H1 header with string.
    -R          Rerun tree when max dir level reached.
    -o file     Output to file instead of stdout.
    --inodes    Print inode number of each file.
    --device    Print device ID number to which each file belongs.
    --noreport  Turn off file/directory count at end of tree listing.
    --nolinks   Turn off hyperlinks in HTML output.
    --dirsfirst List directories before files.
    --charset X Use charset X for HTML and indentation line output.


tree는 트리 구조로 보여주는 녀석인데, 기본적으로 Recursive 하게 디렉토리를 검색해서 보여준다.
그렇기 때문에 사용하기가 조금은 귀찮았던 녀석인데, directory depth를 제한 할 수 있는 옵션이 있었다.

$ tree -d -L 1

이라고 입력하면 현재 위치의 디렉토리만 보여준다.(하위 경로까지 타고 들어 가지는 않음)

[링크 : http://linux.die.net/man/1/tree]

'Linux' 카테고리의 다른 글

Fedora Core 12  (0) 2009.11.17
UVC - USB Video Class  (0) 2009.11.17
설치하지 않은 rpm에 포함된 파일의 내용 보기  (0) 2009.11.04
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
execl()로 mount 실행하기 - samba  (2) 2009.10.14
Posted by 구차니
Linux2009. 11. 4. 17:07
rpm2cpio [packagename.version.arch.rpm] | cpio -t
rpm -qlvp [packagename.version.arch.rpm]

[링크 : http://kldp.org/node/40043]
[링크 : http://kldp.org/node/29027]

[링크 : http://linux.die.net/man/1/cpio]
[링크 : http://linux.die.net/man/8/rpm2cpio]




일단 rpm이 출력은 더욱 빠르고, rpm2cpio | cpio -t  방법은 조금느린 느낌이 든다.

'Linux' 카테고리의 다른 글

UVC - USB Video Class  (0) 2009.11.17
tree  (0) 2009.11.16
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
execl()로 mount 실행하기 - samba  (2) 2009.10.14
gnash - GNU SWF player  (0) 2009.09.23
Posted by 구차니
Linux/Ubuntu2009. 11. 2. 01:10
업데이트 관리자에서 상단의 업그레이드를 누르면 9.10 으로 업그레이드를 한다.

이러한 릴리즈 정보도 뿌려주고


머.. 이런 단계로 넘어가기도 하고


912M를 다운받는 엄청난 용량 -ㅁ-
아무튼 받고 지우고 알아서 잘~한다

총 업그레이드 소요 시간
다운로드 대략 15분 / 설치 1시간 / 삭제 20분 정도
대략 1시간 30분

근데 한글.. 어쩔?


일단 사용하는 컴퓨터 사양은
P4-2.66Ghz / 512MB / 내장 그래픽 / EIDE 80GB 하드

아무튼 메모리가 적어서 인지 모르겠지만
부팅시에 10초 잡아 먹는 것을 제외하고도
1분 30초 가량 부팅에 소요되고(하드 멈출때까지)
종료에는 10초 정도 소요된다.

Posted by 구차니
Linux/Ubuntu2009. 11. 2. 00:57
예전 draco 님의 블로그에서 보고 졸라서 알아낸 정보인데


상단의 패널에 이런식의 온도 정보를 넣고 쓰시길래 물어 봤더니...
기본 기능이라고 하시길래 찾아 봤다.

아무튼, 저 빈칸에서 우클릭 - 패널에 추가를 해주면 되고
적당한 것을 골라서 넣어주면 된다.

Computer Temperature Monitor나
Hardware Sensors Monitor를 선택해주면 위의 화면과 같이 패널에 추가된다.



Posted by 구차니
Linux2009. 10. 22. 13:10
$ man 2 mount
       #include <sys/mount.h>

       int mount(const char *source, const char *target,
                 const char *filesystemtype, unsigned long mountflags,
                 const void *data);

       int umount(const char *target);

       int umount2(const char *target, int flags);

mount의 형태는 저따구인데.. 알흠답지 못하다...
아무튼 cifs를 마운트 하기 위해서는 "-o user=userid,password=userpw" 라는 옵션이 들어가는데
mount() 함수에서 사용하려니.... 오잉? 가변인자가 아니다 ㄱ-

몇번 실험해보니
"-o"를 제외하고 나머지 값을 data에 넘겨주면 된다.


$ mount -t cifs -o user=userid,password=userpw \\serverip\share /mnt/samba

mount("\\serverip\share", "/mnt/samba", "cifs", 0, "user=userid,password=userpw");
로 대치하여 사용하면 된다.

[링크 : http://linux.die.net/man/2/mount]

'Linux' 카테고리의 다른 글

tree  (0) 2009.11.16
설치하지 않은 rpm에 포함된 파일의 내용 보기  (0) 2009.11.04
execl()로 mount 실행하기 - samba  (2) 2009.10.14
gnash - GNU SWF player  (0) 2009.09.23
/ 는 root // 는?  (0) 2009.09.22
Posted by 구차니
Linux2009. 10. 14. 15:20
 CIFS: UNC Path does not begin with // or \\

execl("/bin/mount", "mount", "-t","cifs", resolv_urn, mount_point, "-o", option, NULL);

일단 resol_urn의 내용은
커맨드 라인상으로는

mount -t cifs //servernam/sharename 혹은
mount -t cifs "//servernam/share name" 혹은

으로 실행이 되는데, execl 에서

sprintf(resolv_urn, "\"//%s/%s\"", servername, sharename);
로 하니 위와 같은 에러가 난다.

곰곰히 생각해보니..

execl() 에서 인자로 넘기는 하나하나에는 공백이 들어가도 상관이 없다!!!
그게 무슨 말이냐면은, 공백까지 인식을 시키기 위해서 " "를 사용하는 것인데
execl() 자체에 들어가는 인자는 이러한 것을 인식한 것이기 때문에
굳이 \" \" 를 써가면서 문자열 내에 " "를 넣을 필요가 없는 것이다.

결론은
sprintf(resolv_urn, "//%s/%s", servername, sharename);
이런 식으로 urn을 입력해주면 상황끝!

'Linux' 카테고리의 다른 글

설치하지 않은 rpm에 포함된 파일의 내용 보기  (0) 2009.11.04
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
gnash - GNU SWF player  (0) 2009.09.23
/ 는 root // 는?  (0) 2009.09.22
User Mode Linux - UML  (0) 2009.09.15
Posted by 구차니
Linux2009. 9. 23. 14:25

[링크 : http://www.gnashdev.org/]
[링크 : http://www.gnu.org/software/gnash/]
[링크 : http://en.wikipedia.org/wiki/Gnash]

Gnash is a GNU Flash movie player. Flash is an animation file format pioneered by Macromedia which continues to be supported by their successor company, Adobe. Flash has been extended to include audio and video content, and programs written in ActionScript, an ECMAScript-compatible language. Gnash is based on GameSWF, and supports most SWF v7 features and some SWF v8 and v9.


포팅기
[링크 : http://kelp.or.kr/korweblog/stories.php?story=08/02/12/8083653]


youtube 등의 포털에서 제공하는 swf 동영상은 무엇으로 플레이 할 수 있는지 모르겠따...





March 10, 2009

It has been a very long time since we last made a release and many did not think we would make one again but, back by popular demand, we are proud to announce a new release: FFmpeg 0.5. Check out the release notes and changelog.

It is codenamed "half-way to world domination A.K.A. the belligerent blue bike shed" to give an idea where we stand in the grand scheme of things and to commemorate the many fruitful discussions we had during its development.

This release includes a very extensive number of changes, but some of the highlights are:

  • Significant work to support at least decoding of all widespread mainstream proprietary codecs, such as:
    • decoders and encoders
      • ALAC
      • Flash Screen Video
      • WMAv2 decoder fixed, WMAv1/v2 encoder
    • decoders
      • Atrac3
      • MLP/TrueHD
      • On2 VP3 improvements and VP5/VP6 support
      • RealAudio Cooker and fixes for 14.4 and 28.8
      • RealVideo RV30/40
      • WMV3/WMV9/VC-1 and IntraX8 frame support for WMV2/VC-1

[링크 : http://ffmpeg.org/]

 비디오 종류
    * FLV1:Sorenson H.263
    * FLV4:On2 TrueMotion VP6

[링크 : http://ko.wikipedia.org/wiki/%ED%94%8C%EB%9E%98%EC%8B%9C_%EB%B9%84%EB%94%94%EC%98%A4]

'Linux' 카테고리의 다른 글

mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
execl()로 mount 실행하기 - samba  (2) 2009.10.14
/ 는 root // 는?  (0) 2009.09.22
User Mode Linux - UML  (0) 2009.09.15
Avahi daemon은 머하는 넘인고?  (0) 2009.09.14
Posted by 구차니
Linux2009. 9. 22. 17:15
[morpheuz@localhost /]$ cd /
[morpheuz@localhost /]$ cd //
[morpheuz@localhost //]$

make 를 실행하다가 경로중에 // 나 /// 가 들어가는 경우가 있어
오작동을 하면 어떡하나 하고 고민했는데 제대로 들어 가는 것 같긴하다(써글 삼바!)

아무튼, 검색을 하려고 해도 특수문자라서 무시당해 검색도 못하는 비운의 문자열이긴한데..
도대체 cd / 와 cd //의 차이는 멀까?
Posted by 구차니
Linux2009. 9. 15. 18:28
Unified Modeling Language 말고 리눅스에서도 UML이 있다 ㄱ-
일종의 colinux linux 버전 같기도 하고..

아무튼 한빛미디어의 홈페이지에서 간간히 걸려나오는데
페이지 제목은 "시스템 재해 복구 연습 해보기" 이다.
[발견 : http://network.hanb.co.kr/print.php?bi_id=267]
20100123 추가
-> 링크 변경 [링크 : http://www.hanb.co.kr/network/view.html?bi_id=267]

UML을 이용하면 리눅스 상에서 독립된 리눅스를 만들어서
임의로 시스템을 파괴하고 복구해볼수 있도록 되어 있는 듯 하다.

[링크 : http://user-mode-linux.sourceforge.net/]

Posted by 구차니