http://www.yuanma.org/data/2007/0124/article_2173.htm
http://linuxtoy.org/archives/debian-gnulinux-50-aka-lenny-released.html http://blog.csdn.net/rjycsdn/archive/2008/11/04/3214727.aspx http://blog.csdn.net/bennyfun79/archive/2009/04/15/4074899.aspx http://www.gdwg.net/article/sort014/sort031/sort0106/info-31292.html ------------------------------------------------------------ 1,版本代号 开发代号为“Lenny”的 Debian GNU/Linux 5.0 已经正式发布。 2,修改源 debian.cn99.com http://debian.cn99.com/sources.list.lenny
apt-get update
美国:
deb http://ftp.us.debian.org/debian/ lenny main deb-src http://ftp.us.debian.org/debian/ lenny main
deb
http://security.debian.org/
lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb
http://volatile.debian.org/debian-volatile
lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free 3,安装ssh #apt-get install openssh-server apt-get install ssh
这里可以修改SSH的默认PORT
http://www.wyxuan.com/119.html vim /etc/ssh/sshd_config Port 22 4,查看安装的pkg dpkg -l 查看系统中已安装软件包信息 5,安装php5-mysql模块
apt-get install apache2
apt-get install php5-mysql
apt-get install php5
apt-get install mysql
6,
apt-get remove exim4 删除MTA.提高启动速度. apt-get remove nfs-commmon portmap update-rc.d -f exim4 remove
7,停止ipv6
在档案 /etc/modprobe.d/00local 加入以下两行: or aliases alias net-pf-10 off alias ipv6 off ---------------------- ubuntu: http://www.haw-haw.org/node/529 http://linux.chinaitlab.com/administer/773671.html Just add one line like this ---------------------- 8, Debian系统垃圾清理: dpkg -l |grep "^rc"|awk '{print $2}' |xargs aptitude -y purge
9,颜色显示目录
1,vi ~/.bashrc
2,把下面这几行的注释去掉就可以了,很简单吧。 # You may uncomment the following lines if you want `ls' to be colorized: export LS_OPTIONS='--color=auto' eval `dircolors` alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' 3.这时候我们在试试ls这个命令,呵呵。不一样了吧。 10,安装常用软件 apt-get install screen apt-get install w3m 11,修改密码 passwd 修改用户密码 su user 12,修改化lamp http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/ 默认安装的php是5.2.6 5.3的PHP性能上有所优化,也与wampserver同步得上 1,添加source deb http://php53.dotdeb.org stable all
2,添加key wget http://www.dotdeb.org/dotdeb.gpg
3,升级 apt-get update
但这方法虽然可以升级php,但会出现其它LIB出错的问题。 http://www.cnblogs.com/taosim/articles/2012928.html 索性从debian 5 升到 6 1,增加source deb http://ftp.us.debian.org/debian/ squeeze main deb-src http://ftp.us.debian.org/debian/ squeeze main deb http://security.debian.org/ squeeze/updates main deb http://volatile.debian.org/debian-volatile squeeze/volatile main 2,升级 # apt-get update # apt-get install apt dpkg aptitude # apt-get dist-upgrade |
debian5基本安装
最新推荐文章于 2014-03-26 01:30:03 发布