閱讀366 返回首頁    go 阿裏雲 go 技術社區[雲棲]


Ubuntu Server 8.0.4安裝小記

 近日在IBM System X3550上安裝Ubuntu Server 8.0.4 LTS 64bit,記錄安裝過程於此。

 

一.安裝係統

    1.光盤啟動,選擇語言,我選中文;

    2.一路next;期間會選擇網絡,暫不設置;輸入用戶名/密碼;

    3.在最後會選擇安裝什麼服務器,我選擇安裝openSSH,因為將來還要遠程登錄。

 

二.配置網絡(DHCP)

    1.編輯/etc/network/interfaces文件:

         sudo vi /etc/network/interfaces

    在末尾添加以下內容:

      # The primary network interface - use DHCP to find our address

      auto eth0

      iface eth0 inet dhcp

   2.使網絡設置生效:

 

      sudo /etc/init.d/networking restart

      或:sudo dhclient eth0

   3.查看IP

      ifconfig

 

三.升級係統、安裝常用軟件

   1.替換原有的源(默認的源速度較慢,這裏使用台灣的源,詳細的源信息可以參考:https://wiki.ubuntu.org.cn/index.php?title=%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E6%8E%A8%E8%8D%90%E7%9A%84%E6%BA%90&variant=zh-cn

      sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak(備份)

      sudo vi /etc/apt/sources.list(修改文件,可以在windows上用文本編輯工具編輯)

     源信息:

deb https://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb https://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb https://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb https://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb https://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse deb-src https://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb-src https://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb-src https://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb-src https://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb-src https://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

    2.升級係統:

        sudo apt-get update

        sudo apt-get dist-upgrade(耗時較長)

    3.安裝常用軟件:

        sudo apt-get install zip

        sudo apt-get install unzip

        sudo apt-get install libaio1 (裝DB2會用到)

        sudo apt-get install libstdc++5 (裝DB2會用到)

        sudo apt-get install xinit (xwindow用)

        sudo apt-get install gdm (xwindow用)

        sudo apt-get install ubuntu-desktop (xwindow用,耗時很長)

         問題:裝完後應該能startx進入xWindow界麵,但是實際上還有些問題,無法進入,原因未知。

 

四.安裝其他軟件

        Sun JDK 6_64bit、DB2 v9.7 ESE trial、Tomcat6.0.20

        JDK安裝完後,其實就是解壓縮,我把JDK挪到/opt/jdk1.6.0_16目錄下,並且修改environment文件:

        sudo vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/jdk1.6.0_16/bin" JAVA_HOME=/opt/jdk1.6.0_16

        DB2在字符模式安裝,安裝後需要走一套手工流程。

        tomcat直接解壓縮即可。

 

 

五.更多技術支持見:https://wiki.ubuntu.org.cn/index.php


最後更新:2017-04-02 04:01:42

  上一篇:go 通過JDBC檢測遠端數據庫類型(源碼)
  下一篇:go 百度有啊前端框架分析(瀏覽器內置事件)