2011-07-09

FreeBSD 8.2 설치후 작업



FreeBSD를 설치한 후에 작업을 편하게 하게 위해서, 몇가지 필요한 패키지를 설치하고, 설정할 것들이 있다. 이렇게만 해 놓으면 리눅스와 비교를 해도 어떤 차이가 있는지 제대로 알아차리지 못할 것이다. ^^


  1. sshd 부팅시 자동시작 설정 : /etc/rc.conf
    sshd_enable="yes"
  2. sshd_config 수정 / 재시작 : root로 로그인하는 것은 보안상 문제가 있지만, 편의를 위히 일단 이렇게 해놓자.
    # vi /etc/ssh/sshd_config
    PasswordAuthentication yes
    PermitRootLogin yes
    # /etc/rc.d/sshd restart
    이제, ssh 로 원격 접속한다.
  3. root, toor 계정쉘을 bash로 변경
    # pkg_add -r bash; rehash; chsh -s bash root; chsh -s bash toor
    쉘을 바꾸었으니, 로그아웃하고 다시 로그인하자.
  4. /etc/profile 에 PACKAGESITE 설정한다.
    export PACKAGESITE="ftp://ftp8.kr.freebsd.org/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://ftp2.kr.freebsd.org/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://mirror.yongbok.net/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="http://ftp.kaist.ac.kr/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    # export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.2-release/Latest/"
    profile 적용
    # source /etc/profile
  5. Linux Emulation 적용 (htop 에서 Linux 의 /proc 을 이용한다)
    # echo 'linux_enable="YES"' >> /etc/rc.conf
    # kldload linux; pkg_add -r linux_base-f10
    # echo 'linproc /compat/linux/proc linprocfs rw 0 0' >> /etc/fstab; mount linproc
  6. 필요한 패키지 설치
    # pkg_add -r tmux vim-lite ntp gnuls htop git curl
  7. ntpd 적용/실행
    # echo 'ntpd_enable="yes"' >> /etc/rc.conf
    # /etc/rc.d/ntpd start
  8. gnuls alias 적용
    # echo 'alias ls="gnuls --color=always"' >> /etc/profile; source /etc/profile
  9. vim 적용
    # echo 'alias vi="vim"' >> /etc/profile; source /etc/profile
  10. 언어 설정
    # echo 'export LANG=ko_KR.UTF-8' >> /etc/profile; source /etc/profile



댓글 없음:

댓글 쓰기