The latest source code version released by tizen is 2.1. This article will show you how to download the tizen source code through a graphic tutorial and explain how to compile the source code.
1. Register and set gerrit1.1 registration email
First, open Logging:
Log On with the user name and password.
Note: The tizen source code is managed by gerrit.
The logon interface is as follows:
Click Settings in the upper-right corner, and then click "Contact Information" on the left to add your mailbox to the displayed interface. The Gerrit system will automatically send a verification email to your specified mailbox, click the verification link in the email for verification. After the certificate is denied, your Gerrit account has been activated and can be used properly.
2. Configure SSH2.1 to access Gerrit to install the ssh tool.
First install the ssh tool:
$ sudo apt-get install ssh
After the ssh installation is successful ~ /Directory automatically generated. ssh hide directory.
2.2 generate an RSA key
Run the following command to generate an RSA key:
~/.ssh$ ssh-keygen -t rsa -C flydream0
Among them, flydream0 is the prompt content. You can write some content at will. Generally, you can write your own user name.
System prompt:
Generating public/private rsa key pair.Enter file in which to save the key (/home/arthur/.ssh/id_rsa):
The system prompts you to save the address of the key. Press the Enter key and save it to ~ by default ~ /. Ssh directory.
Then the system prompts you to set a password. The following page appears after the two settings are correct:
2.3 configure the SSH configuration file
Go ~ /. Create the config file in the ssh directory and copy the following content to it:
Host tizen Hostname review.tizen.org IdentityFile ~/.ssh/id_rsa User <Gerrit Username> Port 29418 #The line below is optional configuration applicable to Ubuntu and openSUSE. #Add when using proxy, otherwise, skip it. #ProxyCommand nc -X5 -x <Proxy Address>:<Port> %h %p #The line below is optional configuration applicable to Fedora. #Add when using proxy, otherwise, skip it. #ProxyCommand nc --proxy-type socks4 --proxy <Proxy Address>:<Port> %h %p
<Gerrit Username> the previously registered Gerrit Username does not contain angle brackets.
2.4 upload the SSH public key to Gerrit
Open ~ /. The id_rsa.pub file in the ssh directory:
$vim ~/.ssh/id_rsa.pub
Copy all the content, return to the gerrit setting interface, click SSH Public Keys on the left, and add the Public key, as shown in:
Add your public key to gerrit so that you can use the git command to obtain the tizen source code in gerrit.
2.5 verify SSH connection
Run the following command:
$ ssh tizen
You will be prompted to enter the password:
Enter the previously set SSH password and press Enter. If the connection is normal, the following interface will appear:
This indicates that the SSH settings are OK.