반응형





3. 레드햇 리눅스 6.0 설치와 활용

현재 나와있는 대부분의 한글 배포판은 레드햇 리눅스 6.0을 기반으로 하고 있다. 여기서는 리눅스를 처음 설치하시는 분들을 중심으로 가장 중요한 내용들을 주로 이야기 하겠다..

1. 설치하기

1) 설치를 위한 부팅하기

여러분의 컴퓨터가 비교적 근래에 나온 똘똘한 녀석이라면 cd-rom으로 부팅이 가능할 것이다. 그렇다면 설치를 위한 부팅은 너무도 간단하다. 컴퓨터를 cd-rom으로 부팅이 가능하도록 cmos설정을 바꿔주신 후에 리눅스 cd를 넣고 부팅하기만 하면 된다. 만약 cd-rom부팅이 안되는 컴퓨터라면 부팅디스크를 만든다.

* 부팅디스크 만들기

리눅스 시디의 /dosutils 디렉토리의 rawrite 프로그램을 이용한다.

디스켓을 a 드라이브에 넣은 후 다음과 같이 실행하면 부팅디스크를 만든다.

d:\dosutils>rawrite

enter disk image source file name: ..\images\boot.img ?

enter target diskette drive: a: ?

please insert a formatted diskette into drive a: and press --enter-- : ?

부팅디스크가 만들어졌으면 a: 드라이브에 넣고 부팅을 합니다.

2) 첫 화면이 뜨면 영어로 쭈욱~ 적힌 환영과 안내 화면이 나오고 제일 밑에 펑션키 메뉴와 boot: 라고 나오고 커서가 깜박인다. 이때 그냥 엔터를 쳐주면 된다. 그럼 뭔가 시작하죠?

3) 두 번째 화면 역시 환영과 함께 안내 메시지다.

4) 그 다음은 설치시 사용하는 언어를 고르는 화면이다. english를 선택한다.

5) 이번엔 키보드 선택이다. 역시 us를 고르면 된다.

6) 다음은 인스톨 수단(installation method)이다. 대부분이 cd-rom에 담긴 리눅스 배포판을 이용할테니 local cdrom을 고른다.

7) 리눅스 시디를 넣으라네요. 이미 넣어 뒀죠? 그냥 엔터...o.k.

8) 새로 설치할 것인가? 기존에 깔린 리눅스를 업그레이드 할 것인가? 처음 리눅스를 설치한다면 당연히 새로 설치( install ), 기존에 설치되어 있는 리눅스가 있어도 가급적이면 그냥 새로 설치한다. ^^; 이미 설치되어 있는 리눅스가 옛날 버전의 리눅스일 경우 라이브러리 호환 문제가 생길 수도 있기 때문이다.

9) installation class라고 나오죠? 리눅스를 어떤식으로 설치할 것인가를 묻는것인데. 잘 모른다면 그냥 custom을 선택할 것을 강조 또 강조한다. workstation의 경우 기존의 리눅스 파티션을 지워버리고 스스로 알아서 다시 나누어 설치하고, server의 경우 한 컴퓨터를 몽땅 리눅스 전용 컴퓨터로 만들어버린다.(물론 기존에 있던 윈도우98 같은 것도 깨끗이 지워 버린다. ) windows와 같은 다른 운영체제와 같이 쓰려면 custom을 선택하는 것이 정신건강에 좋다.

10) scsi 어댑터가 있는가 묻고 있다. 있으면 yes, 없으면 no.

11) 이제부터 가장 어렵다고 생각되는 파티션을 나누는 부분이다.(사실 별로 어려울 것도 없

다.) 우선 맘에드는 도구를 선택한다. disk druid가 fdisk보다 조금 간편하다. fdisk를 쓰고 싶다면 어쩔 수 없지만 우리는 disk druid를 쓰기로 하자.

<여기서 잠깐!> 파티션을 실제로 나누기 전에 파티션에 관한 꼭 필요한 내용을 이야기하고 가자. 아주 쉽게 얘기해서 파티션을 나눈다는 것은 하나의 하드디스크에 여러개의 공간을 만든다고 생각하면 된다. 따라서 리눅스 파티션을 만드는 것은 windows와는 다른 리눅스만의 공간을 만드는 것이다. 만일 기존에 사용하고 있는 windows같은 운영체제가 하나의 하드디스크를 통째로 사용하고 있다면 좀 더 수고를 해야한다. 그렇지 않고 예를 들어 6.4g의 하드를 4g, 2g씩 나누어 사용하고 있다면 별 수고 없이 리눅스를 설치할 수 있다. 특별한 용도(예를 들면, 서버운영)가 아니라면 1.5g정도의 용량이면 리눅스를 설치하기에 충분하다.

* 위에서 언급했듯이 다른 운영체제가 하드디스크를 통째로 사용하고 있다면 fips라는 유틸리티를 이용하여 기존의 하나로 되어있는 파티션을 나누어 주어야 한다. 이 fips라는 유틸리티는 리눅스 시디의 /dosutils 라는 디렉토리에 있으며 자세한 사용법은 /dosutils/fipsdocs 라는 디렉토리에 있다.

* 파티션에 관한 자세한 설명은 아래 페이지를 참고하시기 바랍니다.

http://kldp.org/howto/mini/html/partition/partition.html

12) 핫..좀 복잡한 화면이 떴죠? 파티션에 관한 정보를 보여주고 고치는 부분이다.

화면이 위, 아래 두분으로 나누어져 있습니다. 윗부분은 파티션에 관한 정보를 보여주는 화면이고 아랫부분은 하드디스크의 정보를 보여주는 화면이다. 기본적인 용어를 정리해보면

mout point : 마운트할 위치

device : 파티션 이름이라고 보면 된다. hda1은 첫 번째 하드디스크의 1번 파티션을 말한다.

scsi하드의 경우 sda1과 같은 식으로 나타난다.

requested: 사용자가 요구한 용량

actual: 실제로 할당된 용량

type: 파일 시스템의 종류.

