Step 7 (Ubuntu 17.04 Non-permanent support version) for local compilation of the full-log R series

Source: Internet
Author: User

Tags: Manager configure except 14. OpenSSH Lag compilation Complete run

Step 7 (Ubuntu 17.04 Non-permanent support version) for local compilation of the full-log R series

2017/6/29 13:49

0, access to the full R series of Android source package:

Please get the full range of Android source packages via Channel/agent/Solution company.

1. Install Ubuntu

Validated Systems: Ubuntu-17.04-desktop-amd64.iso

: Http://releases.ubuntu.com/releases/17.04/ubuntu-17.04-desktop-amd64.iso

Ubuntu official (like Chinese optimized version, can choose Kylin version):

http://releases.ubuntu.com/releases/10.04/

http://cdimage.ubuntu.com/releases/

Http://old-releases.ubuntu.com/releases/lucid/

http://cn.ubuntu.com/

http://www.ubuntukylin.com/

Https://www.ubuntu.com/download/ubuntu-kylin

Refer to the configuration of the compilation server:

Https://item.jd.com/3885181.html

Rui Long AMD Ryzen 7 1700 processor 8 Core AM4 Interface 3.0GHz boxed

Https://item.jd.com/4470762.html

ASUS (ASUS) PRIME B350-plus motherboard (AMD b350/socket AM4) strengthens the slab B350-plus

Https://item.jd.com/3595753.html

Samsung (Samsung) 850 EVO 1TB m.2 Solid State Drive

Https://item.jd.com/3864850.html

Corsair (Uscorsair) Avenger lpx DDR4 2400 16GB Desktop Memory Avenger lpx< High Performance overclocking weapon >2 strip

For a tutorial on installing Ubuntu, please refer to:

Http://digi.163.com/11/0127/18/6RE3LQL400162OUT.html

Graphic Tutorial: teach you to install Ubuntu with a USB stick

Http://www.linuxidc.com/Linux/2012-11/74695.htm

USB flash drive to install Ubuntu 12.10

Http://jingyan.baidu.com/article/a3761b2b66fe141577f9aa51.html

How to install Ubuntu with U-disk

Recommended settings for manual partitioning:

/Boot Assign 100M

Swap swap partition 4G

/Home The remaining capacity

/Note Here you need to set the primary partition!!!!

Small knowledge:

To view Ubuntu versions:

[Email protected]:~$ cat/etc/issue

Ubuntu 17.04 \ \l

[Email protected]:~$

To see if Ubuntu is 32-bit or 64-bit (x86_64):

[Email protected]:~$ uname-a

Linux rootroot-system-product-name 4.10.0-19-generic #21-ubuntu SMP Thu Apr 6 17:04:57 UTC x86_64 x86_64 x86_64 GNU/L Inux

[Email protected]:~$

Http://www.360doc.com/content/13/0921/23/6496277_316103639.shtml

See if Ubuntu is a 32-bit or 64-bit method and its version number

Http://www.cnblogs.com/zero1665/archive/2010/05/24/1742962.html

View Ubuntu version number

Get the IP address of the current PC configuration:

Ifconfig

[Email protected]:~$

[Email protected]:~$ ifconfig

Enp30s0:flags=4163<up,broadcast,running,multicast> MTU 1500

inet 192.168.0.194 netmask 255.255.255.0 broadcast 192.168.0.255

Inet6 fe80::8599:afcb:abc5:d09f Prefixlen ScopeID 0x20<link>

Ether 88:D7:F6:7C:3E:A5 Txqueuelen 1000 (Ethernet)

