iPhone大小的盒子服务器Cubieboard
前言:浏览张宴大侠博客时,开始接触了Cubieboard,然后以后就开始中毒似的迷上了这个板子,在某宝,某鱼上见到Cubieboard的板子就买,现在手里有2块CB1,5块CB2,4块CB3也叫Cubietruck,一块CB4,也叫CC-A80(后来确实没怎么用,出掉了!)
CB1的配置如下:
- 1G ARM cortex-A8 processor, NEON, VFPv3, 256KB L2 cache
- Mali400, OpenGL ES GPU
- 512M/1GB DDR3 @480MHz
- HDMI 1080p Output
- 10/100M Ethernet
- 4GB Nand Flash
- 2 USB Host, 1 micro SD slot, 1 SATA, 1 ir
- 96 extend pin including I2C, SPI, RGB/LVDS, CSI/TS, FM-IN, ADC, CVBS, VGA,SPDIF-OUT, R-TP..
- Running Android, Ubuntu and other Linux distributions


安装软件:
找了台支持HDMI的显示器,安装了Ubuntu Linaro,然后很方便的安装了SSH Server、VNC Server、Nginx、PHP 5.3、MySQL 5.5:
apt-get install openssh-server
apt-get install vnc-server
apt-get install mysql-server mysql-client
apt-get install nginx
apt-get install php5-fpm
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
C/C++的开发环境安装:
apt-get install gcc
apt-get install g++
apt-get install cmake
apt-get install make
使用5V、2A的电源,仅仅10W的耗电量(24小时开着,一月只需3~4元的电费),挂在家里路由器的后面。设置一下路由器的DMZ主机到 Cubieboard 的内网 IP 192.168.1.252,通过 DNSPOD 的动态域名解析脚本,将公网IP和域名绑定。
重要提示:
由于CB1-CB4做的固件内核版本是3.4,系统版本是wheezy或者jessie,官网已经不再支持更新了,所以需要更换APT源,如163的或者阿里的源!如下:
# 163的下载源
deb https://mirrors.163.com/debian-archive/debian wheezy main non-free contrib
#阿里的下载源
deb https://mirrors.aliyun.com/debian-archive/debian wheezy main non-free contrib
配置完 /etc/apt/sources.list后,执行如下命令更新即可
apt-get update
apt-get upgrade
浙公网安备 33010602011771号