DevOps | Sharique | 8th June

Discussion in 'Cloud Computing' started by Kartikeya Sinha_1, Jun 8, 2019.

  1. Kartikeya Sinha_1

    Kartikeya Sinha_1 Active Member

    Joined:
    Mar 28, 2019
    Messages:
    15
    Likes Received:
    1
    Please use this thread for any conversation
     
    #1
  2. anand.sarangapani(2717235)

    Alumni

    Joined:
    Mar 20, 2015
    Messages:
    1
    Likes Received:
    0
    first day session was great
     
    #2
  3. Rohit  Singh(2817)

    Rohit Singh(2817) New Member
    Alumni

    Joined:
    Mar 5, 2013
    Messages:
    1
    Likes Received:
    0
    Awesome Session!!
     
    #3
  4. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    Thanks for the community
     
    #4
  5. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    Good Session today
     
    #5
  6. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    How to generate a SSH key for Digital ocean and upload to digital ocean.
    Followed steps
    1. Created a ssh key in simplilearn lab.
    2.trying to add in ssh key section for droplet
    getting error.
    Please guide me how to create and upload to droplet sshdroplet.png ssh.png
     
    #6
    Sharique Kamal likes this.
  7. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    #7
  8. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    #8
    Manjula_14 likes this.
  9. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    Thank you
     
    #9
  10. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    Thank you
     
    #10
  11. Kartikeya Sinha_1

    Kartikeya Sinha_1 Active Member

    Joined:
    Mar 28, 2019
    Messages:
    15
    Likes Received:
    1
    you have to use the entire key, get the contents of the key by:
    cat id_rsa.pub
    Copy the whole thing and paste it in digital ocean
     
    #11
  12. _48204

    _48204 Member

    Joined:
    Nov 14, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Karthik,

    though i attended two classes, in simplilearn it is showing i attended 0 classes

    //
    DevOps Practitioner Training
    • 0 Classes completed | 12% Self-Learning Videos Watched | 0/2 Projects Done//
     
    #12
  13. _48204

    _48204 Member

    Joined:
    Nov 14, 2018
    Messages:
    2
    Likes Received:
    0
    Hi Karthik,

    simplilearn lab is not working

    ///Looks like something went wrong, please try again at another time//
     
    #13
  14. Kingshuk Sikdar

    Joined:
    May 31, 2019
    Messages:
    3
    Likes Received:
    0
    dear all,
    I have created folder in my github account : kingshuksikdar/ks-sl-june19

    I have commited some files from ubuntu machine. i cant see those files in git hub directory. I tried for Git push & get the below error.Can anyone help me ?
    upload_2019-6-11_17-3-39.png
     
    #14
    Last edited: Jun 11, 2019
  15. Abir Ghare

    Abir Ghare New Member

    Joined:
    May 31, 2019
    Messages:
    1
    Likes Received:
    0
    Hi Kingshuk,

    Probably you are in wrong location
    1. Run # PWD
    2. check the file location is it same as the repo name
    3. Run # ls -lrt
    4. Check if you see another directory with the same name as repo
    5. Go within the repo directory
    6. copy the file to this directory
    7. add, commit and then try to push.

    I got the similar error:

    upload_2019-6-11_21-56-48.png
     

    Attached Files:

    #15
  16. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Hello DevOps Champions

    How is your practice going?
    Here is the links to setup your Ubuntu labs and access via SSH on DigitalOcean and/or AWS (On Windows Laptop):

    DigitalOcean:
    AWS:

    Enjoy!
     
    #16
    mahesh nelogal likes this.
  17. _20170

    _20170 New Member

    Joined:
    Jan 12, 2018
    Messages:
    1
    Likes Received:
    0

    Hi Sharique,

    I am able to install putty and create SSH in putty.
    Could you please tell us how to authenticate through termius in windows. Thanks
     
    #17
  18. mahesh nelogal

    mahesh nelogal New Member

    Joined:
    May 30, 2019
    Messages:
    1
    Likes Received:
    0
    THANKS SHARIQUE. I CREATED EC2 INSTANCE AND ABLE TO SSH TO MY MACHINE. IT HELPED.
    THANKS AGAIN!
     
    #18
    Last edited: Jun 12, 2019
  19. Srividhya_8

    Srividhya_8 Member

    Joined:
    May 8, 2019
    Messages:
    4
    Likes Received:
    0
    Hello Sharique,

    I have created account in digital ocean, created droplet and generated key via putty. connected to ubuntu server and did some basic cat commands.. It worked for me. I hope this is fine as well..
     
    #19
  20. Srividhya_8

    Srividhya_8 Member

    Joined:
    May 8, 2019
    Messages:
    4
    Likes Received:
    0
    Hi Sharique,

    Kindly share us how to install termius and how to add key from initial stage.
     
    #20
  21. Manjula_14

    Manjula_14 Member

    Joined:
    Apr 23, 2019
    Messages:
    6
    Likes Received:
    1
    #21
  22. Gopi Krishna Dasari

    Joined:
    Jun 4, 2019
    Messages:
    6
    Likes Received:
    2
    #22
    Sharique Kamal likes this.
  23. Kingshuk Sikdar

    Joined:
    May 31, 2019
    Messages:
    3
    Likes Received:
    0
    HI Sharique.,
    I set up an machine in ubuntu digital ocean. How to connect to that from any terminal other than simplilearn lab.
    can i use termius for that? Is termius is free? Please guide to the setup from termius.
    Thanks
    Kingshuk
     
    #23
  24. _35062

    _35062 New Member

    Joined:
    Jul 19, 2018
    Messages:
    1
    Likes Received:
    0
    My Simplilearn Lab is not working.
     
    #24
  25. Sridhar_82

    Sridhar_82 Member

    Joined:
    May 23, 2019
    Messages:
    2
    Likes Received:
    0
    #25
  26. Gopi Krishna Dasari

    Joined:
    Jun 4, 2019
    Messages:
    6
    Likes Received:
    2

    Hi Kingshuk,

    Here is the link for https://termius.com/ ,download the file according to your OS. windows OS just follow the installation wizard.
    if it is linux ,download the termius.deb file sudo dpkg -i Termius.deb or sudo apt install Termius.deb (those are worked for me).
     
    #26
    Last edited: Jun 16, 2019
    Sharique Kamal likes this.
  27. Srividhya_8

    Srividhya_8 Member

    Joined:
    May 8, 2019
    Messages:
    4
    Likes Received:
    0
    Hi sharique,

    Couldn't find the notes in Github to install jenkins, Can you please share the procedures to install java and jenkins?
     
    #27
  28. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    #28
  29. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Hi Kingshuk
    Termius has a paid version but the free version is good enough for all practical purposes. Regarding the usage, please refer to class recording where I have discussed in details about the usage of Termius/DigitalOcean/AWS/Other Labs.
    Thanks
     
    #29
  30. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    GitHub Repo Updated!
     
    #30
  31. Srividhya_8

    Srividhya_8 Member

    Joined:
    May 8, 2019
    Messages:
    4
    Likes Received:
    0
    Hi Sharique,

    How to restart jenkins in the newly opened ssh session through aws ec2 instance?
    gave command as sudo systemctl status jenkins in ubunutu machine, its showing below error
    jenkins.service
    Loaded: not-found (Reason: No such file or directory)
    Active: inactive (dead)
    Kindly help..


     
    #31
  32. Kingshuk Sikdar

    Joined:
    May 31, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Sharique,
    I tried to create a master- slave set up in jenkins.
    My master is simplilearn lab machine and slave is digital ocean ubuntu machine which i am connecting using Puttygen.I am getting the below error when i see log for the slave machine. I followed the same steps u have told & also set password authentication as yes in /etc/ssh/sshd_config file. Can you please assist.
    upload_2019-6-22_16-7-44.png
     
    #32
  33. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    #33
  34. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Pushed all notes on GitHub for this weekend discussions. I have also updated some old notes with references.
    use "git pull" to get all recent changes and newly added files.

    Link: https://github.com/sk12k/sl-docs-june-2019

    Happy learning!
     
    #34
  35. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Hi Kingshuk
    I am expecting this has been resolved already.
    Happy learning!
     
    #35
  36. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    while installing nagios, getting below error:

    Errors were encountered while processing:

    postfix

    mailutils

    E: Sub-process /usr/bin/dpkg returned an error code (1)

    RESULT=100

    ===================

    INSTALLATION ERROR!

    ===================

    Installation step failed - exiting.

    Check for error messages in the install log (install.log).

    If you require assistance in resolving the issue, please include install.log

    in your communications with Nagios XI technical support.

    The script that failed was: './1-prereqs'

    Guide me how to resolve this error?
     
    #36
  37. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Hello DevOps Champs

    Updated GitHub repo and added following files:
    1. Kubernetes Class Notes
    2. Nagios Class Notes
    3. Nagios Core Installation Script
    4. DevOps on Cloud Class Notes
    5. Interview
     
    #37
  38. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
     
    #38
  39. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
    Hello Everyone

    It was great interacting with each one of you over the last couple of weeks. I hope you enjoyed the sessions as much as I did.

    Here are a couple of references I would like to share with you.

    1. Make it a point to read about DevOps as much as you can. Some of the following websites should be a good starting point:

    https://devops.com/
    https://dzone.com/devops-tutorials-tools-news
    https://itrevolution.com/
    https://blog.xebialabs.com/


    2. If you are on twitter, then following these people is a must:

    Gene Kim @RealGeneKim
    Martin Fowler @martinfowler
    Adam Jacob @adamhjk
    John Allspaw @allspaw
    Joshua Timberman @jtimberman


    3. Some more references for various DevOps tools:

    # GIT
    https://git-scm.com/book/en/v2
    https://www.atlassian.com/git/tutorials


    # Jenkins and CI
    http://www.vogella.com/tutorials/Jenkins/article.html#jenkins-backup-and-copying-files
    http://tutorials.jenkov.com/maven/maven-tutorial.html



    # Puppet
    https://www.puppetcookbook.com/
    https://www.digitalocean.com/commun...tarted-with-puppet-code-manifests-and-modules

    http://fullstack-puppet-docs.readthedocs.io/en/latest/puppet_modules.html
    http://managementsupport.nl.s3-eu-central-1.amazonaws.com/app/uploads/2016/06/attachment-puppet.pdf


    # Ansible
    https://www.ansible.com/blog/topic/getting-started
    https://serversforhackers.com/c/an-ansible2-tutorial
    https://www.softwaretestinghelp.com/ansible-tutorial-1/
    https://www.ansible.com/blog/getting-started-writing-your-first-playbook

    # Chef
    https://learn.chef.io/#/
    https://linode.com/docs/applications/configuration-management/beginners-guide-chef/
    https://www.edureka.co/blog/chef-tutorial/


    # Docker
    http://training.play-with-docker.com/
    http://techgenix.com/docker-and-containers-part1/
    https://hub.docker.com/editions/community/docker-ce-desktop-windows
    https://docs.docker.com/engine/docker-overview/
    https://docs.docker.com/v17.09/docker-for-windows/install/
    https://curl.haxx.se/docs/manpage.html
    https://www.tecmint.com/linux-curl-command-examples/
    https://linuxize.com/post/curl-command-examples/

    # Kubernetes

    https://thenewstack.io/kubernetes-an-overview/
    https://hub.docker.com/editions/community/docker-ce-desktop-windows
    https://x-team.com/blog/introduction-kubernetes-architecture/
    https://www.cncf.io/
    https://kubernetes.io/docs/home/
    https://www.edureka.co/blog/kubernetes-architecture/
    https://thenewstack.io/kubernetes-an-overview/
    https://www.katacoda.com/courses/kubernetes/playground
    https://kubernetes.io/docs/tasks/tools/install-minikube/
    https://chocolatey.org/ (for Windows users)
    https://medium.com/google-cloud/understanding-kubernetes-networking-pods-7117dd28727


    # Nagios
    http://www.tuxradar.com/content/nagios-made-easy
    http://users.telenet.be/mydotcom/howto/nagios/index.html


    # Linux Refresher
    http://www.linuxhomenetworking.com/
    https://linuxjourney.com/


    # Understand How and Why REST APIs Work
    https://blog.versionone.com/underst...rk-demonstrated-with-the-versionone-data-api/

    4. Vendor/Tool Specific Certifications

    https://aws.amazon.com/certification/certified-devops-engineer-professional/
    https://devopsinstitute.com/certifications/
    https://puppet.com/support-services/certification
    https://www.cncf.io/certification/cka/
    https://success.docker.com/certification
    https://training.chef.io/certification
    https://www.cloudbees.com/jenkins/jenkins-certification
    https://www.nagios.com/services/certification/

    Best of Luck and Happy learning!
     
    #39
    Ambika_15 likes this.
  40. Sharique Kamal

    Sharique Kamal Customer
    Customer

    Joined:
    Dec 31, 2018
    Messages:
    20
    Likes Received:
    4
  41. Sridhar_82

    Sridhar_82 Member

    Joined:
    May 23, 2019
    Messages:
    2
    Likes Received:
    0
    Please uninstall Nagios Xi by using the following commands below (Remove /etc/nagios3 directory)
    rm -rf /etc/nagios3

    if you will remove package including it's config files, you have to use a --purge option for apt:
    apt-get --purge remove nagios3-common
     
    #41
  42. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    I am trying to copy the repository from one git location to other git location. For this I have first copied the file from git to my local machine. thereafter I am transferring to the git repository. Is there any alternate method through which I can directly copy the files from one git repository to other git repository?
     
    #42
  43. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    I have created one new file called xyz.txt and added some text to it. Now when I am trying to push it to my repository, after providing the username and password for my gitaccount, its giving me the below error

    remote: Permission to sk12k/sl-docs-june-2019.git denied to paragb2.
    fatal: unable to access 'https://github.com/sk12k/sl-docs-june-2019.git/': The requested URL returned error: 403

    I am not getting why is it accessing your account to push the text file. However when I pass the command git push https://github.com/paragb2/Devopsbackup.git, the contents gets pushed into my github repository.

    Kindly let me know the reason for the same and how can i push the single file or list of files into my github repository?
     
    #43
  44. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    When doing the git pull, its giving me message "Please make sure you have the correct access rights and the repository exists". Fatal: Could not read from remote repository.

    However when I am doing git pull https://github.com/paragb2/Devopsbackup.git, its working up fine and showing the changes that I had done in the text file.

    Kindly let me know why this error of acccess rights coming?

    To further investigate on the above issue, I created another directory and subdirectory and then did the git clone the new directory for the repository from my github account. Thereafter I did git remote -v. I am still getting the below error:
    root@Devops:/gitrepos_parag# cd slo-docs-june19
    root@Devops:/gitrepos_parag/slo-docs-june19# git remote -v
    fatal: not a git repository (or any of the parent directories): .git

    Kindly guide how to resolve this issue.
     
    #44
    Last edited: Jul 17, 2019
  45. Nilesh Pathrabe

    Joined:
    May 29, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Sharique,

    Can you please share answers of interview questions which you have provided? It would be very helpful for us.
     
    #45
  46. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    Hi Sharique,

    Some of the ppt files that you referenced you will be sharing it regarding git and some pdf files also related to git are not available in the link related to the git repository that you have shared.

    Request you to kindly share those files in the repo.

    Regards,
    Parag Mishra
     
    #46
  47. Kartikeya Sinha_1

    Kartikeya Sinha_1 Active Member

    Joined:
    Mar 28, 2019
    Messages:
    15
    Likes Received:
    1


    Hi Parag,

    Please use the below command to configure your git repository:
    git remote add origin <url_of_remote repository>

    If it gives some error, please run the below command:
    git remote set-url origin <url_of_remote repository>

    Also, please check the below steps for git push:
    git clone <git_repository_link>
    cd <repository_name>
    touch abc.txt
    git add .
    git remote set-url origin <git_repository_link>
    git commit -m "first commit"
    git config --global user.email "Email Id"
    git config --global user.name "Username"

    Try that and let me know the results!

    git push -u origin master
     
    #47
    Parag Mishra likes this.
  48. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    Yes it's working correctly now.
     
    #48
  49. Parag Mishra

    Parag Mishra Active Member

    Joined:
    May 16, 2019
    Messages:
    17
    Likes Received:
    3
    I have created two branches fa and fb apart from default master branch. When I do git checkout master and thereafter ll, its still showing me the fa branch. Whereas as we remember when we are doing git checkout master, it should not show the fa branch. Pls find below screenshot:
    upload_2019-7-19_14-42-19.png

    Kindly let me know why is fa branch getting displayed?
     

    Attached Files:

    #49
  50. Nilesh Pathrabe

    Joined:
    May 29, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Sharique,
    Which DevOps course is useful for Automation testers ??
     
    #50

Share This Page