여기서 우리가 해야할 일은 리눅스를 설치하기 위해 linux native 파티션과 linux swap 파티션을 만들어 주는 일이다. 예를 들어 설명하겠다. 만약 기존에 하나의 하드디스크를 c와 d로 나누어 사용하였다면 아마도 화면의 윗부분은 hda1과 hda2 두줄로 이루어져 있을 것이다. 이때 기존의 c드라이브에 windows를 그대로 두고 d드라이브에 리눅스를 설치하고 싶다면 일단은 hda2에 파란색 막대(?)가 오도록 한 후 f4키를 눌러(혹은 tab키로 이동해서) 파티션을 삭제한다. 그 다음 f1키를 눌러서 파티션을 추가한다. edit new partition 이라는 새로운 창이 뜰 것이다. 일단 마운트 포인트는 비워 놓은 후 size로 커서를 옮겨 100정도로 적어준다(왜 꼭 100이어야 하는가? 아니어도 된다. 하지만 하드 용량에 다소 여유가 있다면 100정도로 잡으면 된다.). 그 다음 type으로 옮겨 linux swap을 선택한다. allowable drives(파티션을 설치할 드라이브를 선택하는 것이다. 두 개일 경우 두 개다 * 체크된 채로 두면 스스로 알아서 처리한다.)는 *체크된채로 둔다. o.k. 그러면 다시 돌아온 화면에서 새롭게 생성된 파티션을 볼 수 있을 것이다. 하나 더 만들자. add! 이번엔 마운트 포인트에 / 를 적는다. size 남은 용량을 대충 계산해서 적는다. grow to fill disk? 여기에 * 로 체크해준다. 그러면 남은 용량을 알아서 전부 채워준다. 이번에는 type을 linux native로 선택한다. allowable drives는 역시 *로 체크된채로 둔다. o.k. 하나가 더 만들어졌죠? 이제 리눅스를 위한 공간 마련은 끝났습니다. o.k.로 넘어간다.

13) active swap space라고 나오죠? 스왑 파티션에 스왑 영역을 만들어 준다. 위에서 만든 스왑 파티션이 hda2라면 다음과 같이 나온다.

device size (k)

[*] /dev/hda2 10xxxxx

[ ] check for bad blocks during format

아래 내용은 스왑 영역을 만들면서 하드디스크에 배드 섹터를 검사할 것인지를 물어보는 것이다. 윗 부분은 반드시 * 체크 해줘야 하며 아랫 부분은 배드 섹터가 없는 게 확실하다면 체크 안해도 된다.(체크할 경우 시간이 좀 오래 걸린다.) o.k.

14) 이번에는 위와 비슷한 방법으로 linux native 파티션을 포맷하는 부분이다. 역시 위와 같은 방법으로 설정하고 넘어간다.




15) 설치할 패키지를 고르는 화면이다. 어느 정도 각각의 패키지의 용도에 대하여 알고 있고 하드 용량이 부족하다면 자신이 원하는 패키지만을 선택한다. 그렇지 않으면 제일 끝부분에 있는 everything을 선택하여 전부 설치한다. 아랫부분의 select individual packages를 선택하면 더 자세하게 선택할 수 있다. everything 으로 선택했다고 하고 그냥 넘어가기로 한다.


16) 설치과정에서의 기록들이 /tmp/install.log 에 기록되어 있음을 안내해 주고 있다. 한번 읽어보고 넘어가자.



17) 아~ 드디어 머리아픈 시간이 가고 조금 쉴 여유가 생겼군요. 파일시스템을 만들고 거기에 프로그램을 설치하기 시작한다.

18) 별 문제없이 파일시스템 만들기와 파일 복사가 끝났다면 마우스 설정 화면이 나올 것이다. ps/2 마우스의 경우 대부분 알아서 인식해준다. 아니라면 화면에서 자신이 갖고 있는 마우스 종류를 선택한다. 시리얼 마우스의 경우 마우스 포트 설정 화면이 나올 수 있다. 역시 자신의 마우스가 꼽혀있는 포트를 확인하고 선택해준다

.

19) 이번엔 랜카드의 설정이다. 랜카드가 없으면 no를 선택하여 넘어가고 랜카드가 있으면 yes를 선택한다. 랜카드가 없으면 21)번 과정으로 넘어가자.

20) 대부분의 랜카드는 자동으로 인식한다. 그렇지 않을 경우 랜카드에 해당하는 모듈을 선택하는 메뉴가 나오는데 자신이 가지고 있는 랜카드를 고르면 된다. 다음에 나오는 모듈 옵션은 autoprobe로 하면 무난하다. 이번엔 boot protocol을 고른다. 일반적인 경우 static ip address를 고른다.(bootp와 dhcp에 관한 자세한 내용은 관련 howto문서를 참조하라.) 다음은 tcp/ip설정이다. 자신의 네트웍에 맞게 설정한다. 다음은 도메인 이름, 호스트 이름, 네임서버주소와 같은 네트웍 일반 설정이다. 역시 자신의 네트웍에 맞게 설정한다. 잘 모를 경우 자신이 속해있는 네트웍 담당자에게 문의하라.


21) 시간 설정이다. 거의 대부분의 경우 hardware clock set to gmt는 선택하지 말아야 한다. 시간은 rok나 asia/seoul을 선택한다.

22) 부팅시 자동으로 실행되는 대몬(daemon)들을 고른다. 원하는 것만 선택하고 잘 모를 경우 그대로 두고 넘어간다.o.k.

23) 프린터 설정이다. 프린터가 있으면 yes 없으면 no. 있다하더라도 리눅스를 설치한 컴퓨터에 프린터가 연결되어 있다면 기본 설정을 유지한채 계속 넘어가면 된다. 물론 프린트 모델을 고르는 부분에서는 자신이 가지고 있는 모델을 선택한다. 기타 삼바 등을 통한 네트웍 프린터 설정에 관한해서는 http://kldp.org의 문서들을 참조하기 바란다.

