IT/DevOps
-
Ubuntu 11.04 한영 단축키 변경IT/DevOps 2011. 10. 11.
Ubuntu에서는 기본적으로 "Ctrl + Space" 혹은 "한/영" 키를 누르면 키보드 언어를 변환할 수 있다. 하지만 한/영 키를 누르면 프로그램 메뉴에 포커스가 잡혀, 아예 변경이 안되는 경우도 있고 반응속도가 느릴때도 있어 사용하는데 불편한점이 있다. 게다가 저는 Shift + Space가 익숙하기 때문에 한영 변환 단축키를 변경하기로 했다. 키보드 설정이나 언어 설정에 가면 한영 단축키를 변경할 수 있을꺼라 생각했었는데 실제로 그렇지가 않았다. 변경방법은 다음과 같다. 언어설정에서 "키보드 입력 시스템" 확인 "키보드 입력 시스템"에 맞는 설정창을 열여서 한영 변환 단축키 변경 일단 Ubuntu의 언어 설정에서 화면에 들어가서 "키보드 입력 시스템"을 확인한다. dock 화면에서 lang을 입..
-
xargsIT/DevOps 2011. 8. 30.
xargs 명령어는 standard input으로 들어온 특정 결과를 마치 명령어에 매개변수로 던져주는 역할을 해주는 명령어다. 리눅스는 작은 개념의 명령어(기능)들을 연결해서 사용하는 것이 철학으로 그 중 다리 역할을 하고 있다고 보면 된다. A | xargs B A의 명령어의 출력(standard output)을 파이프라인(|)을 통해서 standard input으로 xargs에게 넘겨준다. xargs에서는 들어온 결과들의 리스트를 세부리스트로 나눠서 B 명령어의 인자로 넘겨준다. EXAMPLES 이해를 높히기 위해 man 페이지에서 언급되는 사용 예를 보자. find /tmp -name core -type f -print0 | xargs /bin/rm -f /tmp 디렉토리에서 파일 이름이 core..
-
디스크 파티션 나누기(non-interactive command parted)IT/DevOps 2011. 8. 29.
리눅스에서 하드디스크에서 파티션을 나누는 방법에는 fdisk와 parted 유틸리티를 사용하는 방법이 있다. 추가된 하드디스크를 파티션을 나눠주고 포맷해주는 스크립트를 만들어야 할 일이 있었는데 fdisk는 user interactive한 설정만 가능해서 스크립트에서 사용하기 유용하지 않았다.사실 parted라는 유틸리티를 잘 몰랐었는데, user interactive하지 않은 명령어가 없나, 확인하는 과정에서 찾게된 유틸리티이다. 명령어의 help를 확인하게 되면, script 옵션을 지원한다. [root@localhost download]# parted --help Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...] Apply COMMAN..
-
Fedora15, VirtualBox에서 GNOME3 활성화 하기IT/DevOps 2011. 8. 3.
VirtualBox를 통하여 설치된 Fedora15는 GNOME3가 활성화 되지 않는다.(GNOME 3 Failed to Load) 그래픽 카드를 사용해야 하는데, 사용하기 위해서는 게스트 확장 설치를 해야 한다. 가상화 환경에 설치된 OS들은 일반적으로 가상화 그래픽카드에 대한 드라이버가 설치되어 있지 않기 때문에, 그래픽 카드 드라이버를 통하여 사용되는 기능들이 제대로 작동하지 않을 수 있다. 게스트 확장 설치는 그래픽 카드 드라이버 설치 및 가상화PC를 편리하게 사용할 수 있는 tool들을 설치하게 된다. 다음의 절차로 설치를 진행하시면 된다. 1) 가상호 머신의 네트워크 설정이 되어 있고 웹 연결이 가능한지 확인한다. 2) Applications > System Tools > Terminal을 클..
-
Fedora15, VirtualBox 설치IT/DevOps 2011. 8. 3.
Fedora는 redhat의 opensource 버전의 배포판이다. redhat은 stable 서버를 목표로 하지만 fedora는 stable 보다는 features 위주로 운영되는 배포판이라 볼 수 있다.가장 최신에 릴리즈된 Fedora 15버전을 Virtualbox를 통하여 가상화머신에 설치해보았다. 설치 이미지는 정식 사이트를 통하여 다운로드 받을 수 있다. http://fedoraproject.org VirtualBox를 실행하고 새로 만들기 버튼을 이용하여 Fedora15를 위한 VM를 새로 만들 수 있다. 저는 32bit OS를 설치할 예정이기에 linux, Fedora를 선택하여 만들었다. 만들어진 VM을 클릭한 후, 툴바의 설정 버튼을 클릭하면 설정 화면이 나타난다. 미리 다운로드 받아놓은..
-
linux 명령어에서 &&는 무슨 의미일까?IT/DevOps 2011. 7. 20.
명령어를 연속으로 실행할 수 있는데 조건을 줄 수가 있다. 이러한 조건들은 일련의 작업을 할 쉘 스크립트를 작성할 때나 컴파일 진행 후 다음 액션을 지정할 때 사용하면 유용하다. 앞의 명령어가 성공해야 다음에 이어지는 명령어를 수행 앞의 명령어가 실패하면 다음에 이어지는 명령어를 수행 명령어의 성공유무와 상관없이 명령어 리스트를 순차적으로 실행 앞의 명령어가 성공해야 다음에 이어지는 명령어를 수행하게 하는 방법은 && 이다. make test && cp test output/ make test는 test.cpp라는 소스코드파일을 컴파일해서 test라는 바이너리 파일을 만들어낸다. cp test output/는 test라는 파일을 output 디렉토리에 복사한다. && 로 두개로 묶어주면 앞의 컴파일이 성..
-
Linux Desktop EnvironmentIT/DevOps 2011. 7. 19.
Gnome에 이어서 Linux Desktop Environment에 대하여 이야기 하려고 한다. Linux는 핵심요소인 Kernel을 기반으로 unix-like 하게 구성되어 있다. 즉 텍스트 기반의 접근을 의미한다. 텍스트 기반의 장점으로는 다양한 명령어를 지원함으로써 익숙하게 되면 사용이 편리하게 되는 장점을 갖고 있지만 일반 사용자들은 사용하기가 매우 불편하기 때문에 접근이 용이하지 않다. kernel이 배포된 이후로 사용자 편의성을 높히기 위하여(꼭 linux를 위한것들은 아니지만) 90년대 이후로 사용자 편의성을 위하여 다양한 곳에서 Desktop 환경이 개발되었다. ※ Desktop 환경이란 윈도우나 맥처럼 GUI기반의 시스템 운영, 시스템 설정, 프로그램(웹브라우져, 오피스, 게임,...) ..
-
GNOMEIT/DevOps 2011. 7. 19.
Fedora15를 살펴보던중 GNOME 기반이란 단어를 보게 되었다. 웹사이트에 방문해서 찾아본 내용을 정리한다. GNOME이란 유닉스 기반의 운영체제에서 GUI(Graphic User Interface)를 포함한 일련의 데스크탑 프로그램이다. 또한 GNU Project의 일부로써, 데스크탑 환경을 무료로 제공하는 것을 목표로 한다. 106개의 회사에서 무려 3500명 이상이 프로젝트코드 레파지토리를 받아서 변경작업을 한다고 하니 발전 가능성은 무궁무진해보였다. 물론 개발자 뿐만이 아니라 Writer, Design, Translate, Test, Administrator등이 공헌하기 때문에 GNOME3에서의 깔끔한 GUI가 나온 이유를 알꺼 같았다. 웹사이트에 나오는 사진만 보더라도 심플함과 깔끔함을 엿..