Skip to main content

Posts

AWS cloud practitioner notes

 AWS Certified cloud practitioner: What is cloud computing? cloud computing is the on demand delivery of the compute power, database storage, applications and other IT resources through a cloud services platform with pay-as-you-go pricing. you can provision exactly the right type and size of the computing resources you need. you can access many resources as you need almost instantly like servers, storage,databases and application services as well. Amazon web services owns and maintains the network connected hardware required for these application services, while you provision and use what you need via a web application. ***************************************** Deployment models of Cloud: Private Cloud: Cloud service used by a single organisation, not exposed to the public. complete control. security of the sensitive applications meeting specific business needs. ********************** Public Cloud: Cloud resources owned and operated by the third party. cloud service provider delivers r

Devops for beginners

 Devops: Software development life cycle: 1.requirement gathering 2.planning 3.design 4.development 5.testing 6.deployment and maintenance ################### Models in SDLC: 1. Waterfall model 2.Agile 3.Spiral 4.Big bang ###################### Waterfall method: once 1 step is completed then only we go to 2nd step. 1.requirement gathering 2.planning 3.design 4.development 5.testing 6.deployment and maintenance ################# Agile: waterfall model is repeated many times until clients needs are satisfied. ############# Continuous Integration : Scenario : developers write the several lines of code everyday creating the software. this code should be stored somewhere at the centralized place. This centralized repository called as the version control system like github. everyday developers push and pull the code from such repositories. code changes or the code commits happens continously. On the repository, this code will be built, tested and evaluated. artifacts/software is the bundle

Containers in Linux .

 The term container and the concept came from the shipping container .  These container are shipped from city to city and country to country .  No matter which part of the world you go , you will always find these containers with the exact same measurements because around the world  all docks , trucks ,ships and warehouse are built to easily transport and store them .  > Now consider the situation , developers create the application and that application is working fine in their laptop , but when the application is moved to the production environment , application is not running . The most basic reason is change of the architecture .  > Then comes the container technology which allows developers or programmer to test and build applications on any computerr just by putting it in the container and then run on another computer regardlesss of its architechture .  >you can move the application anywhere without moving its OS just like moving actual container anywhere that would fit o

server build checklist

 Network configuration completed. Register to RHΝ. Apply updates and reboot. Setup time synchronization. Sentinel one installed on all the 2 servers. AD configuration has been done. Sudo to root access has been given to Linux team selinux has been disabled. Rsyslog has been enable Ip address has been reserved. Computers has been added to Linuxoid OU. SNMPV3 setup done on 2 servers. Firewall has been enabled on 2 servers. Servers have been added to Solarwinds using SNMP polling method. ure Subtask created DNS entry. Subtask created for sentinelone Subtask created for Backup. ************************************************ Build a server DNS entry has been added for the VM uln_register selinux (/etc/selinux/config) has been disabled Rsyslog has been enable Added Disk and created file-system Mount disk u01, u02 Sentinel-one has been installed on the VM SNMP has been configured & Solarwind monitoring enabled Added VM to AD group and user has been added in the group for login using AD

Patching Notes .

If plymouth is NOT disabled during boot time, it may create issue working on the console, we need to disable it during patching window. cat /proc/cmdline | grep -i plymouth : to check if the plymouth is disabled or not. if no output then no if any output then YES.  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Before patching : history      systemctl status scsm      :   check the status of scsm . systemctl status cloud-init     :  check the status of cloud init . df  -h  /   : check the available space in /  .  cd  /home/homedir   :   Go to the directory .  ********************************************************* lsblk >> lsblk ; df  -hT>> df-ht  ;  free  -tm >> swap  ;  cat /etc/fstab >> etcfstab     #compulsary     cat  /etc/mail/sendma