24) 시스템 관리자(root)의 패스워드를 입력하는 부분이다. 보안에 신경을 써서 적당한 것을 입력하면 된다.


25) 이번에 나오는 화면은 network information system(nis)과 쉐도우 패스워드, md5 패스워드에 관한 설정이다. 일반 사용자들은 기본 설정을 유지하고 넘어간다. o.k.

26) 리눅스 박스에 문제가 생겼을 때 복구를 위해 부팅디스켓을 만들 것인지를 만들고 있다. 안만들어도 별 문제는 없지만 하나 만들어 두는것도 나쁘진 않다.

27) 중요하다!!! 부팅을 관리해주는(여러 운영체제를 선택해서 부팅해 주거나, 여러 커널을 선택적으로 부팅해주는 등의 기능이 있다.) lilo를 설치할 영역을 선택한다. 반드시 master boot record로 선택을 해준다.

28) lilo의 옵션을 적어준다. 대부분의 경우 빈칸으로 두고 넘어간다.

29) 드디어 x-window의 설정이다. 제일 먼저 그래픽 카드다. 자동으로 인식되는 경우도 있고 자신의 카드를 골라줘야 하는 경우도 있다. 카드를 골라주면 해당 x 서버를 설치한다.

30) 이번엔 모니터다. 자신이 가지고 있는 모니터가 목록에 있을 경우엔 선택한다. 없다면 custom을 선택하여 자신의 모니터에 맞는 설정을 해주어야 한다. 모니터의 사양은 모니터 매뉴얼을 참조한다. 모니터를 설정하면 검사를 할 것인지를 묻는다. probe를 선택한다. 두세번 깜박이고 검사가 끝나면 적절한 해상도와 색상수를 보여준다. 그냥 주어진 default 값으로 설정하는 것이 무난하다. 그렇지 않을 경우 자신이 원하는 색상에 따른 해상도를 골라준다.

31) x 설정이 제대로 되었나 시험을 하겠냐는 질문이다. yes를 선택하면 x 서버를 동작시키고 제대로 화면이 출력되는지를 묻는다. 그 다음 질문은 부팅시 x환경으로 부팅할 것인지 콘솔환경으로 부팅할 것인지를 묻는 것이다. 원하는 대로 설정하라.

32) 드디어 길고 긴 리눅스 설치의 과정이 끝났다. 축하 메시지가 나타난다. 자동으로 시스템을 리부팅 해준다.

2. x-window 설정하기

첫번째는, x를 설정하기 편하고 시각적으로 쉽게 접근 할 수 있도록 xconfigurator라는 툴을 이용하여 x를 설정하는 방식과, 두번째는, 예전의 텍스트 모드로써 보여주는 xf86config가 있다. 나는 내가 자주 쓰는 xf86config만 설명하겠다. xconfigurator가 조금 더 그래픽적이며 xf86config로 설정을 할수 있다면 xconfigurator로도 충분히 할수 있을거라 본다.

xf86config 설정하기

이 방식은 위에서도 언급했듯이 텍스트 모드로써 x 를 설정하는 방법이다. 콘솔에서나 x interfaces에서 설정 할 수 있는 방식이다. 그럼, 아무데서나 xf86config를 실행하기 바란다.

# xf86config

this program will create a basic xf86config file, based on menu selections you make.the xf86config file usually resides in /usr/x11r6/lib/x11 or /etc/x11. a sample xf86config file is supplied with xfree86; it is configured for a standard vga card and monitor with 640x480 resolution. this program will ask for a pathname when it is ready to write the file. you can either take the sample xf86config as a base and edit it for your configuration, or let this program produce a base xf86config file for your configuration and fine-tune it. refer to

/usr/x11r6/lib/x11/doc/readme.config

for a detailed overview of the configuration process.

for accelerated servers (including accelerated drivers in the svga server), there are many chipset and card-specific options and settings. this program does not know about these. on some configurations some of these settings must be specified. refer to the server man pages and chipset-specific readmes. before continuing with this program, make sure you know the chipset and amount of video memory on your video card. superprobe can help with this. it is also helpful if you know what server you want to run.

press enter to continue, or ctrl-c to abort.

xf86config의 도입부분이다. 계속하려면 엔터, 중단한다면 ctrl-c를 누르면 된다. 엔터를쳐서 계속 진행을해보자.

the directory '/usr/x386/bin' exists. you probably have an old version of xfree86 installed (xfree86 3.1 installs in '/usr/x11r6' instead of '/usr/x386'). it is important that the directory '/usr/x11r6' is present in your search path, *before* any occurrence of '/usr/x386/bin'. if you have installed x program binaries that are not in the base xfree86 distribution in '/usr/x386/bin', you can keep the directory in your path as long as it is after '/usr/x11r6'. your path is currently set as follows:

/sbin:/usr/sbin:/bin:/usr/bin:/usr/x11r6/bin:/opt/kde/bin:/root/bin:/usr/x11r6/bin:/opt/kde/bin:/root/bin

note that the x binary directory in your path may be a symbolic link. in that case you could modify the symbolic link to point to the new binaries.

example: 'rm -f /usr/bin/x11; ln -s /usr/x11r6/bin /usr/bin/x11', if the link is '/usr/bin/x11'.

make sure the path is ok before continuing. press enter to continue, or ctrl-c to abort.

현재 xfree86 버전이 설치된 패스를 확인하는 절차이다. 역시 계속 하려면 엔터를 치고 넘어가면 된다.

first specify a mouse protocol type. choose one from the following list:

1. microsoft compatible (2-button protocol)

2. mouse systems (3-button protocol)

3. bus mouse

4. ps/2 mouse

5. logitech mouse (serial, old type, logitech protocol)

6. logitech mouseman (microsoft compatible)

7. mm series

8. mm hittablet

9. microsoft intellimouse

if you have a two-button mouse, it is most likely of type 1, and if you have a three-button mouse, it can probably support both protocol 1 and 2. there are two main varieties of the latter type: mice with a switch to select the protocol, and mice that default to 1 and require a button to be held at boot-time to select protocol 2. some mice can be convinced to do 2 by sending a special sequence to the serial port (see the cleardtr/clearrts options).

