블로그 이미지
footprintz
제대로 달려, 전력 질주 할 수 있는 시간은 의외로 짧아...

calendar

1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Notice

2014. 1. 5. 16:38 개발 이야기/Linux

이 간단한걸 x삽질, x시간 낭비.. ;;


※ 해결

1. 파일의 encoding 이 어떻게 되어있는지 확인


[root@shy ~/test ]# file -i test.c

test.c: text/x-c; charset=iso-8859-1

 ☞ iso-8859-1 로 encoding 되어있음을 확인

2. vimrc 의 fileencodings 에 iso-8859-1 추가

set fileencodings=ucs-bom,utf-8,cp949,latin1,iso-8859-1

 ☞ fileencodings : 여러 인코딩 룰을 적어주면 파일을 읽을 때 하나씩 검사해서 맞는 인코딩을 찾아내어 자동으로 fileencoding 을 세팅

posted by footprintz
2013. 12. 17. 16:02 개발 이야기/Linux

하이퍼바이저 (The Hypervisor)

- VMM(Virtual Machine Monitor, or Manager)라고도 불려진다.

하이퍼바이저는 여러 개의 OS가 단일 하드웨어 호스트를 공유할 수 있도록 하는 프로그램이다.

각 OS는 호스트의 프로세서, 메모리 및 기타 자원들을 모두 스스로 나타낸다.

하이퍼바이저의 역할은 높은 수준의 관리 및 모니터링 도구에 대한 인터페이스를 제공하는 것 이외에, OS 간 서로를 방해하지 못하도록 VM에 대한 자원 및 메모리 할당 등을 처리하는 것이다.

 

 

하이퍼바이저는 크게 두가지 타입으로 나눠진다.

 

 

 

{ 참고 : Xen은 몇몇 회사들이(ORACLE, Citrix, Sun, and Virtual Iron 등등..) 가상화를 구현하기 위해 사용되는 opened-source 가상화 소프트웨어이다. }

 

 

① Type 1

 - 하이퍼바이저는(Native or Bare-Metal) 하드웨어 제어 및 Guest OS 모니터로 호스트의 하드웨어에서 직접 실행하는 소프트웨어 시스템이다.

Bare-Metal 가상화 기술은 현재 기업의 데이터센터 분야를 이끌고 있다.

VMWare ESX는 현재 기업의 가상화 시장을 이끌고 있으며, 이것은 Bare-Metal 가상화 아키텍처를 사용한다.

하이퍼바이저는 하드웨어 위에 위치해 있다. 이런 이유로 Bare-Metal 가상화라고 불려진다.

이런 이유로 많은 데이터센터들이 ESX, Xen, and Hyper-V와 같은 bare-metal 상품을 사용한다.

그 이유는, 이러한 상품들은 OS(호스트 가상화 사용)로부터 오는 오버헤드를 감소시켜 빠른 속도를 제공하기 때문이다.

 

② Type 2

 - 하이퍼바이저는(Hosted) 기존의 OS 환경에서 실행되는 소프트웨어 응용 프로그램이다.

이러한 유형의 하이퍼바이저는 일반적으로 Microsoft의 Virtual PC나 VMWare의 Workstation와 같은 클라이언트(user) 쪽에서의 가상화 프로그램이다.

 

                                                        <Type 2> // ← 전가상화의 형태이다.


※ 원문

http://blog.daum.net/_blog/BlogTypeView.do?blogid=02XHr&articleno=13719879&_bloghome_menu=recenttext

※ 참고

http://ko.wikipedia.org/wiki/%ED%95%98%EC%9D%B4%ED%8D%BC%EB%B0%94%EC%9D%B4%EC%A0%80

 

 

posted by footprintz
2011. 9. 5. 11:08 개발 이야기/Linux
posted by footprintz
2011. 9. 4. 16:25 개발 이야기/Linux
  1. pid - Process id
  2. comm - The executable filename
  3. state - R (running), S(sleeping interruptable), D(sleeping), Z(zombie), or T(stopped on a signal).
  4. ppid - Parent process ID
  5. pgrp - Process group ID
  6. session - The process session ID.
  7. tty - The tty the process is using
  8. tpgid - The process group ID of the owning process of the tty the current process is connected to.
  9. flags - Process flags, currently with bugs
  10. minflt - Minor faults the process has made
  11. cminflt - Minor faults the process and its children have made.
  12. majflt
  13. cmajflt
  14. utime - The number of jiffies (processor time) that this process has been scheduled in user mode
  15. stime - in kernel mode
  16. cutime - This process and its children in user mode
  17. cstime - in kernel mode
  18. counter - The maximum time of this processes next time slice.
  19. priority - The priority of the nice(1) (process priority) value plus fifteen.
  20. timeout - The time in jiffies of the process's next timeout.
  21. itrealvalue - The time in jiffies before the next SIGALRM is sent to the process because of an internal timer.
  22. starttime - Time the process started after system boot
  23. vsize - Virtual memory size
  24. rlim - Current limit in bytes of the rss of the process.
  25. startcode - The address above which program text can run.
  26. endcode - The address below which program text can run.
  27. startstack - The address of the start of the stack
  28. kstkesp - The current value of esp for the process as found in the kernel stack page.
  29. kstkeip - The current 32 bit instruction pointer, EIP.
  30. signal - The bitmap of pending signals
  31. blocked - The bitmap of blocked signals
  32. sigignore - The bitmap of ignored signals
  33. sigcatch - The bitmap of catched signals
  34. wchan - The channel in which the process is waiting. The "ps -l" command gives somewhat of a list

 출처 : http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlproc.html

