Understanding System Administration Basics
Understanding System Administration Basics
System administration
System administration is the field of work in which someone manages one or more systems,
be they software, hardware, servers or workstations. Its goal is ensuring the systems are
running efficiently and effectively.
Administrative systems refer to systems and processes for filing and record keeping, office
correspondence, visitor and phone call management, internal communication, financial
management and other administrative duties.
System administration functions include user management, system monitoring, backup and
recovery, and access control. System monitoring, backup, and recovery functions are typically
integrated into an organization-wide application.
A web administrator maintains web server services (such as Apache or IIS) that allow
for internal or external access to web sites. Tasks include managing multiple sites,
administering security, and configuring necessary components and software.
Responsibilities may also include software change management.
System administrators support, troubleshoot, and maintain computer servers and networks.
System administrators—also known as sysadmins—are information technology (IT)
professionals who make sure an organization's computer systems are functioning and meet
the needs of the organization.
History of Windows:
Windows NT: Started as a family of operating systems with Windows NT 3.1, an operating
system for server computers and workstations. It now consists of three operating system
subfamilies that are released almost at the same time and share the same kernel:
Windows: The operating system for mainstream personal computers and tablets. The latest
version is Windows 11. The main competitor of this family is macOS by Apple for personal
computers and iPadOS and Android for tablets (c.f. Usage share of operating systems §
Market share by category).
Windows Server: The operating system for server computers. The latest version is Windows
Server 2022. Unlike its client sibling, it has adopted a strong naming scheme. The main
competitor of this family is Linux. (c.f. Usage share of operating systems § Market share by
category)
Windows PE: A lightweight version of its Windows sibling, meant to operate as a live
operating system, used for installing Windows on bare-metal computers (especially on many
computers at once), recovery or troubleshooting purposes. The latest version is Windows PE
10.
Over the years, Microsoft has continued to release updates and patches for Windows, with
the most recent being Windows 11, which was released in 2021.
Windows 1.0 (1985): The first version of Windows was released in 1985. It was a graphical
user interface (GUI) for MS-DOS and provided basic features such as a calculator, calendar,
notepad, and a file manager.
Windows 10 (2015): Windows 10 was released in 2015 and is the current version of Windows.
It introduced new features such as a new browser (Microsoft Edge), virtual desktops, and
improved security features.
Windows 2.0 (1987): Windows 2.0 was released in 1987 and introduced improvements such
as improved graphics and expanded memory support.
Windows 2000 (2000): Windows 2000 was released in 2000 and was aimed at business users.
It introduced features such as support for Plug and Play devices, improved networking, and
enhanced security.
Windows 3.0 (1990): Windows 3.0 was a major release that introduced new features such as
support for TrueType fonts, improved graphics and multimedia capabilities, and the ability to
run multiple programs simultaneously.
Windows 7 (2009): Windows 7 was released in 2009 and was well received by users. It
introduced a new taskbar, improved performance, and introduced support for touch screen
devices.
Windows 98 (1998): Windows 98 was released in 1998 and included support for USB,
improved hardware support, and introduced the Active Desktop feature.
Windows is a series of operating systems developed and marketed by Microsoft. The first
version of Windows, Windows 1.0, was released in 1985, and since then, numerous versions
of Windows have been released, each with new features and improvements. Here is a brief
history of the major releases of Windows:
Windows Vista (2006): Windows Vista was released in 2006 and introduced a new Aero
interface, improved search capabilities, and new security features such as User Account
Control.
Windows XP (2001): Windows XP was a significant release and was hugely popular. It
introduced a new visual design, improved stability, and security features such as a firewall
and automatic updates.
Hard Drive:-
A hard drive is the hardware component that stores all of your digital content. Your
documents, pictures, music, videos, programs, application preferences, and operating
system represent digital content stored on a hard drive. Hard drives can be external or
internal.
A computer hard disk drive (HDD) is a non-volatile data storage device. Non-volatile refers to storage devices that maintain
stored data when turned off. All computers need a storage device, and HDDs are just one example of a type of storage device.
Hard disk drive components include the spindle, disk platter, actuator, actuator arm and read/write head. Even though the term
can refer to the unit as a whole, the term hard disk is the set of stacked disks -- in other words, the part of the HDD that stores
The HDD form factor refers to the physical size or geometry of the data storage device. HDD form factors follow a set of
industry standards that govern their length, width and height, as well as the position and orientation of the host interface
connector. Having an industry-standard form factor helps determine a common compatibility with different computing devices.
The most common form factors for HDDs in enterprise systems are 2.5-inch and 3.5-inch -- also known as small form factor
(SFF) and large form factor (LFF). The 2.5-inch and 3.5-inch measurements represent the approximate diameter of the platter
While there are other form factors, by 2009, manufacturers discontinued the development of products with 1.3-inch, 1-inch and
0.85-inch form factors. The falling price of flash made these other form factors almost obsolete. It is also important to note that
while nominal sizes are in inches, actual dimensions are specified in millimeters.
Many solid-state drives (SSDs) are also designed for the HDD form factor. SSDs that fit into the same slots as HDDs generally
use the SATA or serial-attached SCSI (SAS) interface to transfer data to and from the host computing system.
Evolution of Unix
In 1969, a team of developers of Bell Labs started a project to make a common software for all the computers and named it as 'Unix'. It was
simple and elegant, used 'C' language instead of assembly language and its code was recyclable. As it was recyclable, a part of its code now
commonly called 'kernel' was used to develop the operating system and other functions and could be used on different systems. Also its
source code was open source.
Initially, Unix was only found in large organizations like government, university, or larger financial corporations with mainframes and
minicomputers (PC is a microcomputer).
Evolution of Linux
In 1991, Linus Torvalds a student at the university of Helsinki, Finland, thought to have a freely available academic version of Unix started
writing its own code. Later this project became the Linux kernel. He wrote this program specially for his own PC as he wanted to use Unix 386
Intel computer but couldn't afford it. He did it on MINIX using GNU C compiler. GNU C compiler is still the main choice to compile Linux code
but other compilers are also used like Intel C compiler.
He started it just for fun but ended up with such a large project. Firstly he wanted to name it as 'Freax' but later it became 'Linux'.
He published the Linux kernel under his own license and was restricted to use as commercially. Linux uses most of its tools from GNU
software and are under GNU copyright. In 1992, he released the kernel under GNU General Public License.
History of Windows
Windows was first introduced by Microsoft on 20 November 1985. After that, it was gaining popularity day by day. Now, it is the most
dominant desktop operating system around the world, with a market share of around 82.74%. The macOS Operating system by Apple Inc. is
the second most popular with the share of 13.23%, and all varieties of Linux operating systems are collectively in third place with the market
share of 1.57%.
Windows Versions
In December 1987, Microsoft released its second Windows version as Windows 2.0. It got more popularity than its previous version Windows
2.0. Windows 2.0 has some improved features in user interface and memory management.
The early versions of Windows acted as graphical shells because they ran on top of MS-DOS and used it for file system services.
Windows 3.x
The third major version of Windows was Windows 3.0. It was released in 1990 and had an improved design. Two other upgrades were
released as Windows 3.1 and Windows 3.2 in 1992 and 1994, respectively. Microsoft tasted its first broad commercial success after the release
of Windows 3.x and sold 2 million copies in just the first six months of release.
Windows 9x was the next release of Windows. Windows 95 was released on 24 August 1995. It was also the MS-DOS-based Windows but
introduced support for native 32-bit applications. It provided increased stability over its predecessors, added plug and play hardware,
preemptive multitasking, and also long file names of up to 255 characters.
Windows NT (3.1/3.5/3.51/4.0/2000)
Windows NT was developed by a new development team of Microsoft to make it a secure, multi-user operating system with POSIX
compatibility. It was designed with a modular, portable kernel with preemptive multitasking and support for multiple processor architectures.
Windows XP
Windows XP was the next major version of Windows NT. It was first released on 25 October 2001. It was introduced to add security and
networking features.
It was the first Windows version that was marketed in two main editions: the "Home" edition and the "Professional" edition.
The "Home" edition was targeted towards consumers for personal computer use, while the "Professional" edition was targeted towards
business environments and power users. It included the "Media Center" edition later, which was designed for home theater PCs and provided
support for DVD playback, TV tuner cards, DVR functionality, and remote controls, etc.
Windows Vista
After Windows XP's immense success, Windows Vista was released on 30 November 2006 for volume licensing and 30 January 2007 for
consumers. It had included a lot of new features such as a redesigned shell and user interface to significant technical changes. It extended
some security features also.
Windows 7
Windows 7 and its Server edition Windows Server 2008 R2 were released as RTM on 22 July 2009. Three months later, Windows 7 was
released to the public. Windows 7 had introduced a large number of new features, such as a redesigned Windows shell with an updated
taskbar, multi-touch support, a home networking system called HomeGroup, and many performance improvements.
Windows 8 was released as the successor to Windows 7. It was released on 26 October, 2012. It had introduced a number of significant
changes such as the introduction of a user interface based around Microsoft's Metro design language with optimizations for touch-based
devices such as tablets and all-in-one PCs. It was more convenient for touch-screen devices and laptops.
Microsoft released its newer version Windows 8.1 on 17 October 2013 and includes features such as new live tile sizes, deeper OneDrive
integration, and many other revisions.
Windows 8 and Windows 8.1 were criticized for the removal of the Start menu.
Windows 10
Microsoft announced Windows 10 as the successor to Windows 8.1 on 30 September 2014. Windows 10 was released on 29 July 2015.
Windows 10 is the part of the Windows NT family of operating systems.
Microsoft has not announced any newer version of Windows after Windows 10.
A hard disk is also known as a hard drive or fixed disk. It is said to be rigid magnetic disc that stores data. It is located within a drive unit. Hard
disk is a non-volatile storage device that contains platters and magnetic disks rotating at high speeds. Non-volatile means the data retains
when the computer shuts down.
It is installed internally in our computer systems. Hard disk is located within a drive unit on the computer's motherboard and comprises one
or more platters packed in an air-sealed casing.
Its main components include a read/write actuator arm, head actuator, read/write head, spindle, and platter. A circuit board (also called as the
interface board or disk controller) is present on the back of a hard drive. It lets the hard drive to communicate with the computer.
Networking
TCP/IP stands for Transmission Control Protocol/Internet Protocol. It is a set of protocols or rules and procedures that governs
communications among computers on the internet. Although the entire internet protocol suite is commonly known as TCP/IP, it is one of the
core protocols of the Internet Protocol Suite. It was developed in 1978 and driven by Vint Cerf and Bob Kahn.
TCP/IP is a commonly used standard for transmitting data over networks. In simple words, it is the suite of communication protocols which
connect network devices on the internet or used to interconnect network devices on the internet. It decides how the data will be exchanged
over the internet through end-to-end communications that include how the data should be arranged into packets (bundles of information),
addressed, sent, and received at the destination. This communication protocol can also be used to interconnect network devices in a private
network such an intranet or an extranet.
TCP: The TCP allows applications to create channels of communications across a network. It also allows a message to be divided into smaller
packets before they are transmitted over the internet and then assembled in the right manner at the destination address. So, it ensures the
reliable transmission of data across the network. Furthermore, it also checks errors in the packets and requests for re-transmission if errors are
found.
IP: The IP address tells the packets the address and route so that they reach the right destination. It has a method that enables gateway
computers on the internet-connected network forward the message after checking the IPS address. It is like a line of workers passing coal
from a mine to a mining cart.
TCP/IP, which is a standard layered protocol suite comprises a set of rules and procedures, is divided into four layers, on the basis of their
functionality. Each layer has a specific protocol.
o The application layer: This layer includes all the protocols required to communicate directly with the end-users. Some important
protocols in this layer include HTTP (Hypertext Transfer Protocol), FTP (File Transfer Protocol), SMTP (Simple Mail Transfer
Protocol), and the DHCP (Dynamic Host Configuration Protocol).
o The transport layer: This layer ensures the transmission of the correct message or data in proper order. It utilizes UDP (User
Datagram Protocol) and TCP.
o The network access layer: It offers the functionalities to build and handle packets of information.
o The internet layer: It performs two basic functions, routing and addressing by using IP (Internet Protocol). It tells how the packets
are to be sent to the destination.
DNS
An application layer protocol defines how the application processes running on different systems, pass the messages to each other.
DNS is a TCP/IP protocol used on different platforms. The domain name space is divided into three different sections: generic domains,
country domains, and inverse domain.
Generic Domains
o It defines the registered hosts according to their generic behavior.
o Each node in a tree defines the domain name, which is an index to the DNS database.
o It uses three-character labels, and these labels describe the organization type.
Label Description
Country Domain
The format of country domain is same as a generic domain, but it uses two-character country abbreviations (e.g., us for the United States) in
place of three character organizational abbreviations.
Inverse Domain
The inverse domain is used for mapping an address to a name. When the server has received a request from the client, and the server
contains the files of only authorized clients. To determine whether the client is on the authorized list or not, it sends a query to the DNS server
and ask for mapping an address to the name.
Working of DNS
o DNS is a client/server network communication protocol. DNS clients send requests to the. server while DNS servers send responses
to the client.
o Client requests contain a name which is converted into an IP address known as a forward DNS lookups while requests containing
an IP address which is converted into a name known as reverse DNS lookups.
o DNS implements a distributed database to store the name of all the hosts available on the internet.
o If a client like a web browser sends a request containing a hostname, then a piece of software such as DNS resolver sends a
request to the DNS server to obtain the IP address of a hostname. If DNS server does not contain the IP address associated with a
hostname, then it forwards the request to another DNS server. If IP address has arrived at the resolver, which in turn completes the
request over the internet protocol.
DHCP can be implemented on local networks as well as large enterprise networks. DHCP is the default protocol used by the most routers and
networking equipment. DHCP is also called RFC (Request for comments) 2131.
o DHCP manages the provision of all the nodes or devices added or dropped from the network.
o DHCP maintains the unique IP address of the host using a DHCP server.
o It sends a request to the DHCP server whenever a client/node/device, which is configured to work with DHCP, connects to a
network. The server acknowledges by providing an IP address to the client/node/device.
DHCP is also used to configure the proper subnet mask, default gateway and DNS server information on the node or device.
There are many versions of DCHP are available for use in IPV4 (Internet Protocol Version 4) and IPV6 (Internet Protocol Version 6).
DHCP runs at the application layer of the TCP/IP protocol stack to dynamically assign IP addresses to DHCP clients/nodes and to allocate
TCP/IP configuration information to the DHCP clients. Information includes subnet mask information, default gateway, IP addresses and
domain name system addresses.
DHCP is based on client-server protocol in which servers manage a pool of unique IP addresses, as well as information about client
configuration parameters, and assign addresses out of those address pools.
When working with DHCP, it is important to understand all of the components. Following are the list of components:
o DHCP Server: DHCP server is a networked device running the DCHP service that holds IP addresses and related configuration
information. This is typically a server or a router but could be anything that acts as a host, such as an SD-WAN appliance.
o DHCP client: DHCP client is the endpoint that receives configuration information from a DHCP server. This can be any device like
computer, laptop, IoT endpoint or anything else that requires connectivity to the network. Most of the devices are configured to
receive DHCP information by default.
o IP address pool: IP address pool is the range of addresses that are available to DHCP clients. IP addresses are typically handed out
sequentially from lowest to the highest.
o Subnet: Subnet is the partitioned segments of the IP networks. Subnet is used to keep networks manageable.
o Lease: Lease is the length of time for which a DHCP client holds the IP address information. When a lease expires, the client has to
renew it.
o DHCP relay: A host or router that listens for client messages being broadcast on that network and then forwards them to a
configured server. The server then sends responses back to the relay agent that passes them along to the client. DHCP relay can be
used to centralize DHCP servers instead of having a server on each subnet.
Benefits of DHCP
Centralized administration of IP configuration: DHCP IP configuration information can be stored in a single location and enables that
administrator to centrally manage all IP address configuration information.
Dynamic host configuration: DHCP automates the host configuration process and eliminates the need to manually configure individual
host. When TCP/IP (Transmission control protocol/Internet protocol) is first deployed or when IP infrastructure changes are required.
Seamless IP host configuration: The use of DHCP ensures that DHCP clients get accurate and timely IP configuration IP configuration
parameter such as IP address, subnet mask, default gateway, IP address of DND server and so on without user intervention.
Flexibility and scalability: Using DHCP gives the administrator increased flexibility, allowing the administrator to move easily change IP
configuration when the infrastructure changes.
What is Domain
A domain name is the identity of one or more IP addresses; for example, the domain name [Link] points to the IP address
"[Link]". Domain names are invented as it is easy to remember a name rather than a long string of numbers. It would be easy to
enter a domain name in the search bar than a long sequence of numbers.
So, it is the web address of your website that people need to type in the browser URL bar to visit your website. In simple words, suppose your
website is a house, then the domain name is its address.
A domain name cannot have more than sixty-three characters excluding .com, .net, .org, .edu, etc. The minimum length of a domain is one
character excluding the extensions. It is entered in the URL after the protocol and subdomain as shown in the following example and the
image:
E.g. [Link]
https: ( Protocol)
www. (Subdomain)
When the domain name is entered in your web browser, a request is sent to the global network of servers that form the Domain Name
System (DNS), which is like a phonebook of the internet.
The server then searches the name servers related to the domain and forwards the request to the name servers. The name servers are big
computers, which are managed by hosting companies. The hosting company forwards the request to the webserver where your site is stored.
The web server fetches the requested web page or information and forwards it to the browser.
The Domain Names System is managed by Internet Corporation for Assigned Names and Numbers (ICANN). It is a non-profit organization
that creates and implements the policies for domain names.
ICANN authorizes the companies called Domain Name Registrars for selling domain names. It also allows them to make changes to domain
names registry on your behalf, and to sell domain names, manages their records, renewal, and transfer to other registrars. As a domain name
owner, you are required to renew your domain registration before it expires.
NetBIOS Extended User Interface (NetBEUI) is a non-routable transport protocol that provides
network/network layer support while optimizing small to medium-sized operating systems (OS)
NetBEUI was used to create network delivery frames with data being loaded into the frame's payload section. While NetBEUI could
operate on a flat network, it could not route data between networks. Thus, NetBEUI was quickly replaced with a TCP/IP transport alternative
and has long become extinct.
The original NetBIOS implementations used a frame provided by NetBEUI, since NetBIOS is not a network protocol itself. Most commonly, it
is still in use in enterprise networks with NetBIOS over TCP/IP (NBT).
(NetBIOS Extended User Interface) Pronounced "net-boo-ee." The transport part of the original networking protocol for
DOS and Windows PCs. NetBEUI is a non-routable protocol that was designed for a single LAN segment. It does not contain
a network address for routing to different networks.
NetBEUI was originally named "NetBIOS," but because NetBIOS was not routable, the programming interface (API) to the
protocol was later separated from the transport to allow NetBIOS applications to use routable protocols such as TCP/IP and
SPX/IPX. See NetBIOS.
[Link] c:\windows\system32\drivers
[Link] c:\windows\inf (hidden)
SYSTEM SECURITY
What is a Firewall?
A firewall can be defined as a special type of network security device or a software program that monitors and filters incoming and outgoing
network traffic based on a defined set of security rules. It acts as a barrier between internal private networks and external sources (such as the
public Internet).
The primary purpose of a firewall is to allow non-threatening traffic and prevent malicious or unwanted data traffic for protecting the
computer from viruses and attacks. A firewall is a cybersecurity tool that filters network traffic and helps users block malicious software from
accessing the Internet in infected computers.
A firewall system analyzes network traffic based on pre-defined rules. It then filters the traffic and prevents any such traffic coming from
unreliable or suspicious sources. It only allows incoming traffic that is configured to accept.
Typically, firewalls intercept network traffic at a computer's entry point, known as a port. Firewalls perform this task by allowing or blocking
specific data packets (units of communication transferred over a digital network) based on pre-defined security rules. Incoming traffic is
allowed only through trusted IP addresses, or sources.
Types of Firewall
Depending on their structure and functionality, there are different types of firewalls. The following is a list of some common types of firewalls:
o Proxy Firewall
o Packet-filtering firewalls
o Stateful Multi-layer Inspection (SMLI) Firewall
o Unified threat management (UTM) firewall
o Next-generation firewall (NGFW)
o Network address translation (NAT) firewalls
o Antivirus software is a sort of application that defends computers from malware such as viruses, computer worms, trojans,
spyware, botnets, rootkits, keyloggers, and other threats.
o Antivirus software scans your computer for viruses, finds them, and removes them.
o Anti-virus software comes in a range of versions and formats.
o Antivirus software, on the other hand, is designed to protect computers and, once viruses are detected, to destroy them.
o Most of the antivirus software allows for both automated and manual screening.
o Files downloaded from the Internet, discs inserted into the computer, and files created by programme installers can all be checked
with the quick scanning option.
o The automated scanning action may potentially inspect the complete hard disc on regularly.
o You can review individual files or the entire network using the manual me.
1. Norton
Each of Norton's antivirus packages provides great protection against malware, and the system load is significantly reduced. The quantity of
extra capabilities available in each package varies, but Norton 360 Deluxe is the top pick in the lineup.
2. Bitdefender
Bitdefender's Antivirus Plus malware detection ratings are excellent, if not perfect. Its active scans don't have a big influence on the
background system, but the background load is quite high.
3. Kaspersky
The Windows products of Kaspersky show great malware detection capability and have a quality to moderate effect on the system.
5. Webroot
Webroot Secure Anywhere AntiVirus is a fascinating Windows and Mac application that employs a unique approach to malware detection.
6. ESET
ESET is a secure antivirus that excels at guarding your gadgets against malware, phishing scams, ransomware, as well as other online threats
7. Sophos
Sophos is a simple antivirus with strong malware detection rates, a user-friendly dashboard, and a few useful features, such as remote
management.
9. Panda
Panda Dome is a multi-featured antivirus suite with a variety of pricing plans and high-quality cybersecurity defenses.
10. BullGuard
BullGuard is an excellent anti-malware programme that is now owned by NortonLifeLock Inc. NortonLifeLock has purchased BullGuard
antivirus, and the package will ultimately be rebranded as Norton, with the BullGuard branding dropped entirely.
PASSWORD:
A Password is a word, phrase, or string of characters intended to differentiate an authorized user or process (for the purpose of
permitting access) from an unauthorized user, or put another way, a password is used to prove one's identity, or authorize access to a
resource.
You can use an acronym to create a memorable yet effective password. For example, you can choose the phrase "My son was born at a
Liverpool hospital in 2002" and take the first letter of each word (Mswb@aLhi2002) to create a solid and easy-to-remember password.
Firewalls and anti-viruses are systems to protect devices from viruses and other types of Trojans, but there are significant differences between
them. Based on the vulnerabilities, the main differences between firewalls and anti-viruses are tabulated below:
Definition A firewall is defined as the system which Anti-virus is defined as the special type of software
analyzes and filters incoming or outgoing that acts as a cyber-security mechanism. The
data packets based on pre-defined rules. primary function of Anti-virus is to monitor, detect,
and remove any apprehensive or distrustful file or
software from the device.
Structure Firewalls can be hardware and software Anti-virus can only be used as software. Anti-virus is
both. The router is an example of a physical a program that is installed on the device, just like
firewall, and a simple firewall program on the other programs.
the system is an example of a software
firewall.
Implementation Because firewalls come in the form of Because Anti-virus comes in the form of software,
hardware and software, a firewall can be therefore, Anti-virus can be implemented only at
implemented either way. the software level. There is no possibility of
implementing Anti-virus at the hardware level.
Responsibility A firewall is usually defined as a network Anti-viruses are primarily responsible for detecting
controlling system. It means that firewalls and removing viruses from computer systems or
are primarily responsible for monitoring other devices. These viruses can be in the form of
and filtering network traffic. infected files or software.
Scalability Because the firewall supports both types of Anti-viruses are generally considered less-scalable
implementations, hardware, and software, than firewalls. This is because anti-virus can only be
therefore, it is more scalable than anti-virus. implemented at the software level. They don't
support hardware-level implementation.
Threats A firewall is mainly used to prevent network Anti-virus is mainly used to scan, find, and remove
related attacks. It mainly includes external viruses, malware, and Trojans, which can harm
network threats?for example- Routing system files and software and share personal
attacks and IP Spoofing. information (such as login credentials, credit card
details, etc.) with hackers.
Need of window-2008
Windows Server 2008 is an operating system designed for use in enterprise-level environments. It was
first released by Microsoft in February 2008 and was followed by several other versions, including
Windows Server 2008 R2 and Windows Server 2008 SP2.
* There are several reasons why an organization may need to use Windows Server 2008 :-
1. Compatibility: Windows Server 2008 is compatible with a wide range of software applications,
hardware devices, and network components, making it an ideal choice for organizations that need to
maintain legacy systems.
2. Security: Windows Server 2008 includes a range of security features, such as Network Access
Protection (NAP), BitLocker Drive Encryption, and enhanced firewall controls, which can help
organizations protect their data and systems from unauthorized access.
3. Scalability: Windows Server 2008 is designed to scale up or down to meet the needs of organizations
of all sizes. It supports clustering, load balancing, and other technologies that can help organizations
manage large, complex IT infrastructures.
4. Management: Windows Server 2008 includes a range of management tools, such as Microsoft
Management Console (MMC), Windows PowerShell, and Group Policy, which can help organizations
manage their IT systems more efficiently.
5. Support: While Windows Server 2008 has reached its end of life and is no longer receiving security
updates, organizations that have purchased extended support can still receive assistance from Microsoft
if they encounter any issues.
# Overall, the need for Windows Server 2008 will depend on the specific requirements of an
organization's IT infrastructure and whether it can benefit from the features and capabilities offered by
this operating system.
Windows NT and Windows Server 2008 are both operating systems developed by Microsoft. However,
there are some significant differences between the two. Here are some key points of comparison:-
1. Architecture: Windows NT is the base on which many other versions of Windows have been built,
including Windows Server 2008. It is a 32-bit operating system that was originally designed for use on
servers. Windows Server 2008, on the other hand, is a 64-bit operating system that was specifically
designed for use on servers.
2. User Interface: Windows NT has a more simplistic and straightforward interface, while Windows
Server 2008 has a more modern and user-friendly interface, with advanced features and management
tools.
3. Security: Windows NT was developed in the early 90s and was not designed to handle modern
security threats, while Windows Server 2008 includes many advanced security features, such as
improved firewall, network access protection, and advanced encryption technology.
4. File Systems: Windows NT uses the NTFS file system, while Windows Server 2008 supports both NTFS
and the newer exFAT file system, which allows for larger file sizes.
5. Scalability: Windows Server 2008 is more scalable than Windows NT, able to handle a larger number
of users and devices, and has improved support for high-performance computing and virtualization.
6. Performance: Windows Server 2008 provides improved performance over Windows NT, due to its
more advanced architecture, 64-bit support, and better use of system resources.
In summary, Windows Server 2008 is a more modern and advanced operating system than Windows NT,
with improved security, scalability, performance, and management features. It is designed specifically
for use on servers, and is a good choice for businesses and organizations that need a reliable and
high-performance operating system for their server infrastructure.
1. Active Directory Domain Services (AD DS): This component provides centralized authentication and
authorization for Windows-based computers. It also allows administrators to manage network
resources, including users, computers, and other devices.
2. Network Policy and Access Services (NPAS): This component provides a framework for managing
network access, including remote access and network authentication.
3. Web Server (IIS): This component enables users to host web applications and websites on a Windows
Server 2008 computer.
4. File Services: This component provides file sharing and storage services, including support for
distributed file systems (DFS) and network-attached storage (NAS).
4. Print Services: This component allows administrators to manage printers and print jobs across a
network.
5. Remote Desktop Services (RDS): This component enables users to access desktops and applications
remotely.
6. Windows Deployment Services (WDS): This component allows administrators to deploy Windows
operating systems over the network.
7. Hyper-V: This component provides a platform for running virtual machines on a Windows Server 2008
computer.
8. Windows PowerShell: This component provides a command-line interface for managing and
automating Windows Server 2008 tasks.
9. Windows Server Backup: This component provides backup and recovery capabilities for Windows
Server 2008 computers.
Note that these are minimum requirements, and Microsoft recommends that you have more powerful
hardware for better performance. In addition, certain server roles or features may have additional
requirements. For example, if you plan to use Hyper-V virtualization, you should have a processor with
hardware-assisted virtualization and at least 4 GB of RAM. It's always a good idea to check the specific
hardware requirements for the server roles and features you plan to use.
1. BitLocker Drive Encryption: This service provides disk encryption for Windows servers to help protect
against data theft or unauthorized access to sensitive data.
2. Desktop Experience: This service includes components such as the Windows Aero theme, media
player, and other desktop applications that are not included in the default installation.
3. Remote Server Administration Tools (RSAT): This service includes a set of administrative tools that
can be installed on a client computer to remotely manage Windows Server 2008 servers.
4. Simple Network Management Protocol (SNMP): This service provides a standard protocol for
managing and monitoring network devices, such as servers, routers, and switches.
5. Telnet Client: This service provides a command-line interface for connecting to remote servers using
the Telnet protocol.
6. Windows PowerShell Integrated Scripting Environment (ISE): This service provides a graphical
interface for creating, debugging, and running PowerShell scripts.
7. Wireless LAN Service: This service provides support for wireless networks and devices, including
wireless access points and clients.
Note: that some of these services may not be necessary for all organizations or server configurations,
and should only be installed if needed.
Installation of window 2008 server
2. Boot the server from the installation disc. To do this, restart the server and press the key that will take
you to the boot menu (e.g., F12 or Del). Select the DVD drive as the boot device.
3. Windows Server 2008 Setup will launch. Select the language, time, and currency format, and
keyboard or input method, and click "Next".
7. Select the type of installation you want to perform. You can choose to do a "Full" installation, which
installs all the available features and services, or a "Server Core" installation, which is a stripped-down
version of the operating system that only includes the command-line interface and essential
components.
8. Select the partition or hard drive where you want to install Windows Server 2008. You can also create
or delete partitions, and format the partitions before proceeding.
9. Windows Server 2008 will begin installing. This process may take some time, depending on the speed
of the server and the size of the installation.
10. After installation is complete, the server will restart. Log in with the default administrator account or
a user account that has administrative privileges.
11. Windows Server 2008 will prompt you to configure the initial settings, such as the computer name,
time zone, and administrator password. Follow the prompts to configure these settings.
12. You can now install additional software and configure the server as needed.
1. Set up user accounts: Create user accounts for administrators and other users who will need access
to the server. Assign appropriate permissions and access rights to these accounts.
2. Configure network settings: Set up the server's network settings, including the IP address, subnet
mask, default gateway, and DNS server addresses. These settings will depend on the organization's
network requirements.
3. Install and configure server roles and features: Use the Server Manager tool to install and configure
server roles and features, such as Active Directory, DNS, or DHCP, as needed for the organization.
4. Configure security policies: Set up security policies to control access to the server and network
resources. This may include configuring firewalls, setting password policies, and restricting user
permissions.
5. Configure backup and recovery options: Set up backup and recovery options to ensure that
important data and configurations are backed up and can be restored in the event of a disaster.
6. Install and configure optional services: Install and configure optional services, such as BitLocker,
SNMP, or Telnet, as needed.
7. Test the server: After configuration is complete, test the server to ensure that it is working properly
and meeting the needs of the organization.
Check hardware requirements: Ensure that the server hardware meets the minimum hardware
requirements for Windows Server 2008.
Insert the installation media: Insert the Windows Server 2008 installation disc into the server's DVD
drive.
Boot from the installation media: Restart the server and ensure that the system is set up to boot from
the DVD drive. Follow the prompts to begin the installation process.
Select the installation type: Choose either a full installation or a Server Core installation, depending on
the needs of the organization.
Follow the installation prompts: Follow the on-screen instructions to complete the installation process,
including selecting the disk partition where Windows Server 2008 will be installed.
Configure the server settings: After installation is complete, log in to the server and configure the server
settings, including the computer name, network settings, time zone, and administrator password.
Install server roles and features: Use the Server Manager tool to install server roles and features, such
as Active Directory, DNS, or DHCP, as needed for the organization.
Configure the server roles and features: After installing server roles and features, configure them to
meet the needs of the organization, including setting up user accounts and network policies.
Install and configure optional services: Install and configure optional services, such as BitLocker, SNMP,
or Telnet, as needed.
Test the server: After installation and configuration are complete, test the server to ensure that it is
working properly and meeting the needs of the organization.
1. Open the Server Manager tool: Click on Start menu and select Server Manager.
2. Navigate to Local Users and Groups: Expand the Configuration node in the left pane and click on the
Local Users and Groups folder.
3. Create a new user group: Right-click on the Groups folder and select New Group. Enter a name and
description for the group, and select the group type (either a local or domain group).
4. Add users to the group: Right-click on the newly created group and select Properties. In the
Properties dialog box, click on the Members tab and then click on Add. Enter the user names or group
names that you want to add to the group, and then click OK.
5. Modify group membership: To remove or add users to an existing group, simply right-click on the
group and select Properties. Then, click on the Members tab and make the necessary changes.
6. Assign permissions to the group: Once the user group is created and users are added to it, you can
assign permissions to the group for specific resources, such as folders, files, or printers. To do this,
right-click on the resource and select Properties. Then, click on the Security tab and add the user group
to the list of users and groups, and set the appropriate permissions for the group.
7. Test the group's permissions: After configuring group permissions, test the group's access to the
resources to ensure that the permissions are working as intended.
Disk Management
Disk management in Windows Server 2008 allows you to create and manage disk partitions, volumes,
and file systems. Here are the basic steps for disk management:
1. Open the Disk Management tool: Click on Start menu and select Administrative Tools, then click on
Computer Management, and select Disk Management under the Storage category.
2. Initialize the disk: If you have a new disk that has not been initialized, right-click on the disk in Disk
Management and select Initialize Disk. Choose the appropriate disk type (MBR or GPT) and click OK.
3. Create partitions: Right-click on the unallocated space and select New Simple Volume. Follow the
wizard to create a partition, specify the partition size, assign a drive letter, and format the partition with
the desired file system.
4. Extend or shrink partitions: Right-click on the partition you want to extend or shrink, and select
Extend Volume or Shrink Volume, respectively. Follow the wizard to complete the task.
5. Assign drive letters or mount points: To assign a drive letter or mount point to a partition, right-click
on the partition and select Change Drive Letter and Paths. Click Add to assign a drive letter or mount
point.
6. Convert file systems: To convert a file system from FAT32 to NTFS or vice versa, right-click on the
partition and select Format. Choose the file system you want to convert to and click OK.
7. Manage virtual hard disks: In Disk Management, you can also create and manage virtual hard disks
(VHDs). Right-click on Disk Management and select Create VHD. Follow the wizard to create a VHD,
specify the VHD size and file location, and then mount the VHD
Active Directory :
Active Directory is a directory service in Windows Server 2008 that allows administrators to manage and
organize user accounts, computers, and other resources in a network. Here are some key points to
consider when using Active Directory in a Windows Server 2008 environment:
1. Domain creation: Create a domain for your organization using Active Directory Domain rvices (AD
DS). A domain is a logical grouping of computers and other resources that share a common security
policy and directory database.
2. User and group management: Manage user and group accounts using Active Directory Users and
Computers. This includes creating, modifying, and deleting user and group accounts, as well as assigning
permissions and access rights.
3. Organizational units (OUs): Use OUs to organize your domain into logical groups that correspond to
your organizational structure. This can help to simplify administration by delegating control and
assigning group policies at the OU level.
4. Group policies: Use group policies to enforce security settings, manage user desktop configurations,
and automate software installations. This can help to ensure consistency across your network and
reduce administrative overhead.
5. Trust relationships: Create trust relationships between domains to enable users to access resources
in other domains. This can help to simplify administration and enable users to collaborate across
multiple domains.
6. Backup and recovery: Plan for disaster recovery by creating a backup plan for your Active Directory
environment. This can include regular backups of the Active Directory database and system state data,
as well as a plan for restoring data in case of a disaster.
Overall, Active Directory provides a powerful toolset for managing network resources in a Windows
domain environment. By using Active Directory, administrators can streamline administrative tasks,
enhance security, and simplify the management of network resources.
Distributed File System (DFS) is a feature in Windows Server 2008 that allows administrators to create a
logical namespace for files and folders that are stored on multiple servers. Here are some key points to
consider when using DFS in a Windows Server 2008 environment:
Namespace creation: Create a namespace for the files and folders that you want to make available to
users. This can be done using either the standalone namespace or the domain-based namespace. The
domain-based namespace is the most commonly used and provides better scalability and management.
Namespace design: Plan the design of your namespace carefully to ensure that it is organized and easy
to navigate for your users. Consider using a hierarchical design that follows the structure of your
organization.
Replication: Configure DFS replication to keep files and folders in sync between the different servers.
DFS replication can help to improve availability and performance by ensuring that users can access the
files and folders from a server that is close to them.
Permissions: Manage permissions for the namespace and the files and folders that are stored within it.
Ensure that users have the appropriate permissions to access the files and folders they need while also
maintaining security.
Monitoring: Monitor the DFS environment to ensure that it is running smoothly and to detect any issues
that may arise. Use tools such as Windows Server Manager and Performance Monitor to monitor
performance and disk space usage.
Disaster recovery: Plan for disaster recovery by creating a backup plan for the namespace and its
contents. This can include regular backups and restoring data in case of a disaster.
Overall, DFS provides a way for administrators to create a single, unified view of shared folders across a
network. By using DFS, administrators can simplify the management of shared folders and provide users
with easy access to shared resources, regardless of their physical location.
Remote Desktop Services installation: Install the Remote Desktop Services role on a Windows Server
2008 machine that will act as a remote desktop server. Configure the role to support the number of
users you expect to have.
Remote Desktop Gateway: Install and configure a Remote Desktop Gateway (RD Gateway) to allow
users to connect securely to remote desktops or applications over the internet. RD Gateway uses
Remote Desktop Protocol (RDP) over HTTPS to create a secure, encrypted connection.
Remote Desktop Session Host: Install and configure a Remote Desktop Session Host (RD Session Host)
to host remote desktop sessions and applications. RD Session Host manages connections and resources
to provide a seamless remote desktop experience for users.
RemoteApp: Use RemoteApp to publish individual applications instead of full desktops to specific users.
RemoteApp allows users to access applications from a remote server as if they were installed on their
local computers.
Security: Configure security settings to ensure that only authorized users can access remote desktops
and applications. Use Group Policy settings to enforce password policies, network security settings, and
other security measures.
Monitoring: Monitor your Remote Desktop Services environment to ensure that it is running smoothly
and to detect any issues that may arise. Use tools such as Windows Server Manager and Performance
Monitor to monitor performance and disk space usage.
Network Interface Cards (NICs): Network Interface Cards (NICs) are hardware devices that connect a
server to a network. Windows Server 2008 supports a variety of NICs, including wired and wireless.
Network Configuration: Windows Server 2008 provides a variety of tools to configure and manage
network settings, including IP address, subnet mask, default gateway, and DNS servers. Network
configuration can be managed using the Network and Sharing Center, or through command-line tools
like ipconfig and netsh.
Dynamic Host Configuration Protocol (DHCP): DHCP is a service that automatically assigns IP addresses
and other network configuration settings to clients on a network. Windows Server 2008 includes a DHCP
server that can be used to manage and distribute IP addresses.
Domain Name System (DNS): DNS is a service that translates domain names into IP addresses. Windows
Server 2008 includes a DNS server that can be used to manage domain name resolution.
Internet Protocol Security (IPSec): IPSec is a protocol used to secure network traffic. Windows Server
2008 includes IPSec functionality that can be used to secure network communications between servers
and clients.
Network Access Protection (NAP): NAP is a feature that helps ensure that clients connecting to a
network meet certain security requirements, such as having up-to-date antivirus software installed.
Windows Server 2008 includes NAP functionality that can be used to enforce network security policies.
Routing and Remote Access: Routing and Remote Access is a feature that enables remote access and
routing capabilities for Windows Server 2008. This feature can be used to configure and manage VPN
connections, dial-up connections, and remote access policies.
Overall, Windows Server 2008 provides a variety of networking features and services that can be used to
manage and configure network resources. By using these tools, administrators can create and manage
secure and scalable network environments to meet the needs of their organizations.
1. Open the Server Manager by clicking the "Start" button and selecting "Server Manager" from the
menu.
3. Click the "Add Roles" link in the right-hand pane to open the Add Roles Wizard.
5. Select "DNS Server" from the list of available roles and click "Next".
6. Review the information about the DNS Server role and click "Next".
7. Select any additional features that you want to install with DNS, such as DNS Management Console,
and click "Next".
8. Review the summary of the installation and click "Install".
9. Wait for the installation to complete. This may take several minutes.
10. Once the installation is complete, click "Close" to exit the Add Roles Wizard.
11. Open the DNS Manager by clicking the "Start" button, selecting "Administrative Tools", and then
selecting "DNS".
12. In the DNS Manager window, right-click on the server name and select "Configure a DNS Server".
13. Follow the wizard to configure the DNS Server settings, including the Forward Lookup Zones, Reverse
Lookup Zones, and Root Hints.
14. Once you have finished configuring the DNS Server, click "Finish" to close the wizard.
15. Finally, you can test your DNS Server by using the "nslookup" command in the command prompt to
resolve domain names to IP addresses.
Overall, by configuring DNS in Windows Server 2008, you can ensure that your network infrastructure
can effectively communicate with other systems on the internet and within your organization..
1. Open the Server Manager by clicking the "Start" button and selecting "Server Manager" from the
menu.
3. Click the "Add Roles" link in the right-hand pane to open the Add Roles Wizard.
5. Select "DHCP Server" from the list of available roles and click "Next".
6. Review the information about the DHCP Server role and click "Next".
7. Select any additional features that you want to install with DHCP, such as the DHCP Management
Console, and click "Next".
10. Once the installation is complete, click "Close" to exit the Add Roles Wizard.
11. Open the DHCP Manager by clicking the "Start" button, selecting "Administrative Tools", and then
selecting "DHCP".
12. In the DHCP Manager window, right-click on the server name and select "Configure DHCP".
13. Follow the wizard to configure the DHCP Server settings, including the DHCP scope, lease duration,
DNS server settings, and other network parameters.
14. Once you have finished configuring the DHCP Server, click "Finish" to close the wizard.
15. Finally, you can test your DHCP Server by connecting a device to the network and verifying that it
receives an IP address automatically from the DHCP Server.
Overall, by configuring DHCP in Windows Server 2008, you can simplify the management of IP addresses
and other network parameters in your network environment, and ensure that devices can connect to
the network and communicate with other systems effectively.
installation of IIS :
Internet Information Services (IIS) is a web server software package that is used to host websites and
web applications on Windows operating systems. Here are the steps to install IIS on a Windows Server
2008 machine:
1. Log in to the Windows Server 2008 machine using an account with administrative privileges.
2. Open the Server Manager by clicking the "Start" button and selecting "Server Manager" from the
menu.
4. Click the "Add Roles" link in the right-hand pane to open the Add Roles Wizard.
6. Select "Web Server (IIS)" from the list of available roles and click "Next".
7. Review the information about the Web Server (IIS) role and click "Next".
8. Select any additional features that you want to install with IIS, such as FTP server, and click
"Next".
10. Wait for the installation to complete. This may take several minutes.
11. Once the installation is complete, click "Close" to exit the Add Roles Wizard.
You have now successfully installed IIS on your Windows Server 2008 machine. You can now configure
IIS to host websites and web applications.
VPN :
VPN stands for Virtual Private Network, which is a technology that allows users to connect to a private
network over the internet securely. A VPN creates an encrypted tunnel between the user's device and
the private network, which ensures that all data transmitted between the two is secure and private.
Here are some key concepts related to VPN:
1. VPN Client: A VPN client is software that runs on the user's device and is used to connect to the VPN
server. The VPN client typically requires the user to enter login credentials to access the VPN.
2. VPN Server: A VPN server is a network device that is configured to accept VPN connections from
clients. The VPN server is responsible for encrypting and decrypting data transmitted between the client
and the private network.
3. VPN Protocol: A VPN protocol is a set of rules and procedures used to establish and maintain a VPN
connection. Common VPN protocols include OpenVPN, PPTP, L2TP, and IPSec.
4. VPN Encryption: Encryption is used to secure data transmitted between the VPN client and the VPN
server. Common encryption algorithms used in VPNs include AES, 3DES, and RSA.
5. VPN Tunnel: A VPN tunnel is the encrypted connection between the VPN client and the VPN server.
The VPN tunnel ensures that all data transmitted between the client and the private network is secure
and private.
Overall, VPNs are a critical technology for organizations that need to provide secure remote access to
their private networks. By using VPNs, organizations can ensure that their data and communications are
secure and private, even when accessed from remote locations. By understanding the key concepts of
VPNs, administrators can effectively deploy and manage VPN solutions in their network environments.
Setting up a VPN (Virtual Private Network) in Windows Server 2008 environment can allow remote users
to securely access the organization's network resources from outside the office. Here are the steps to
set up a VPN in Windows Server 2008:
1. Open the Server Manager by clicking the "Start" button and selecting "Server Manager" from the
menu.
3. Click the "Add Roles" link in the right-hand pane to open the Add Roles Wizard.
4. In the Add Roles Wizard, click "Next" to begin.
5. Select "Network Policy and Access Services" from the list of available roles and click "Next".
6. Review the information about the Network Policy and Access Services role and click "Next".
7. Select "Routing and Remote Access Services" from the list of available services and click "Next".
9. Wait for the installation to complete. This may take several minutes.
10. Once the installation is complete, click "Close" to exit the Add Roles Wizard.
11. Open the Routing and Remote Access console by clicking the "Start" button, selecting
"Administrative Tools", and then selecting "Routing and Remote Access".
12. In the Routing and Remote Access console, right-click on the server name and select "Configure and
Enable Routing and Remote Access".
13. Follow the wizard to configure the VPN settings, including selecting the VPN type (PPTP, L2TP/IPSec,
or SSTP), setting up user authentication, and configuring network address translation (NAT) if needed.
14. Once you have finished configuring the VPN settings, click "Finish" to close the wizard.
15. Finally, you can test the VPN connection by connecting to it from a remote location using the VPN
client software and verifying that you can access the organization's network resources.
Overall, by setting up a VPN in Windows Server 2008, you can allow remote users to securely connect to
your network resources and improve collaboration and productivity.
Restoring :
Restoring is the process of recovering data from a backup and returning it to its original state. The
purpose of restoring is to recover data that has been lost or damaged due to various factors such as
hardware failure, software corruption, accidental deletion, or malicious attacks. Here are some key
concepts related to restoring:
Restoring a Windows Server 2008 system is a critical process that may be necessary in case of hardware
failure, software corruption, or other disasters. Here are the steps to restore a Windows Server 2008
system:
1. Boot the server from the Windows Server 2008 installation media.
2. In the Windows Setup screen, select "Next" and then "Repair your computer".
3. Select the "Windows Server 2008" installation that you want to restore and click "Next".
5. Depending on the type of restore you want to perform, you may select one of the following options:
> Startup Repair: This option can help to fix boot problems and other issues that prevent the
system from starting up.
> System Restore: This option allows you to roll back the system to a previous state when it was working
correctly.
> Complete PC Restore: This option allows you to restore the entire system from a backup image.
> Windows Memory Diagnostic: This option allows you to check the system memory for errors.
6. Follow the prompts to complete the restore process. Depending on the option you selected, you may
need to provide additional information, such as a backup location, restore point, or backup image.
7. Once the restore process is complete, restart the system and verify that it is working correctly.
Overall, restoring a Windows Server 2008 system can be a complex and time-consuming process, but it
is critical to ensure the integrity and availability of your organization's IT resources. By following these
steps, you can restore your system in case of a disaster and minimize the impact on your operations.
Domain security :
Domain security is an essential aspect of network security in a Windows Server 2008 environment. Here
are some best practices for securing your domain:
Implement strong password policies: Create strong password policies that require users to use complex
passwords and change them regularly. Enforce password complexity rules, such as minimum length,
complexity, and history requirements.
Use Group Policy to enforce security settings: Use Group Policy to apply security settings to user and
computer accounts in the domain. This includes settings such as password policies, user rights, and audit
policies.
Manage user accounts and permissions: Manage user accounts and permissions to prevent
unauthorized access to sensitive data. Use the principle of least privilege to assign permissions only to
the users who require them.
Implement access controls: Implement access controls to restrict access to sensitive data, such as
confidential information, financial data, and trade secrets. This includes using file permissions, folder
permissions, and share permissions.
Use encryption: Use encryption to protect sensitive data in transit and at rest. This includes using
SSL/TLS for web-based applications, IPsec for network communications, and BitLocker for encrypting
hard drives.
Install and update antivirus and anti-malware software: Install and regularly update antivirus and
anti-malware software on all servers and workstations in the domain.
Monitor and audit system events: Implement monitoring and auditing tools to detect unauthorized
access attempts and system events. Use tools such as Windows Event Viewer and Syslog to monitor and
analyze system logs.
Regularly perform backups: Perform regular backups of critical data and system configurations to
ensure that data can be recovered in case of a disaster.
Use firewalls: Use firewalls to restrict network traffic to and from the domain. This includes using
hardware firewalls, software firewalls, or a combination of both.
By following these best practices, you can help to ensure the security of your domain in a Windows
Server 2008 environment. Remember that domain security is an ongoing process that requires regular
monitoring, updates, and maintenance to keep your network secure.
UNIT - 4
Interoduction to Linux :
Linux is a type of computer operating system that is free and open-source. It is known for being reliable,
secure, and flexible. Linux is made up of different parts, like the kernel, which is the main part that talks
to the computer hardware, and the shell, which lets people interact with the operating system using
typed commands. Linux can also have a visual interface, which makes it easier for people who are not
familiar with typed commands. There are many different versions of Linux available, each with its own
features and tools. Overall, Linux is a powerful and useful tool for computers and servers, and many
people choose to use it because it is free, customizable, and reliable.
Linux is an open-source operating system that is widely used in computer systems and servers. It is
based on the Unix operating system and was initially developed in 1991 by Linus Torvalds. Linux is a free
and powerful operating system that has gained popularity due to its stability, security, and flexibility.
installation of linux :
The installation process of Linux may vary depending on the distribution you choose, but generally, the
steps involved are as follows:
1. Choose a distribution: Select the Linux distribution that you want to install. There are many
distributions available, each with its own unique features and tools. Some popular distributions include
Ubuntu, Debian, Fedora, and CentOS.
2. Download the ISO file: Download the ISO file of your chosen Linux distribution from the official
website. You will need to choose the correct version based on your computer's hardware architecture
(32-bit or 64-bit).
3. Create a bootable USB drive: Use a tool like Rufus or Etcher to create a bootable USB drive with the
Linux ISO file. You will need a USB drive with at least 4 GB of storage capacity.
4. Boot from the USB drive: Insert the bootable USB drive into your computer and restart it. Make sure
your computer is set to boot from the USB drive in the BIOS or UEFI settings.
5. Start the installation: Once the Linux distribution boots up, you can choose to try it out without
installing or proceed with the installation process. Follow the prompts and choose your language,
keyboard layout, and other settings.
6. Partition the hard drive: During the installation process, you will need to partition your hard drive.
You can choose to install Linux alongside your existing operating system or erase the entire hard drive
and install Linux as the only operating system.
7. Set up user account: Once the installation is complete, you will be prompted to set up a user account
and password. This account will have administrative privileges, which means you will be able to install
software and make system changes.
8. Install updates and drivers: After the installation is complete, it is recommended to install any
updates and drivers that are available to ensure the system is up-to-date and running smoothly.
That's it! You should now have a fully installed Linux system on your computer.
Desctop Environment :
A desktop environment in Linux is a collection of software components that provide a graphical user
interface (GUI) for the Linux operating system. It includes a window manager, system settings,
application launcher, panel, and other tools that allow users to interact with the operating system using
a visual interface.
There are several popular desktop environments available for Linux, each with its own unique features
and design. Some of the most popular desktop environments include:
1. GNOME: GNOME is a modern desktop environment that is known for its simplicity and elegance. It
has a clean and intuitive interface and includes a wide range of built-in applications.
2. KDE Plasma: KDE Plasma is a highly customizable desktop environment that offers a wide range of
options for customization. It has a modern and sleek design and includes many useful features and tools.
3. Xfce: Xfce is a lightweight and fast desktop environment that is ideal for older or less powerful
computers. It has a traditional desktop layout and includes many useful tools and applications.
4. Cinnamon: Cinnamon is a desktop environment that is based on the GNOME desktop. It has a modern
and elegant design and includes many useful features and tools.
5. Mate: Mate is a desktop environment that is based on the traditional GNOME 2 desktop. It has a
familiar interface and includes many useful tools and applications.
Overall, the desktop environment in Linux provides a powerful and flexible way to interact with the
operating system. Users can choose the desktop environment that best fits their needs and preferences
and customize it to their liking.
> GNOME – Uses plenty of system resources but gives you a modern, polished system
> KDE – Highly customizable desktop with moderate usage of system resources
Nano: Nano is a simple and easy-to-use text editor that is ideal for beginners. It has a basic interface and
supports syntax highlighting.
Vim: Vim is a powerful and highly customizable text editor that is popular among advanced users. It has
a steep learning curve, but once mastered, it can greatly increase productivity.
Emacs: Emacs is another powerful and highly customizable text editor that is popular among developers.
It has a wide range of features and can be used for coding, writing, and more.
> In addition to text editors, Linux also has a wide range of command-line tools that can be used to
manage the system and perform various tasks. Here are a few common Linux commands:
cd: Change directory. This command is used to navigate through the file system.
ls: List files. This command is used to display the files and directories in the current directory.
sudo: Superuser do. This command is used to run commands with administrative privileges.
grep: The grep command is used to search for a specific pattern or text string in a file or multiple files.
pwd: The pwd command is used to print the current working directory.
less: The less command is used to display the contents of a file one page at a time.
head: The head command is used to display the first few lines of a file.
tail: The tail command is used to display the last few lines of a file.
top: The top command is used to display real-time system resource usage.
Filtering techniques :
Filtering techniques in Linux refer to the process of selectively extracting specific data from a larger
dataset. Linux provides several filtering tools and techniques that allow users to manipulate and filter
data efficiently. Here are some of the most commonly used filtering techniques in Linux:
grep: The grep command is used to search for specific patterns or text strings in a file or multiple files. It
can be used to filter out specific lines or sections of a file.
sed: The sed command is used to perform text transformations on a file or stream of data. It can be used
to filter out specific lines, remove or replace text, and perform other manipulations.
awk: The awk command is used to process and manipulate text data. It can be used to filter out specific
fields or columns of data and perform calculations.
cut: The cut command is used to extract specific columns or fields of data from a file or stream of data.
sort: The sort command is used to sort data alphabetically or numerically based on a specific field or
column.
uniq: The uniq command is used to remove duplicate lines from a file or stream of data.
head/tail: The head and tail commands are used to display the first or last few lines of a file or stream of
data.
UNIT -5
linux administration :
Linux administration involves managing and maintaining the Linux operating system. This includes tasks
such as installing and configuring software, managing users and groups, setting up and managing
network connections, and ensuring system security and performance.
Installing and configuring software: This involves installing new software packages on the system and
configuring them to work correctly.
Managing users and groups: Linux allows you to create and manage user accounts and groups. This
includes adding, modifying, and deleting user accounts, as well as assigning permissions and access
control.
Setting up and managing network connections: Linux can be used as a network server or client. This
involves configuring network settings, setting up network services, and troubleshooting network issues.
Ensuring system security: Linux is known for its strong security features. Administrators need to ensure
the system is configured to protect against unauthorized access, malware, and other security threats.
Monitoring system performance: Monitoring the system's performance is crucial for identifying
performance issues and optimizing system performance. This includes monitoring system resources
such as CPU usage, memory usage, and disk space.
Linux administration requires a good understanding of the Linux operating system and its command-line
interface. Familiarity with scripting languages such as Bash, Perl, or Python can also be helpful. There are
various tools available to make administration tasks easier, including web-based interfaces and
command-line utilities.
Here are some common tasks involved in managing users and groups in Linux:
Creating users: To create a new user account, use the "useradd" command, followed by the username.
For example, "useradd john" would create a new user account named "john".
Modifying users: To modify an existing user account, use the "usermod" command. This can be used to
change the user's password, home directory, default shell, and other settings.
Deleting users: To delete a user account, use the "userdel" command followed by the username. For
example, "userdel john" would delete the user account named "john".
Creating groups: To create a new group, use the "groupadd" command, followed by the group name.
For example, "groupadd developers" would create a new group named "developers".
Modifying groups: To modify an existing group, use the "groupmod" command. This can be used to
change the group's name or GID (Group ID).
Deleting groups: To delete a group, use the "groupdel" command followed by the group name. For
example, "groupdel developers" would delete the group named "developers".
Adding users to groups: To add a user to a group, use the "usermod" command with the "-aG" option
followed by the group name. For example, "usermod -aG developers john" would add the user "john" to
the "developers" group.
Removing users from groups: To remove a user from a group, use the "gpasswd" command with the
"-d" option followed by the username and group name. For example, "gpasswd -d john developers"
would remove the user "john" from the "developers" group.
Managing users and groups can also be done using graphical user interface tools such as
"system-config-users" or "users-admin", depending on the Linux distribution being used.
managing Printers :
Managing printers is an important part of Linux administration, especially in an office environment
where several users share a printer. Linux offers various tools to manage printers, including
command-line utilities and graphical user interfaces.
1. Installing printer drivers: To install a printer driver, you need to know the make and model of the
printer. Most Linux distributions come with pre-installed drivers for common printer manufacturers such
as HP, Epson, and Brother. If the driver is not installed, you may need to download it from the
manufacturer's website.
2. Adding a printer: To add a printer, use the "system-config-printer" command in the terminal, or use
the "Printers" option in the system settings menu. You will need to provide the printer name, location,
and type, and select the appropriate driver.
3. Configuring printer options: Once a printer is installed, you can configure its options such as paper
size, print quality, and orientation. These options can be accessed through the printer's properties
menu.
4. Managing print jobs: Linux provides various tools to manage print jobs, including the "lpq" command
to check the status of print jobs, and the "lprm" command to cancel print jobs. The graphical user
interface also allows you to view and manage print jobs.
5. Configuring printer sharing: In an office environment, you may need to share a printer with other
users. Linux allows you to share a printer over the network using the CUPS (Common Unix Printing
System) server. To enable printer sharing, you need to configure CUPS and set up printer access control
for different users.
6. Troubleshooting printer issues: If a printer is not working correctly, you can use the
"system-config-printer" tool or the CUPS web interface to diagnose and fix the issue. This may involve
checking printer connections, restarting the CUPS server, or reinstalling printer drivers.
Managing printers in Linux can be done using a combination of command-line tools and graphical user
interfaces. Understanding the printing system in Linux and its underlying components, such as CUPS, can
help make printer management more efficient and effective.
Configuring DHCP :
Dynamic Host Configuration Protocol (DHCP) is a network protocol used to automatically assign IP
addresses and network configuration to devices on a network. DHCP is widely used in enterprise
networks to simplify network administration.
1. Install DHCP Server: In Linux, the DHCP server is provided by the "dhcpd" package. To install the
package, use the package manager for your Linux distribution. For example, on Debian-based
distributions, use the "apt-get" command: "sudo apt-get install dhcpd".
2. Configure the DHCP Server: Once the package is installed, you need to configure the DHCP server by
editing the configuration file "/etc/dhcp/[Link]". This file defines the network settings and IP
addresses to be assigned to client devices.
3. Define the DHCP Scope: In the configuration file, you need to define the DHCP scope, which is the
range of IP addresses that can be assigned to client devices. You also need to specify other settings such
as the subnet mask, default gateway, DNS servers, and lease time.
4. Start the DHCP Server: Once the configuration is done, start the DHCP server using the "systemctl"
command. For example, on a system that uses systemd, use "sudo systemctl start [Link]" to
start the DHCP server.
5. Test the DHCP Configuration: To test the DHCP configuration, connect a client device to the network
and make sure it receives an IP address from the DHCP server. You can use the "ifconfig" or "ip addr
show" command to check the IP address assigned to the device.
6. Troubleshooting DHCP: If there are issues with DHCP, check the DHCP server logs in "/var/log/syslog"
or "/var/log/messages" for error messages. Common issues include incorrect network settings,
conflicting IP addresses, or network connectivity issues.
DNS :
DNS (Domain Name System) is a protocol used to translate human-readable domain names into IP
addresses that computers can use to communicate with each other on the Internet. DNS is an essential
part of the Internet infrastructure and is used to resolve domain names into IP addresses.
1. Install a DNS Server: In Linux, there are several DNS server software packages available, such as BIND,
Unbound, and dnsmasq. To install a DNS server, use the package manager for your Linux distribution.
For example, on Debian-based distributions, use the "apt-get" command: "sudo apt-get install bind9".
2. Configure the DNS Server: Once the DNS server package is installed, you need to configure the DNS
server by editing the configuration files. The configuration files vary depending on the DNS server
package used. For example, for BIND, the configuration file is "/etc/bind/[Link]".
3. Define DNS Zones: In the DNS server configuration, you need to define DNS zones, which are logical
groupings of domain names and IP addresses. There are two types of DNS zones: forward and reverse.
Forward zones map domain names to IP addresses, while reverse zones map IP addresses to domain
names. You also need to define the DNS records for each zone, such as the A record, which maps a
domain name to an IP address.
4. Start the DNS Server: Once the configuration is done, start the DNS server using the "systemctl"
command. For example, on a system that uses systemd, use "sudo systemctl start [Link]" to
start the BIND DNS server.
5. Test the DNS Configuration: To test the DNS configuration, use the "nslookup" command to check the
DNS resolution for a domain name. For example, use "nslookup [Link]" to check the IP address for
the "[Link]" domain name.
6. Troubleshooting DNS: If there are issues with DNS, check the DNS server logs in "/var/log/syslog" or
"/var/log/messages" for error messages. Common issues include incorrect DNS records, misconfigured
zones, or network connectivity issues.
In addition to the above steps, you may also need to configure the firewall to allow DNS traffic. DNS uses
UDP and TCP ports 53 for communication between the client and server. Make sure these ports are
open in the firewall configuration.
Network Services :
Network services refer to software applications that run on a computer network and provide specific
functionalities or services. These services can be used by client devices to access resources on the
network or perform specific tasks.
Linux provides various network services that are essential for network communication and
administration. Here are some common network services in Linux:
Apache HTTP Server: Apache is a widely used web server that allows hosting of websites and web
applications. It is available in most Linux distributions and can be installed using the package manager.
SSH Server: SSH (Secure Shell) is a secure network protocol used to remotely access and manage Linux
servers. It provides encrypted communication between the client and server and is commonly used for
system administration tasks.
FTP Server: FTP (File Transfer Protocol) is a network protocol used to transfer files between computers.
In Linux, there are several FTP servers available, such as vsftpd and proftpd.
NFS Server: NFS (Network File System) is a distributed file system that allows file sharing across a
network. It is commonly used for sharing files between Linux servers.
Samba Server: Samba is a software suite that provides file and print services for Windows clients. It
allows Linux servers to act as file servers for Windows clients, providing seamless integration between
Linux and Windows environments.
DNS Server: DNS (Domain Name System) is a protocol used to translate human-readable domain names
into IP addresses that computers can use to communicate with each other on the Internet. In Linux,
popular DNS servers include BIND, Unbound, and dnsmasq.
DHCP Server: DHCP (Dynamic Host Configuration Protocol) is a protocol used to automatically assign IP
addresses and network configuration to devices on a network. DHCP is widely used in enterprise
networks to simplify network administration.
NTP Server: NTP (Network Time Protocol) is a protocol used to synchronize the clocks of computers on a
network. It is essential for accurate timekeeping and is commonly used in network infrastructure devices
such as routers and switches.
Firewalls :
A firewall is a security system that controls incoming and outgoing network traffic based on a set of
rules. In Linux, there are several firewall solutions available, including iptables, nftables, and firewalld.
1. Check the firewall status: Before configuring the firewall, check if it is already active on the system.
You can use the "systemctl" command to check the status of the firewall service. For example, "sudo
systemctl status [Link]" will show the status of the iptables firewall service.
2. Define firewall rules: Once you have confirmed that the firewall is active, you can define the rules
that will control the traffic. The rules can be defined using the iptables command-line utility or by
creating a script that sets up the rules. The basic syntax of the iptables command is as follows: "iptables
-[action] [chain] [options]". For example, "iptables -A INPUT -p tcp --dport 80 -j ACCEPT" will allow
incoming traffic on port 80.
3. Save the firewall rules: Once the rules are defined, they need to be saved so that they persist across
system reboots. The easiest way to do this is to use the "iptables-save" command, which will save the
current rules to a file. For example, "sudo iptables-save > /etc/sysconfig/iptables" will save the rules to
the "/etc/sysconfig/iptables" file.
4. Test the firewall configuration: After configuring the firewall, test it by attempting to access services
that should be blocked by the firewall. If the firewall is configured correctly, the connection should be
blocked.
5. Troubleshoot firewall issues: If there are issues with the firewall, check the firewall logs for error
messages. On most Linux distributions, the firewall logs are located in "/var/log/messages" or
"/var/log/syslog". Common issues include misconfigured rules or network connectivity issues.
Security :
Security is an essential aspect of any Linux system, and it involves various measures to protect the
system from unauthorized access, data breaches, and other security threats. Here are some best
practices for securing a Linux system:
1. Keep the system updated: Regularly update the Linux system with the latest security patches and
software updates to prevent security vulnerabilities.
2. Use strong passwords: Use strong, unique passwords for user accounts, and encourage users to
change their passwords regularly.
3. Disable unnecessary services: Disable any unnecessary services and network ports to reduce the
attack surface of the system.
4. Use encryption: Use encryption to protect sensitive data on the system, such as disk encryption for
hard drives and file encryption for sensitive files.
5. Configure firewalls: Configure firewalls to block unauthorized network traffic and limit access to
essential network services.
6. Enable two-factor authentication: Enable two-factor authentication for user accounts to provide an
extra layer of security against password-based attacks.
7. Use access controls: Use access controls, such as file permissions and user groups, to limit access to
sensitive data and resources.
8. Monitor system logs: Monitor system logs regularly to detect and respond to security incidents
promptly.
9. Perform regular backups: Perform regular backups of critical data to prevent data loss in case of a
security breach or system failure.
10. Follow security best practices: Follow security best practices recommended by Linux security
experts and organizations, such as the Center for Internet Security (CIS) benchmarks.
Backup :
Backups are essential for ensuring that critical data is protected from loss in the event of a hardware
failure, data corruption, or other disasters. Here are some best practices for backing up a Linux system:
1. Define a backup strategy: Define a backup strategy that specifies what data needs to be backed up,
how frequently backups should be performed, and where backups should be stored.
2. Choose a backup method: Choose a backup method that suits your backup strategy and needs, such
as full backups, incremental backups, or differential backups.
3. Automate backups: Automate backups using backup software, cron jobs, or other tools to ensure
that backups are performed regularly and consistently.
4. Test backups: Test backups regularly to ensure that they are valid and can be restored successfully in
case of a disaster.
5. Store backups offsite: Store backups offsite or in a different location from the primary data to protect
against disasters such as fires, floods, or theft.
6. Use encryption: Use encryption to protect backup data from unauthorized access or theft.
7. Backup system configurations: Backup system configurations, including installed software and user
accounts, to enable a faster system recovery in case of a disaster.
8. Consider backup verification: Consider verifying backups with a tool like md5sum to ensure that the
backup is an accurate representation of the original data.
9. Monitor backups: Monitor backups to ensure that they are being performed correctly and to detect
any errors or issues that may arise.