enter a protocol number:

자신의 시스템에 부착된 마우스의 종류를 선택하는 부분이다. ps/2 마우스는 4번, 일반적인 시리얼 마우스를 가지고 있는 사용자는 1번을 선택하고 넘어가면 된다.

if your mouse has only two buttons, it is recommended that you enable emulate3buttons. please answer the following question with either 'y' or 'n'. do you want to enable emulate3buttons?

일반적인 2버튼 사용자라도 양쪽 버튼을 가지고 마치 3버튼 마우스처럼 가상 에뮬레이트 해주는 기능을 선택할 것인지 묻는 항목이다. 2버튼 마우스를 3버튼 마우스처럼 사용하려면 yes로 설정하고 넘어가기 바란다.

now give the full device name that the mouse is connected to, for example /dev/tty00. just pressing enter will use the default, /dev/mouse.

mouse device:

마우스의 시스템디바이스를 결정하는 부분이다. 디폴트로는 /dev/mouse로 되어있다. 엔터를 치고 넘어가면 된다.

beginning with xfree86 3.1.2d, you can use the new x11r6.1 xkeyboard extension to manage the keyboard layout. if you answer 'n' to the following question, the server will use the old method, and you have to adjust your keyboard layout with xmodmap. please answer the following question with either 'y' or 'n'.

do you want to use xkb?

키보드의 언어 매핑을 지정하는 부분이다. 대부분 no를 선택한 후 다음의 키보드에서 선택하기 바란다.

if you want your keyboard to generate non-ascii characters in x, because you want to be able to enter language-specific characters, you can set the left alt key to meta, and the right alt key to modeshift.

please answer the following question with either 'y' or 'n'. do you want to enable these bindings for the alt keys?

이것은 왼쪽과 오른쪽 alt 키를 다르게 지정 할것 인지에 대한 항목이다. 사용자의 선택에 달렸다.

now we want to set the specifications of the monitor. the two critical parameters are the vertical refresh rate, which is the rate at which the the whole screen is refreshed, and most importantly the horizontal sync rate, which is the rate at which scanlines are displayed. the valid range for horizontal sync and vertical sync should be documented in the manual of your monitor. if in doubt, check the monitor database /usr/x11r6/lib/x11/doc/monitors to see if your monitor is there.

press enter to continue, or ctrl-c to abort.

모니터 설정에 앞서 모니터의 수평 동기 주파수와 수직 동기 주파수를 확인하기 바란다. 모니터를 설정하려면 엔터를 치고 넘어간다.

you must indicate the horizontal sync range of your monitor. you can either select one of the predefined ranges below that correspond to industry-standard monitor types, or give a specific range. it is very important that you do not specify a monitor type with a horizontal sync range that is beyond the capabilities of your monitor. if in doubt, choose a conservative setting.

hsync in khz; monitor type with characteristic modes

1 31.5; standard vga, 640x480 @ 60 hz

2 31.5 - 35.1; super vga, 800x600 @ 56 hz

3 31.5, 35.5; 8514 compatible, 1024x768 @ 87 hz interlaced (no 800x600)

4 31.5, 35.15, 35.5; super vga, 1024x768 @ 87 hz interlaced, 800x600 @ 56 hz

5 31.5 - 37.9; extended super vga, 800x600 @ 60 hz, 640x480 @ 72 hz

6 31.5 - 48.5; non-interlaced svga, 1024x768 @ 60 hz, 800x600 @ 72 hz

7 31.5 - 57.0; high frequency svga, 1024x768 @ 70 hz

8 31.5 - 64.3; monitor that can do 1280x1024 @ 60 hz

9 31.5 - 79.0; monitor that can do 1280x1024 @ 74 hz

10 31.5 - 82.0; monitor that can do 1280x1024 @ 76 hz

11 enter your own horizontal sync range

enter your choice (1-11):

이 부분은 자신이 가지고 있는 모니터의 수평 동기 주파수를 설정하는 방식이다. 먼저, 자신의 모니터의 매뉴얼에서 수평 동기 주파수 대역을 확인한 후에 찾아보고 없다면 11번을 선택하여 자신의 주파수 대역을 적어주면 된다. 1-10번 사이를 설정한 사용자를 제외한 11번을 선택하여 직접 수평 동기 주파수를 설정하려는 사람은 다음 장면을 잘 확인하기 바란다.

please enter the horizontal sync range of your monitor, in the format used in the table of monitor types above. you can either specify one or more continuous ranges (e.g. 15-25, 30-50), or one or more fixed sync frequencies.

horizontal sync range:

11번을 선택하여 나타난 부분이다. 자신의 수평 동기 주파수 대역을 (horizontal sync range: ) 이 부분에 적어주면된다. 예를 들어서 자신의 수평 동기 주파수 대역이 30-65 사이라면

ex) horizontal sync range: 30-65

이런식으로 설정을 해주면 된다. 설정을 다 했다면 다음 수직 동기 주파수를 설정하는 부분으로 이동해 보자.

you must indicate the vertical sync range of your monitor. you can either select one of the predefined ranges below that correspond to industry-standard monitor types, or give a specific range. for interlaced modes, the number that counts is the high one (e.g. 87 hz rather than 43 hz).

1 50-70

2 50-90

3 50-100

4 40-150

5 enter your own vertical sync range

enter your choice:

모니터의 수직 동기 주파수를 설정하는 부분으로써, 자신의 모니터의 매뉴얼에서 수직 동기 주파수 대역을 확인을 한 후에 설정하기 바란다. 자신의 모니터의 수직 동기 주파수 대역을 자세히 아는 사용자라면 5번 항목에서 정확한 모니터 주파수 대역을 적어주는 것을 권장한다. 5번을 선택한 후에 수직 동기 주파수 대역을 설정 하는 방법이다.

vertical sync range: 50-110

