/***************************************************************************
* I.MX6 ubuntu-core-14.04 Apache php mysql Qt5
* 说明:
* 之前有尝试过12.04版本的,这里再继续尝试一下14.04,看一下有什么不同的
* 地方。相对前一次的尝试,这次相对来说更深入了一点点,遗憾就是没有吧Qt5跑
* 起来,虽然编译通过,但运行的时候HDMI上没有显示。
*
* 2016-11-3 深圳 南山平山村 曾剑锋
*************************************************************************/ 一、参考文档:
. I.MX6 Ubuntu core porting
http://www.cnblogs.com/zengjfgit/p/5405477.html
. 树莓派3上安装Qt5
http://www.mamicode.com/info-detail-1400876.html
. Ubuntu 14.04 配置 LAMP+phpMyAdmin PHP(5.5.)开发环境
http://blog.csdn.net/tecn14/article/details/27515241
. Qt5 从头学()--手动构建HelloWold
http://www.cnblogs.com/csulennon/p/4479236.html
. How do i set up the server's fully qualified domain name?
http://stackoverflow.com/questions/9445772/how-do-i-set-up-the-servers-fully-qualified-domain-name 二、下载地址:
. http://mirror1.ku.ac.th/ubuntu-cdimages/ubuntu-core/releases/14.04/release/
. ubuntu-core-14.04-core-armhf.tar.gz 三、修改内容:
. cat /etc/init/ttymxc.conf
# tty5 - getty
#
# This service maintains a getty on tty5 from the point the system is
# started until it is shut down again. start on runlevel [] and not-container stop on runlevel [!] respawn
exec /sbin/getty -L ttymxc0 vt102
. cat /etc/network/interfaces
# interfaces() file used by ifup() and ifdown()
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d auto eth0
iface eth0 inet dhcp
hwaddress ether :B3:D5::6F:
. cat /etc/passwd
root::::root:/root:/bin/bash
daemon:x:::daemon:/usr/sbin:/usr/sbin/nologin
bin:x:::bin:/bin:/usr/sbin/nologin
sys:x:::sys:/dev:/usr/sbin/nologin
sync:x:::sync:/bin:/bin/sync
games:x:::games:/usr/games:/usr/sbin/nologin
man:x:::man:/var/cache/man:/usr/sbin/nologin
lp:x:::lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:::mail:/var/mail:/usr/sbin/nologin
news:x:::news:/var/spool/news:/usr/sbin/nologin
uucp:x:::uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:::proxy:/bin:/usr/sbin/nologin
www-data:x:::www-data:/var/www:/usr/sbin/nologin
backup:x:::backup:/var/backups:/usr/sbin/nologin
list:x:::Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:::ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:::Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:::nobody:/nonexistent:/usr/sbin/nologin
libuuid:x::::/var/lib/libuuid:
syslog:x::::/home/syslog:/bin/false
mysql:x:::MySQL Server,,,:/nonexistent:/bin/false (mysql默认是没安装的,这是另外安装好的)
root@localhost:/# 四、查看情况:
. 网络:
root@localhost:/# ifconfig
eth0 Link encap:Ethernet HWaddr ::9f::b4:0a
inet addr:10.0.2.12 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80:::9fff:fe02:b40a/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (5.7 KB) TX bytes: (5.6 KB) lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::/ Scope:Host
UP LOOPBACK RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (0.0 B) root@localhost:/#
. 更新:
apt-get update
. 安装mysql(已安装成功):
apt-get install mysql-server
. Vim:
apt-get install vim
. 安装php5,结果自动安装了apache:
. apt-get install php5
. 上面命令自动安装了apache2
. 解决报错:
. localhost login: AH00557: apache2: apr_sockaddr_info_get() failed for localhost.localdomain
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
. cat /etc/apache2/apache2.conf
......
ServerName <your server name> # 添加在最后,如果本身有这个字段,修改就OK了
. 安装qt5-default:
. apt-get install qt5-default
. apt-get install make g++
. 测试程序:http://zetcode.com/gui/qt5/widgets/
. 编译脚本remake.sh:
#!/bin/bash qmake -project
qmake
sleep
echo "QT += widgets" >> root.pro
make
. 安装dbus
. apt-get install dbus
. apt-get install libegl1-mesa-dev
. dbus-uuidgen > /var/lib/dbus/machine-id

