개소리 왈왈/영화2010. 2. 6. 22:36
애인이 쏘신 영화!

솔찍히 요즘 영화 별로 끌리는게 없었는데
기대를 하지 않고 보았지만, 처음부터 빵빵 터져주는 송강호의 개그포스는 끊이질 않는다!!



아무튼

강동원은 난닝구만 입어도 폼나고 (젠장 ㄱ-)
송강호는 역시나 연기의 달인이고!


의형제라고 하기에는 조금 어거지스러운 전개이지만
그래도 적절한 액션 + 스릴 + 코믹 + 휴먼 영화이다

음.. 멜로가 없어서 아쉽군?!

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

그린존 (Grren zone, 2010)  (4) 2010.03.28
이상한 나라의 앨리스  (0) 2010.03.13
크리스마스 선물  (4) 2009.12.25
아바타(2009) - I see you  (7) 2009.12.20
크리스마스 캐롤 IMAX 3D (2009)  (8) 2009.11.28
Posted by 구차니
프로그램 사용/nfs2010. 2. 6. 14:12
이번에도 될지 안될지는.. 정식으로 서버 아이피 변경해봐야 하겠지만.. OTL
일단 문제가 된건, 자동 생성된 exports 파일의 내용차이

FC6 버전의 exports 파일의 내용이 아래와 같이 간략했다면
 /home/morpheuz/st7109/target      *(rw,async,nohide,no_root_squash)

우분투 버전의 exports 파일은 이렇게 길다
 /home/morpheuz/st7109/target
        *(rw,async,wdelay,nohide,nocrossmnt,secure,no_root_squash,no_all_squash,no_subtree_check,
        secure_locks,no_acl,anonuid=65534,anongid=65534)

아무튼 exports manpage를 찾아보니,
no_acl

On some specially patched kernels, and when exporting filesystems that support ACLs, this option tells nfsd not to reveal ACLs to clients, so they will see only a subset of actual permissions on the given file system. This option is safe for filesystems used by NFSv2 clients and old NFSv3 clients that perform access decisions locally. Current NFSv3 clients use the ACCESS RPC to perform all access decisions on the server. Note that the no_acl option only has effect on kernels specially patched to support it, and when exporting filesystems with ACL support. The default is to export with ACL support (i.e. by default, no_acl is off).