여기서 수직 동기 주파수 대역을 50-110 이라고 설정해주었다. 필자 모니터의 수직 동기 주파수 대역이다. 다 되었으면 엔터를 치고 다음으로 넘어가보자.

you must now enter a few identification/description strings, namely an identifier, a vendor name, and a model name. just pressing enter will fill in default names. the strings are free-form, spaces are allowed. enter an identifier for your monitor definition:

모니터의 모델 이름을 묻는 항목이다. 적지 않아도 상관없다.

enter the vendor name of your monitor:

역시 이름을 묻는 항목이다.

enter the model name of your monitor:

적어주지 않아도 된다.

다음은 그래픽 카드를 선택하는 부분이다.

now we must configure video card specific settings. at this point you can choose to make a selection out of a database of video card definitions. because there can be variation in ramdacs and clock generators even between cards of the same model, it is not sensible to blindly copy the settings (e.g. a device section). for this reason, after you make a selection, you will still be asked about the components of the card, with the settings from the chosen database entry presented as a strong hint. the database entries include information about the chipset, what server to run, the ramdac and clockchip, and comments that will be included in the device section. however, a lot of definitions only hint about what server to run (based on the chipset the card uses) and are untested. if you can't find your card in the database, there's nothing to worry about. you should only choose a database entry that is exactly the same model as your card; choosing one that looks similar is just a bad idea (e.g. a gemstone snail 64 may be as different from a gemstone snail 64+ in terms of hardware as can be).

do you want to look at the card database?

이 부분은 그래픽 카드를 선택하는 부분이다. yes 로 설정하고 엔터하고 넘어가 보자.

0 2 the max maxcolor s3 trio64v+ s3 trio64v+

1 928movie s3 928

2 agx (generic) agx-014/15/16

3 alg-5434(e) cl-gd5434

4 asus 3dexplorer riva128

5 asus pci-av264ct ati-mach64

6 asus pci-v264ct ati-mach64

7 asus video magic pci v864 s3 864

8 asus video magic pci vt64 s3 trio64

9 at25 alliance at3d

10 at3d alliance at3d

11 ati 3d pro turbo ati-mach64

.

. (중략)

.

412 winfast s200 et4000/w32(i/p)

413 winfast s430 s3 968

414 winfast s510 s3 968

415 xga-1 (isa bus) xga-1

416 xga-2 (isa bus) xga-2

417 miro miromedia 3d s3 virge

enter a number to choose the corresponding card definition.

press enter for the next page, q to continue configuration.

xfree86 3.3.2 에서는 많은 비디오 카드가 지원되기 시작했다. 특히, 이번 버전부터는 agp 비디오 카드가 시험적으로 도입이 되었다. 부가적인 설명을 하자면 왼쪽에 있는 것은 비디오 카드 모델명이고, 오른쪽에 있는 것은 비디오 카드의 칩셋이다. 리눅스 상에서의 비디오 카드는 비디오 카드 칩셋에 따라 x 설정이 많이 좌우하게 된다. 목록에서 자신의 비디오 카드를 선택하였다면 다음과 같은 메시지 가 나타날 것이다.

your selected card definition:

identifier: matrox mystique

chipset: mga1064sg

server: xf86_svga

do not probe clocks or use any clocks line.

press enter to continue, or ctrl-c to abort.

xfree86 3.3.2 에서 추가로 지원되는 비디오 카드 목록은 나중에 보여줄 것이다. 엔터를 치고 넘어가면 다음과 같은 메세지가 나타날 것이다.

now you must determine which server to run. refer to the manpages and other documentation. the following servers are available (they may not all be installed on your system):

1 the xf86_mono server. this a monochrome server that should work on any vga-compatible card, in 640x480 (more on some svga chipsets).

2 the xf86_vga16 server. this is a 16-color vga server that should work on any vga-compatible card.

3 the xf86_svga server. this is a 256 color svga server that supports a number of svga chipsets. on some chipsets it is accelerated or supports higher color depths.

4 the accelerated servers. these include xf86_s3, xf86_mach32, xf86_mach8, xf86_8514, xf86_p9000, xf86_agx, xf86_w32, xf86_mach64, xf86_i128 and xf86_s3v.

these four server types correspond to the four different "screen" sections in xf86config (vga2, vga16, svga, accel).

5 choose the server from the card definition, xf86_svga.

which one of these screen types do you intend to run by default (1-5)?

위의 비디오 카드 항목에서 선택을 하였으면 5번을 선택하지만, 만약, 자신의 비디오 카드가 목록에 없을 경우에는 1-4번 항목을 선택할 수 있다.

1번 항목은 흑백 모드로 x 를 설정하도록 하는 항목이다.

2번 항목은 mono(즉, 16컬러) 모드로 x 를 설정하도록 하는 항목이다.

3번 항목은 256 컬러 svga 모드로 x 를 설정하도록 하는 항목이다. 시스템에 있는 비디오 카드가 목록에 없을 경우에 svga 모드로 x 설정할 경우이다.

4번 항목은 accelerated 기능이 있는 비디오 카드를 선택하는 항목이다. 리눅스에서 가장 x 설정하기 쉬운 비디오 카드를 지원하는 항목이다.

the server to run is selected by changing the symbolic link 'x'. for example,

'rm /usr/x11r6/bin/x; ln -s /usr/x11r6/bin/xf86_svga /usr/x11r6/bin/x'

selects the svga server.

please answer the following question with either 'y' or 'n'.

do you want me to set the symbolic link?

이 항목은 선택된 x서버를 /usr/x11r6/bin/x 로 링크를 시키는 항목이다. yes로 설정하고 다음으로 넘어가보자.

now you must give information about your video card. this will be used for the "device" section of your video card in xf86config. you must indicate how much video memory you have. it is probably a good idea to use the same approximate amount as that detected by the server you intend to use. if you encounter problems that are due to the used server not supporting the amount memory you have (e.g. ati mach64 is limited to 1024k with the svga server), specify the maximum amount supported by the server.

how much video memory do you have on your video card:

1 256k

2 512k

3 1024k

4 2048k

5 4096k

6 other

enter your choice:

이 항목은 시스템에 부착된 비디오 카드의 메모리를 선택하는 부분이다. 자신의 비디오 카드의 메모리를 살펴보기 바란다.

you must now enter a few identification/description strings, namely an identifier, a vendor name, and a model name. just pressing enter will fill in default names (possibly from a card definition). your card definition is matrox mystique. the strings are free-form, spaces are allowed. enter an identifier for your video card definition:

이 항목은 비디오 카드의 회사명을 적어주는 곳이다. 써주지 않아도 상관없다.

you can simply press enter here if you have a generic card, or want to describe your card with one string.

enter the vendor name of your video card:

이 항목은 비디오 카드의 모델명을 적어주는 항목이다. 써주지 않아도 상관없다.

enter the model (board) name of your video card:

이 항목도 마찬가지이다.

the ramdac setting only applies to the s3, agx, w32 servers, and some drivers in the svga servers. some ramdac's are auto-detected by the server. the detection of a ramdac is forced by using a ramdac "identifier" line in the device section. the identifiers are shown at the right of the following table of ramdac types:

1 at&t 20c490 (s3 and agx servers, ark driver) att20c490

2 at&t 20c498/21c498/22c498 (s3, autodetected) att20c498

3 at&t 20c409/20c499 (s3, autodetected) att20c409

4 at&t 20c505 (s3) att20c505

5 brooktree bt481 (agx) bt481

6 brooktree bt482 (agx) bt482

7 brooktree bt485/9485 (s3) bt485

8 sierra sc15025 (s3, agx) sc15025

9 s3 gendac (86c708) (autodetected) s3gendac

10 s3 sdac (86c716) (autodetected) s3_sdac

11 stg-1700 (s3, autodetected) stg1700

12 stg-1703 (s3, autodetected) stg1703

13 ti 3020 (s3, autodetected) ti3020

14 ti 3025 (s3, autodetected) ti3025

15 ti 3026 (s3, autodetected) ti3026

16 ibm rgb 514 (s3, autodetected) ibm_rgb514

17 ibm rgb 524 (s3, autodetected) ibm_rgb524

18 ibm rgb 525 (s3, autodetected) ibm_rgb525

19 ibm rgb 526 (s3) ibm_rgb526

20 ibm rgb 528 (s3, autodetected) ibm_rgb528

21 ics5342 (s3, ark) ics5342

22 ics5341 (w32) ics5341

23 ic works w30c516 zoomdac (ark) zoomdac

24 normal dac normal

enter a number to choose the corresponding ramdac.

press enter for the next page, q to quit without selection of a ramdac.

비디오 카드의 ramdac을 설정하는 항목이다. 주로 s3 계열의 비디오 카드가 선택 항목에 들어간다. s3 계열의 비디오 카드 이외의 비디오 카드라면 24번의 normal dac 을 선택하던지 q를 선택해서 빠져 나오기 바란다.모르겠으면 무조건 q를 누르고 나온다.

a clockchip line in the device section forces the detection of a programmable clock device. with a clockchip enabled, any required clock can be programmed without requiring probing of clocks or a clocks line. most cards don't have a programmable clock chip.

choose from the following list:

1 chrontel 8391 ch8391

2 icd2061a and compatibles (ics9161a, dcs2824) icd2061a

3 ics2595 ics2595

4 ics5342 (similar to sdac, but not completely compatible) ics5342

5 ics5341 ics5341

6 s3 gendac (86c708) and ics5300 (autodetected) s3gendac

7 s3 sdac (86c716) s3_sdac

8 stg 1703 (autodetected) stg1703

9 sierra sc11412 sc11412

10 ti 3025 (autodetected) ti3025

11 ti 3026 (autodetected) ti3026

12 ibm rgb 51x/52x (autodetected) ibm_rgb5xx

just press enter if you don't want a clockchip setting.

what clockchip setting do you want (1-12)?

비디오 카드의 클럭 칩셋을 선택하는 부분이다. 주로 s3 계열의 비디오 카드가 이 항목에 들어간다. 비디오 카드의 매뉴얼 을 보아서 자신의 클럭 칩이 여기에 없다면 엔터를 치고 넘어간다.

for most configurations, a clocks line is useful since it prevents the slow and nasty sounding clock probing at server start-up. probed clocks are displayed at server startup, along with other server and hardware configuration info. you can save this information in a file by running 'x -probeonly 2>output_file'. be warned that clock probing is inherently imprecise; some clocks may be slightly too high (varies per run).

at this point i can run x -probeonly, and try to extract the clock information from the output. it is recommended that you do this yourself and add a clocks line (note that the list of clocks may be split over multiple clocks lines) to your device section afterwards. be aware that a clocks line is not appropriate for drivers that have a fixed set of clocks and don't probe by default (e.g. cirrus). also, for the p9000 server you must simply specify clocks line that matches the modes you want to use. for the s3 server with a programmable clock chip you need a 'clockchip' line and no clocks line. you must be root to be able to run x -probeonly now. the card definition says to not probe clocks.

do you want me to run 'x -probeonly' now?

x 설정에 있어서 모니터의 주파수 대역을 선택한 비디오 카드의 클럭 칩과의 상관관계를 맞추어주는 부분입니다. 만일 맞지 않는다면 에러 메시지를 보여주게 됩니다. 자신의 모니터 설정과 비디오 카드가 맞는지 확인해 보기 위해서 yes 로 설정하고 맞는지 확인해 보시기 바랍니다.

the card definition says to not probe clocks. do you want me to run 'x -probeonly' now? y

it is possible that the hardware detection routines in the server will somehow cause the system to crash and the screen to remain blank. if this is the case, do not choose this option the next time. the server may need a ramdac, clockchip or special option (e.g. "nolinear" for s3) to probe and start-up correctly.

press enter to continue, or ctrl-c to abort.

