天天看點

debian5基本安裝

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

   wget   http://mirrors.163.com/.help/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 http://wiki.linux.org.hk/w/Disable_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 
               
blacklist ipv6
to the end of file /etc/modprobe.d/blacklist
----------------------      

8,

Debian系統垃圾清理:

dpkg -l |grep "^rc"|awk '{print $2}' |xargs aptitude -y purge     9,顔色顯示目錄 http://bbs.linuxeden.com/thread-160626-1-14.html 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 deb-src http://php53.dotdeb.org stable all

2,添加key

wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg | sudo apt-key add -

3,更新

apt-get update apt-get dist-upgrade

但這方法雖然可以更新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-src http://security.debian.org/ squeeze/updates main

deb http://volatile.debian.org/debian-volatile squeeze/volatile main

deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main

2,更新

# apt-get update

# apt-get install apt dpkg aptitude

# apt-get dist-upgrade