Register a GitLab account*
Our SDK is hosted on GtiLab's private warehouse. Please follow the instructions in this article to register a GitLab account and fill in username and email are sent to our sales manager, and our project manager will release the code for this account.
Attention
Only by providing username and email to our company can we see the corresponding SDK project in Gitlab.
1. Install the git tool*
$ sudo apt install git-all
2. Registration and configuration of Gitlab account*
If you do not have an account, you need to register an account through the gitlab official website. Because of the existence of the wall, it is recommended to log in through a GitHub account.
2.1 Register Github account*
Click GitHub - GitHub - Account Setup and Configuration
2.2 Login to Gitlab*
Open the GitLab login link, click red box as shown below Github
2.3 Provide GitLab username and email*
-
Press 2.2 Logging in to Gitlab to log in to GitLab, click the icon in the upper right corner, and then click Edit Profile. As shown below:
-
Next, you will enter the picture below, just send the username and email in the red box to our sales manager
3. Add SSH public key*
3.1 SSH public key introduction*
The full name of SSH is Secure Shell, which is a secure shell protocol, which is an encrypted network transmission protocol. It can provide a secure data transmission environment in an open network environment, and is usually used to log in to remote hosts and push and pull codes.
The same SSH public key file, if added to a certain code warehouse, is called Deployment Public Key, after configuration, it has read-only permission for the project by default; if added to A personal account, called Account SSH Public Key, has read and write permissions for all items under the account after configuration. The same SSH public key cannot be used as both a deployment public key and an account SSH public key.
Repeatedly added to the code warehouse and personal account.
3.2 Generate SSH public key*
- Enter the command in the Linux terminal: ssh-keygen, and then press Enter all the way, ignore the prompt information.
root@ubuntu:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
5c:db:cb:dd:8d:f1:99:80:4b:fd:ca:91:4a:4b:65:86 root@X200
The key's randomart image is:
+--[ RSA 2048]--+
| |
| |
| . |
| . . o+ |
| S .E.*. |
| ..=o+=+|
| +ooo++|
| o + o |
| o o |
+-----------------+
3.3 Use ssh-agent to store private key password*
- Add the private key to ssh-agent's cache:
root@ubuntu:~$ ssh-add
- View SSH public key:
root@ubuntu:~$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZy641ROt4VkkZShGOE8/7Etq4s6PZ36s5P+gbFWCBx0Bats1o7Ds
..... // Save 10,000 lines
pB1vtB4NsJVzp3/vn7Y25t2B37ZS/7zBhYORFY47c2toVg0jDlAcjc5JKdWBERUHcI/Igucd5Dx07YLcC+ekJEP5ZL+
+f7euHdbEbfHbFC2qVJeGmZuJ9wdD0RuJKuLoJFxjjhDn9AbXtmvxo6oeQ5sViLI6xJOV9T5SOzl5Nz3+67nbnIf9kC
DzVu9n2LRFHi5snj root@ubuntu
3.4 Add public key to Gitlab*
- Copy the SSH public key and add it to GitLab, first open the SSH Key interface as shown below:
- Copy the content of ~/.ssh/id_rsa.pub to the Key area in the figure below, and then click Add key