yes 로 설정을 하였다면 다음과 같은 메세지가 나온다. 엔터를 치고 넘어가면 몇 번 정도 화면이 깜빡이면서 주파수 대역을 찾아내게 된다. 만약, 에러가 난다면 다음과 같은 메세지가 나오게 된다.

running x -probeonly -pn -xf86config /tmp/xf86config.tmp. x -probeonly call failed. no clocks line inserted.

press enter to continue, or ctrl-c to abort.

엔터를 쳐서 해상도 설정을 해보자.

for each depth, a list of modes (resolutions) is defined. the default resolution that the server will start-up with will be the first listed mode that can be supported by the monitor and card. currently it is set to:

"640x480" "800x600" "1024x768" "1280x1024" for 8bpp

"640x480" "800x600" "1024x768" "1280x1024" for 16bpp

"640x480" "800x600" "1024x768" "1280x1024" for 24bpp

"640x480" "800x600" "1024x768" for 32bpp

note that 16, 24 and 32bpp are only supported on a few configurations. modes that cannot be supported due to monitor or clock constraints will be automatically skipped by the server.

1 change the modes for 8pp (256 colors)

2 change the modes for 16bpp (32k/64k colors)

3 change the modes for 24bpp (24-bit color, packed pixel)

4 change the modes for 32bpp (24-bit color)

5 the modes are ok, continue.

enter your choice:

자신이 원하는 컬러수를 고르는 항목이다.

select modes from the following list:

1 "640x400"

2 "640x480"

3 "800x600"

4 "1024x768"

5 "1280x1024"

6 "320x200"

7 "320x240"

8 "400x300"

9 "1152x864"

10 "1600x1200"

11 "1800x1400"

12 "512x384"

please type the digits corresponding to the modes that you want to select. for example, 432 selects "1024x768" "800x600" "640x480", with a default mode of 1024x768.

which modes?

자신이 원하는 컬러수에 대한 해상도를 설정하는 항목이다.

you can have a virtual screen (desktop), which is screen area that is larger than the physical screen and which is panned by moving the mouse to the edge of the screen. if you don't want virtual desktop at a certain resolution, you cannot have modes listed that are larger. each color depth can have a differently-sized virtual screen please answer the following question with either 'y' or 'n'.

do you want a virtual screen that is larger than the physical screen?

x 화면에서의 가상화면을 선택할 수 있도록 하는 항목이다. 가상화면을 사용하고 싶으면 yes 로 설정하고, 필요없으면 no 로 설정하고 넘어가기 바란다. 만일, yes 로 설정을 하였다면 다음과 같은 메세지가 나올 것이다.

for each depth, a list of modes (resolutions) is defined. the default resolution that the server will start-up with will be the first listed mode that can be supported by the monitor and card. currently it is set to:

"640x480" "800x600" "1024x768" "1280x1024" for 8bpp

"1280x1024" for 16bpp

"640x480" "800x600" "1024x768" "1280x1024" for 24bpp

"640x480" "800x600" "1024x768" for 32bpp

note that 16, 24 and 32bpp are only supported on a few configurations.

modes that cannot be supported due to monitor or clock constraints will

be automatically skipped by the server.

1 change the modes for 8pp (256 colors)

2 change the modes for 16bpp (32k/64k colors)

3 change the modes for 24bpp (24-bit color, packed pixel)

4 change the modes for 32bpp (24-bit color)

5 the modes are ok, continue.

enter your choice:

가상화면의 컬러수를 선택하는 부분인데, 자신이 선택하였던 컬러수와 같은 컬러수를 선택해야만 한다.

select modes from the following list:

1 "640x400"

2 "640x480"

3 "800x600"

4 "1024x768"

5 "1280x1024"

6 "320x200"

7 "320x240"

8 "400x300"

9 "1152x864"

10 "1600x1200"

11 "1800x1400"

12 "512x384"

please type the digits corresponding to the modes that you want to select.

for example, 432 selects "1024x768" "800x600" "640x480", with a

default mode of 1024x768.

which modes?

해상도를 설정하는 부분이다.

you can have a virtual screen (desktop), which is screen area that is larger than the physical screen and which is panned by moving the mouse to the edge of the screen. if you don't want virtual desktop at a certain resolution, you cannot have modes listed that are larger. each color depth can have a differently-sized virtual screen please answer the following question with either 'y' or 'n'.

do you want a virtual screen that is larger than the physical screen?

가상 화면을 이용할 것인가를 묻는 화면이다. 가상화면을 사용하고자 한다면 yes로 설정하면 되고, 그렇지 않다면 no로 설정하고 넘어가기 바란다.

for each depth, a list of modes (resolutions) is defined. the default resolution that the server will start-up with will be the first listed mode that can be supported by the monitor and card.

currently it is set to:

"640x480" "800x600" "1024x768" "1280x1024" for 8bpp

"1280x1024" for 16bpp

"640x480" "800x600" "1024x768" "1280x1024" for 24bpp

"640x480" "800x600" "1024x768" for 32bpp

note that 16, 24 and 32bpp are only supported on a few configurations.

modes that cannot be supported due to monitor or clock constraints will

be automatically skipped by the server.

1 change the modes for 8pp (256 colors)

2 change the modes for 16bpp (32k/64k colors)

3 change the modes for 24bpp (24-bit color, packed pixel)

4 change the modes for 32bpp (24-bit color)

5 the modes are ok, continue.

enter your choice:

컬러수와 해상도를 다 설정한 유저는 5번을 선택하고 다음으로 넘어가기 바란다.

i am going to write the xf86config file now. make sure you don't accidently overwrite a previously configured one. shall i write it to /etc/x11/xf86config?

지금까지의 x 설정을 /etc/x11/xf86config 파일에 저장을 할 것인지 묻는 항목이다. yes 로 설정하고 xf86config 를 마치면 x 설정은 끝나게 된다.

3. 리눅스 시스템의 기본 활용

1. 파일 다루기

