0% found this document useful (0 votes)
18 views10 pages

Linux Server Administration Guide 2019

This document provides an overview of Linux server administration. It covers topics such as environment setup, file systems, virtualization, storage and recovery. Commands for tasks like updating, installing SSH, and configuring firewalls are also demonstrated.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views10 pages

Linux Server Administration Guide 2019

This document provides an overview of Linux server administration. It covers topics such as environment setup, file systems, virtualization, storage and recovery. Commands for tasks like updating, installing SSH, and configuring firewalls are also demonstrated.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

LINUX SERVER ADMINISTRATION 2019

By: Kevin Brown on UDEMY

Discord chanel: [Link]


Linux command : [Link]
ii5HKGQepjDMFpixf/view

1. Environment Set Up

 LINUX versions & uses


- LINUX for SERVERS: Rocky, redhat, alma, Ubuntu
- LINUX for LAPTOPS: Pop OS, linux Mint
- LINUX for EMBEDDED SYS: OpenWRT
- Server Clusters: rockcluster

 Post Installation
Action command
Update every app & “ sudo apt full -
services upgrade”
Internet tools - “ sudo apt install
net-tools”

Install ssh server ”openssh-server”

Apropos “cmnd name ” Provides manual &


hlp
- , “ sudo apt update” and “ sudo apt full -upgrade”
-
 Xdcfgvhbjn
 Xcvbh

2. Special commands

“”  disk management,
Command Name usage options
df Disk management
-- help Info about a command
man Provide manual on
command usage

“” 

3. The Terminal in Depth

 Command structure and format


- Command-name, options, arguments
- “man” provides the manual of how to use a certain
command eg.
 TAB button
- Press TAB once, after typing commands first letters
to auto complete
- Press TAB TAB after typing commands first letters to
to see all option
- Use “history” command to view list of commands
ran, $HISTFILESIZE stores the commands, stored in
the “.bash_history” file
 Terminal ShortCuts
Key Usage
Ctrl + a Move cursor to end
Ctrl + e Move cursor to begin
Ctrl + u Clear line
Ctrl + c Stop process
Ctrl + z Sleeping a process

 Bash history command


- Add a space infront of a command to run but to not
have it saved in the history file(for hackers, hiding
traces)=> “ who” instead of “who” command
- Use $HISTCONTROL to set bash to ignore “spaces”
during cmmnd execution so that they are recorded
in the history
-
 Root
 “ sudo su -” to switch to admin privileged account

4. The FILE SYTEM

 File systems

