Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
289 changes: 289 additions & 0 deletions 8-10am--commands
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@
ls -- it shows list of you files
mkdir -- to create a directory (mkdir meesho)
touch -- to create a file (touch file.txt)
cd -- change directoy
cd .. -- come back to previous dir
pwd -- present woking directory
cat -- to read your cntent
rm -rf -- to remove files and dir
lsblk-- list block storage it shows all storages
df -h -- it shows usage storage

new vol
mkfs.ext4 /dev/xvdb
create mountpoint mkdir meesho
sudo mount /dev/xvdb meesho/





editors

nano --- nano file.txt (ente the cntent)

to save -- ctl+x = y


vi
vi file.txt
to save -- :wq press enter

to insert content =i

vim

vim file.txt
to save -- :wq press enter

t insert content = i

ll -- it shows lon list of your files

permissions

read -- 4

write --2 4+2=6

execute --1 4+2+1=7

4+2=6

4_+2+1=7
chmod -- change modiifcations

sudo -- supe user do

sudo find / -name meesho54

root user -- sudo -i (admin privilages)



task -- 1

launch ec2 instance

create 10 dir
create 10 files
give read permissions to files


task --2

launch ec2 instance
create 5 dir
insdie every dir create 10 files and give all files to write permissions
for dir give execute permissions fo all dir.


AWS

vpc

task --3

create vpc 10.0.0.0/20
ceate igw attach to vpc

launch ec2 instance

create a file name meesho
ente the total pocess of creation of vpc in that file

cidr.xyz


task --3

create a vpc with 30000ips
create subnets
create rt
create igw
create sg

launch server with vpc
create 25dir
for 7 dir take executable permissions remaining write pemissions

https://www.solarwinds.com/free-tools/advanced-subnet-calculator
cidr.xyz



ec2

task --4

create vpc 18000 ips
launch ec2 instance with amazonlinux and ubuntu
install java in both instances

create 20dir create in each dir with 2 files all files should be have a execute permissions
dir be a write permissions



task --5

create vpc with 18 netmask id
launch ec2 instance with 28 vol
create 100dir and create 140 files

copy the 40 files to 10 dir

all dir should have executable permissions
all files should have write permissions

create vol and mount to facebook
create snap and launch instance with snap


resizing volume

launch ec2instance

select instance and select storage
select volume and click on action select modify optin
change the vlume size and save it

connce ec2 instance to terminl
check with lsblk

growpart /dev/xvda 1

xfs_gowfs -d /

df -h resizing is completed


task -- 6

create vpc 60000 ip's
launch instance with42gb /t3.medium
create eip and associate eip to instance

create volume 22gb and mount it
modify default vlume 45gb

create snapshot of default volume and copy to us-east-2



task -- 7

create vpc 4000 ip's

launch instance with 40gb volume/t2.medium

copy snapshot mumbai to north viginia

create ami in noth vigenia
launch instance modify volume to 45gb

create alb and target goup in n.v


task --8

create vpc 22

create asg with alb and tg

GITHUB

1 ls
2 sudo yum -y install git
3 git --version
4 ls
5 mkdir github
6 ls
7 cd github/
8 ls
9 touch file{1..10}.txt
10 ls
11 git init
12 ls
13 git add *
14 git commit -m "i am commiting files" *
15 git branch
16 git branch -M main
17 git branch
18 git remote add origin https://github.com/Mani137/newep.git
19 git push -u origin main
20 history

task -- 9

create vpc 10000 ips
create asg and alb and tg
create 100 files and pusht that files to gihub
create snap shot convert to ami and ami to launch ec2
add 20 files and push all files to github



task -- 10

create vpc 5000 ip's
and create rds using vpc
create s3 bucket and uplad objects


deploy

httpd

48 sudo yum -y install httpd
49 sudo systemctl start httpd
50 sudo systemctl enable httpd
51 sudo systemctl status httpd
52 ls
53 sudo yum -y install git
54 git --version
55 ls