RX packets 33730 Bytes 42354795 (42.3 MB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 15225 Bytes 1081409 (1.0 MB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Lo:flags=73<up,loopback,running> MTU 65536

inet 127.0.0.1 netmask 255.0.0.0

Inet6:: 1 prefixlen ScopeID 0x10<host>

Loop Txqueuelen 1000 (local loopback)

RX Packets 428 Bytes 31908 (31.9 KB)

RX errors 0 dropped 0 overruns 0 frame 0

TX Packets 428 Bytes 31908 (31.9 KB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[Email protected]:~$

2, the entire R series of Android Environment to build:

Enable root account:

$sudo passwd Root

Enter the root password two times

[Email protected]:~$ sudo passwd root

[sudo] rootroot password:

Enter a new UNIX password:

Re-enter the new UNIX password:

passwd: Password has been successfully updated

[Email protected]:~$

[Email protected]:~$

(1)

Recommendation: Update Manager is not updated.

sudo apt-get upgrade (it is not recommended to perform this upgrade of the Ubuntu system, taking time, nor any special use)

sudo apt-get update

(2)

Install Openssh-server first so that you can connect to Ubuntu via SSH software under Windows.

sudo apt-get install Openssh-server

[Email protected]:~$ ps-e | grep ssh

1366? 00:00:00 ssh-agent

5374? 00:00:00 sshd

5657? 00:00:00 sshd

5703? 00:00:00 sshd

[Email protected]:~$

sudo apt-get install nautilus-open-terminal (no installation required!) )

[Email protected]:~$ sudo apt-get install nautilus-open-terminal

Reading Package List ... Complete

Analyzing Dependency tree for Package

Reading status information ... Complete

There is no available package nautilus-open-terminal, but it is referenced by other packages.

This may mean that the missing package may have been discarded,

Or can only be found in other publishing sources

However, the following packages will replace it:

Gnome-terminal:i386 gnome-terminal

E: Package nautilus-open-terminal No installable candidate

[Email protected]:~$

(3)

To install Samba:

[Email protected]:~$ sudo apt-get install Samba

[Email protected]:~$ Samba--version

Version 4.5.8-ubuntu (depending on the time you install the system, this edition will definitely only increase!) ^_)

[Email protected]:~$

Add Samba Users: (Must be in root:)

[Email protected]:~$ sudo smbpasswd-a rootroot

New SMB Password:

Retype new SMB Password:

Added user Rootroot.

[Email protected]:~$

[Email protected]:~$ ps-e | grep SMB

7324? 00:00:00 SMBD

7325? 00:00:00 smbd-notifyd

[Email protected]:~$

Increase the access rights of Rootroot users to Samba:

[Email protected]:~$ cd/etc/samba/

[Email protected]:/etc/samba$ ll

Total Dosage 36

Drwxr-xr-x 3 root root 4096 June 19 20:35.

Drwxr-xr-x 135 root root 12288 June 19 20:35. /

-rw-r--r--1 root root 8 May 01:50 gdbcommands

-rw-r--r--1 root root 9542 June 20:35 smb.conf

Drwxr-xr-x 2 root root 4096 May 01:48 tls/

[Email protected]:/etc/samba$

The WINSCP can be logged in SCP mode and then modified: smb.conf

(Add here:)

[Rootroot]

Comment = Rootroot Shared Folder

Path =/

Valid users = Rootroot

Read Only = No

Create mask = 0700

Directory mask = 0700

[Email protected]:/etc/samba$ sudo cp smb.conf SMB.CONF.BAK1

[Email protected]:/etc/samba$ sudo cp smb.conf ~

Use WINSCP to login in SCP mode, copy the smb.conf to your computer's C drive, modify it, then copy it back.

[Email protected]:~$ rm smb.conf

[Email protected]:/etc/samba$ sudo cp ~/smb.conf.

[Email protected]:~$ CD-

/etc/samba

[Email protected]:/etc/samba$ diff smb.conf Smb.conf.bak1

261,271d260

<

<

<

< [Rootroot]

< comment = Rootroot Shared Folder

< path =/

< Valid users = Rootroot

< Read Only = No

< Create mask = 0700

< Directory mask = 0700

<

[Email protected]:/etc/samba$

(5)

Install the software required to compile the full android4:

sudo apt-get install Git-core

sudo apt-get install GnuPG

sudo apt-get install Flex

sudo apt-get install Bison

sudo apt-get install Gperf

sudo apt-get install build-essential

sudo apt-get install zip

sudo apt-get Install Curl

sudo apt-get install Libc6-dev

sudo apt-get install Libncurses5-dev

sudo apt-get install X11proto-core-dev

sudo apt-get install libx11-dev:i386

sudo apt-get install libreadline6-dev:i386

sudo apt-get install libgl1-mesa-glx:i386

sudo apt-get install Libgl1-mesa-dev

sudo apt-get install G++-multilib

sudo apt-get install mingw32 (this installation has a problem, temporarily not installed!) )

[Email protected]:~$ sudo apt-get install Mingw32

Reading Package List ... Complete

Analyzing Dependency tree for Package

Reading status information ... Complete

E: Unable to locate package Mingw32

[Email protected]:~$

http://blog.csdn.net/u011425939/article/details/53457985

Ubuntu 16.04 Installation MinGW32

sudo apt-get install Tofrodos

sudo apt-get install Python-markdown

sudo apt-get install libxml2-utils

sudo apt-get install Xsltproc

sudo apt-get install zlib1g-dev:i386

sudo apt-get install Zlib1g-dev

sudo apt-get install Lib32ncurses5-dev

sudo apt-get install lib32z1

sudo apt-get install Libx11-dev

sudo apt-get install Lib32readline-gplv2-dev (this installation has a problem, temporarily not installed!) )

[Email protected]:~$ sudo apt-get install Lib32readline-gplv2-dev

Reading Package List ... Complete

Analyzing Dependency tree for Package

Reading status information ... Complete

There is no available package Lib32readline-gplv2-dev, but it is referenced by other packages.

This may mean that the missing package may have been discarded,

Or can only be found in other publishing sources

E: Package Lib32readline-gplv2-dev No installable candidate

[Email protected]:~$

sudo apt-get install Lib32z1-dev

sudo apt-get install Libreadline6-dev

sudo apt-get install LIBGL1-MESA-GLX

