Linux/Fedora Core2009. 1. 24. 10:02
FC8에서 SCIM이 제외되는 바람에 한글 입력을 하지 못한 치욕으로 FC9는 잊고 살았는데
어느새 FC10이 출시 되었다. 그래서! 부담없이 Live USB로 부팅을 해보았는데~! 두둥!!!

SCIM이 다시 생겨났다 +_+!

물론 FC8에서도 별도로 SCIM을 설치 해주면 되는 문제이긴 하지만,
그래도 기본 설치가 되어 있지 않다는 점은 상당히 FC8에 실망을 하게 된 요인중에 하나이다.

아무튼 FC10은 SCIM도 있고, 예전의 FC8 Live에 비해서는 상당히 안정적인 느낌이 든다.
(약간의 프리징은 있지만 그렇다고 죽지는 않는 듯 하다)

Fedora Core 10의 새로운 이미지(주의 : 클릭하면 대따 커짐 1600x1200)

여전히 아쉬운 점은 AbiWord 라는 것만 들어 있어서, Ubuntu의 Open Office에 비하면 아쉽다는 점이고,
그나마 다행인 점은, GIMP와 FireFox는 들어 있다는 점이다.

abiword 스샷 (doc, pdf를 지원하지만 그래도 ppt나 xls 를 지원하지 않아서 아쉬움을 남긴다)

시계 애플릿 - 설정에 따라서 온도, 날씨, 풍향이 나온다(국내에서는 풍향까지는 나오지 않는 듯 하다)

기본 메뉴 정리 ( GIMP와 FireFox, 그리고 Pidgin 메신저가 보인다)


덧 : 숙원사업(!)인 FC10에 Beryl 설치는 오늘은 실패 하였습니다. OTL

