Chinaunix首页 | 论坛 | 博客
  • 博客访问: 319489
  • 博文数量: 27
  • 博客积分: 3026
  • 博客等级: 中校
  • 技术积分: 415
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-19 13:43
文章分类

全部博文(27)

文章存档

2013年(2)

2010年(4)

2008年(21)

分类: BSD

2008-07-03 18:29:04

我使用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
 
阅读(2130) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~