- FAT(file allocation table, universal format, no


security,
- NTFS ( new tech FS, default system, auditing,
security, compression )
- ReFS (resilient file sys, error correction, larger
files,dir & volumes)
 Sharing Permissions on folders
- On a shared folder,The folder perms take
precedence over the NTFS perms,  the least of the
two permissions assigned takes preference over the
other
- Best practice on a shared folder is to give “ full
control” on sharing permissions and thenthe
appropriate NTFS instruction
- (rightclick->properties->sharing)
- Full Control(all permissions + plus changing others
permissions )
- Read – read & execute
- Change- modify
- To modify each permission, you can go into
advanced settings (special permisions)
- Sub folders INHERIT permissions by default
(Advanced permissions, disable inheritance)

 File Server Resource Manager


- Install a ROLE (file & storage service-> ISCI -> FSRM)
- Can set quotas per folder, (hard or soft)
- Quota notifications if threshold reached
- Report generators
- File SCREEN (block files based on file extension
 Disk Management
- Basic disk => contains partitions
- Dynamic disk => have volume, that contain disks (up
to 32 disk)
- Importance of dynamic disk is that they can be
aggregated
- PERFORMANCE => striped or spanned volume
RAID 0, 1
- FAULT TOLERANCE => Mirrored volume(meant for
OS), RAID5, 
 Storage Pools
- Svr manger->file & Storage-> create pool{ from pool
you can now create virtual disks
- Pool > Disk > volume
- They can be build using different types of disks, (SSD
HDD)
- Zwexcvgbhjn
- Xdcfgvhbjn

 DeDuplication

- Helps for back up and restore


- Use Deduplication Evaluation Tool (install role->file
& storage->expand->enable, configure )
- Select a disk to enable
- “ddpeval” commnd used to evaluate

 Distributed File system (sort of a shared folder)


- Installation same as DDup
- Domain based (can intergrade Active Directory
- standalone namespaces (install DFS role,
- Folder dynamic replication (sharing, data collection
& distribution,
- DFS Management is found under SVR mngr->tools
once installed
- Namespace: take file from different servers , make
them appear as if they are in 1 server in a
hierarchical view
 Azure Sync
- integration by adding a storage account (Basically
Create a mapped Drive)
- Paste azure script in power shell
- Create sync group, and add a file share to it
- Download storage sync Agent to the server

5. Virtualization HYPER V

 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb

6. Virtual MACHINES

 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb
7. Storage networks

 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb

8. RECOVERY

 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb

9. Implementing WSUS

 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb

10. Implementing VPN


 Zwexcvgbhjn
 Xdcfgvhbjn
 Xcvbh
 Cgvhbjnk
 cfgvhb

11. FIREWALL (uncomplicated firewall )

 BASIC COMMANDS

- “ufw COMMAND” => list all available commands


- “apt install ufw” ==>
- ‘ufw status verbose” ==>
- “ufw enable”, ufw disable”
- “ufw default deny incoming”
- “ufw default allow ingoing”
- “ufw allow ssh”
- “ufw allow 22” => open port 22
- “ufw delete allow ssh” => remove the rule that
allowed
- “ufw allow from [Link] to any port 22”
- “ufw allow from [Link]” => allow specific IP
- “sudo ufw logging on 
-
-
-
 TASK USING OTHER LIBRARIES
- “sudo netstat -tuln | grep :22”  check service
running on 22
- sudo ss -tuln | grep :22”  check service running on
22
- “sudo lsof -i :80”  lists processes

Xcvbh
 Cgvhbjnk
 cfgvhb

Common questions

Powered by AI

RAID configurations with dynamic disks offer enhanced performance and fault tolerance; for example, RAID 0 for performance through striping, and RAID 1 or RAID 5 for redundancy and reliability. However, potential challenges include complexity in setup and management, increased cost due to additional disks, and the risk of data loss in configurations like RAID 0 since there is no redundancy. It is crucial for server administrators to carefully plan and implement these configurations to balance between performance, cost, and redundancy .

Basic disks use partitions and are simpler to set up, with each partition acting as a separate unit. Dynamic disks, on the other hand, support volumes that can span multiple disks, allowing for larger and flexible storage configurations. This is significant for server administrators because dynamic disks offer advantages such as performance improvement through striped volumes (RAID 0) and fault tolerance with mirrored volumes intended for OS (RAID 1), or even RAID 5 for enhanced data protection and redundancy .

To enhance scripting in a Linux terminal, users can leverage command history to recall frequently used commands efficiently and use terminal shortcuts for rapid navigation and command execution (e.g., Ctrl + a/e to move the cursor quickly within commands). Using 'history' and '$HISTFILESIZE' can help manage and retrieve past commands, enabling faster script development. Additionally, implementing ‘apropos’ and ‘man’ commands provides detailed command references, supporting efficient scripting .

Distributed File System (DFS) plays a crucial role in efficient data management by allowing files from multiple servers to appear as a single hierarchical file system, improving accessibility. The configuration involves installing DFS roles, setting up domain-based or standalone namespaces, which can integrate with Active Directory for better security, and ensuring dynamic replication across folders. This setup streamlines data collection and distribution, thereby enhancing data accessibility and reliability .

In a shared folder setup, the most restrictive permission between shared folder permissions and NTFS permissions will take precedence. Best practice suggests giving 'full control' on the shared folder permissions and using NTFS permissions to fine-tune access controls to ensure security while maintaining functionality. This helps ensure system integrity and protect sensitive data within a network .

Using terminal commands and shortcuts significantly increases efficiency and speed in administrative tasks, allowing server managers to execute complex operations and troubleshoot issues swiftly. Under a heavy workload, such as managing multiple servers or responding to system failures, the ability to navigate and manipulate the shell efficiently with shortcuts (e.g., Ctrl + c/z for stopping or pausing processes) is crucial. This capability can lead to reduced downtime and enhanced productivity in server management .

File deduplication improves storage efficiency by eliminating duplicate copies of repeating data, thus reducing the storage footprint and speeding up backup and restore processes. It is evaluated using the Deduplication Evaluation Tool, which helps administrators decide whether deduplication will be beneficial for a specific volume. The feature can be enabled by installing the necessary roles and using the 'ddpeval' command to assess the potential storage savings .

Linux distributions like Rocky, Redhat, Alma, and Ubuntu are tailored for servers due to their stability, robust performance, and support for enterprise applications. Factors to consider when choosing include the need for commercial support (as offered by Redhat), community support levels, hardware compatibility, security updates, and specific server functionalities. Stability and long-term support are often prioritized for choosing a server-centric Linux version .

Implementing File Server Resource Manager (FSRM) involves installing the file and storage services role, which enables features like quota management, reporting, and file screening. The FSRM allows administrators to control and monitor disk space usage through quotas, generate reports for data trends, and set file screens to prevent storage of unwanted files. This plays a significant role in managing storage resources efficiently and maintaining system performance and security .

Dynamic replication in DFS ensures that data changes are consistently synchronized across servers, enhancing access speed and data reliability. Integration with Active Directory facilitates centralized management and security through user authentication and authorization, thus improving the distribution and protection of data across the network. This combination ensures that the DFS is robust, secure, and optimally accessible .

You might also like