匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“Configuring ubuntu”的源代码
来自百问网嵌入式Linux wiki
名字空间
页面
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
Ubuntu开发环境配置
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{DISPLAYTITLE:Ubuntu开发环境配置}} *一键配置开发环境脚本,在Ubuntu终端下直接执行,即可配置好Linux开发环境依赖(包含tftpp nfs samba/不包含交叉编译工具链 ARCH CROSS_COMPILE设置)。 :*GIthub地址 <syntaxhighlight lang="Bash" > wget --no-check-certificate -O Configuring_ubuntu.sh https://raw.githubusercontent.com/100askTeam/DevelopmentEnvConf/master/Configuring_ubuntu.sh && sudo chmod +x Configuring_ubuntu.sh && sudo ./Configuring_ubuntu.sh </syntaxhighlight> :*国内coding地址({{Redtext |推荐使用此地址}}) <syntaxhighlight lang="Bash" > wget --no-check-certificate -O Configuring_ubuntu.sh https://weidongshan.coding.net/p/DevelopmentEnvConf/d/DevelopmentEnvConf/git/raw/master/Configuring_ubuntu.sh && sudo chmod +x Configuring_ubuntu.sh && sudo ./Configuring_ubuntu.sh </syntaxhighlight> =ubuntu16.04安装= ==ubuntu16.04-android环境配置== ==linux kernel环境配置== *基本依赖 <syntaxhighlight lang="Bash" > sudo apt-get install gcc make git vim python net-tools openssh-server \ python-dev build-essential subversion \ libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext \ gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev \ libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev \ libavahi-compat-libdnssd-dev libldap2-dev libxml2-dev p7zip-full \ libkrb5-dev libgsl0-dev u-boot-tools -y </syntaxhighlight> ===编译android 5.1=== *安装java-jdk-1.7 <syntaxhighlight lang="Bash" > sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-7-jdk sudo update-java-alternatives -s java-1.7.0-openjdk-amd64 sudo java -version </syntaxhighlight > *安装编译android 5.1依赖环境 <syntaxhighlight lang="Bash" > sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386 libc6-dev-i386 \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib \ tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \ dpkg-dev libsdl1.2-dev libesd0-dev \ git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib \ lib32ncurses5-dev x11proto-core-dev libx11-dev \ lib32z-dev ccache squashfs-tools libncurses5-dev pngcrush schedtool libxml2\ libgl1-mesa-dev unzip m4 lzop libc6-dev lib32z1-dev \ libswitch-perl libssl1.0.0 libssl-dev </syntaxhighlight> =ubuntu18.04安装= ==linux kernel环境配置== *基本依赖 <syntaxhighlight lang="Bash" > sudo apt-get install gcc make git vim python net-tools openssh-server \ python-dev build-essential subversion \ libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext \ gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev \ libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev \ libavahi-compat-libdnssd-dev libldap2-dev libxml2-dev p7zip-full \ libkrb5-dev libgsl0-dev u-boot-tools -y </syntaxhighlight> ==ubuntu18.04-android环境配置== ===编译android 7.1=== *安装java-jdk-1.8 <syntaxhighlight lang="Bash" > sudo apt-get install openjdk-8-jdk openjdk-8-jre sudo java -version </syntaxhighlight > *安装编译android 7.1依赖环境 <syntaxhighlight lang="Bash" > sudo apt-get install m4 g++-multilib gcc-multilib \ lib32ncurses5-dev lib32readline6-dev lib32z1-dev flex curl bison </syntaxhighlight> ===编译android 8.1=== *安装java-jdk-1.8 <syntaxhighlight lang="Bash" > sudo apt-get install openjdk-8-jdk openjdk-8-jre sudo java -version </syntaxhighlight > *安装编译android 7.1依赖环境 <syntaxhighlight lang="Bash" > sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib \ git flex bison gperf build-essential libncurses5-dev:i386 \ dpkg-dev libsdl1.2-dev libesd0-dev \ git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib \ libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev \ libgl1-mesa-dev libxml2-utils xsltproc unzip m4 \ lib32z1-dev ccache make tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 -y </syntaxhighlight> =环境配置= ==安装配置TFTP服务端== 安装TFTP服务 book@100ask:~$ sudo apt-get install tftp-hpa tftpd-hpa 然后,创建TFTP服务器工作目录,并打开TFTP服务配置文件,如下: book@100ask:~$ mkdir -p /home/book/tftpboot book@100ask:~$ chmod 777 /home/book/tftpboot book@100ask:~$ sudo vim /etc/default/tftpd-hpa 在配置文件/etc/default/tftpd-hpa中,添加以下字段: TFTP_DIRECTORY="/home/book/tftpboot" TFTP_OPTIONS="-l -c -s" 最后,重启TFTP服务: book@100ask:~$ sudo service tftpd-hpa restart ==安装并配置NFS服务== NFS即网络文件系统,允许开发板直接通过网络挂载PC机中的文件夹。下面介绍在ubuntu上的NFS服务安装和配置。<br> 首先,执行以下命令安装NFS服务: book@100ask:~$ sudo apt-get install nfs-kernel-server 然后编辑/etc/exports文件,添加NFS服务导出的工作目录: book@100ask:~$ sudo vim /etc/exports 添加NFS目录:下面以/home/book/rootfs为例,将其添加到/etc/exports文件中, 如下: /home/book/nfs_rootfs *(rw,nohide,insecure,no_subtree_check,async,no_root_squash) 最后,重启NFS服务: book@100ask:~$ sudo service nfs-kernel-server restart 如果一切正常,可以在ubuntu中测试NFS服务: book@100ask:~$ sudo mount -t nfs 127.0.0.1:/home/book/nfs_rootfs /mnt ==通过samba传输文件== ==通过sftp协议传输文件== ==使用vmware共享windows磁盘== [[Category:DevelopmentEnvironment]] [[Category:Host]][[Category:ubuntu-18.04]][[Category:ubuntu-16.04]]
该页面使用的模板:
模板:Redtext
(
查看源代码
)
返回至
Ubuntu开发环境配置
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志