프로그램 사용/nfs2010. 2. 11. 18:14
[링크 : http://www.netnux.com/zbxe/794]
[링크 : http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-nfs.html]
[링크 : http://kldp.org/node/20392]
[링크 : http://www.4ellene.net/tt/135]

NFS - Network File System

NFS share
/etc/exports
/var/lib/nfs/etab

NFS server (ubuntu)
/etc/default/nfs-kernel-server
/etc/init.d/nfs-kernel-server

// hosts_access - format of host access control files
/etc/hosts.allow
/etc/hosts.deny

// Network name configuration
/etc/host.conf - resolver configuration file (WHOLE)
/etc/resolv.conf - resolver configuration file (DNS)
/etc/hosts -  The static table lookup for hostnames
/etc/hostname - show or set the system's host name
/etc/dnsdomainname - show the system's DNS domain name

rpc.mountd - NFS mount daemon
rpc.nfsd - NFS server process
rpc.statd - NSM status monitor
exportfs - maintain list of NFS exported file systems
nfsstat - list NFS statistics
rpcinfo - report RPC information
showmount - show mount information for an NFS server
/var/lib/nfs/rmtab

/etc/rpc - rpc program number data base

// NFSv4 ID <-> Name Mapper
idmapd
rpc.idmapd
idmapd.conf

// DARPA port to RPC program number mapper
portmap

/var/lib/nfs/xtab

nfs

mount: [server:path] failed, reason given by server: Permission denied
/etc/exports 에 정의 안된것을 mount 하려하면 이런 에러 발생
exportfs -ra 로 업데이트 되었는지 확인
혹은 service nfs-kernel-server restart로 갱신
혹은 service nfs-kernel-server force-reload로 갱신
혹은 /etc/exports에 있는지 없는지 확인

http://www.higs.net/85256C89006A03D2/web/PageLinuxNFSTroubleshooting


mount: mounting [server:path] on nfs failed: Protocol not supported

http://www.linuxquestions.org/questions/linux-embedded-78/protocol-not-supported-error-after-mount-692466/

mountd port 변경
[링크 : http://mindwing.kr/141]

'프로그램 사용 > nfs' 카테고리의 다른 글

NFS 왜 안될까?  (0) 2010.02.17
changing port of NFS daemons (Installing STLinux On VMWare)  (0) 2010.02.12
NFS 설정 /etc/exports 의 squash  (0) 2010.02.11
unfsd - udev nfs deamon  (2) 2010.02.08
nfsstat  (0) 2010.02.07
Posted by 구차니
프로그램 사용/gcc2010. 2. 11. 16:05
gcc -static [파일이름]

위와 같이 컴파일 하면 정적으로 링크한다.
예를들어 /sbin/init 등이 제대로 되는지 확인할때
init를 임의로 만들어 정적으로 컴파일 후에 /sbin/init 치환하면
/lib 뒤질일 없이 바로 실행이 가능하므로 디버깅이 용이해진다.

하지만, 용량이 무지 커지니 주의!

-static
On systems that support dynamic linking, this prevents linking with the shared libraries. On other systems, this option has no effect.

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

[링크 : http://www.faqs.org/docs/Linux-mini/NFS-Root.html#toc5]
[링크 : http://lists.busybox.net/pipermail/busybox/2007-May/061479.html]
[링크 : http://www.linuxquestions.org/questions/linux-kernel-70/2.4.36.3-busyboxs-init-hangs-at-freeing-unused-kernel-memory-645556/]
Posted by 구차니
프로그램 사용/nfs2010. 2. 11. 14:45
현재 TCP를 통해 NFS가 부팅을 못하는게 이거 문제는 아닌것 같지만
아무튼, 보안관련 설정으로 squash 라는 것이 있다.

No root-squash means that the root user will not be mapped to user nobody (this is normally done for security reasons) when mounting / accessing a NFS file system.

[링크 : http://communities.vmware.com/thread/105011]

no-root-squash        루트의 자격으로 파일시스템에 접근할 수 있도록 마운트
     root-squash        루트의 자격으로 파일시스템에 접근하면 anonymous uid/gid로 바꿔서 허가

[링크 : http://mnslaboratory.springnote.com/pages/952932.xhtml]

User ID Mapping

nfsd bases its access control to files on the server machine on the uid and gid provided in each NFS RPC request. The normal behavior a user would expect is that she can access her files on the server just as she would on a normal file system. This requires that the same uids and gids are used on the client and the server machine. This is not always true, nor is it always desirable.

Very often, it is not desirable that the root user on a client machine is also treated as root when accessing files on the NFS server. To this end, uid 0 is normally mapped to a different id: the so-called anonymous or nobody uid. This mode of operation (called 'root squashing') is the default, and can be turned off with no_root_squash.

By default, exportfs chooses a uid and gid of 65534 for squashed access. These values can also be overridden by the anonuid and anongid options. Finally, you can map all user requests to the anonymous uid by specifying the all_squash option.

Here's the complete list of mapping options:

root_squash
Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not apply to any other uids that might be equally sensitive, such as user bin.
no_root_squash
Turn off root squashing. This option is mainly useful for diskless clients.
all_squash
Map all uids and gids to the anonymous user. Useful for NFS-exported public FTP directories, news spool directories, etc. The opposite option is no_all_squash, which is the default setting.
anonuid and anongid
These options explicitly set the uid and gid of the anonymous account. This option is primarily useful for PC/NFS clients, where you might want all requests appear to be from one user. As an example, consider the export entry for /home/joe in the example section below, which maps all requests to uid 150 (which is supposedly that of user joe).

[링크 : http://linux.die.net/man/5/exports]

7.4. I do not have permission to access files on the mounted volume.

This could be one of two problems.

If it is a write permission problem, check the export options on the server by looking at /proc/fs/nfs/exports and make sure the filesystem is not exported read-only. If it is you will need to re-export it read/write (don't forget to run exportfs -ra after editing /etc/exports). Also, check /proc/mounts and make sure the volume is mounted read/write (although if it is mounted read-only you ought to get a more specific error message). If not then you need to re-mount with the rw option.

The second problem has to do with username mappings, and is different depending on whether you are trying to do this as root or as a non-root user.

If you are not root, then usernames may not be in sync on the client and the server. Type id [user] on both the client and the server and make sure they give the same UID number. If they don't then you are having problems with NIS, NIS+, rsync, or whatever system you use to sync usernames. Check group names to make sure that they match as well. Also, make sure you are not exporting with the all_squash option. If the user names match then the user has a more general permissions problem unrelated to NFS.

If you are root, then you are probably not exporting with the no_root_squash option; check /proc/fs/nfs/exports or /var/lib/nfs/xtab on the server and make sure the option is listed. In general, being able to write to the NFS server as root is a bad idea unless you have an urgent need -- which is why Linux NFS prevents it by default. See Section 6 for details.

If you have root squashing, you want to keep it, and you're only trying to get root to have the same permissions on the file that the user nobody should have, then remember that it is the server that determines which uid root gets mapped to. By default, the server uses the UID and GID of nobody in the /etc/passwd file, but this can also be overridden with the anonuid and anongid options in the /etc/exports file. Make sure that the client and the server agree about which UID nobody gets mapped to.

[링크 : http://www.higs.net/85256C89006A03D2/web/PageLinuxNFSTroubleshooting]

root_sqash
     uid/gid 0(uid0와 gid0는 user root와 group root의 값이다)를 익명 uid/gid로 연결하기를 요청한다.
     사용자 'bin'과 같이 민감한 uid에는 적용되지 않음을 유의하라.
no_root_squash
     root squash를 사용하지 않음. 이 옵션은 디스크가 없는 클라이언트(MTD device)에 주로 사용됨.
all_squash
     모든 uid/gid를 익명 uid/gid로 연결함. NFS 로 연결된 공개(익명?) FTP 에 유용함.
     반대 옵션은 no_all_squash이며 기본값임.

기본값
root_squash / no_all_squash
root 계정을 익명(기본값으로 uid:65534/gid:65534로 연결)으로 사용하며, 모든 아이디를 익명으로 연결하지 않음
= 개별 uid/pid를 사용함.

'프로그램 사용 > nfs' 카테고리의 다른 글

changing port of NFS daemons (Installing STLinux On VMWare)  (0) 2010.02.12
NFS 관련  (0) 2010.02.11
unfsd - udev nfs deamon  (2) 2010.02.08
nfsstat  (0) 2010.02.07
우분투에서 nfs로 uboot 부팅이 안돼요 2  (0) 2010.02.06
Posted by 구차니
우리가 이야기 하는

kr(국가코드)
kor,ko (언어코드)

들은 iso 639와 iso 3166에 정의되어 있다.

[링크 : http://en.wikipedia.org/wiki/ISO_639] 언어명에 대한 표준
[링크 : http://en.wikipedia.org/wiki/ISO_3166] 국가명에 대한 표준
Posted by 구차니
Linux2010. 2. 11. 01:32
머.. 시리얼이라고 하니 구시대 같지만
모뎀이라는 좋은기술이 널리 퍼졌던게 그리 오래되진 않았었다 ^^;

유닉스에서는 kermit 이라는 넘이 가장 유명했는데
이녀석을 이용해서 데이터를 주고 받을수 있다.

[링크 : http://linux.die.net/man/1/kermit]
[링크 : http://linux.die.net/man/1/minicom]
[링크 : http://docwiki.gumstix.org/Connecting_via_Serial_-_Linux]

uuencode는 시리얼로 전송시에 특수한 문자열이 나와 시리얼 포트 제어문자와 겹치지 않도록
ASCII 영역을 이용하여 전송하도록 인코딩한다. uudecode는 인코딩한것을 원래대로 해제한다.
Name
uuencode, uudecode - encode a binary file, or decode its representation

Synopsis

uuencode [-m] [ file ] name
uudecode [-o outfile] [ file ]...

Description

Uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other than simple ASCII data.

[링크 : http://linux.die.net/man/1/uuencode]
[링크 : http://linux.die.net/man/1/uudecode]
[링크 : http://stone.backrush.com/sunfaq/ljs024.html]
Posted by 구차니
ep. 1 - 커플 격투단
      애인님하랑 데이트하러 가는데 지하철 경노석(?)에 앉은 멤버들
      오빠 언넝와~ 라고 외치던 아가씨 1
      등산가방에 노숙자 이미지가 풍기던 목소리 큰 아저씨 x 2
      아무튼 난 4정거장만 가면되는데 한정거장이 지나고
      두정거장을 지나면서 목소리가 올라간다.

      이야기를 대충 들어보니.. 여자가 연하고 생활비로 20정도 주었는데
      그돈으로 차려입고 소개팅 나갔다고 여자는 광분모드. 돈내놓으라고 돌려달라고 하는데
      가죽잠바 주머니 떨어지고, 남자는 우산으로 패버릴려고 하고.
      남의 싸움 구경하다 보니, 내릴곳.. 아까비 ㄱ-

ep. 2 - 장미는 비싸효
      애인님하랑 데이트하러 꽃사들고 가는데. 이런 우라질레이션!
      장미한송이에 4000원! OTL. 졸업식 기간이라서 비싸다는 꽃집 아주머니의 크리티컬 카운터 OTL

ep.3 - 제꺼는 ipad가 아니어요
      데이트를 마치고 지하철을 타고 집으로 가는데,
      이야기는.. 갓 대학생이고. 생긴건 한 5년차 직딩같은데...
      내 노트북을 보더니 둘이서 수근수근(머스마들이 그냥 물어보지 ㄱ-)
      "야 아이패드인가봐~"

      구차니 : 아이패드 아직 출시 안됐어요~
      "아.. 예... (머쓱머쓱)"

      이런거 보면, 잡스 아저씨 일만 죽어라 열심히 하면서 i 시리즈의 인지도는 확실히 세운듯?

요녀석이 ipad

이녀석은 TC-1100 / TC-1000

머.. 어짜피 둘다 10인치급이니..
그래도! 타블렛 유저로서!!! 터치따윈 훗!

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

내가 잘하는건 멀까?  (6) 2010.02.16
즐겁지 많은 않은 설  (4) 2010.02.12
GPL 의 족쇄  (0) 2010.02.03
연말정산 배우자 등록  (2) 2010.02.03
"하루늦은" 퇴근일기 - 20100202  (4) 2010.02.03
Posted by 구차니
개소리 왈왈2010. 2. 10. 14:52
중학교때 집에서 데굴멍하다가 점심때 쯤에 지진을 느꼈었는데.
찾아보니

19

1996-12-13

13:10:17

128.8

37.2

4.5

강원도 영월 동쪽 약 20Km 지역
진도Ⅲ: 영월, 정선
진도Ⅱ: 춘천, 강릉, 속초, 홍천, 인제, 안동, 대구, 부산, 동해,
울진, 대전, 부여, 추풍령, 아산, 구미, 영천, 진주,
합천, 거창, 산청, 포항, 군산
진도Ⅰ: 서울, 철원, 인천, 안산, 부천, 수원, 양평, 이천, 여수,
장흥, 보성, 광주, 무안, 서산, 홍성, 울산, 마산, 통영,
제주


포항에서는 진도 2고, 발생지에서는 4.5 였나보다.
아무튼 집이 그때 13층이라 흔들흔들~

어제는 시흥에서 지진나서 분당 수내에서 위아래로 한번 쾅!
살면서 두번이나 겪다니 ㄱ-

아니.. 이제 시작인가?!!!

[링크 : http://www.donga.com/news/d_story/science/earthquake/earthquake_size1.html]

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

닭다리와 다리 방향  (6) 2010.02.15
새해복 많이 받으세요!  (4) 2010.02.14
은근 중독성 동영상 - 어스토니시아 온라인  (2) 2010.02.09
예지몽?  (4) 2010.01.31
삶이 빡시다  (0) 2010.01.30
Posted by 구차니
프로그램 사용/gcc2010. 2. 10. 10:45
gcc에서 지원하고 있는 언어를 확인하고 싶을때 사용하는 방법으로
gcc의 버전 정보중에 --enable-languages 의 값을 확인하면 된다.

$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)

$ sh4-linux-gcc -v
Using built-in specs.
Target: sh4-linux
Configured with: ../configure --host=i686-pc-linux-gnu --target=sh4-linux --prefix=/opt/STM/STLinux-2.2/devkit/sh4 --exec-prefix=/opt/STM/STLinux-2.2/devkit/sh4 --bindir=/opt/STM/STLinux-2.2/devkit/sh4/bin --sbindir=/opt/STM/STLinux-2.2/devkit/sh4/sbin --sysconfdir=/opt/STM/STLinux-2.2/devkit/sh4/etc --datadir=/opt/STM/STLinux-2.2/devkit/sh4/share --includedir=/opt/STM/STLinux-2.2/devkit/sh4/include --libdir=/opt/STM/STLinux-2.2/devkit/sh4/lib --libexecdir=/opt/STM/STLinux-2.2/devkit/sh4/libexec --localstatedir=/opt/STM/STLinux-2.2/devkit/sh4/var --sharedstatedir=/opt/STM/STLinux-2.2/devkit/sh4/share --mandir=/opt/STM/STLinux-2.2/devkit/sh4/man --infodir=/opt/STM/STLinux-2.2/devkit/sh4/info --program-prefix=sh4-linux- --with-local-prefix=/opt/STM/STLinux-2.2/devkit/sh4 --with-sysroot=/opt/STM/STLinux-2.2/devkit/sh4/target --enable-languages=c,c++ --enable-threads=posix --enable-nls --enable-c99 --enable-long-long --with-system-zlib --enable-shared --enable-multilib --enable-symvers=gnu --enable-__cxa_atexit --with-gxx-include-dir=${prefix}/target/usr/include/c++/4.1.1
Thread model: posix
gcc version 4.1.1 (STMicroelectronics/Linux Base 4.1.1-23)


[링크 : http://korea.gnu.org/manual/release/install/configure.html]
Posted by 구차니
하드웨어2010. 2. 9. 16:48
resistive [rizístiv] a.
저항하는, 저항력 있는, 저항성의; 〖전기〗 저항의.

capacitive [kəpǽsətiv] a.
〖전기〗 전기 용량의, 용량성의.

용어대로라면, 감압식이라기 보다는 저항식 터치가 되어야 하지 않을까 생각이 되지만,
아무튼, 감압식은 두장의 패널로 좌표를 측정하는 방식이다.
누르면 저항이 변경되고 이 값을  4개의 핀으로 보내 ADC를 통해 좌표를 추출한다.(일종의 위치에 따른 가변저항?)


그에 반해, 정전식은
전기가 통할수있는(그렇다고 몇백 볼트는 아니겠지만) 유리같은 녀석에 신체와 같이 전하를 띄는 물체가
접촉하거나 근접하면 접촉면 내의 전하가 이동하여 생기는 변화를 측정하여 좌표를 측정한다.

정전식에는 두가지가 있는데
미세한 matrix 를 행/열 단위로 조사하여 접촉 지점을 특정하는 방법과,
절대 정전값을 통해 위치를 특정하는 방법이 있다고 한다.


행/열 스캔 < >그리드 스캔

아래의 링크를 보면 정전식의 두가지 구조를 볼수 있다.
[링크 : http://electronics.howstuffworks.com/iphone2.htm] << 그림만 봐도 머리에 쏙쏙!

Capacitive sensors can be constructed from many different media, such as copper, Indium tin oxide (ITO) and printed ink. Copper capacitive sensors can be implemented on standard FR4 PCBs as well as on flexible material. ITO allows the capacitive sensor to be up to 90% transparent (for single layer solutions). The size and spacing of the capacitive sensor are both very important to the sensor's performance. In addition to the size of the sensor, and its spacing relative to the ground plane, the type of ground plane used is very important. Since the parasitic capacitance of the sensor is related to the E-Field's path to ground, it is important to choose a ground plane that limits the concentration of E-Field lines without a conductive object present.


Designing a capacitance sensing system requires first picking the type of sensing material (FR4, Flex, ITO, etc). One also needs to understand the environment the device will operate in, such as the full operating temperature range, what radio frequencies are present and how the user will interact with the interface.


There are two types of capacitive sensing system. Transcapacitance, where the object (finger, conductive stylus) alters the transcapacitance coupling between row and column electrodes, which are scanned sequentially.[3] The second is Absolute Capacitance where the object (finger, etc.) senses the presence and absolute position horizontally and vertically on the surface. Subtraction of a preceding absolute position from the present absolute position yields the relative motion of the object/finger during that time.


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


구조적으로만 따지면, 감압식도 멀티터치가 불가능해 보이진 않지만 음.. 돈이 문제일려나?
아무튼 단순하게 값으로 받아내기에는 감압식이 간단하며
정전식은 별도의 처리과정을 통해(일종의 이미지 프로세싱/그룹핑) 터치/멀티 터치를 구현한다.

그리고 정전식은 전하를 지닌 물건이 아니면(노골적으로 말하자면 손!) 터치가 되지 않으며
온도나 습도 그리고 전하용량에 많은 영향을 받는다.
직접 아이폰을 사용해보진 않았지만, 극단적으로 장시간 무중력 상태에서 사용하면 터치가 안될지도 모르겠다?!
(인간의 몸의 정전용량은 한계가 있고, ground 처리로 바닥을 통해 빠져나가서 전하용량의 차이로 터치가 되는건데
다른 물체와 접촉하지 않은 상태에서의 인간의 전하용량이 언젠가는 터치패드와 동일해질수 있을것이고
그러면 결국에는 터치가 인식되지 않을 가능성이 있어 보인다.)

[링크 : http://ko.wikipedia.org/wiki/정전식_터치스크린]
[링크 : http://ko.wikipedia.org/wiki/감압식_터치스크린]
[링크 : http://en.wikipedia.org/wiki/Resistive_touchscreen]
[링크 : http://en.wikipedia.org/wiki/Capacitive_sensing]
Posted by 구차니
프로그램 사용/VLC2010. 2. 9. 16:26
크로스컴파일
./configure --disable-mmx --disable-sse --enable-run-as-root --with-tuning=no --host=sh4-linux --build=i686  --disable-dbus --disable-dbus-control --disable-a52 --disable-glx --disable-postproc --disable-qt4 --disable-skins2


매번오류 내는것도 귀차니즘.. OTL


2010.03.09 추가
target에서 할경우
./configure --disable-mmx --disable-sse --enable-run-as-root --with-tuning=no --disable-dbus --disable-dbus-control --disable-a52 --disable-glx --disable-postproc --disable-qt4 --disable-skins2
Posted by 구차니