首页 技术 正文
技术 2022年11月15日
0 收藏 606 点赞 4,230 浏览 3600 个字
/***************************************************************************
* 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
上一篇: 1.NSThread
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,026
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,517
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,364
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,145
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,779
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,856