Linux2014. 11. 21. 14:28
/usr/share/zoneinfo 에 저장되는데
iana에서는 time zone data를 받아서 갱신 할 수 있다.

[링크 : http://www.iana.org/time-zones]
[링크 : http://en.wikipedia.org/wiki/Tz_database]
[링크 : http://unix.stackexchange.com/questions/25139/russian-timezone-is-not-up-to-date

'Linux' 카테고리의 다른 글

mbr , fdisk, partprobe?  (0) 2014.12.02
HPET - High Precision Event Timer / linux  (0) 2014.11.27
dd 출력파일 자르지 않기  (0) 2014.11.20
linux kernel panic 자동복구  (0) 2014.11.13
avahi  (0) 2014.11.10
Posted by 구차니
Linux2014. 11. 20. 10:19
dd 에서 of= 로 지정한 파일에는 기본으로
of의 크기 만큼까지로 해서 잘리기 때문에
자르지 않기 위해서는

conv=notrunc 를 주어야 한다.

$ man dd
       of=file
              표준 출력 대신에 지정한 file을 출력 대상으로 한다.  conv=notrunc 옵션을 사용하지 않는 한은,
              seek= 바이트 크기에 따라 ( seek= 크기가 0아닌  한) 지정한 크기에 따라 출력 파일을 자른다. 

2014/08/29 - [Linux] - dd - disk duplicate
[링크 : http://linux.die.net/man/1/dd]

'Linux' 카테고리의 다른 글

HPET - High Precision Event Timer / linux  (0) 2014.11.27
timezone  (0) 2014.11.21
linux kernel panic 자동복구  (0) 2014.11.13
avahi  (0) 2014.11.10
unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
Posted by 구차니
Linux2014. 11. 13. 08:53
리눅스 커널 패닉시 자동으로 리부팅 하도록 하는 부분인데..
생각해보면 윈도우도 기본으로 리부팅은 안하니 크게 문제 될 일은 아닌거 같기도 하고..

/proc/sys/kernel$ ll panic*
-rw-r--r-- 1 root root 0 2014-11-13 08:56 panic
-rw-r--r-- 1 root root 0 2014-11-13 08:56 panic_on_io_nmi
-rw-r--r-- 1 root root 0 2014-11-13 08:56 panic_on_oops
-rw-r--r-- 1 root root 0 2014-11-13 08:56 panic_on_unrecovered_nmi 

/proc/sys/kernel$ cat panic*
0
0
0
0 

$ vi /etc/sysctl.conf
kernel.panic = 3 

[링크 : http://unix.stackexchange.com/questions/29567/configure-reboot-on-linux-kernel-panic]

'Linux' 카테고리의 다른 글

timezone  (0) 2014.11.21
dd 출력파일 자르지 않기  (0) 2014.11.20
avahi  (0) 2014.11.10
unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
ps / top 차이점?  (0) 2014.09.17
Posted by 구차니
Linux2014. 11. 10. 15:37
bonjour와 같은 녀석으로
mDNS(multicast DNS)를 통해 서로 검색하고 자신을 설정하는 프로토콜이다.

[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/12/avahi/tutorial]
[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/IOT/Discovery]

IPv4LL 이라는 용어도 나오는데. Link Local의 약자이려나?

Apple Bonjour[edit]

Bonjour (formerly known as Rendezvous) from Apple Inc., uses multicast DNS and DNS Service Discovery. Apple changed its preferred zeroconf technology from SLP to mDNS and DNS-SD between Mac OS X 10.1 and 10.2, though SLP continues to be supported by Mac OS X.

Apple's mDNSResponder has interfaces for C and Java[22] and is available on BSD, Apple Mac OS X, Linux, other POSIX based operating systems and MS Windows. The Windows downloads are available from Apple's website.[23]

Avahi[edit]

Avahi is a Zeroconf implementation for Linux and BSDs. It implements IPv4LL, mDNS and DNS-SD. It is part of most Linux distributions, and is installed by default on some. If run in conjunction with nss-mdns it also offers host name resolution.[24]

Avahi also implements binary compatibility libraries that emulate Bonjour and the historical mDNS implementation Howl, so software made to use those implementations can also utilize Avahi through the emulation interfaces.


[링크 : http://en.wikipedia.org/wiki/Zero-configuration_networking

DNS-SD (Service Discovery)
mDNS (multicast DNS)
IPv4LL (IPv4 Link Local address)

2009/09/14 - [Linux] - Avahi daemon은 머하는 넘인고?

'Linux' 카테고리의 다른 글

dd 출력파일 자르지 않기  (0) 2014.11.20
linux kernel panic 자동복구  (0) 2014.11.13
unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
ps / top 차이점?  (0) 2014.09.17
rdate / ntp  (0) 2014.09.17
Posted by 구차니
Linux2014. 9. 22. 13:53
LG NAS N2R1DDR2인가..
아무튼 회사에서 굴러 다니는 NAS가 있어서 살려보겠다고 하드 뽑아서
데탑에 연결하고 사용해보려는데!!!

mount 하니 에러! 폭풍 발생!
$ sudo mount /dev/sdc1 /mnt/test
mount: unknown filesystem type 'linux_raid_member

fdisk -l 해서 보니 linux raid auto 라고 파티션에 뜬다.

이게 뭐시여 하고 검색해보니
linux sw raid 구성방법으로 mdadm을 이용하면 된다고 한다

$ sudo apt-get install mdadm
$ mdadm --assemble --run /dev/md0 /dev/sdc1
$ mount /dev/md0 /mnt/test 

아무튼.. RAID 라고 해도 이렇게 마운트 하는걸로는 하드에 데이터 변경이 없기 때문에
원래대로 NAS에 연결해도 문제없이 인식을 한다.
그런데.. 파일을 변경하거나 삭제하면 어떻게 될려나....

+ 2014.09.23 추가
하드 하나를 뽑아서 수정하고 연결하니 원복된다 -_-
한개씩 뽑아 둘다 수정하고 넣던가 두개를 뽑아 수정하고 넣어야 하나?
+

[링크 : http://serverfault.com/questions/383362/mount-unknown-filesystem-type-linux-raid-member]
[링크 : http://ubuntuforums.org/showthread.php?t=2191753]
[링크 : http://linux.die.net/man/8/mdadm

'Linux' 카테고리의 다른 글

linux kernel panic 자동복구  (0) 2014.11.13
avahi  (0) 2014.11.10
ps / top 차이점?  (0) 2014.09.17
rdate / ntp  (0) 2014.09.17
nice  (0) 2014.09.16
Posted by 구차니
Linux2014. 9. 17. 14:01
ps로도 cpu 점유율을 볼 수 있지만
top보다 낮게 나오는 경향이 있어서 검색을 해보니

ps는 ps한 시점에 proc에서 검색한 cpu 사용량이고
top은 proc에서 일정 주기로 합산해서 cpu 사용율을 출력한다 한다.
[링크 : http://unix.stackexchange.com/questions/58539/top-and-ps-not-showing-the-same-cpu-result]
[링크 : http://linux.die.net/man/1/top
[링크 : http://linux.die.net/man/1/ps]  


특정 프로세스의 cpu 사용시간을 볼 경우 -o 옵션을 주면된다.
$ ps -o pid,comm,etime,time -p $PID
[링크 : http://serverfault.com/...linux-how-to-get-average-cpu-utilization-of-a-process-over-specified-period-of]


'Linux' 카테고리의 다른 글

avahi  (0) 2014.11.10
unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
rdate / ntp  (0) 2014.09.17
nice  (0) 2014.09.16
bash VI 모드 / Emacs 모드  (0) 2014.09.03
Posted by 구차니
Linux2014. 9. 17. 10:44
ntp는 123
rdate 37 포트를 사용한다.

간혹 rdate가 안되는 경우도 있는 것 같으니
NTP를 추천하는 것 같기도..
[링크 : http://coffeenix.net/bbs/viewtopic.php?p=2123&sid=0d8c95c161ac6b4fb07617492784b47d]

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

내부적으로는 rdate도 Time protocol을 이용해 시간을 받아오지만
rdate의 경우 시간을 받아오면 바로 설정해버려서 문제가 될 수도 있기에 ntp로의 이전을 추천한다고 한다.
[링크 : http://en.wikipedia.org/wiki/Rdate]

'Linux' 카테고리의 다른 글

unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
ps / top 차이점?  (0) 2014.09.17
nice  (0) 2014.09.16
bash VI 모드 / Emacs 모드  (0) 2014.09.03
bash 파일 상태 관련 if  (0) 2014.09.01
Posted by 구차니
Linux2014. 9. 16. 08:51
nice 값을 늘릴때는
 # nice -5 command args

nice 값을 줄일때에는
 # nice -n -5 command args
[링크 : http://blog.nextcube.pe.kr/115]


man page를 봐도 먼가.. 직관적으로 와닫지 않는 설명 .. -_-a
Synopsis
nice [OPTION] [COMMAND [ARG]...]

Description
Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).

-n, --adjustment=N
add integer N to the niceness (default 10)
--help
display this help and exit
--version
output version information and exit
 
[링크 : http://linux.die.net/man/1/nice

'Linux' 카테고리의 다른 글

ps / top 차이점?  (0) 2014.09.17
rdate / ntp  (0) 2014.09.17
bash VI 모드 / Emacs 모드  (0) 2014.09.03
bash 파일 상태 관련 if  (0) 2014.09.01
audit  (0) 2014.08.30
Posted by 구차니
Linux/Ubuntu2014. 9. 4. 09:22
회사 옮기고 첨 알은 단축키 ㄷㄷ
일단 metacity에서 단축키로 기본 등록이 된 것으로 보이는데..
Ubuntu 10.04 LTS 기준으로는
시스템 - 기본 설정 - 키보드 바로 가기에 설정이 존재한다.



[링크 : http://askubuntu.com/questions/133718/how-do-i-unbind-ctrl-alt-t]
Posted by 구차니
Linux2014. 9. 3. 11:04
$ set -o vi
를 사용하면 명령어 줄 에서 vi 처럼 편집이 가능한데
증상으로는 home 키를 누르거나 하면 대문자로 바뀐다 -_-
아무튼 home / end를 쓰기 위해서는
vi 모드를 해제해야 하는데
vi 모드의 반대(?)는 emcas 모드?!!?!?

$ set -o vi
$ set -o emacs

$ set -o
allexport       off
braceexpand     on
emacs           on
errexit         off
errtrace        off
functrace       off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
pipefail        off
posix           off
privileged      off
verbose         off
vi              off
xtrace          off
$ set -o
allexport       off
braceexpand     on
emacs           off
errexit         off
errtrace        off
functrace       off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
pipefail        off
posix           off
privileged      off
verbose         off
vi              on
xtrace          off

'Linux' 카테고리의 다른 글

rdate / ntp  (0) 2014.09.17
nice  (0) 2014.09.16
bash 파일 상태 관련 if  (0) 2014.09.01
audit  (0) 2014.08.30
history - bash  (0) 2014.08.30
Posted by 구차니