57 sudo git clone https://github.com/Mani137/food.git
58 ls
59 cd food/
60 ls
61 cp -R * /var/www/html/
62 sudo cp -R * /var/www/html/
63 cd /var/www/html/
64 ls
65 cd
66 sudo systemctl restart httpd
67 history
nginx

1 ls
2 sudo yum -y install nginx
3 sudo systemctl start nginx
4 sudo systemctl enable nginx
5 sudo yum -y install git

7 sudo git clone https://github.com/Akiranred/mario.git
8 ls
9 cd mario/
10 ls
11 cp -R * /usr/share/nginx/html/
12 sudo cp -R * /usr/share/nginx/html/
13 ls
14 sudo systemctl restart ngninx
15 sudo systemctl start ngninx
16 sudo systemctl status ngninx
17* sudo yum -y install nginxs
18 sudo systemctl start ngninx
19 cd
20 sudo systemctl restart ngninx
21 history


task -- 10

create vpc 10000 ip's

create asg alb tg

deploy the project with nginx and httpd in ubuntu suse amazon linux redhat
Binary file added GIT COMMANDS.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
trigger:
branches:
include:
- "BDKPB-1164--Estabilsh-Build-Pipeline-for-Mobile-Application-(Development)"
paths:
include:
- "Bradken/bdk-insite/BDKPB-1164--Estabilsh-Build-Pipeline-for-Mobile-Application-(Development)/.devops"

pr:
branches:
include:
- "BDKPB-1164--Estabilsh-Build-Pipeline-for-Mobile-Application-(Development)"
paths:
include:
- "Bradken/bdk-insite/BDKPB-1164--Estabilsh-Build-Pipeline-for-Mobile-Application-(Development)/.devops"

variables:
projectName: 'bdk-mobile-flutter'
tag: $(Build.BuildId)

stages:

# The first stage is to build the flutter application
- stage: Build
displayName: "Build Flutter Application"
jobs:
- job: "Build"
steps:

# Add Flutter setup and build steps here
- task: CmdLine@2
displayName: 'Download and Install Flutter'
inputs:
# @Shannon - is there a better way to download Flutter?
script: |
wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.13.9-stable.tar.xz
tar -xf flutter_linux_3.13.9-stable.tar.xz
echo "##vso[task.setvariable variable=PATH]$(pwd)/flutter/bin:$PATH"

# This step runs the flutter doctor tool
- task: CmdLine@2
displayName: 'Run Flutter Doctor'
inputs:
script: flutter doctor

# download all the flutter dependencies here
- task: CmdLine@2
displayName: 'Install Flutter'
inputs:
script: /bdk-insite/ranch name/.devops/flutter pub get

# build the flutter app for web
- task: CmdLine@2
displayName: 'Build Flutter App'
inputs:
script: flutter build web --release

# copy the .devops folder to the build directory
- task : PublishPipelineArtifact@1
displayName: Copy .devops and Publish it as artifact
condition: always()
inputs:
targetPath: '$(Pipeline.Workspace)/s/.devops'
artifactType: 'pipeline'
artifactName: '.devops'



- stage: Slack
dependsOn: Build
condition: failed()
displayName: Push Build Logs to Slack
jobs:
-template: ../templates/slack.yaml

# This stage will deploy the application to the development environment (as an Azure static website)
- stage: Deploy
displayName: "Deploy Flutter to Azure Static Website"
dependsOn: Build
condition: succeeded()
jobs:
- job: "Deploy"
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Artifacts'
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'flutter-web-app'
downloadPath: '$(System.ArtifactsDirectory)'

- task: AzureCLI@2
displayName: 'Deploy to Azure Static Website'
inputs:
azureSubscription: 'bdkdvdataappserve-sp'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az storage blob upload-batch -s $(System.ArtifactsDirectory)/flutter-web-app -d '$web' --account-name <bdkdvdataappserve-sp>


Binary file added cyybe.pdf
Binary file not shown.
Loading