I.MX6 ubuntu-core-14.04 Apache php mysql Qt5
/***************************************************************************
* 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的更多相关文章
- Ubuntu 14.04 apache安装配置
http://jingyan.baidu.com/article/6d704a130c8a0d28da51ca5f.html Ubuntu 14.04 apache安装配置 1.安装 ~# apt-g ...
- I.MX6 Ubuntu core porting
/*********************************************************************** * I.MX6 Ubuntu core porting ...
- ubuntu kylin 14.04编译openjdk-7u40
1.ubuntu kylin 14.04安装依赖 sudo apt-get install build-essential gawk m4 libasound2-dev libcups2-dev li ...
- Hadoop安装(Ubuntu Kylin 14.04)
安装环境:ubuntu kylin 14.04 haoop-1.2.1 hadoop下载地址:http://apache.mesi.com.ar/hadoop/common/hadoop-1. ...
- Ubuntu Server 14.04 & Apache2.4 虚拟主机、模块重写、隐藏入口文件配置
环境: Ubuntu Server 14.04 , Apache2.4 一.Apache2.4 虚拟主机配置 01. 新建一份配置文件 在apache2.4中,虚拟主机的目录是通过/etc/apach ...
- Ubuntu Server 14.04 集成
方便工作出差显示项目整合了下平时常用软件: OS: Ubuntu Server 14.04 VM:VMware Workstation 12.1.0 (不同版本好像会不兼容) 已经安装软件: 1. s ...
- 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 ...
- U盘安装ubuntu server 14.04
U盘安装ubuntu server 14.04 U盘安装ubuntu server 14.04 1.制作启动u盘 2.开始安装 1 将u盘插入主机,重启后从u盘启动 2 选择语言(随便挑,随便选),我 ...
- Ubuntu Gnome 14.04.2 lts 折腾笔记
unity感觉不爽,于是来折腾gnome3 = = 首先去官网下载ubuntu gnome 14.04.2 lts的包(种子:http://cdimage.ubuntu.com/ubuntu-gnom ...
随机推荐
- mvc+ef+oracle环境中报错:ORA-00001: 违反唯一约束条件
分析原因: 在oracle中,主健不能自动生成,不过可以通过“序列”来实现,如果是这样的话,问题很可能就出在“序列”上了: ORACLE表主键ID突然从已经存在的ID值开始自动生成,导致违反主键唯一性 ...
- 对于transform的新认识
transform-origin是作用于该元素自己的,transform-origin(0px,0px),是以该元素自己本身的左上角(0px,0px)为圆心进行动作的.
- 在SQLite中创建数据库时总是提示错误?
答案:原先以为是因为编码影响的其实不是,是因为逗号和分号的原因,不是标准的英文状态下的格式
- CF #365 (Div. 2) D - Mishka and Interesting sum 离线树状数组
题目链接:CF #365 (Div. 2) D - Mishka and Interesting sum 题意:给出n个数和m个询问,(1 ≤ n, m ≤ 1 000 000) ,问在每个区间里所有 ...
- 利用LM神经网络和决策树去分类
# -*- coding: utf-8 -*- import pandas as pd from scipy.interpolate import lagrange from matplotlib i ...
- 解析网络json数据,模拟美团界面显示。
<?xml version="1.0" encoding="UTF-8"?> <RelativeLayout xmlns:android=&q ...
- Jquery API Hybrid APP调研
http://jquery.cuishifeng.cn/source.html hybrid app Hybrid App(混合模式移动应用)是指介于web-app.native-app这两者之间 ...
- spring任务计划
小组 第一次小组会议结果 贾川和刘三龙负责这些任务: 1:4.11 搭配开发必要的环境,vs2010 2:4.12学习windows界面开发的基本知识 3:4.13-4.15 和小组成员讨论软件界面的 ...
- Zabbix源码包安装
Zabbix源码包安装 Cenos5.3 Basic server 安装顺序 Libxml2 Libmcrypt Zlib Libpng Jpeg:需要创建目录jpeg /bin /lib / ...
- IT公司100题-21-输入n和m,和等于m
问题描述: 输入两个整数n 和m,从数列1,2,3,…,n 中随意取几个数, 使其和等于m,将所有可能的组合都打印出来. 分析: 利用递归的思路,对于1,2,3,…,n 中的任意一个数,要么选,要 ...