I.MX6 ubuntu-core-14.04 Apache php mysql Qt5的更多相关文章

  1. Ubuntu 14.04 apache安装配置

    http://jingyan.baidu.com/article/6d704a130c8a0d28da51ca5f.html Ubuntu 14.04 apache安装配置 1.安装 ~# apt-g ...

  2. I.MX6 Ubuntu core porting

    /*********************************************************************** * I.MX6 Ubuntu core porting ...

  3. ubuntu kylin 14.04编译openjdk-7u40

    1.ubuntu kylin 14.04安装依赖 sudo apt-get install build-essential gawk m4 libasound2-dev libcups2-dev li ...

  4. Hadoop安装(Ubuntu Kylin 14.04)

    安装环境:ubuntu kylin 14.04   haoop-1.2.1   hadoop下载地址:http://apache.mesi.com.ar/hadoop/common/hadoop-1. ...

  5. Ubuntu Server 14.04 & Apache2.4 虚拟主机、模块重写、隐藏入口文件配置

    环境: Ubuntu Server 14.04 , Apache2.4 一.Apache2.4 虚拟主机配置 01. 新建一份配置文件 在apache2.4中,虚拟主机的目录是通过/etc/apach ...

  6. Ubuntu Server 14.04 集成

    方便工作出差显示项目整合了下平时常用软件: OS: Ubuntu Server 14.04 VM:VMware Workstation 12.1.0 (不同版本好像会不兼容) 已经安装软件: 1. s ...

  7. Ubuntu Server 14.04升级Ubuntu Server 16.04

    Ubuntu Server 14.04升级Ubuntu Server 16.04 :转 http://blog.csdn.net/chszs 1.终端下执行命令 $ sudo apt-get upda ...

  8. U盘安装ubuntu server 14.04

    U盘安装ubuntu server 14.04 U盘安装ubuntu server 14.04 1.制作启动u盘 2.开始安装 1 将u盘插入主机,重启后从u盘启动 2 选择语言(随便挑,随便选),我 ...

  9. Ubuntu Gnome 14.04.2 lts 折腾笔记

    unity感觉不爽,于是来折腾gnome3 = = 首先去官网下载ubuntu gnome 14.04.2 lts的包(种子:http://cdimage.ubuntu.com/ubuntu-gnom ...

随机推荐

  1. php中PCRE正则表达式分隔符的使用

    转自:http://www.baiwar.com/post/the-use-of-php-pcre-regex-delimiter.html 在php5.3.0以前,PHP可使用两套正则表达式规则,一 ...

  2. c++实现之 -- 文章TF-IDF值的计算

    首先,是关键词的选取: 好吧这个我这模型实在是太简单了,但还是讲一讲比较好呢... 我们现在手头有的是一堆百度百科词条w的DF(w, c)值,c是整个百科词条...原因是...方便嘛~(而且人家现成的 ...

  3. PHP+mysql常用类库

    <?php /** * @title: Ekcms mysql类库 * @version: 1.0 * @author: perry <perry@1kyou.com> * @pub ...

  4. spring mvc上传图片

    1.需要commons-fileupload.jar commons-io.jar 2.需要在springmvc.xml中 配置存放静态资源的路径,对图片等静态资源放行 <mvc:resourc ...

  5. 面向对象编程(OOP)基础之UML基础

    在我们学习OOP过程中,难免会见到一些结构图~各种小框框.各种箭头.今天小猪就来简单介绍一下这些框框箭头的意思——UML. UML定义的关系主要有:泛化(继承).实现.依赖.关联.聚合.组合,这六种关 ...

  6. Android窃取用户信息新思路

    0×01 我们能得到哪些android手机上的app敏感信息手机上的app敏感信息◦通讯录,通讯记录,短信◦各种app的帐号密码,输入信息资料等◦各种影音资料,照片资料◦等等0×02  我们有哪些方法 ...

  7. Phonebook 导入SD上的.vcf联系人

    2014-01-11 17:29:22 1. 当用户选择Phonebook中从SD卡导入联系人的操作后,程序回调转到ImportVCardActivity,然后用户选择好要导入的.vcf文件,并点击“ ...

  8. 如何禁止在DBGRID末位自动添加一行记录

    http://www.tc5u.com/cpp/xg-1730729.htm 用DBGridEh吧,只要设置属性alopAppendEh为false即可 最简单将DBGrid的option属性中goE ...

  9. 实现IOS圆角风格的列表ListView

    这段代码目前已经加在我的一个jar包androidkit中,还没发布. 适用于android1.6以上,不依赖其他jar包 使用时不需要继承这里的RoundListAdapter.只需要在你实现了Li ...

  10. mine layer(2008 World Final C)

    类似于扫雷游戏,在一些格子中散布着一些地雷,具体的埋藏位置并不清楚,但知道每个格子及其周围八个格子的地雷总数.请问此时正中间那一行最多可能有多少地雷(题目假定所有的输入都是奇数行的)? 输入: 第一行 ...