LINUX SYSYTEM LAB
LINUX SYSYTEM LAB
LINUX SYSYTEM LAB
1. Installing Windows 7
Requirements:
• A valid Windows 7 license key.
• Windows 7 installation media (DVD or USB drive).
• A computer or virtual machine to install on.
Steps for Installation:
Step 1: Prepare Installation Media
• Download Windows 7 ISO from Microsoft's official website, if you don't
already have it.
• Use a tool like Rufus to create a bootable USB drive (if you're using
USB).
1. Insert a USB drive (at least 4GB of space).
2. Open Rufus, select the Windows 7 ISO and the USB drive.
3. Choose the partition scheme (MBR for BIOS or GPT for UEFI).
4. Click "Start" to create a bootable USB.
Step 2: Boot from USB/DVD
• Restart your PC and enter the BIOS or UEFI settings (usually by
pressing F2, DEL, or another key depending on your motherboard).
• Change the boot order so that the system boots from the USB or DVD
drive first.
• Save changes and exit the BIOS/UEFI.
Step 3: Start Windows 7 Installation
• After booting from the installation media, you'll see the Windows 7
setup screen.
• Select your language preferences and click Next.
• Click Install Now.
• Enter your product key when prompted (you can skip this step and enter
it later if necessary).
• Accept the license terms and click Next.
Step 4: Select Installation Type
• Choose Custom (Advanced) for a fresh installation.
• Select the partition where you want to install Windows 7.
• If the disk is empty, you can create new partitions here.
• If you want to overwrite a previous Windows installation, delete
the existing partition and create a new one.
Step 5: Installation Process
• Windows will copy files, expand them, and install updates. The system
will automatically restart multiple times.
• Set up your region, language, and time zone, and create a user account
when prompted.
• Enter the Windows 7 license key if not done earlier.
• Complete any additional settings such as configuring a network and
selecting security settings.
Step 6: Install Drivers
• After the installation, Windows will automatically try to install
necessary drivers. However, it is a good idea to manually install
drivers for your hardware, especially for graphics cards, network
adapters, and printers. These can usually be found on the
manufacturer's website.
Step 7: Update Windows
• Once installed, go to Control Panel > Windows Update to check for any
updates and install them.
2. Installing Linux (Ubuntu as an example)
Requirements:
• A valid Linux distribution ISO (e.g., Ubuntu).
• A USB drive (at least 4GB).
• A computer to install Linux on.
Steps for Installation:
Step 1: Download Linux Distribution
• Visit the official website of the Linux distribution you want to
install (e.g., Ubuntu).
• Download the appropriate version of the ISO file.
Step 2: Create Bootable USB
• Use a tool like Rufus (for Windows) or Etcher (for Linux and macOS) to
create a bootable USB.
1. Insert a USB drive (at least 4GB).
2. Open Rufus (or Etcher) and select the Linux ISO file.
3. Choose the USB drive and click Start to create the bootable
media.
Step 3: Boot from USB
• Restart your computer and enter the BIOS/UEFI settings (usually by
pressing F2, DEL, or ESC).
• Change the boot order so that the system boots from the USB drive
first.
• Save and exit BIOS/UEFI.
Step 4: Start Installation
• After booting from the USB, you'll see the Linux installation screen.
• Select Install Ubuntu (or your chosen distro).
• Select your language and region.
Step 5: Disk Partitioning
• The installer will ask how you want to install Linux:
• Install alongside Windows: This is the best option if you want
to set up a dual-boot system.
• Erase disk and install Ubuntu: This option will delete all data
on the disk and install Linux as the sole OS.
• Manual partitioning: This is for advanced users who want to
manually set up partitions.
Step 6: Set Up User Information
• Choose your time zone, keyboard layout, and create a user account
(username, password, and computer name).
• Configure your system settings (such as encryption, if desired).
Step 7: Complete the Installation
• The installer will copy files and install the system.
• Once the installation is complete, you'll be prompted to restart the
computer. Remove the USB drive before rebooting.
Step 8: Post-Installation
• After restarting, you will boot into your new Linux system. Check for
any system updates by running:
• sql
sudo apt update
sudo apt upgrade
• If you're doing a dual-boot setup, the GRUB bootloader will allow you
to choose between Windows 7 and Linux when starting the computer.
Step 9: Install Drivers
• Linux usually installs the most essential drivers automatically, but
you may need to install proprietary drivers (such as graphics or Wi-
Fi) manually:
• Use the Software & Updates tool to install additional drivers.
On macOS:
Step 1: Get Microsoft Office
• You can download the installer from the Microsoft Office website, or
through the Mac App Store.
Step 2: Install Office
1. After downloading, open the installer file (.pkg).
2. Follow the prompts to install Office.
3. Once the installation is complete, you can access the applications
from your Applications folder.
Step 3: Sign In
• Sign in with your Microsoft account to activate Office 365, or enter
your product key for Office 2021/2019.
Step 4: Updates
• Open any Office application, go to the Help menu, and select Check for
Updates to ensure your software is up-to-date.
3.User Management.
1. User Management in Windows
2. Navigate to Accounts.
3. Under Your Info, you can see your account type and other
details.
• For Windows 7:
• Windows 7:
2. Click Create a new account, then enter the name and choose an
account type (Standard or Administrator).
• Select the user account you want to delete and click Delete the
account. You will be given the option to delete the account or keep
its files.
• Replace username and password with the actual user name and password.
Delete a User
• The -aG option ensures the user is added to the group without removing
them from other groups.
• Use the passwd command to set a password for the new user
This prompts you to enter and confirm the password for alice.
Add or Change User Group (-g or -G): Add the user to new groups.
This removes the user but leaves their home directory and files intact.
• Delete User and Home Directory (-r): Removes the user along with their
home directory and all
4. Security Management .
3. Network Security
• VPN and Secure Access: Enforcing Virtual Private Network (VPN) usage
for secure remote access to corporate networks, ensuring data
encryption over public networks.
• Backup and Restore: Ensuring data backups are securely stored and
regularly tested to guarantee quick recovery after an incident.
1. Startup Scripts
Purpose: Startup scripts run when the system boots. They automate tasks like
starting essential services, mounting filesystems, and setting environment
variables.
• Linux:
• Windows:
o Task Scheduler: Use Task Scheduler to set up tasks that run on
startup.
2. Shutdown Scripts
Purpose: Shutdown scripts are used to cleanly stop services, back up
data, or unmount drives before the system powers down or reboots.
Configuration Locations:
• Linux:
• Windows:
• Subnet Mask: A subnet mask is used to define the network portion and
the host portion of an IP address. It uses a series of 1s to define
the network part and 0s for the host part. The subnet mask is often
written in the same form as the IP address (e.g., 255.255.255.0).
• Private IP Ranges:
• Choose an IP range that fits the needs of your network. For example,
if you have a large organization, Class A might be appropriate.
• How many subnets do you need? Consider dividing the network into
smaller subnets for different departments, buildings, or geographical
locations.
• How many hosts per subnet? Each subnet will need enough IP addresses
for all devices (e.g., computers, printers, servers).
• The subnet mask depends on how many subnets and how many IP addresses
per subnet are required.
• You can calculate the number of bits needed for subnetting based on
the desired number of subnets. Use the formula:
• Example:
o If you need 100 subnets, you need to borrow 7 bits (since 2^7 =
128).
o For each subnet, consider how many host IP addresses are needed
(e.g., 50 devices per subnet).
• Use the formula for determining the number of hosts per subnet:
Number of hosts=2h−2\text{Number of hosts} = 2^h -
2Number of hosts=2h−2 where h is the number of host bits (the
remaining bits after borrowing for subnetting).
o The -2 accounts for the network address (all 0s) and the
broadcast address (all 1s) in each subnet.
• Example:
o If the subnet mask is 255.255.255.0 (/24), there are 8 bits for
the host portion. This gives 2^8 - 2 = 254 usable IP addresses
per subnet.
• Borrow 2 bits from the host portion, changing the subnet mask to /26.
This gives you 4 subnets, each with 62 usable IP addresses.
• Assign the first usable IP address from each subnet to the router or
gateway (e.g., 192.168.1.1, 192.168.1.65, etc.).
• IP Range: 192.168.1.0/24
o With a /26 subnet, there are 6 bits for the host portion (2^6 -
2 = 62 usable IP addresses per subnet).
3. Subnet Addresses:
• Subnet Calculators: There are many online subnet calculators that make
the math easier. These tools help you determine subnet sizes,
addresses, and ranges.
7. Firewall configuration.
2. Firewall Types
Using iptables
iptables is the traditional Linux firewall tool used to manage network
traffic. It allows detailed control over network packets and can implement
filtering, NAT, and more.
5.Saving iptables Rules: On most distributions, the rules are not persistent
by default, so you need to save them:
• On Debian/Ubuntu:
Using firewalld
o Choose the app you want to allow, or click Allow another app to
add a new one.
• Values: The actual settings within a key. Each value has a name and is
associated with a specific data type.
1. HKEY_CLASSES_ROOT (HKCR):
2. HKEY_CURRENT_USER (HKCU):
3. HKEY_LOCAL_MACHINE (HKLM):
4. HKEY_USERS (HKU):
5. HKEY_CURRENT_CONFIG (HKCC):
o Contains information about the current hardware profile in use
(e.g., display resolution, sound settings).
o Example: "C:\Windows\%ProgramFiles%"
o Stores raw binary data, often used for settings that are not
human-readable.
4. DWORD (REG_DWORD):
5. QWORD (REG_QWORD):
8. None (REG_NONE):
1. System Configuration:
o HKEY_LOCAL_MACHINE\System
2. Software Configuration:
o HKEY_LOCAL_MACHINE\Software
3. User Preferences:
o HKEY_CURRENT_USER\Software
4. Startup Items:
o HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
You can use the Registry Editor (Regedit) to view and modify the
registry:
1. Opening Regedit:
The reg command-line tool allows you to modify the registry from the
command prompt. Common commands include:
6. Registry Security
• Security and User Preferences: User account settings, user rights, and
other security-related data are stored in the registry.
• Performance: Over time, the registry may grow large, and inefficient
settings may slow down system performance. Regular cleaning is
sometimes recommended.
Windows Services are background processes that support Windows and various
applications. They perform essential tasks such as managing hardware, running
scheduled tasks, providing network connectivity, and supporting various
applications. Unlike typical applications, services run without user
interaction and can start automatically when the system boots up.
Below is a study of some of the most important Windows Services, what they
do, and how they contribute to system functionality.
• Configuration Command:
• Configuration Command
3. Print Spooler (Spooler)
• Configuration Command:
• Configuration Command:
• Configuration Command:
• Configuration Command:
• Configuration Command:
•
11. Task Scheduler (Schedule)
• Importance: Needed for sharing files and printers with other computers
on the network.
1. Systemd
• Key Features: Low memory usage, load balancing, and caching support.
5. MySQL/MariaDB
• Key Features: Supports zone files, caching, and DNSSEC for security.
7. SAMBA
• Description: SAMBA enables file and printer sharing between Linux and
Windows systems using the SMB/CIFS protocol.
8. Docker
9. Cron
BCE-C762
Registration no = 216301100