posted by footprintz
2009. 11. 29. 23:38 개발 이야기/Linux

$ sudo apt-get install xinetd
$ sudo apt-get install telnetd
$ vi /etc/xinetd.conf
###################################
service telnet
{
     disable = no
     flags = REUSE
     socket_type = stream
     wait = no
     user = root
     server = /usr/sbin/in.telnetd
     log_on_failure += USERID
}
###################################

$ sudo /etc/init.d/xinetd restart

cf) telnet root 접속
# vi /etc/pam.d/login 에서,
auth required  /lib/security/pam_securetty.so 이것을 주석처리

# sudo /etc/init.d/xinetd restart


########################################

telnet 터미널.


posted by footprintz
2009. 1. 19. 15:37 개발 이야기/Linux

[한글 설정]
1. 나비를 설치한다.
$ sudo apt-get install nabi

2. 디렉토리에 sudo vi .gnomerc 하여 아래와 같이 입력했다.
export LANG=ko_KR.UTF-8
export LC_ALL=ko_KR.UTF-8
export XMODIFIERS="@im=nabi"
export GTK_IM_MODULE=hangul3f
export GDK_USE_XFT=1
nabi &

3. $ sudo dpkg-reconfigure locales

4. 이곳에서 영문메뉴에서 입력만 한글로 사용할려면 en_US.UTF-8 UTF-8 를 선택하고, 모든 메뉴를 한글로 할려면 ko_KR.EUC-KR EUC-KR, ko_KR.UTF-8 UTF-8 를 선택한다.

5. 재부팅.
재부팅하고나면 나비가 뜰것이다. 이후 간단한 설정만 해주면 잘 나온다.
자세한 것은 https://wiki.ubuntu.com/KoreanSetupHowto?highlight=%28korean%29/ 를 참고


ps.1 : 2006년 3월 9일 추가
Ubunt Dapper 에서는 locale 정책이 바뀌었다. 이전까지는 sudo dpkg-reconfigure locales 명령어로 locale을 수정할수 있었으나 이제는 인스톨시 한국어를 선택했다면 단지 영어와 한국어의 두 종류로 선택이 될뿐이다. 즉, UTF-8로만 선택이 된다. EUC-KR을 선택하려면 수동으로 변경해주어야 한다.

Ubuntu Dapper(Fight 4) AMD64(2006년 3월 9일 현재 커널 2.6.15-17-AMD64-generic)에서 실행.
1. $ sudo vim /etc/environment

2.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_GB:en"

위에와 같이 선택이 되어있다. EUC-KR를 추가해주자.

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="ko_KR.UTF-8"
LANG="ko_KR.EUC-KR"
LANGUAGE="ko_KR:ko:en_GB:en"

3. 재부팅후 EUC-KR 로 된 사이트나 마운트된 윈도등을 보면 잘 보인다.^^

[vi 설정]
기본 우분투 설치했을때, vim-tiny 버젼이 설치됨.
지원되는 명령어가 제한적이므로 전체설치를 해야함.
#apt-get install vim
vi .vimrc 로 아래 명령 추가
set number
set backgruound=dark or light // 바탕이 흑백일 경우 잘보이기
set shiftwidth=3 // 자동 맞추는 간격
set tabstop=3
set ruler
set visualbell // 틀렸을때 소리대신 깜박임
set textwidth=79
set autoindent
set cindent
set ai // 자동행
set si // if 문 다음에 자동으로 맞추어준다.
syntax on

관련링크 : http://blog.naver.com/eajnis?Redirect=Log&logNo=100056467138

[vi 키]
관련링크 : http://blog.naver.com/cute772?Redirect=Log&logNo=60005425106

[vm ware 비프음 설정]
linux 비프음 없애기

#vi ~/.bashrc
setterm -blength 0
xset -b

[default root password modify]
$sudo apt-get update

$ sudo sh
Password:
sh-3.1#

$ sudo passwd
Password:
Enter new UNIX password:
Retype new UNIX password:

posted by footprintz
prev 1 next