사용자 도구

사이트 도구


os:debian:install

문서의 이전 판입니다!


Debian Linux Installation Guide

CD 이미지 구하기

  1. http://debian.org 홈페이지에 들어가서 [Getting Debian] → [CD ISO images] 메뉴에서 CD 이미지를 받아서 구워 놓는다. (따끈따끈하게..)
  2. NetInst 버젼으로 받는 것을 추천한다. (불필요한 파일,서비스까지 설치할 필요가 없다.)

설치

  1. 기본적으로 최소설치를 하는 것을 권장한다.(필요한 패키지만 설치하는 것이 데뱐의 철학인듯 ~)

설치 후 작업

LOCALE 설정

  1. /etc/locale.gen 파일을 열어서 아래의 설정을 추가한다.
    # This file lists locales that you wish to have built. You can find a list
    # of valid supported locales at /usr/share/i18n/SUPPORTED. Other
    # combinations are possible, but may not be well tested. If you change
    # this file, you need to rerun locale-gen.
    #
    # XXX GENERATED XXX
    #
    # NOTE!!! If you change this file by hand, and want to continue
    # maintaining manually, remove the above line. Otherwise, use the command
    # "dpkg-reconfigure locales" to manipulate this file. You can manually
    # change this file without affecting the use of debconf, however, since it
    # does read in your changes.
    
    en_US ISO-8859-1
    ko_KR.EUC-KR EUC-KR
    ko_KR.UTF-8 UTF-8
  2. /etc/locale.gen 설정을 적용하기 위하여 locale-gen 명령을 실행한다.
    # locale-gen
  3. ~/.bashrc 에 LANG 설정을 한다.
    export LANG="ko_KR.UTF-8"
    #export LANG="ko_KR.EUC-KR"
  4. 현재 shell 을 종료하고, 다시 로그인한다.

서비스하지 않는 서비스 정리하기

portmap
nfs-common

제거방법

  1. /etc/init.d/portmap stop
    # /etc/init.d/portmap stop
    Stopping portmap daemon....
  2. /etc/init.d/nfs-common stop
    # /etc/init.d/nfs-common stop
    Stopping NFS common utilities: statd.
  3. apt-get –purge remove portmap
    # apt-get --purge remove portmap
    Reading package lists... Done
    Building dependency tree... Done
    The following packages will be REMOVED:
      nfs-common* portmap*
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    Need to get 0B of archives.
    After unpacking 553kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    (Reading database ... 31103 files and directories currently installed.)
    Removing nfs-common ...
    Stopping NFS common utilities: statd.
    Purging configuration files for nfs-common ...
    Removing portmap ...
    Stopping portmap daemon....
    Purging configuration files for portmap ...

메모리/프로세스 절약하기

VI 편집기 설정

BASH 설정

  1. vi ~/.bashrc (필요한 것을 편집해 준다.)
    아래는 내 취향으로 변경한 것입니다.
    ...
    # 주석해제
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ...
    # 주석해제
    # some more ls aliases
    alias ll='ls -l'
    alias la='ls -A'
    alias l='ls -CF'
    ...

SSH 설정

  1. ssh 를 설치한다.
     # apt-get install ssh 
os/debian/install.1222418534.txt.gz · 마지막으로 수정됨: 2008/09/26 17:42 저자 starlits