sudo apt-get install Gcc-multilib

sudo apt-get install U-boot-tools

(Can not be installed)

sudo apt-get install gcc-4.8

sudo apt-get install g++-4.8

sudo apt-get install G++-4.8-multilib

sudo apt-get install Gcc-4.8-multilib

sudo ln-s/usr/lib/i386-linux-gnu/mesa/libgl.so.1/usr/lib/i386-linux-gnu/libgl.so

sudo apt-get install meld

sudo apt-get install Libswitch-perl

sudo apt-get install gawk

sudo apt-get install Libssl-dev

3, installation Openjdk7:

(1)

To install JDK1.7, use the following command

[Email protected]:~$

[Email protected]:~$ cd wyb/

[Email protected]:~/wyb$

[Email protected]:~/wyb$ sudo cp java-7-openjdk-amd64.tar.gz/opt

[sudo] rootroot password:

[Email protected]:~/wyb$ cd/opt

[Email protected]:/opt$

[Email protected]:/opt$ chmod 777 java-7-openjdk-amd64.tar.gz

chmod: Change permissions for ' java-7-openjdk-amd64.tar.gz ': Operations not allowed

[Email protected]:/opt$ sudo chmod 777 java-7-openjdk-amd64.tar.gz

[Email protected]:/opt$

[Email protected]roduct-name:/opt$ sudo tar zxvf java-7-openjdk-amd64.tar.gz

(2)

Set the JDK environment variable, open the. BASHRC, and add the following code at the end

#set Java Environment

#export JAVA_HOME=/HOME/S/BIN/JAVA-7-OPENJDK-AMD64

#export JAVA_HOME=/HOME/S/BIN/JAVA-8-OPENJDK-AMD64

Export JAVA_HOME=/OPT/JAVA-7-OPENJDK-AMD64

Export path= $JAVA _home/bin: $PATH

Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

(3)

Test if the JDK is successfully installed, use the command java-version if it appears (need to log off, or restart the Ubuntu system)

[Email protected]:~$ java-version

Java Version "1.7.0_121"

OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-1ubuntu0.14.04.3)

OpenJDK 64-bit Server VM (build 24.121-b00, Mixed mode)

[Email protected]:~$

The JDK is installed successfully.

(Oracle/sun a little pit, just need a "-")

[Email protected]:~$ java--version

Unrecognized option:--version

Error:could not create the Java Virtual machine.

ERROR:A Fatal exception has occurred. Program would exit.

[Email protected]:~$

4. Switch the shell from dash to bash:

Http://blog.csdn.net/smilettxp/article/details/19118057?reload

Ubuntu 12.04 Compilation Mtk6582--faq

WORKAROUND:/bin/sh:1: [:-a:unexpected operator analysis reason for/bin/sh link to/bin/dash, not/bin/bash (can be ls/bin/sh with command- LH When viewing links for bash or dash)

Modify SH By default pointing to/bin/bash, as follows:

sudo dpkg-reconfigure Dash Select No, you can.

[Email protected]:~$

[Email protected]:~$ LS/BIN/SH-LH

lrwxrwxrwx 1 root root 4 June 10:45/bin/sh, Dash

[Email protected]:~$

[Email protected]:~$ sudo dpkg-reconfigure dash

Removing dash causes/bin/sh to transfer to/bin/sh.distrib

Adding bash causes/bin/sh to be transferred to/bin/sh.distrib

Removing dash causes/usr/share/man/man1/sh.1.gz to transfer to/usr/share/man/man1/sh.distrib.1.gz

Adding bash causes/usr/share/man/man1/sh.1.gz to be transferred to/usr/share/man/man1/sh.distrib.1.gz

[Email protected]:~$

[Email protected]:~$ LS/BIN/SH-LH

lrwxrwxrwx 1 root root 4 June 12:50/bin/sh bash

[Email protected]:~$

Resources:

Http://www.linuxidc.com/Linux/2014-04/100645.htm

Ubuntu 14.04 LTS installs Google Chrome browser

http://blog.csdn.net/man_embedded/article/details/40111023

Build the environment of MTK Android under Linux

Http://jingyan.baidu.com/article/624e7459abb8eb34e8ba5aa2.html

Ubuntu10.04 Build MTK Android Build Environment

http://blog.csdn.net/doon/article/details/8053174

Ubuntu 12.04 64-bit settings compatible with 32-bit implementations

http://blog.csdn.net/yimiyangguang1314/article/details/39996851

Ubuntu 12.04 64bit Unrecognized cross compiler workaround

Http://pkgs.org/download/ia32-libs

Ia32-libs Download (DEB)

Http://source.android.com/source/initializing.html

Initializing a Build environment

Http://processors.wiki.ti.com/index.php/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide

ti-android-jb-4.2.2-devkit-4.1.1 Developerguide

https://www.virtualbox.org/

VirtualBox

Step 7 (Ubuntu 17.04 Non-permanent support version) for local compilation of the full-log R series

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: