2013-03-02

NetBSD 설치후 작업



[NetBSD Logo]

BSD 계열의 유닉스인 NetBSD 를 설치하고 난 뒤에서 기본적으로 설치/설정할 것들을 정리해보았다. 특징적인 것은 pkgin 이라는 바이너리 패키지 관리도구로 인해서 쉽게 패키지를 설치/업그레이드를 할 수 있어서, Linux 처럼 쉽고 편하게 관리할 수 있다. BSD의 특징인 간단/명료/단순함도 함께 살아있다. 거기에 라이센스도 GPL 이 아닌 BSD 라이센스여서 더욱 자유롭다.
  • sshd_config 수정 / 재시작 : root로 로그인하는 것은 보안상 문제가 있지만, 편의를 위해 일단 이렇게 해놓자.
    # vi /etc/ssh/sshd_config
    PasswordAuthentication yes
    PermitRootLogin yes
    # /etc/rc.d/sshd restart
    
  • root, toor 계정쉘을 bash로 변경
    # pkgin install bash; chsh -s bash root; chsh -s bash toor
    # ln -s /usr/pkg/bin/bash /bin/bash
    
    쉘도 다시 설정했으니, 로그아웃하고 다시 로그인하자~!!!
  • 필요한 패키지 설치
    # pkgin install tmux vim ntp gnuls htop git curl wget gnu-watch readline sqlite3 libxslt libxml2 openssl gmake python27
    
  • Python 설정
    # cd /usr/pkg/bin/
    # ln -s python2.7 python
    
  • /etc/profile 에 PS1 설정
    if [ "`id -u`" -eq 0 ]; then
      PS1="\e[32;1m\]\u@\[\e[35;1m\] \[\e[0m\]\w]# "
    else
      PS1="\e[32;1m\]\u@\[\e[35;1m\] \[\e[0m\]\w]$ "
    fi
    
  • gls alias 적용
    # echo 'alias ls="gls --color=always"' >> /etc/profile; source /etc/profile
    
  • vim 적용
    # echo 'alias vi="vim"' >> /etc/profile; source /etc/profile
    
  • 언어 설정
    # echo 'export LANG=ko_KR.UTF-8' >> /etc/profile; source /etc/profile
    
  • 사용자 추가
    # useradd -m -G wheel -s /usr/pkg/bin/bash 아이디
    # passwd 아이디
    

댓글 없음:

댓글 쓰기