debian 5.05 stable 版本 虚拟机 VMWARE 6.5
只安装基本环境,桌面环境什么的一大堆全部没有安装
安装 sudo
安装 openssh-server
添加源(http://brainmix.iteye.com/blog/711046 源介绍)
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
其他的几个源也可以
deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free
deb http://mirrors.163.com/debian/ lenny main contrib non-free
deb-src http://mirrors.163.com/debian lenny main contrib non-free
================================
VIM配置
修改语法高亮文件
/usr/share/vim/vim72/syntax/python.vim
将
" let python_highlight_all = 1
前面的引号去掉,可支持内置函数,数字,空格,异常的语法高亮。
================================
安装 vsftpd(http://wiki.ubuntu.org.cn/index.php?title=Vsftpd&variant=zh-cn)
apt-get install vsftpd
装完已经自动启动了.在windows下已经可以匿名访问.
VSFTPD的文件结构主要包括:
/usr/sbin/vsftpd ---- VSFTPD的主程序
/etc/init.d/vsftpd ---- 启动脚本
/etc/vsftpd.conf ---- 主配置文件
/etc/pam.d/vsftpd ---- PAM认证文件
/etc/ftpusers ----记录不允许访问FTP服务器的用户名单
/home/ftp ----Vsftpd的根目录
此外VSFTPD的日志文件为/var/log/vsftpd.log。
Vsftpd的管理控制。
/etc/init.d/vsftpd start //启动vsftpd
/etc/init.d/vsftpd stop //停止vsftpd
/etc/init.d/vsftpd restart //重新启动vsftpd
/etc/init.d/vsftpd reload //重新导入vsftpd