어떤 운영체제를 사용하더라도 가장 먼저 배우게 되는 것이 아마도 파일의 복사와 이동, 저장, 생성 등에 관한 것일 것이다. 사실 리눅스에서 사용하는 기본 파일에 관한 명령어들은 유닉스 시스템에서 사용하는 명령어와 거의 다를바가 없기 때문에 유닉스 시스템을 경험해본 사람이라면 쉽게 이용할 수 있을 것이다. 여기서는 유닉스를 경험해보지 못한 초보 사용자를 위하여 리눅스에서 파일을 다루는 기본 명령어를 간단하게 살펴보고 몇가지 중요한 사항을 짚고 넘어가고자 한다.

% cd - directory를 이동합니다.

ex.) cd /usr/doc (절대경로)

cd usr (상대경로)

cd ~ (홈 디렉토리로 이동, 간단히 cd 라고만 입력해도 결과가 갈다.)

cd .. (상위 디렉토리로 이동)

cd / (루트 디렉토리로 이동)

*루트 디렉토리: /root 디렉토리가 아닌 최상위 디렉토리를 말한다.

*절대 경로: 루트 디렉토리부터 시작한 모든 경로

*상대 경로: 현재 디렉토리부터 시작한 경로

한가지 주의할 점은 ms-dos에서는 디렉토리의 경로명을 나타낼 때 \(역슬래쉬)를 사용하지만 리눅스의 경우 /(슬래쉬)를 사용한다는 것에 주의하기 바란다.

* 기타 디렉토리 관련 명령어

mkdir (디렉토리만들기), rmdir (디렉토리지우기), pwd(현재 위치를 보여준다.)

% ls - dos의 dir과 같은 명령어, 화일 혹은 디렉토리 정보를 출력합니다.

ex.) ls -l /usr (/usr directory의 내용을 상세히 출력합니다.)

기타 옵션: -f (파일의 속성 출력) -a (모든파일출력)

--color=yes,auto,no( 컬러 사용여부 선택)

% cp - 파일을 복사합니다.

ex.) cp ~/babo ~/babo2

% mv - 파일이나 디렉토리를 옮깁니다. 아래와 같이 파일의 이름을 바꾸기 위해서도 사용합니다.

ex.) mv ~/babo ~/babo2

% rm - 파일을 지웁니다.

ex.) rm ~/babo

% more - 주어진 파일의 내용을 한 페이지씩 보여줍니다.

ex.) ls /usr | more

* more 실행시 : b (한화면 뒤로) space bar (한화면 앞으로) q (종료)

여기서는 파이프를 사용하여 ls를 통한 표준 출력을 more에 표준 입력으로 보냈다.

이처럼 파이프를 통하여 여러개의 명령어를 조합해서 쓰는 것이 가능하다.

% cat - 표준입력으로 받아 표준출력으로 보낸다.

ex.) cat /etc/inittab

간단한 파일을 화면에 출력하거나 파일로 만들 때 자주 쓰인다.

ex.) cat > babo.txt babo.txt라는 텍스트파일 생성

cat < babo.txt babo.txt라는 파일의 내용을 화면에 보여준다.

% echo - 주어진 인수를 화면에 그대로 보여준다.

ex.) echo "hello world"

% grep - 주어진 파일 혹은 표준입력에서 특정 패턴에 맞는 줄을 출력합니다.

ex.) rpm -qa | grep hangul

% find - 파일을 검색한다.

ex.) find 경로명 -name 파일 이름

% touch - 파일의 수정일을 변경합니다.

ex.) touch babo (바보라는 파일의 날짜를 바꿉니다.)

% tr - 특정 문자열을 치환 한다.

ex.) tr babo notbabo < mylife

* mylife 라는 파일에 babo 라는 글자를 babo2 로 치환한다.

% df - 파일시스템의 정보를 보여줍니다. 현재 마운트되어 있는 모든 시스템에 대한 확인이 가능합니다.

* -h (메가바이트 단위로 출력한다.)

% du - 파일 혹은 디렉토리의 사용 공간을 출력합니다. 즉 각각의 파일들이 점유하고 있는 디스크의 용량을 표시합니다.

2. file permission 변경

* 파일 퍼미션의 해석

---------------------------------

:속 성 : 소유자 : 그 룹 : 타 인 :

---------------------------------

: d : r w x : r w x : r w x :

---------------------------------

속성: d (디렉토리), l (링크), b (block device), c (character device)

% chmod - 파일 퍼미션을 변경합니다.

ex.) chmod u+rwx babo

chmod {a,u,g,o}{+,-}{r,w,x} 파일명

chmod 755 babo ( 4:read 2:write 1:excute )

3. 파일 링크하기

% ln - 파일이나 디렉토리를 링크합니다.

ex.) ln -s /dev/cua2 /dev/modem

% mount - 특정 file system을 특정 위치에 마운트 시킵니다.

ex.) mount -t iso9660 /dev/cdrom /mnt/cdrom

* umount ( 마운트를 해제합니다. )

4. 계정(account) 만들기

% adduser - 새로운 사용자 계정을 만듭니다.

ex.) adduser altair

% passwd - 패스워드를 새로 지정합니다.

ex.) passwd altair

5. 프로세스의 제어

% ps - 작동중인 프로세스를 출력합니다.

ex.) ps -x

% kill - 프로세스를 종료시킵니다.

ex.) kill %1

% bg, fg - 실행중인 작업을 각각 background, foreground로 전환합니다.

ex.) bg(fg) %1

6. 파일 묶고 압축하기

% tar - 여러개의 파일을 묶고 풀어줍니다.

ex.) tar cvf backup.tar /etc

tar xvf backup.tar

tar tvf backup.tar

% gzip - 파일을 압축하는데 사용합니다.

ex.) gzip -9 backup.tar

*gunzip (압축을 풀어줍니다.)

* 종합

% tar cvf - /etc | gzip -9c > backup.tar.gz

gunzip -c backup.tar.gz | tar xvf -

7. rpm 설치 제거

% rpm -ivh <패키지명>

rpm -e <패키지명>

rpm -qa


반응형

+ Recent posts