- 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 아이디
2013-03-02
NetBSD 설치후 작업
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기