本文转载自:http://blog.csdn.net/songze_lee/article/details/72808631

版权声明:本文为博主原创文章,未经博主允许不得转载。

1.安装ssh服务器(可通过网络远程登录系统,如putty、xshell)

sudo apt-get install openssh-server

2.安装ftp服务器(默认已安装)  windows 可使用leapFTP工具登录

sudo apt-get install vsftpd

需配置ftp服务(修改/etc/vsftpd.conf)

去掉前面#

#local_enable=YES(表示是否允许本地登录)

#write_enable=YES(表示允许上传文件)

重启ftp服务器

sudo /etc/init.d/vsftpd restart

3.安装nfs服务器(默认已安装)

sudo apt-get install nfs-kernel-server

配置nfs服务器(修改/etc/exports)增加以下内容

/share *(rw,sync,no_root_squash,no_subtree_check)

重启nfs服务

sudo /etc/init.d/nfs-kernel-server restart

4.ubuntu下的Samba配置

使每个用户可以用自己的用户名和密码登录自己的home目录

1).先要安装Samba

sudo apt-getinstall samba openssh-server

2).编译Samba配置文件

sudo vi/etc/samba/smb.conf

找到[homes]项,此项默认是注释掉的,取消其注释,然后修改其具体内容,修改成如下:

[homes]

comment = Home Directories

browseable = yes

# By default, the home directories are exportedread-only. Change the

# next parameter to 'no' if you want to be able to writeto them.

read only = no

# File creation mask is set to 0700 for securityreasons. If you want to

# create files with group=rw permissions, set nextparameter to 0775.

create mask = 0755 #建议将权限修改成0755,这样其它用户只是不能修改

# Directory creation mask is set to 0700 for securityreasons. If you want to

# create dirs. with group=rw permissions, set nextparameter to 0775.

directory mask = 0755

# By default, \serverusername shares can be connected toby anyone

# with access to the samba server. Un-comment thefollowing parameter

# to make sure that only "username" canconnect to \serverusername

# The following parameter makes sure that only"username" can connect

#

# This might need tweaking when using externalauthentication schemes

valid users = %S #本行需要取消注释

如上修改完成后wq保存退出!

3). 重启samba服务:

sudo/etc/init.d/samba restart

4). 增加一个现有用户的对应samba帐号:

如我已经有一个用户叫lisongze,现在给lisongze开通samba帐号:

sudo smbpasswd-a lisongze  (非常重要)

根据提示输入两次密码即可。

5).现在可以测试了,在Window下输入samba地址尝试登录:

\\192.168.3.8\lisongze

6).此时windows应该会弹出窗口要求输入用户名和密码,输入正确可看到/home/lisongze下文件

5.安装arm-Linux-gcc交叉工具链

sudo tar xzf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz -C/

配置环境变量

sudo vim/etc/environment

在PATH中增加:/opt/FriendlyARM/toolschain/4.5.1/bin/

执行soure生效

source/etv/environment

解决bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: 没有那个文件或目录

sudo apt-getinstall lsb-core

arm-liux-gcc -v 显示版本就ok了

6.安装 Java 开发环境

sudo apt-get install openjdk-7-jre 或者sudo apt-get install openjdk-7-jdk

Ubuntu16.04的安装源已经默认没有openjdk7了,所以要自己手动添加仓库,如下:

sudo add-apt-repository ppa:openjdk-r/ppa

sudo apt-get update

sudo apt-get install openjdk-7-jdk

7.编译Android源码的依赖配置

sudo apt-get install Git-core gnupg flexbison gperf build-essential\

zip curl zlib1g-dev gcc-multilib g++-multiliblibc6-dev-i386 \

lib32ncurses5-dev x11proto-core-devlibx11-dev lib32z-dev ccache \

libgl1-mesa-dev libxml2-utils xsltproc unzipm4

8.编译 tiny4412 android 系统

1) . setenv

2) lunch

3) make –j8

4) 生成映象文件

./gen-img.sh

注意:如果提示如下错误,要先编译 u-boot 以得到 mkimage 工具。

./gen-img.sh: line31: mkimage: command not found

编译 u-boot 以得到 mkimage 工具的方法:

tar -xzf uboot_tiny4412-20130729.tgz

cd uboot_tiny4412/

make tiny4412_config

make

sudo cptools/mkimage /usr/bin/

编译过程中错误及解决

1. out/host/linux-x86/bin/acp:error whileloading share libraries:libsrdc++.so.6:cannot open shared object file:No suchfile or directory

缺少libstdc++.so.6

sudo apt-get installlib32stdc++6

2. /bin/bash: gperf: 未找到命令


sudo apt-get install gperf

3. /bin/bash: xmllint: 未找到命令

