在vmware上安裝debian 5(lenny)

來源:互聯網
上載者:User
  • 在/etc/apt/sources.list中添加更新源:

    • deb http://debian.cn99.com/debian/ stable main non-free contrib
    • deb http://debian.cn99.com/debian-non-US/ stable/non-US main contrib non-free

    #apt-get update

    #apt-get install apt-spy

    • # mv sources.list sources.list.bak // 備份老大源列表
    • #man apt-spy // 擷取詳細的使用方法
    • // 更新您的鏡像列表檔案 /var/lib/apt-spy/mirrors.txt
    • # apt-spy update   
    • // 在亞洲尋找速度最快的stable版鏡像, 並產生sources.list檔案 
    • # apt-spy -d stable -a Asia  
    • # cp /etc/apt/sources.list.d/apt-spy.list /etc/apt/sources.list  

    註:實際上經過上述搜尋找到的是ftp.tw.debian.org,但是我ping了一下,發現需要37.*ms左右,比debian99.cn要慢。估計是apt-spy不一定能找到所有的source.

    • // 更新源:
    • # apt-get update 

    4. 安裝telnet和ssh

    1. // 安裝telnet:
    2. # apt-get install telnetd  
    3. # /etc/init.d/openbsd-inetd start  

    測試,在客戶機上telnet IP

    1. // 安裝 openssh server:
    2. # apt-get install openssh-server  
    3. //# /etc/init.d/ssh restart         //安裝完了,似乎就自動啟動了
    4. 測試,在客戶機上運行secureCRT,選擇SSH2即可。

    5. 安裝vsftpd

    • # apt-get install vsftpd  
    • // 編輯/etc/vsftpd.conf
    • 啟用  
    • local_enable=YES  
    • write_enable=YES  
    • // 啟動 vsftpd
    • /etc/init.d/vsftpd restart

    6. 安裝編輯工具vim

    • # apt-get install vim-full                  //這個竟然需要44M空間,下載的動西較多,建議只安裝vim
    • //#apt-get install vim
    • // 編輯/etc/vim/vimrc檔案
    • 開啟syntax on、set nu 

    7. 安裝編譯,工程構建,調試工具

    1. /*
    2. * 說明:
    3. * build-essential: 基本編譯環境 (gcc, g++, libc, make等)
    4. * autoconf:        自動設定工具 
    5. * automake:        make相關
    6. * gdb:             調試工具
    7. */
    8. #apt-get install build-essential autoconf automake gdb
    9. Need to get 19.4MB of archives.
      After this operation, 61.2MB of additional disk space will be used.

    8. 安裝開發文檔

    1. /* 
    2. *  說明: 
    3. *  manpages-dev: C/C++man協助手冊
    4. *  Binutils:   連結器(ld)、彙編器(as)、反組譯碼器(objdump)和檔案的工具(ar)
    5. *  glibc-doc:  GUN C標準庫文檔
    6. *  stl-manual: 標準C++ STL模板文檔
    7. */
    8. apt-get install manpages-dev binutils-doc cpp-doc gcc-doc glibc-doc libstdc++6-4.3-doc stl-manual
    9. ……

      Need to get 16.6MB of archives.
      After this operation, 75.2MB of additional disk space will be used.

    9. 安裝apache,mysql, php

    由於開始安裝時選擇了web server,因此無需安裝apache。只需測試一下,在客戶機上IE輸入:

    http://IP

    即顯示:it works.  同樣也無需安裝php.

    安裝mysql及mysql client

    #apt-get install mysql-server-5.0

    ……

    Need to get 35.6MB/35.6MB of archives.
    After this operation, 106MB of additional disk space will be used.

    #apt-get install mysql                           //安裝client,可以不安裝

  • 安裝hp5 mysql extensions
    #apt-get install php5-mysql

#apt-get install phpmyadmin

  • 測試,輸入http://IP/phpmyadmin,用MySQL的root使用者登入即可。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.