# 06 - 10 April 2020 ###### tags: `Study Note` ## Daily Report 06 April 2020 Registering to the LF https://wiki.o-ran-sc.org/display/TOC/Tutorial%3A+Making+code+contributions+to+O-RAN+open+source+project LF Username: M10802821 LF Email: M10802821@mail.ntust.edu.tw Create the SSH file ``` jonathan@Jo-BM6835:~$ ssh-keygen -t rsa -C "M10802821@mail.ntust.edu.tw" Generating public/private rsa key pair. Enter file in which to save the key (/home/jonathan/.ssh/id_rsa): /tmp/testkey Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /tmp/testkey. Your public key has been saved in /tmp/testkey.pub. The key fingerprint is: SHA256:jmg/aeUsDa8tq0iIRab+xaH6UHiqiQCtRk4kbXWzmDw M10802821@mail.ntust.edu.tw The key's randomart image is: +---[RSA 2048]----+ | . o | | . o + o | |..= E . | |o*. . | |o+oo . S | |B++ o.oo. | |=*..oo.O. | |=o+o..*.= | |+.oo.o+*. | +----[SHA256]-----+ ``` Sgning the CLA under the ICLA ![](https://i.imgur.com/g6Uk3tX.png) Generating the SSH and add the generated public key to the gerrit. ![](https://i.imgur.com/wtIT6sd.png) ## Daily Report 08 April 2020 Re-try the SSH generate the SSH ``` jonathan@Jo-BM6835:~/dev$ ssh-keygen -t rsa -C "M10802821@mail.ntust.edu.tw" Generating public/private rsa key pair. Enter file in which to save the key (/home/jonathan/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/jonathan/.ssh/id_rsa. Your public key has been saved in /home/jonathan/.ssh/id_rsa.pub. The key fingerprint is: SHA256:fg6q1eKkTH9EbSBwxYEMJe3KgpD1Q+V9s3ZIForc2L8 M10802821@mail.ntust.edu.tw The key's randomart image is: +---[RSA 2048]----+ | +B++o.. | | . .==*o. XXXX | | o o .=.=o= | |o o . .=o+ | |.. . o .S.= . | |. . o o.. o | | .. +.+ E | | o * o.+ | | +.+. . | +----[SHA256]-----+ ``` Test the SSH, the important parts has been edited so can't be used by others. These result is just for example. ``` jonathan@Jo-BM6835:~/dev$ cat ~/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2DDDDDDDAQABAAABAQCfXc7k8yVQ17Lj0fMsRpyDmBL2wWwX/GA1c1q1UNtW4Qxt8LfHl2uwJDAXHYJVSpjoGpJlhHePHn/ahL8N69lzb5u2uyJIWTpjal7Z2o8+QLSmtCkfFac8d2MWJLYOftKwTnhe870A5pgQ5oaC45dmS2q8zXq1wrE2zuQRTu5DZGehtnArL5vV5IS0Fg9HV2434tJHu4yPKJSz9KOicQo2MihPZy4odlWhcdlsqx/s0uv3Eknq6kUP7Q5PGxof/dcSc04Jp+9JsmUeBoLeqJAiNsXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXFXkxEFM4zG+UudMz9JxblwE4eNrT M10802821@mail.ntust.edu.tw jonathan@Jo-BM6835:~/dev$ ssh-add ~/.ssh/id_rsa Identity added: /home/jonathan/.ssh/id_rsa (/home/jonathan/.ssh/id_rsa) jonathan@Jo-BM6835:~/dev$ eval $(ssh-agent) Agent pid 4271 jonathan@Jo-BM6835:~/dev$ ssh-add ~/.ssh/id_rsa Identity added: /home/jonathan/.ssh/id_rsa (/home/jonathan/.ssh/id_rsa) jonathan@Jo-BM6835:~/dev$ ssh -p 29418 m10802821@gerrit.o-ran-sc.org **** Welcome to Gerrit Code Review **** Hi Jonathan Jonathan, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use: git clone ssh://m10802821@gerrit.o-ran-sc.org:29418/REPOSITORY_NAME.git ``` Try to make a new branch by commiting/push to a undefined branch, ssh must be signed in first. ``` jonathan@Jo-BM6835:~/dev/gerrit/phy$ ssh-add ~/.ssh/id_rsa Identity added: /home/jonathan/.ssh/id_rsa (/home/jonathan/.ssh/id_rsa) jonathan@Jo-BM6835:~/dev/gerrit/phy$ git push "ssh://m10802821@gerrit.o-ran-sc.org:29418/o-du/phy" HEAD:documentation ``` ### Must ask prof What I think from the instruction: 1. create a new branch (since it not specify which brach should I commit, not sure directly to the master) 2. push to the new branch problem: 1. Unable to create new branch, not permitted (using terminal nor web interface) ![](https://i.imgur.com/UHPGA8P.png) 2. is this structure right? o-du/phy - Dockerfile - Doxygen* - fhi_lib - misc - docs - example_odulow_build.txt - Licenses.txt - tox.ini *) Doxygen is the folder that I make, containing the html file from doxygen. Doxygen/index.html is the entry point. ## Daily Report 10 April 2020 [Upload to gerrit.](https://gerrit.o-ran-sc.org/r/q/project:o-du%252Fphy) ![](https://i.imgur.com/HkZhxJj.png) The format already matched with Zhimin's ![](https://i.imgur.com/uptDxFV.png)