[링크 : http://linux.die.net/man/5/exports]
요런 내용이 나오는데.. 이게 원인이려나?

잠시 테스트 하는데.. tcp 접속 옵션이 빠져 udp로 되니 이상없이.. OTL 머가 도대체 문제지?
ACL도 상관없고 도대체 TCP가 안되는건 또 머냐고 ㅠ.ㅠ

2010/02/05 - [Linux/Ubuntu] - [확인중] 우분투의 nfs 서버로 uboot nfs 타켓 부팅 안되는 경우

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

unfsd - udev nfs deamon  (2) 2010.02.08
nfsstat  (0) 2010.02.07
우분투의 nfs 서버로 uboot nfs 타켓 부팅 안되는 경우  (0) 2010.02.05
우분투 nfs 서버 접속불가  (2) 2010.02.05
ubuntu에 NFS 서버 설치  (0) 2010.02.04
Posted by 구차니
Linux/Ubuntu2010. 2. 5. 20:32
doesn't work ansi escape sequence on ubuntu makefile(make)


$ cat test.sh
#!/bin/bash
echo -e '\E[47;34m'"\033[1mTest\033[0m"

$ cat test.sh
#!/bin/sh
echo -e '\E[47;34m'"\033[1mTest\033[0m" 

위의 결과는 아래의 소스대로, 쉘이 바뀌었다는것 밖에 차이가 없다.
결과는 sh에서 실행된것은 "-e \E[47;34m" 까지 출력되었다.
아마, 우분투의 make 시에 색상이 먹지 않는건 makefile이 기본 쉘로  /bin/sh를 쓰면서
안시 이스케이프 시퀀스가 오작동 한것으로 보인다.

해결방법은 makefile 내에
SHELL=/bin/bash 를 추가하는 것이다.

'Linux > Ubuntu' 카테고리의 다른 글

apt 명령어 정ㅋ벅ㅋ  (0) 2010.03.04
우분투에서 /etc/sysconfig/network 에 대응하는 파일  (0) 2010.02.16
tftp 설정경로  (0) 2010.02.05
sudo 사용가능하도록 설정하기  (0) 2010.02.04
우분투 사용자 자동로그인  (0) 2010.02.04
Posted by 구차니
리플에는 죄다 경상도 음식 구리다 부터 시작해서
경상도-충청도 싸움이라니 ㄱ-

가뜩이나 되서 (주어 제외) 우울한판국에
이래저래 까이니 기분참 뷁스럽구나


솔찍히 회사에서도 밥 먹는데
빨리먹네
많이먹네
짜게먹네
머가들었네
머가안들었네
이렇게 일일이 시비거는 사람들을 보고 있노라면

니꺼는 입이고 내꺼는 주둥이냐 생각이 절로든다.
물론 비위생적이라면 항의할수도 있겠냐마는
죽을 표정을 지으면서 수저던지도 띠껍게 아줌마! 라고 부르는 사람들을 보면 별별 생각이 든다.

우리집이 찢어지도록 가난해서 굶고살진 않았지만
아주풍족하게 먹진 못했고, 어머니도 어릴때부터 "음식남기는 벌받는다. 다 먹어라" 라고 하셔서
지금 살이 피둥피둥 졌지만 (응?)

아무튼, 요리를 하고 그걸 키우고 그런 사람들에 대한 예의가 아니라 생각된다.
반찬이 짜면 조금먹고 밥을 많이 먹음되고
국이 짜면 불을 붓던가, 국 조금에 밥 많이 먹음되고
머리카락이 있으면 조용히 불러 이야기하고, 빼놓고 먹음되고

그리고, 내가 맛있게 먹는데 꼭 앞에서 "그거 x나 맛없어 그거 어떻게 먹냐?" 라고 말을 해주시는 분들
난 이거면 충분히 행복한데 왜 나의 행복을 니 기준에 맞춰서 뺏어가려고 하니?

[링크 : http://issue.media.daum.net/culture/foodtravel/view.html?issueid=2699&newsid=20100205111934936&p=]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

열심히 해도 죄  (8) 2010.02.19
prorat 제제관련 (네이버)  (2) 2010.02.19
이건 뭐 답이 없다!  (0) 2010.01.27
출근일기 - 20100127  (4) 2010.01.27
공인인증서 하드에 저장 못하게 하면?  (0) 2010.01.15
Posted by 구차니
Linux2010. 2. 5. 16:34
말은 거창한데, ANSI 표준 방식으로
터미널에 글자색이나 배경색을 바꾸는 방법이다.

Table 34-1. Numbers Representing Colors in Escape Sequences

ColorForegroundBackground
black 30 40
red 31 41
green 32 42
yellow 33 43
blue 34 44
magenta 35 45
cyan 36 46
white 37 47

$ echo -e '\E[47;34m'"\033[1mE\033[0m"
흰색배경에 파란색 글씨로 m이라고 출력됨

[링크 : http://www.faqs.org/docs/abs/HTML/colorizing.html]
Posted by 구차니
프로그램 사용/nfs2010. 2. 5. 15:29
Ubuntu 9.10 Desktop Edition 에서 nfs를 사용해서 target 보드를 사용할때 발생하는 문제이다.

1. 우분투 설치시 기본으로 추가하는 계정은
    sudo user로서 admin 그룹에 추가되어 있고, gid/uid=1000 이다.
2. FC6 에서 생성되는 녀석은 gid/uid=500 부터이다.
3. FC6의 유저와 타겟을 우분투로 옮기면 nfs rootfs를 붙이고는 서버가 응답이 없다고 나온다.
IP-Config: Complete:
      device=eth0, addr=192.168.10.198, mask=255.255.255.0, gw=192.168.10.1,
     host=hmp_7109, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.10.91, rootpath=
Looking up port of RPC 100003/2 on 192.168.10.91
PHY: 0:03 - Link is Up - 100/Full
Looking up port of RPC 100005/1 on 192.168.10.91
VFS: Mounted root (nfs filesystem) readonly.
Freeing unused kernel memory: 104k freed
nfs: server 192.168.10.91 not responding, still trying
4. 물론, mount -t nfs 서버:/경로 로 붙이면 붙는다.
5. 혹시나 해서 유저를 admin 그룹에 추가하고, uid를 1000번 대로 이동시켰다.(확인 필요)

이런 경우에는 우분투의 nfs-kernel-server의 기본설정이 gid를 확인하도록 해놨기 때문이다.
이러한 보안 설정은 /etc/default/nfs-kernel-server 파일에 들어 있으며, 아래의 내용이 기본으로 들어 있다.
물론 이 파일은 기본 포맷으로 /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default 에 존재한다.

$ cat /etc/default/nfs-kernel-server
# Number of servers to start up
RPCNFSDCOUNT=8

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information,
# see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS
RPCMOUNTDOPTS=--manage-gids

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=

# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=

아무튼, 아래 내용을 번역하기 귀찮아서.. 대충 떄려잡기만 했는데,
결과론적으로, gid를 무시하고 접속을 하도록 하는것 같다.(ACL을 무시하는 듯)

장담은 못하겠지만, FC11에서도 동일한 현상으로 NFS 접속이 되지 않았는데(uboot에서)
FC11에서도 gid를 확인하도록 하기 때문이 아닐까 생각된다.

엄밀하게는 gid를 맞추어 주면 해결이 될듯 하지만.. 일단, 작동이 되니 여기까지 하는 구차니즘.. OTL

2010/02/05 - [Linux/Ubuntu] - 우분투 nfs 서버 접속불가
2010/02/04 - [Linux/Ubuntu] - ubuntu에 NFS 서버 설치


$ man mountd

NAME
       rpc.mountd - NFS mount daemon

OPTIONS
       -g  or  --manage-gids
              Accept requests from the kernel to map user id numbers into  lists of group id numbers for use in access  control.   An
              NFS  request  will normally (except when using Kerberos or other cryptographic authentication) contains a user-id and a
              list of group-ids.  Due to a limitation in the NFS protocol, at most 16 groups ids can be listed.  If you  use  the  -g
              flag,  then  the  list  of  group ids received from the client will be replaced by a list of group ids determined by an
              appropriate lookup on the server. Note that the 'primary' group id is not affected so a newgroup command on the  client
              will still be effective.  This function requires a Linux Kernel with version at least 2.6.21.

[링크 : http://linux.die.net/man/8/rpc.mountd]

2010.02.06 추가
막상 구서버를 옮기고 나서 다시 테스트 하는데 안된다 ㄱ- 뭥미?

----
다른 연관글 확인요망
Atheros LAN 드라이버의 버그로 인해 NFS/TCP의 전송에 대한 문제가 있었다.

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

nfsstat  (0) 2010.02.07
우분투에서 nfs로 uboot 부팅이 안돼요 2  (0) 2010.02.06
우분투 nfs 서버 접속불가  (2) 2010.02.05
ubuntu에 NFS 서버 설치  (0) 2010.02.04
NFS 마운트 하기 - how mount nfs filesystem  (0) 2010.01.11
Posted by 구차니
프로그램 사용/nfs2010. 2. 5. 10:18
FC6의 /etc/exports 를 우분투로 끌어왔는데 nfs가 제대로 구동되지 않았다.
아래와 같이 exportfs 라는 명령어를 통해 우분투용 설정에 맞도록 설정을 해주어야 한다.

ubuntu 9.10의 경우 nfs는 존재하지 않고, 커널이나 udev 방식의 nfs 서버가 존재한다.
아마 일반적으로 nfs대신 nfs-kernel-server 라는 서비스명으로 하면 될것이다.
확신은 못하겠지만, service nfs-kernel-server 라고 하면 /etc/exports 변경시 자동으로 업데이트 되는듯 하다.

$ sudo service nfs-kernel-server restart
이거 한줄이면 업데이트 끝.

2010/02/05 - [Linux/Ubuntu] - 우분투의 nfs 서버로 uboot nfs 타켓 부팅 안되는 경우
2010/02/04 - [Linux/Ubuntu] - ubuntu에 NFS 서버 설치


exportfs -a
exportfs
service nfs restart
service network restart

[링크 : http://www.linuxquestions.org/questions/linux-server-73/root-nfs-server-returned-error-13-while-mounting-homearavindbrfsrootfs-589574/]

exportfs - maintain list of NFS exported file systems

/usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
/usr/sbin/exportfs -r [-v]
/usr/sbin/exportfs [-av] -u [client:/path ..]
/usr/sbin/exportfs [-v]
/usr/sbin/exportfs -f

The exportfs command is used to maintain the current table of exported file systems for NFS. This list is kept in a separate file named /var/lib/nfs/xtab which is read by mountd when a remote host requests access to mount a file tree, and parts of the list which are active are kept in the kernel's export table.

-a
    Export or unexport all directories.

[링크 : http://linux.die.net/man/8/exportfs]

exportfs를 실행하면 /etc/exports 파일에서 /var/lib/nfs/xtab 으로 설정을 옮겨간다.




2010.02.17 추가
*** VERY IMPORTANT!!!! ***

M/B - P5G41T-M LX
LAN - Atheros GbE AR81 family (AR8131/AR8132)
OS   - tested on FC6
증상 - NFS 를 TCP로 접속시 타켓이 부팅을 하지 못함
원인 - 드라이버 이상으로 추측(드라이버 교체로 해결)
해결 -
아래의 링크에서 문제가 해결된 드라이버로 교체(컴파일 필요)
[링크 : http://lnx.sensibile.it/files/foxconn/AR81Family-linux-v1.0.1.4.tar.gz]


2010/02/17 - [Linux] - NFS 왜 안될까?

Posted by 구차니
Linux/Ubuntu2010. 2. 5. 10:03
FC6에서는 /etc/xinetd.d/tftp 라는 파일로 존재했다.

$ cat tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

하지만 우분투에서는 xinet 대신 inet을 사용하며,
경로역시 /etc/inetd.conf 로 변경되었다.

$ cat /etc/inetd.conf
#<off># netbios-ssn     stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/smbd
tftp            dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /srv/tftp

어쨌거나 저쨌거나, 위의 빨간색 굵게 칠해진 부분이 tftp 경로이다.
음.. 기본값이 다르군!
Posted by 구차니
3.0.x 에서는 (다르게 말하자면 Fedora Core 6 용 삼바)
기본적으로 /etc/samba/smbpasswd 라는 파일을 이용해서 계정의 암호를 관리한다.
하지만 3.4.0 으로 가면서 tdb를 사용하게 되는데, 일종의 migration이 필요하게 된다.

조금 간단하게 이야기하자면
FC6 -> Ubuntu 9.10 삼바 마이그레이션 할 경우이다.

Account Import/Export

The pdbedit tool allows import/export of authentication (account) databases from one backend to another. For example, to import/export accounts from an old smbpasswd database to a tdbsam backend:

  1. root# pdbedit -i smbpasswd -e tdbsam

  2. Replace the smbpasswd with tdbsam in the passdb backend configuration in smb.conf.



[링크 : http://samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#pdbeditthing]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

samba on Ubuntu 10.04 LTS  (0) 2010.11.11
cifsd  (0) 2010.03.18
SPNEGO, NTLMSSP  (0) 2009.12.21
삼바 디버그 메시지 설정하기  (4) 2009.12.18
삼바에서 대용량 파일 전송 실패  (0) 2009.12.03
Posted by 구차니
파이어폭스에서 게임시작을 누르면 게임이 시작된다!!!



당연한건가? -ㅁ-
Posted by 구차니