0% found this document useful (0 votes)
39 views17 pages

Module-1 Linux Assignment

This document outlines a series of tasks related to Linux fundamentals using EC2 Ubuntu instances. It includes steps for creating users, managing SSH keys, setting file permissions, installing JDK, and writing a shell script to install Git, JDK, and Maven. Each task is broken down into sequential steps for clarity and execution.

Uploaded by

pavanidubasi123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views17 pages

Module-1 Linux Assignment

This document outlines a series of tasks related to Linux fundamentals using EC2 Ubuntu instances. It includes steps for creating users, managing SSH keys, setting file permissions, installing JDK, and writing a shell script to install Git, JDK, and Maven. Each task is broken down into sequential steps for clarity and execution.

Uploaded by

pavanidubasi123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Module- 2

Linux Fundamentals
Submitted by - Pavani Dubasi
Submitted To – Vikul
Batch No. SA2503057
Date of Submission – 30-05-2025

1. L1 - In EC2 Ubuntu Instance, create a new user and SSH Key


pair with an authorized key

Step 1: Launch two Ubuntu instances.


Step 2: Adding new user

Step 3: Checking for the user


Step 4: creating the ssh key

Step 5: Adding user-1 authorized key to user-2


Step 6: Connecting user-1 to user-2
2. L2 - As a Linux root user, Create Files/directories in the
same Instance and change the ownership to a new user

Step 1: launch an instance

Step 2: Create a New User, Create Files and Directories as


root & Change Ownership to the New User
Step 3: Verify Ownership
3. L3 - In EC2 Ubuntu Instance Create Files and Directories
and Grand R/W/X Access only to the Owner and User Group
Step 1: Launch an instance

Step 2: Create a new user and group


Step 3: Create files and directories

Step 4: Set the owner and group


Step 5: Set permissions to 770

Step 6: Verification
4. L4 - In EC2 Ubuntu Instance install JDK and setup
JAVA_HOME path environment variable.
Step 1: Launch an instance

Step 2: Update packages


Step 3: Install the JDK

Step 4: Verify Java installation


Step 5: Find the installation path

Step 6: Set JAVA_HOME environment variable


Step 7: Verify JAVA_HOME

5. L5 - Create two AWS EC2 Ubuntu Instances to establish SSH


Connection and SCP the files from one Instance to another
instance.
Step 1: Launch two instances
Step 2: Establish connecting between two instances

Step 3: Transfer file from one instance to another


6. L6 - Write a Linux Shell Script to Install Git, JDK, Maven in
EC2 Ubuntu Instance

Step 1: Launch an instance

Step 2: Create a file


Step 3: Write Linux Shell Script to Install Git, JDK, Maven

Step 4: Checking the output

You might also like