我使用NETBSD的初步设置
OS: 3.x
作者声明:如需要转发请注明出处,谢谢!
安装BASH:
# cd /usr/pkgsrc/shells/bash2
# make install clean-depends
# chsh -s /usr/pkg/bin/bash
设置登陆超时:
# cd
# vi .profile
PS1='[\u@\H \W]\$'
TMOUT=1800
export PS1
去掉登陆时的提示信息:
# vi /root/.profile
注释掉多余的行
# vi /root/.login
注释掉多余的行
# > /etc/motd
# vi /etc/rc.conf
update_motd=NO
去掉打印到屏幕的日志信息:
# vi /etc/syslog.conf
*.err;kern.*;auth.notice;authpriv.none;mail.crit /var/log/messages
*.emerg /var/log/messages
*.notice /var/log/messages
安装VIM:
# cd /usr/pkgsrc/editors/vim
# make install clean-depends
# mv /usr/bin/vi /usr/bin/vi.bak
# ln -s /usr/pkg/bin/vim /usr/bin/vi
# cp /usr/pkg/share/vim/vim64/vimrc_example.vim /root/.vimrc
# vi .vimrc
把其中的:
set backup " keep a backup file
修改为:
set nobackup " keep a backup file
安装WGET:
# cd /usr/pkgsrc/net/wget
# make install clean-depends
升级OPENSSH:
# wget
# tar zxvf openssh-4.3p2.tar.gz
# cd openssh-4.3p2
# ./configure -prefix=/usr -with-md5-passwords -sysconfdir=/etc/ssh
# make
# make install
# ssh -v
# sshd –v
阅读(866) | 评论(0) | 转发(0) |