/***************************************************************************
* 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. double int char 数据类型

    贴心的limits... 测试代码: #include <iostream> #include <stdio.h> #include <limits> #inclu ...

  2. 查询使用NoLock

    当我们在操作数据库的时候,无论是查询还是修改数据库的操作我们都习惯使用using(var db=new XXXDB()){},但是如果仅仅是做查询,最好是使用NoLock,因为NoLock使用的是共享 ...

  3. Ubuntu用户相关基本命令

    Linux是一个用户权限管理得很严格的系统,Ubuntu作为最受欢迎的桌面发行版,提供了简单易用的图形界面工具来管理用户,但是命令行工具往往更强大,用得熟练的话效率会更高.用户管理命令常用的有如下几个 ...

  4. Swift - 自动布局库SnapKit的使用详解4(样例1:实现一个登录页面)

    前面的几篇文章讲解了自动布局库SnapKit的使用方法.本文通过一个完整的样例(登录页面)来演示在实际项目中如何使用SnapKit来实现自动化布局的.1,效果图如下

  5. COleDateTime类型的应用

    使用COleDateTime类1) 获取当前时间.      CTime time;      time = CTime::GetCurrentTime();2) 获取时间元素.      int y ...

  6. Linux-C程序的存储空间布局

    正文段 指的是由CPU执行的机器代码,通常,正文段是可以共享的,执行的程序在存储器中只有一个副本.通常也是只读的,防止程序本身被修改. 初始化数据段 数据段,被明确赋值的变量,比如全局变量 非初始化数 ...

  7. C++-static的用法

    static成员变量 为什么要有静态成员变量:1)不进入全局名字空间.2)实现信息隐藏 要点: 除了整型的const 静态成员变量可以在类体内初始化,其它值都需要在类体外的实现文件定义 static函 ...

  8. 面试题目-c和c++的区别

    在很大程度上,标准C++是标准C的超集.实际上,所有C程序也是C++程序,然而,两者之间有少量区别.下面简要介绍一下最重要的区别.    1. 在C++中,局部变量可以在一个程序块内在任何地方声明,在 ...

  9. tomcat http 文件下载

    tomcat作为http的下载服务器,网上有很多办法 但我认为最简单的是: 1.直接把文件放在 tomcat6/webapps/ROOT 目录下, 2.然后在网址中访问: http://120.194 ...

  10. ModuleWorks免费下载使用方法大全

    ModuleWorks为模拟机器的工具运转及(或)机床和车床材料的搬运提供了一整套解决方案. 模拟技术可以识别潜在的碰撞问题,允许在NC代码生成前进行除错检查,并且渐渐成为CAM处理方面必不可少的解决 ...