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 ...
随机推荐
- hdu5412(动态区间第k大)
CRB and Queries Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Other ...
- hibernate generator class=xxx id详解
<id>元素中的<generator>用来为该持久化类的实例生成唯一的标识,hibernate提供了很多内置的实现.Increment:由hibernate自动递增生成标识符, ...
- bios启动过程图解
- 找出html中的图片、包括css中的图片,读出图片数据转换为base64数据
<?php echo ">> 图片的地址,css里面的要打单引号\r\n"; echo ">> 相同的图片,使用css实现图片地址只出现一次 ...
- HDU 3642 扫描线(立方体体积并)
Get The Treasury Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others ...
- NOIP 2006 解题报告
第一题: 在Mars星球上,每个Mars人都随身佩带着一串能量项链.在项链上有N颗能量珠.能量珠是一颗有头标记与尾标记的珠子,这些标记对应着某个正整数.并且,对于相邻的两颗珠子,前一颗珠子的尾标记一定 ...
- HDU 4622 求解区间字符串中的不同子串的个数
题目大意: 给定一个长度<2000的串,再给最多可达10000的询问区间,求解区间字符串中的不同子串的个数 这里先考虑求解一整个字符串的所有不同子串的方法 对于后缀自动机来说,我们动态往里添加一 ...
- Rhel6-mailsystem配置文档
(postfix+dovecot+mysql+extmail) 理论基础:
- fragment 添加menu
http://bbs.51cto.com/thread-1091458-1-1.html 有详解 @Override public void onCreate(Bundle savedInstance ...
- ProcessOn:功能强大的在线作图工具(HTML5)
ProcessOn是一款专业作图人员的社交网络,这里汇聚很多业界专家.学者,同时他们分享的作品又形成一个庞大的知识图库,你在学习专业知识的同时还可以结交一些志同道合的新朋友. ProcessOn核心设 ...