프로그램 사용/coLinux2009. 8. 29. 11:04
VFS: Mounted root (ext2 filesystem).


===========================================================================
# This process will install (if necessary) the coLinux modules for the
# coLinux kernel.
===========================================================================

Determining /, Found.
Mounting /
mount: Mounting /dev/cobd0 on /mnt/linux failed: No such device
VFS: Cannot open root device "cobd0" or unknown-block(117,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(117,0

구동을 하자마자 죽길래 뒤에 메시지가 더 있는데 바로 창이 닫혀서 이정도 밖에 캡쳐를 못했다.

일단 경로를 찾을수 없어서 Kernel panic을 일으키고 죽는것인데, 경로가 내 문서에 있었다.
한글로 "내 문서" 이다 보니까 리눅스에서 제대로 인식을 하지 못하고 rootFS를 인식하지 못하고 죽는 것이다.

해결방법은
상위 폴더중에 한글 폴더를 없애면 된다.(영문으로 변경하거나, 폴더를 이동시킴)
Posted by 구차니
개소리 왈왈/독서2009. 8. 28. 23:48

[링크 : http://www.yes24.com/24/goods/3407954]

간만에 책을 마음 먹고 읽었다.
음.. 고등학교 졸업이후로는 마음먹고 책을 읽은적이 없었으니.. 거의 8년 만인가..


아무튼 요즘인기 폭발인(?)
위키피디아와 유튜브 그리고 우분투의 개발과정과
새로운 패러다임에 대한 가능성, 그리고 우려에 대한 내용이다.

저자는 이러한 오픈소스의 관리방식에 있어, 적절한 통제가 없으면 집단지성의 힘을 내지 못하게 되고,
생물학등의 내용이 오픈되어 사용될경우, 발전과정도 빠르겠지만
역효과로, 생물학 병기를 일반인이나 테러단체에서 만들어내게 하는 문제도 있다고 한다.


지겹도록 들었겠지만,
성당과 시장모델에 있어서 시장모델의 가능성도 있지만, 결과론적으로 봤을때
둘은 우열을 나누는것이 아니라, 상생 혹은 진동으로
시대가 흐를때 마다 한번씩 번갈아가면서 그러한 과정을 통해
진보/진화를 해나가는게 아닐까라는 생각이 든다.



Posted by 구차니
사회도 군대와 같아서 짬밥이 부족하면
최선을 다해서 경력이 안되니 어쩔수 없다는 듯한 눈초리로 본다.


내가 아주 잘하는건 아니지만,
그래도 나름 최선을 다해서 찾아보고 고생을 했는데
왜 그걸 못하냐고 구박하기만 하는걸 보면 후우...
Posted by 구차니
Linux API/network2009. 8. 27. 14:47
Try It Out − A Password Program with termios

1. Our password program, password.c, begins with the following definitions:
#include <termios.h>
#include <stdio.h>
#define PASSWORD_LEN 8
int main()
{
    struct termios initialrsettings, newrsettings;
    char password[PASSWORD_LEN + 1];

2. Next, add in a line to get the current settings from the standard input and copy them into the termios
structure that we created above.
    tcgetattr(fileno(stdin), &initialrsettings);

3. Make a copy of the original settings to replace them at the end. Turn off the ECHO flag on the
newrsettings and ask the user for their password:
    newrsettings = initialrsettings;
    newrsettings.c_lflag &= ~ECHO;
    printf("Enter password: ");

4. Next, set the terminal attributes to newrsettings and read in the password. Lastly, reset the terminal
attributes to their original setting and print the password to render all the previous effort useless.
    if(tcsetattr(fileno(stdin), TCSAFLUSH, &newrsettings) != 0) {
        fprintf(stderr,"Could not set attributes\n");
    }
    else {
        fgets(password, PASSWORD_LEN, stdin);
        tcsetattr(fileno(stdin), TCSANOW, &initialrsettings);
        fprintf(stdout, "\nYou entered %s\n", password);
    }
    exit(0);
}

[링크 : http://people.freedesktop.org/~nagappan/beginning-linux-programming.pdf]

[링크 : http://ttongfly.net/zbxe/?document_srl=45222]
ttongfly.net 의 내용은 아마도 위의 beginning linux programming의 내용을 번역한 것으로 보인다.

위와 같은 작동은 간단하게 쉘에서
"stty -echo" << echo 끔
"stty echo" << echo 켬
로 가능하다.

하지만, 프로그램에서 쉘 호출 해봤자, 자기 자신에게 적용이 안되므로
termios를 이용해서 직접 제어를 해야 하는데, termios는 말그대로 TERMinal IO Stucture 이다.
소스에서 include 할녀석은 <termios.h> 이고 이녀석은 <bits/termios.h> 을 물어온다.

$ cat /usr/include/bits/termios.h
...
struct termios
  {
    tcflag_t c_iflag;           /* input mode flags */
    tcflag_t c_oflag;           /* output mode flags */
    tcflag_t c_cflag;           /* control mode flags */
    tcflag_t c_lflag;           /* local mode flags */
    cc_t c_line;                        /* line discipline */
    cc_t c_cc[NCCS];            /* control characters */
    speed_t c_ispeed;           /* input speed */
    speed_t c_ospeed;           /* output speed */
#define _HAVE_STRUCT_TERMIOS_C_ISPEED 1
#define _HAVE_STRUCT_TERMIOS_C_OSPEED 1
  };
...
/* c_lflag bits */
#define ISIG    0000001
#define ICANON  0000002
#if defined __USE_MISC || defined __USE_XOPEN
    # define XCASE  0000004
#endif
#define ECHO    0000010
#define ECHOE   0000020
#define ECHOK   0000040
#define ECHONL  0000100
#define NOFLSH  0000200
#define TOSTOP  0000400
#ifdef __USE_MISC
    # define ECHOCTL 0001000
    # define ECHOPRT 0002000
    # define ECHOKE  0004000
    # define FLUSHO  0010000
    # define PENDIN  0040000
#endif
#define IEXTEN  0100000

'Linux API > network' 카테고리의 다른 글

netstat 에서 0.0.0.0의 의미  (2) 2009.12.07
ioctl을 이용한 정보수집  (0) 2009.11.30
canonical / non-canonical  (0) 2009.08.27
struct in_addr  (0) 2009.08.18
ifup/ifdown  (0) 2009.08.18
Posted by 구차니
Linux API/network2009. 8. 27. 14:24
리눅스 터미널 프로그래밍에서
캐노니컬 모드(canonical)는 한줄 단위로 받아들이고
넌 캐노니컬 모드(non-canonical)는 문자 단위로 받아들인다.

[링크 : http://ttongfly.net/zbxe/?document_srl=45222]
Posted by 구차니
개소리 왈왈2009. 8. 27. 10:57
눈깔 괴물녀석 잡기 빡셨는데
일단 이거부터 해봐야하나 ㅠ.ㅠ

어윽 AP 압박 ㅠ.ㅠ

[링크 : http://mabinogi.gameabout.com/bbs/view.ga?id=68&row_no=4988&page=1]

'개소리 왈왈' 카테고리의 다른 글

멍~ 때리기  (0) 2009.09.04
2009년 8월 31일  (0) 2009.08.31
NVidia PhysX 제어판  (0) 2009.08.26
나로호에 실린 위성 궤도 진입실패라는데  (0) 2009.08.25
HD급 TV 구매는 나중으로 미뤄야지  (0) 2009.08.25
Posted by 구차니
웬지 가입해서 추천누르고 싶었어 ㄱ-

[링크 : http://todayhumor.paran.com/board/todaybest_view.php?no=243804&page=2&ask_time=1251164793]
Posted by 구차니
Microsoft/Visual Studio2009. 8. 26. 11:04

기본 값은 stack size = 1MB (그분보다 작은 용량이군 ㄱ-)
다르게 말하자면, char array로 1메가 까지 잡을 수 있다(자잘한 변수 선언하면 그 이하가 된다는 의미)

이 용량을 늘리기 위해서는 reserve 부분에 16진수로 넣으면 된다(고 한다.)

[링크 : http://www.eggheadcafe.com/conversation.aspx?messageid=30629613&threadid=30629607]
Posted by 구차니
개소리 왈왈2009. 8. 26. 09:34


머.. 노트북은 Geforce4 420Go이니 멀 바라겠냐마는...
AGEIA PhysX 프로세서 설치가 되지 않았다는 말에 웬지 8000대나 9000대 지름의 충동이 든다..


아무튼 검색을 해보니 PhysX는 원래 하드웨어 상표명으로 1세대 물리엔진 가속기 였다가
회사가 NVIDIA로 흡수되면서 Geforce8000 대 부터 가속을 지원하는 것으로 보인다.
별도의 프로세서 보다는 GPU의 남는 성능을 이용하는 것이고

PC 에는 무료로 소스를 공개하고 콘솔은 유료라서 게임에서 많이 채택하는 듯 하다.
Havoc 엔진은 일단 유료에 Nvidia의 대폭 지원으로 인해 PC게임에서 많이 보게 된 듯 하다.

8000대 부터 지원되고, GPU를 범용으로 사용하는것으로 봐서는
CUDA와 연관이 있어 보이고, 자세한 언급은 찾지못했지만 CUDA와 통합이 되었다고도 한다.

2008년 2월에 Nvidia에 흡수되었다.

[링크 : http://en.wikipedia.org/wiki/Ageia]
[링크 : http://en.wikipedia.org/wiki/Physx]

'개소리 왈왈' 카테고리의 다른 글

2009년 8월 31일  (0) 2009.08.31
mabinogi - 비퍼잡기  (2) 2009.08.27
나로호에 실린 위성 궤도 진입실패라는데  (0) 2009.08.25
HD급 TV 구매는 나중으로 미뤄야지  (0) 2009.08.25
나로호 발사성공  (2) 2009.08.25
Posted by 구차니
개소리 왈왈2009. 8. 25. 19:25
2단 로켓이 더 멀리 갔다는데 흐음...
너무 엔진이 강력했나?



아무튼 위성수명이 조금 (아마도 심하게) 줄어들더라도 자체 추진력으로 돌아오게 하면 좋을텐데.. 후우..





---
사족1. 애꿎은 연구원들 자르네 어쩌네 연봉 줄이네 개소리가 안나왔음 좋겠다.
사족2. 아직은 실시간 뉴스보다는 내일을 기다려봐야겠다.

'개소리 왈왈' 카테고리의 다른 글

mabinogi - 비퍼잡기  (2) 2009.08.27
NVidia PhysX 제어판  (0) 2009.08.26
HD급 TV 구매는 나중으로 미뤄야지  (0) 2009.08.25
나로호 발사성공  (2) 2009.08.25
비관적 구차니 모드  (2) 2009.08.25
Posted by 구차니