====== Debian Linux 설치후 작업 ====== ===== LOCALE 설정 ===== - /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 - /etc/locale.gen 설정을 적용하기 위하여 locale-gen 명령을 실행한다. # locale-gen - 현재 shell 을 종료하고, 다시 로그인한다. ===== ENVIRONMENT 설정 ===== - /etc/environment 파일을 설정한다. LANG="ko_KR.UTF-8" - /etc/default/locale 파일을 설정한다. LANG="ko_KR.UTF-8" ===== 사용하지 않는 서비스 제거방법 ===== - debian 을 설치하면 default로 NFS 설정을 할 수 있는 portmap과 nfs-common 이 실행되어 있다. \\ 사용하지 않는 경우 제거해 두는 것이 좋다. - /etc/init.d/portmap stop # /etc/init.d/portmap stop Stopping portmap daemon.... - /etc/init.d/nfs-common stop # /etc/init.d/nfs-common stop Stopping NFS common utilities: statd. - 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 ... ===== 메모리/프로세스 절약하기 ===== - ps 명령어로 사용하지 않는 프로세스를 종료한다. # ps -ef ===== VI 편집기 설정 ===== - vim 패키지를 설치 # apt-get install vim-full - .vimrc 를 복사하여 ~/.vimrc 로 복사한다. - 아래는 .vimrc 에 간단히 만들어 본것이다. set bg=dark syntax on set ts=4 set sw=4 ===== BASH 설정 ===== - 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' ... export LANG="ko_KR.UTF-8" #export LANG="ko_KR.EUC-KR" ... ===== SSH 설정 ===== - ssh를 설치한다. # apt-get install ssh