[비공식 페도라10 가이드 : http://www.fedoraguide.info/index.php?title=Main_Page]
위의 사이트를 참고 해서 Live Fedora10에다가 AIGLX를 설치해 봐야겠다 ㅠ.ㅠ
Posted by 구차니
Linux2009. 1. 23. 13:35
mount -o loop -t iso9660 filename.iso /mount_directory
mount -o loop,ro -t iso9660 filename.iso /mount_directory

ISO 파일을 마운트 하기 위해서는 Mount Type을 iso9660으로 하고
옵션으로 loop device를 추가 해주면 된다.
다른 옵션으로 cd는 읽기 전용이므로 ro를 추가 한다.


결론 : 리눅스는 deamon이 필요 없다.

[참조 : http://stlinux.com/drupal/?q=install/distribution/mounting]
[참조 : http://www.tech-recipes.com/rx/857/mount-an-iso-file-in-linux/]
Posted by 구차니
Linux2009. 1. 22. 21:45
Fedora Core 9 기준입니다.

linux 로그인 계정 관련
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow

ID/PW는 passwd 와 shadow에 분산저장되며
그룹은 group와 gshadow에 저장이 됩니다.

NFS 관련
/etc/exports

NFS 경로의 저장은 exports 파일에 저장이 됩니다.

2010.02.02 추가

SAMBA 관련
/etc/samba

삼바의 설정과 계정은 /etc/samba 아래에 저장되어 있습니다.

사용자 계정정보 관련
/home

/home 아래의 디렉토리 별로 사용자 디렉토리가 존재함.


Posted by 구차니
Linux/Fedora Core2009. 1. 21. 13:55
예전에 KLDP 문서에서 그냥 패키지만 추가 하면 별다른 설정없이 FC6에서는 AIGLX를 사용할 수 있다고 봤지만,
실제로 해보지는 못했었다. 서버 설치 하면서 겸사겸사 딴짓을 조금 해봤는데 의외로 너무 쉽게 깔려서 허탈해졌다 OTL

설치된 패키지는 다음과 같다.
Gnome의 패키지 관리자에서 aiglx로 검색된 내용들 이다. beryl 관련 패키지들인데 전부 설치해 본다.


아래는 스카이돔, 큐브 투명 적용 화면
마우스 휠 클릭하고 prtsc 누르니 캡쳐가 된다.

Posted by 구차니
Linux2009. 1. 20. 23:45
윈도우에서는 ipconfig 라는 녀석으로 유선랜의 경우에는 dhcp까지 설정이 가능하다.
ipconfig /all <- 모든 어댑터 리스트 보기
ipconfig /renew <- dhcp 갱신



리눅스에서는 조금은 분화가 되어있다.(윈도우에 익숙해서인지 불편하다)
ifconfig - configure a network interface
dhclient - Dynamic Host Configuration Protocol Client

iwconfig - configure a wireless network interface

iwspy - Get wireless statistics from specific nodes
iwlist - Get more detailed wireless information from a wireless interface

굳이 윈도우와 비교를 하자면
 windows  linux
 ipconfig  ifconig, iwconfig
 ipconfig /renew
 dhclient, dhcpcd

[dhcpcd : http://www.phystech.com/download/dhcpcd_man.html]
Posted by 구차니
Linux2009. 1. 14. 13:20

 $ldd ps
        linux-gate.so.1 =>  (0x00110000)
        libproc-3.2.7.so => /lib/libproc-3.2.7.so (0x00b23000)
        libdl.so.2 => /lib/libdl.so.2 (0x00b4c000)
        libc.so.6 => /lib/libc.so.6 (0x009e1000)
        /lib/ld-linux.so.2 (0x009c4000)


$ar -t libdevmapper.a
bitset.o
hash.o
libdm-common.o
libdm-file.o
libdm-deptree.o
libdm-string.o
dbg_malloc.o
pool.o
libdm-iface.o


ldd 라는 녀석은 실행파일이 동적으로 사용하고 있는 라이브러리의 목록을 보여주고

ar 이라는 녀석은 라이브러리에 포함되어 있는 목록을 보여준다.


[참조 : http://www.misofruit.co.kr/seojewoo/embedded/linuxschedule/030312study.htm]


man page for ldd & ar


Posted by 구차니
Linux2008. 12. 26. 16:18
find 라는 명령어는 -exec 라는 옵션을 사용하여 파이프라인을 통해 검색된 결과를 넘겨 줄 수 있다.

윈도우/리눅스를 혼합하여 사용할 경우 의미 없이 용량만 늘리는 Thumbs.db 라는 넘을 삭제 하고 싶은데
일일이 찾아 지우기는 귀찮으니 조금 더 귀차니즘을 발휘하여 find에게 떠밀어 보자

 find [start path] -name Thumbs.db -exec rm {} \;

{} 는 검색된 결과가 넘어 가는 것이고
\; 는 명령어의 끝을 나타낸다. {}는 붙여 써야 하고(치환자)
\;역시 붙여 써야 하되, {} \;는 띄워서 써야 한다.


[참고 : http://kin.naver.com/detail/detail.php?d1id=1&dir_id=10202&eid=uOUzGMEfvG/Z2+VmcTxiS3R/sb6P15T+&qb=ZmluZCBleGVj&pid=fSfZswoi5URssbZwiR4sss--173216&sid=SVSD7S1zVEkAACzVjnk]
Posted by 구차니
Linux2008. 12. 22. 12:02
-rwxr-xr-x 1 root root   76400 Jul  5  2007 libresolv-2.5.so
lrwxrwxrwx 1 root root      16 Apr 11  2008 libresolv.so.2 -> libresolv-2.5.so
-rwxr-xr-x 1 root root   44060 Jul  5  2007 librt-2.5.so
lrwxrwxrwx 1 root root      12 Apr 11  2008 librt.so.1 -> librt-2.5.so

심볼릭 링크를 보는데 의구심이 생겼다.

1. 어떻게 심볼릭 링크는 저장이 되는지
2. libresolv-2.5.so면 16글자인데, 그럼 null 포함하면 17byte인데 왜 파일 사이즈가 16인가?

/usr/share/file/magic 파일을 보면
 9280 # lnk files windows symlinks
 9281 0       string  \114\000\000\000\001\024\002\000\000\000\000\000\300\000\000\000\000\000\000\106        MS Windows shortcut
 라는 내용이 있는데, file 하면 나오는

lrwxrwxrwx  1 morpheuz dev      7 Dec 22 11:47 tt -> err.log
[morpheuz@dev stbmw]$ file tt
tt: symbolic link to `err.log'

file 결과에서 나온 "symbolic link t"o 라는 메시지는 magic 파일에서 검색되지 않는다.

그리고 readlink() / readlink 라는 녀석도 존재 하는데
이녀석이 심볼릭 링크의 실제 내용을 읽어 주는 녀석이라고 한다.
READLINK(1)                      User Commands                     READLINK(1)

NAME
       readlink - display value of a symbolic link

SYNOPSIS
       readlink [OPTION]... FILE

DESCRIPTION
       Display value of a symbolic link on standard output.

       -f, --canonicalize
              canonicalize  by  following every symlink in every component of the given name recursively; all but the
              last component must exist

       -e, --canonicalize-existing
              canonicalize by following every symlink in every component of the given name  recursively,  all  compo-
              nents must exist

       -m, --canonicalize-missing
              canonicalize  by  following  every  symlink  in  every component of the given name recursively, without
              requirements on components existence

       -n, --no-newline
              do not output the trailing newline

       -q, --quiet,

       -s, --silent
              suppress most error messages

       -v, --verbose
              report error messages

       --help display this help and exit

       --version
              output version information and exit
근데.. 해보니 머.. ls -l 이랑 별 차이도 없는데 -ㅁ-!
Posted by 구차니
Linux2008. 12. 19. 20:05
man find

       -type c
              File is of type c:

              b      block (buffered) special

              c      character (unbuffered) special

              d      directory

              p      named pipe (FIFO)

              f      regular file

              l      symbolic link; this is never true if the -L option or the -follow option is in effect,
                     unless  the symbolic link is broken.  If you want to search for symbolic links when -L
                     is in effect, use -xtype.

              s      socket

              D      door (Solaris)


'ls -l'을  실행하면
$ ll
total 1922
drwxr-xr-x   2 root root    4096 Nov 15 04:17 bin
drwxr-xr-x   4 root root    1024 Apr 11  2008 boot
drwxr-xr-x  12 root root    3900 Nov 14 13:07 dev
drwxr-xr-x 101 root root   12288 Dec 15 04:15 etc
drwxr-xr-x  10 root root    4096 Aug 19 13:59 home
drwxr-xr-x  14 root root    4096 Apr 11  2008 lib
drwx------   2 root root   16384 Apr 10  2008 lost+found
drwxr-xr-x   2 root root    4096 Nov 14 13:07 media
drwxr-xr-x   2 root root       0 Nov 14 13:07 misc
drwxr-xr-x   2 root root       0 Nov 14 13:07 mnt
drwxr-xr-x   2 root root       0 Nov 14 13:07 net
drwxr-xr-x   2 root root    4096 Jun 19  2008 nfsroot
drwxr-xr-x   3 root root    4096 May 29  2008 opt
dr-xr-xr-x 195 root root       0 Nov 14 13:06 proc
drwxr-x---  29 root root    4096 Dec 17 11:00 root
drwxr-xr-x   2 root root   12288 Apr 11  2008 sbin
drwxr-xr-x   2 root root    4096 Apr 10  2008 selinux
drwxr-xr-x   2 root root    4096 Oct 11  2006 srv
drwxr-xr-x  12 root root       0 Nov 14 13:06 sys
drwxr-xr-x   2 root root    4096 Dec 17 13:30 tftpboot
drwxrwxrwt  16 root dev    90112 Dec 19 20:01 tmp
drwxr-xr-x  15 root root    4096 May 30  2008 usr
drwxr-xr-x  24 root root    4096 Apr 10  2008 var

이런식으로 퍼미션과 파일의 종류가 출력이 된다.
아무튼 일반적으로 보이는 녀석들은

- 일반 파일
b Block device
c Character device
d Directory
l symbolic Link

인데 드물게 보이는 녀석들이 존재 한다.
prw------- 1 morpheuz dev        0 Jul 15 13:21 initctl
crw-rw---- 1 morpheuz dev  61,   0 May 30  2008 lirc
srwxr-xr-x 1 morpheuz dev        0 Oct 20 19:57 lircd
brw-rw---- 1 morpheuz dev   7,   0 May 30  2008 loop0

이 녀석들의 의미는 역설적이게도.. find에서 찾아 냈다.

p name Pipe
s Socket


Posted by 구차니
Linux2008. 12. 18. 11:24
CALL source or . (dot operator) "include" another script

[출처 : http://tldp.org/LDP/abs/html/dosbatch.html]



In the last syntax ./ means current directory, But only . (dot) means execute given command file in current shell without starting the new copy of shell, The syntax for . (dot) command is as follows
Syntax:
. command-name
[출처 : http://www.freeos.com/guides/lsst/ch02sec01.html]




간단하게 환경변수를 쓰기 위해 만든 스크립트를 단순하게
실행하면, 별도의 쉘이 생성이 되어 실행되므로 현재 쉘에 적용이 되지 않는다.

그런 이유로 일반적으로 환경 변수로 사용하기 위한 스크립트를 실행 할때는 반드시
source [script.file] 로 실행을 한다.

source [script.file]와 동일하게
. [script.file] 을 실행해도 된다.
Posted by 구차니