User and group management

  user and group management: useradd spiderman:  add the new user called spiderman groupadd superheros  create the group called superheroes. cat /etc/group: shows the list of groups and its members. userdel -r spiderman:  delete the user spiderman. groupdel superheroes:  deletes the group superheroes. usermod -G superheroes superman  change the group of superman to superheroes.  chgrp -R superheroes spiderman:  change the group of spiderman to superheroes. cat /etc/passwd:  gives the local accounts output. output format of /etc/passwd file:  username: password: userid: groupid: home directory: shell type. output format of /etc/group file:  groupname:x: groupid: groupmembers. useradd -g linux_admins -s /bin/bash -c "sadik pathan" -m -d /home/admin_spathan admin_spathan:  add the username admin_spathan in linux_admins group.  passwd admin_spathan : create the passwd for admin_spathan chage -m 5 -M 90 -w 10 babubutt   : after the password change, babubutt is not allowed to chang

Tune system performance

  Tune system performance: what is tuned?  Pronounced as tune-d. Tune is for system tuning and d is for daemon. It is a systemd service that is used to tune linux system performance. It is installed in Centos /redhat version 7 and 8 by default. tuned package name is tuned The tuned service comes with predefined profiles and settings. Based on the selected profile the tuned service automatically adjust system to get the best performance. The tuned daemon applies system settings when the service starts or upon selection of the new tuning profile. • Check if the tuned package has been installed: rpm -qa | grep -i tuned •Install the tuned package: yum install tuned -y •play with the tuned service: systemctl status / enable/disable/start/stop tuned •command to change the setting for the tuned daemon: tuned-adm •to check which profile is active: tuned-adm active •to list the available profiles: tuned-adm list •some of the tuned profiles given below: balanced desktop throughput-performance la

Install and update the software packages.

  Install and update the software packages: package : Its a container that contains the software related programs, files and executables. system updates and repositories: yum  (rhel and centos) command installs the packages that are defined in the linux system. configuration files location: / etc/yum.repos.d apt-get  (ubuntu debain) rpm  (redhat package manager) Difference between yum and rpm: yum downloads the package from the internet and installs it as well. rpm just installs the package which is allready downloaded on the linux machine. In some companies internet access is not allowed. In that case repos are setup locally on another server within the same network. yum install ntp : it will first check in the machine if ntp is installed or not. if not installed, it will install the ntp package. rpm -qa:  gives the list of the packages that are installed in the linux system. rpm -qa | wc -l:  gives the count of the packages that are installed in the system, it is not actually couting

Networking in Linux

  Networking in Linux :  ifconfig :  lists the ip address and network interface like eth0/eth1/enpos3/lo . ip addr :  lists the interface and ip address . ip r l :  lists ip address . hostname -I :  lists the IP address . netstat -rnv :   gives the gateway information . ping www.google.com :  ping the ip address of the google . nslookup www.google.com :  it will give the ip address of the google.com and also it will give ip address of our dns server . Note :  if you have the personal linux computer , your dns server and gateway would be same . systemctl status NetworkManager :  shows the status of network manager . ps -ef | grep NetworkManager :  shows the process which is running the network manager .   ........................................ Network configuration methods :  1. nmcli :  stands for network manager command line interface .This tool is useful when access to graphical environment is not available to make the network configuration changes . 2 .nmtui :  stands for network

Linux basic commands

 Linux basic commands: du  -sh  *  |  sort  -h  -r   |  head  -n  40  :    list out first 40 files in the directory that are taking more space in the directory.  cd : change directory Is-l listing the items in long listing format  pwd : print working directory Is-I format: type :no of links:owner : group:size :month :day :time :name cd/: go to/directory whoami: tells us by which username we are logged in. touch jerry: creates the file named jerry in present working directory. cp jerry lex: copy the content of jerry file and paste it to lex file. vi text1: creates the file text1 and open it in vi editor mkdir superman: creates the directory called superman mkdir abc def  : creates 2 folder in one command. touch filename wont work in /etc/ folder if logged in by normal account. man cp: shows manual for cp command. echo "india is my country"> file1 puts the text in file1. rm filename: remove the filename  mv lex luther renames the file from lex to luther  mv luther /h