本文转载自: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. MySQL 日志初探

    目录 MySQL 日志初探 零.概述 一.Error Log(错误日志) 二.General Query Log(通用查询日志) 三.Slow Query Log (慢查询日志) 四.Binary L ...

  2. 17Spring前置通知

    1).加入jar包:下载地址 spring-beans-4.1.6.RELEASE.jar commons-logging-1.1.3.jar spring-context-4.1.6.RELEASE ...

  3. 13Spring通过注解配置Bean(1)

    配置Bean的形式:基于XML文件的方式:基于注解的方式(基于注解配置Bean:基于注解来装配Bean的属性) 下面介绍基于注解的方式来配置Bean. ——组件扫描(component scannin ...

  4. 【面试题】LRU算法及编码实现LRU策略缓存

    概念 LRU(least recently used)就是将最近不被访问的数据给淘汰掉,LRU基于一种假设:认为最近使用过的数据将来被使用的概率也大,最近没有被访问的数据将来被使用的概率比较低. 原理 ...

  5. 添物不花钱学JavaEE(基础篇)- Java

    Java Java是一面向对象语言 Write Once Run Anywhere Designed for easy Web/Internet applications, Mobile Widesp ...

  6. hdu_1085_Holding Bin-Laden Captive!_201404261008

    Holding Bin-Laden Captive! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Ja ...

  7. TCP/IP学习笔记(5)------IP选路

    静态IP选路 一个简单的路由表 选路是IP层最重要的一个功能之一.前面的部分已经简单的讲过路由器是通过何种规则来根据IP数据包的IP地址来选择路由.这里就不重复了.首先来看看一个简单的系统路由表. D ...

  8. operamasks—omBorderLayout布局

    <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...

  9. Windows Socket IO 模型

    http://www.cppblog.com/huangwei1024/archive/2010/11/22/134205.html

  10. C#使用全局钩子(hook),SetWindowsHookEx返回0、不回调的解决

    http://www.csharpwin.com/csharpspace/3766r5747.shtml 在.net 2005平台下 在使用全局hook时,总是遇见SetWindowsHookEx的返 ...