Cubie Truck 測試 – 安裝 Ubuntu Server

下載網址:
http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-nand-v2.0/server/

比較特別的是:
1. 這一個版本開機後在 Console 端,自動會以 root 登入[@more@]

2. 這一個版本已經預先安裝並啟動 Apache + MySQL + PHP
# netstat -antulp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      745/mysqld
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      656/sshd
tcp        0     52 192.168.1.105:22        192.168.1.6:3349        ESTABLISHED 1035/0
tcp6       0      0 :::80                   :::*                    LISTEN      784/apache2
tcp6       0      0 :::22                   :::*                    LISTEN      656/sshd

3. Ubuntu Server 版本是 14.04
Welcome to Linaro 14.04 (GNU/Linux 3.4.79 armv7l)

 * Documentation:  https://wiki.linaro.org/

# lsb_release -a
No LSB modules are available.
Distributor ID: Linaro
Description:    Linaro 14.04
Release:        14.04
Codename:       trusty

4. 系統已經預先擴展 root 分割區到 8G,但因為這一片 Cubie Truck 是 16G
    所以擴展 root 分割區到 16G
# nand-part -f a20 /dev/nand 32768 ‘boot 131072’ ‘rootfs 30769152’ 
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  769M   14G   6% /
devtmpfs        889M  4.0K  889M   1% /dev
none            4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs            20M     0   20M   0% /tmp
none            197M  288K  197M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            985M     0  985M   0% /run/shm
none            100M     0  100M   0% /run/user

設定 MySQL Server
# /usr/bin/mysql_secure_installation