2014年5月6日 星期二

Ubuntu 14.04 Desktop Installation 簡易安裝程序


設備環境:
- CPU: Intel Q9400
- RAM: 4GB
- HDD: SATA on SATA0

--

下載:
- http://www.ubuntu-tw.org/modules/tinyd0/
- Ubuntu 桌面版本 / 14.04 LTS / 64 位元版本 

--

步驟 1: Welcome
- 左邊: 選 English
# 雖然有 中文(繁體) 可以選, 還是習慣用英文界面.
- 右邊: 點 [Install Ubuntu]


步驟 2:
# 此步驟被略過, 可能有兩個原因: 1.使用空的硬碟  2.網路線有連接且DHCP自動取得IP


步驟 3: Preparing to install Ubuntu
> V has at least 6.4GB available drive space
> V is connected to the Internet
- 放空 [ ] Download updates while installing
# 裝完系統之後, 預設每天都會進行更新的檢查及處理, 不急著在這個階段抓更新檔案.
- 放空 [ ] Install this third-party software
# 裝完系統之後, 瀏覽器需要用 flash 再去抓, 影音也是有用到再去抓, 不急著這個階段裝.
# 若是桌面顯示不正常/黑畫面, 或是無線網路不通, 就需要勾這個選項自動去抓 driver.
# 有線網路若是因為 driver 不通, 那就會卡在步驟 2.
- 點 [Continue]


步驟 4: Installation type
# 硬碟已經有別的作業系統, 就會詢問要怎麼處理, 請自行選擇.
# 若是完全不要硬碟裡的資料, 可選 [ ] Something else
# 選完之後點 [Continue]

# 以下是分割硬碟為 16G swap 以及一個 / 的設定方式, 請自行依喜好/需求變動.
- 點 [New Partition Table...] 清除所有硬碟分割設定
- 點點 畫面中間的 free space, 進入 Create partition 建立硬碟分割區畫面.
  - Size: 16000 MB
  - Type for the new partition: Primary
  - Location for the new partition: Beginning of this space
  - Use as: swap area
  - 點 [OK]
# 理論上畫面中間會看到新增一行 /dev/sda1 swap
- 點點 畫面中間的 free space, 進入 Create partition 建立硬碟分割區畫面.
  - Size: N MB
# 剩下的所有硬碟空間.
  - Type for the new partition: Primary
  - Location for the new partition: Beginning of this space
  - Use as: Ext4 journaling file system
# 預設值是這個選項, 想用其它的請自行選擇.
  - Mount point: /
  - 點 [OK]
# 理論上畫面中間會看到新增一行 /dev/sda2 ext4 / 記得勾選 Format
- Device for boot loader installation: /dev/sda
# 目前只有一顆 SATA 硬碟接在 SATA0, 其它狀況請自行選擇.
- 點 [Install Now]


步驟 5: Where are you?
- 選 Taipei
# 點選地圖設定這台設備所在的時區, 我在台灣就選 Taipei.
- 點 [Continue]


步驟 6: Keyboard layout
- 左邊: 選 English(US)
- 右邊: 選 English(US)
# 基本 pc/server 是這樣選, 其它狀況請自行選擇.
- 點 [Continue]


步驟 7: Who are you?
- Your name: 輸入你的稱呼/全名, 像是 Thomas A. Anderson
- Your computer's name: 輸入這台設備的名稱, 像是 Ubuntu-matrix
- Pick a username: 輸入你的設備帳號, 像是 neo , 建議英文只使用小寫字.
- Choose a password: 輸入你要用的密碼
- Confirm your password: 再輸入你要用的密碼確認無誤
- 勾選 [O] Require my password to log in
- 點 [Continue]


開始安裝檔案.... 最後會提醒你拿出光碟後, 按 enter 重開機進入系統.

成功安裝系統後, 在網路通暢的情況下, 再繼續進行設定及軟體安裝.
(以下內容緩慢更新/修正...)


--

更新軟體套件:
- 左邊: 點 [Software Updater]
- 點 [Install Now]
# 預設的自動更新設定就夠用了, 其它狀況請點 [Settings...] 修改設定.
# 有更新的時候才會出現在左邊, 或是自動跳出更新界面.

--

Terminal: rxvt
- 左邊: 點 [Ubuntu Software Center]
- 右上角搜尋: rxvt
> Rxvt Color Unicode Terminal (rxvt-unicode)
> Rxvt Color Unicode Terminal (rxvt-unicode-256color)
# 二選一, 我個人用的是 rxvt-unicode-256color 這個
# 預設是白底黑字, 要改成常見的黑底白字, 修改 ~/.Xdefaults 這兩行:
URxvt*foreground: gray
URxvt*background: black
# 同場加映, 設定啟動 rxvt 後的寬高大小:
URxvt*geometry: 140x50

--

中文環境:
- 左邊: 點 [System Settings]
  - 點 [Language Support]
  - 點 [Install]
# 缺少語言環境所需的檔案, 就會跳出安裝界面.
# 如果想要整個桌面界面顯示中文, Language for menus and windows 就選 漢語(台灣)
# 想要加裝別的語言(=日文), 點 [Install/Remove Languages...] 勾選後, 點 [Apply Changes]
- 重開機, 讓中文環境整個重新載入使用.
--

中文輸入法:
- 左邊: 點 [System Settings]
  - 點 [Text Entry]
  - 左邊 Input sources to use: 點 [+] 選 [Chinese (Chewing)] 後, 點 [Add]
  - 右邊 Switch to next/previous source using 可設定輸入法的切換組合鍵.
# 我習慣用 L-ctrl+shift 和 R-ctrl+shift 做這兩種方式的切換.
- 重新登入帳號, 讓輸入法正常啟動.

--

firefox + flash
- 左邊: 點 [Ubuntu Software Center]
- 右上角搜尋: flash
> Adobe Flash plugin
# 系統內建 firefox, 需要外安裝 adobe flash.

--

chrome + flash
- 左邊: 點 [Ubuntu Software Center]
- 右上角搜尋: Chromium
> Chromium Web Browser
- 右上角搜尋: pepperflashplugin
> Pepper Flash Player - browser plugin

--

video player: smplayer
- 左邊: 點 [Ubuntu Software Center]
- 右上角搜尋: smplayer
> SMPlayer

--

vmware player
- https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0
- VMware Player for Linux 64-bit
  - 點 [Download] 得到檔案 ~/Downloads/VMware-Player-6.0.2-1744117.x86_64.bundle
  - 左邊: 點 [rxvt] 執行 sudo sh ~/Downloads/VMware-Player-6.0.2-1744117.x86_64.bundle
# 檔案版本有變動時, 得到的檔案名稱也會不同.
# 有需要用網路銀行/網路報稅這些 IE only 的網站, 再用 vmware player 裝一個 windows xp 起來用

--

其它: (開一個 rxvt 手動安裝軟體)
- sudo apt-get -y install joe
- sudo apt-get -y install vim
- sudo apt-get -y install nmap
- sudo apt-get -y install tcsh
# 用 tcsh 的範例設定 https://raw.github.com/slzzp/install_script/master/debian/etc/csh.cshrc 放到 /etc/

--
snmp:
- sudo apt-get -y install snmp snmpd snmp-mibs-downloader

--
mrtg:
- sudo apt-get -y install mrtg

--
How to restore privacy: https://fixubuntu.com/

--
將 Linux 的 Firefox、Chrome 暫存區設定到 RAM 裡面
http://blog.longwin.com.tw/2011/01/linux-firefox-chrome-ram-2011/

2014年2月7日 星期五