sudo apt-get  install libxml2-utils

4. build/core/host_shared_library_internal.mk:44: recipe fortarget 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed

cp /usr/bin/ld.goldprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

5.编译成功

Ubuntu16.04下搭建开发环境及编译tiny4412 Android系统【转】的更多相关文章

  1. 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明

    目录 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明 联盛德 HLK-W ...

  2. Ubuntu16.04下搭建LAMP环境

    前期准备sudo apt-get update             # 获取最新资源包sudo apt-get upgrade           # 本机软件全部更新sudo apt-get d ...

  3. ubuntu16.04下 搭建 lnmp 环境

    apt-get install nginx apt-get php7.-mysql apt-get install mysql 编辑nginx配置文件 vim /etc/nginx/sites-ena ...

  4. Learning ROS: Ubuntu16.04下kinetic开发环境安装和初体验 Install + Configure + Navigating(look around) + Creating a Package(catkin_create_pkg) + Building a Package(catkin_make) + Understanding Nodes

    本文主要部分来源于ROS官网的Tutorials. Ubuntu install of ROS Kinetic # Setup your sources.list sudo sh -c 'echo & ...

  5. 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明

    目录 联盛德 HLK-W806 (一): Ubuntu20.04下的开发环境配置, 编译和烧录说明 联盛德 HLK-W806 (二): Win10下的开发环境配置, 编译和烧录说明 联盛德 HLK-W ...

  6. Ubuntu 14.04下java开发环境的搭建--3--Tomcat及MySQL的安装

    前面两篇文章,已经说明了JDK和Eclipse 的安装方法,下面简单说一下,Tomcat及MySQL的安装方法. Tomcat的安装. 在合适的地方解压apache-tomcat-6.0.39.tar ...

  7. 阿里云学生服务器搭建网站-Ubuntu16.04安装php开发环境

    阿里云学生服务器搭建网站(2)-Ubuntu16.04安装php开发环境  优秀博文:https://www.linuxidc.com/Linux/2016-10/136327.htm https:/ ...

  8. Ubuntu18.04下搭建LAMP环境

    一.Apache2 web 服务器的安装 : 可以先更新一下服务器 1.sudo apt-get update             # 获取最新资源包 2.sudo apt-get upgrade ...

  9. ubuntu16.04下笔记本自带摄像头编译运行PTAM

    ubuntu16.04下笔记本自带摄像头编译运行PTAM 转载请注明链接:https://i.cnblogs.com/EditPosts.aspx?postid=9014147 个人邮箱:feifan ...

随机推荐

  1. pxc集群安装

    一.pxc镜像url:https://hub.docker.com/r/percona/percona-xtradb-cluster/ 二.安装及重命名: 1.安装:docker pull perco ...

  2. python中的句柄操作

    python中的句柄操作 制作人:全心全意 通过窗口标题获取句柄 import win32gui hld = win32gui.FindWindow(None,u"Adobe Acrobat ...

  3. c++基础_特殊回文数

    #include <iostream> using namespace std; int main(){ int n; cin>>n; ;i<;i++){ int tem ...

  4. ArcGIS:Hello World Maps

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout ...

  5. [bzoj1208][HNOI2004][宠物收养所] (平衡树)

    Description 最近,阿Q开了一间宠物收养所.收养所提供两种服务:收养被主人遗弃的宠物和让新的主人领养这些宠物.每个领养者都希望领养到自己满意的宠物,阿Q根据领养者的要求通过他自己发明的一个特 ...

  6. HTML5中手势原理分析与数学知识的实践

    摘要:在这触控屏的时代,人性化的手势操作已经深入了我们生活的每个部分.现代应用越来越重视与用户的交互及体验,手势是最直接且最为有效的交互方式,一个好的手势交互,能降低用户的使用成本和流程,大大提高了用 ...

  7. Android渲染器Shader:LinearGradient(一)

     Android渲染器Shader:LinearGradient(一) LinearGradient是Android的线性渲染器.我写5个LinearGradient渲染器渲染后的View表现结果 ...

  8. [luoguP3390]【模板】矩阵快速幂

    传送门 模板不解释. ——代码 #include <cstdio> #include <cstring> #define LL long long int n; LL k; ; ...

  9. JSP内置对象和EL内置对象

    JSP共有九大内置对象: (1) HttpSession类的session对象作用:主要用于来分别保存每个用户信息,与请求关联的会话:         会话状态维持是Web应用开发者必须面对的问题. ...

  10. msp430入门编程05

    msp430中C语言的运算符和表达式 msp430中C语言的程序结构06 msp430中C语言的函数及实现07 msp430中C语言操作端口I/O10 msp430中C语言的模块化头文件及实现11 m ...