A Seminar Report On. Linux Administration and Server Configuration

Similar documents
Please choose the best answer. More than one answer might be true, but choose the one that is best.

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

client X11 Linux workstation

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

CHAPTER - 1

Perl and R Scripting for Biologists

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

Computer Architecture Lab 1 (Starting with Linux)

Using grub to Boot various Operating Systems

FastTrack to Red Hat Linux System Administrator Course Overview

"Charting the Course... MOC B: Linux System Administration. Course Summary

EKT332 COMPUTER NETWORK

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

Exam LFCS/Course 55187B Linux System Administration

Fedora Core: Made Simple

Introduction to Linux

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

CENG 334 Computer Networks. Laboratory I Linux Tutorial

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

Introduction to the UNIX command line

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

Installing caos with Cinch on Floppy Disk

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

Certification. RPM, Boot Loaders, and Kickstart

Basic Linux Command Line Interface Guide

Course 55187B Linux System Administration

Linux Nuts and Bolts

Utilities. September 8, 2015

Linux Essentials Objectives Topics:

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

TJU Syllabus for Linux Fundamentals and Applications

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Linux Command Line Primer. By: Scott Marshall

SysadminSG RHCSA Study Guide

Basic Linux Command Line Interface Guide

Installation Tools for Clusters. Rajesh K., Computer Division, BARC

Introduction: What is Unix?

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Week 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands

LINUX FUNDAMENTALS (5 Day)

Introduction to Linux Environment. Yun-Wen Chen

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

Contents at a Glance COPYRIGHTED MATERIAL. Introduction...1 Part I: Becoming Familiar with Enterprise Linux...7

Introduction to remote command line Linux. Research Computing Team University of Birmingham

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

The student will have the essential skills needed to be proficient at the Unix or Linux command line.

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

RedHat. Rh202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs)

RH202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) Exam.

Lab 1 Introduction to UNIX and C

Practical Session 0 Introduction to Linux

Introduction To Linux. Rob Thomas - ACRC

Performing Maintenance Operations

Introduction to Linux

NETW 110 Lab 3 Post-Installation Configuration Page 1

CS CS Tutorial 2 2 Winter 2018

Requirements for ALEPH 500 Installation

Lab 3a Using the vi editor

Linux Fundamentals (L-120)

LPI Linux-Linux Networking Administration. Download Full Version :

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Computer Center, CS, NCTU. Outline. FreeBSD version 9.0-RELEASE 9.1-RC1. Installing FreeBSD. From CD-ROM From USB

Installation of the OS

Short Read Sequencing Analysis Workshop

Introduction to Linux

Notes on Using Red Hat Enterprise Linux AS (v.4 for EM64T)

LPIC-1 System Administrator

Part I. Introduction to Linux

Lab E2: bypassing authentication and resetting passwords

Linux Administration

1Z Oracle Linux 5 and 6 System Administration Exam Summary Syllabus Questions

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

UNIT 9 Introduction to Linux and Ubuntu

Lab 1: Introduction to Linux Networking

ITEC451 Network Design & Analysis Laboratory Guide: Appendix

Notes on Using Red Hat Enterprise Linux AS (v.3 for x86)

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

List of Linux Commands in an IPm

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

RH133. Red Hat Linux System Administration

LAB #7 Linux Tutorial

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

Prerequisites: Students should be comfortable with computers. No familiarity with Linux or other Unix operating systems is required.

Setting up and running the pyrophosphate tools under the Knoppix GNU Linux system

Prerequisites: Students must be proficient in general computing skills but not necessarily experienced with Linux or Unix. Supported Distributions:

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX

Linux Home Lab Environment

Ftp Command Line Commands Linux Example Windows Put

The Lecture's aim A preparation for the installation party: Prepare your computer for the installation Know what's going to happen Understand what's g

1 LINUX KERNEL & DEVICES

Lab Working with Linux Command Line

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Computer Systems and Architecture

The Linux IPL Procedure

CST8177 Linux II. Linux Boot Process

Transcription:

A Seminar Report On Linux Administration and Server Configuration Birla Institute of Technology Mesra (Ranchi) Extension Centre, Jaipur 2004 Submitted in partial fulfillment for Vth Semester Submitted By: Vinay Sharma Vijay Mahawar Submitted To: Shri. Ashutosh Gupta Submitted to: Birla Institute of Technology, Mesra (Ranchi) Extension Centre, Jaipur

2 of 13 CERTIFICATE This is to certify that the following student of BIT, Mesra (Ranchi), Extension Centre, Jaipur of M.C.A. Vth Semester have given seminar on LINUX ADMINISTRATION AND SERVER CONFIGURATION Students Name Vijay Mahawar Vinay Sharma (7MCA/5128/02) (7MCA/5129/02) Shri. Ashutosh Gupta (Faculty in-charge) (Internal Examiner) (External Examiner)

3 of 13 ACKNOWLEDGEMENT The following persons have provided a great deal of moral support and great help without which the seminar wouldn t have been a success. 1. Shri. Ashutosh Gupta 2. Shri. Vivek Gaur 3. Miss. Shweta Mahlawat We extend our sincere thanks to them for their valuable support, cooperation and time. We also take this opportunity to thank our friends and batch mates for their valuable suggestions and ideas. Finally, we would like to convey our heartiest thanks to our family members to provide the necessary moral support which was instrumental in this. Developed By Vijay Mahawar Vinay Sharma Signature

4 of 13 CONTENTS S. No TOPICS Page No. 1. INTRODUCTION... 5 2. UTILITIES AND IMPORTANT COMMANDS... 8 3. CONFIGURATION FILES... 9 4. TELNET SERVER CONFIGURATION... 10 5. FTP SERVER CONFIGURATION... 11 6. LINKS AND FAQs... 12

5 of 13 1) Introduction: Linus Torvalds, a Finnish college student created Linux Kernel in 1991. How to Pronounce Linux? Pronouncing the word Linux is one of the great controversies of the Linux world. Americans pronounce the proper name Linus with a long i sound, as in style. However, because Linux was originally based on a small, PC-based implementation of UNIX called Minix (pronounced with a short i), the actual pronunciation of Linux preserves this characteristic: It's officially pronounced "LIH nucks." Linux Vs UNIX Linux is not UNIX, as UNIX is a copyrighted piece of software that demands license fees when any part of its source code is used. Linux was written from scratch to avoid license fees entirely, although the operation of the Linux operating system is based entirely on UNIX. It shares UNIX's command set and look-and-feel, so if you know either UNIX or Linux, you know the other, too. Distributions of Linux: The Fedora Project: RedHat-sponsored community effort OS. Mandrake Debian TurboLinux Slackware SuSE Knoppix: distribution that runs from a CD, you don't need to install anything for this one. Hardware Requirements for Linux Installation: Linux, a clone of the UNIX operating system that runs on machines with an Intel 80386 processor or better, as well as Intel-compatible CPUs, such as AMD and Cyrix. Linux is a free, UNIX work-alike designed for Intel processors on PC architecture machines. 1) The hardware requirements for Linux include at least an 80386 processor, a minimum of 100MB of disk space, 4MB of RAM and a 3.5-inch floppy drive. 2) The swap space on Linux is an area on the disk used by Linux as a scratch area when working with lots of processes. 3) You will need 8MB of RAM to get X Window to run with an acceptable degree of performance. Current application of Linux systems: Today Linux has joined the desktop market. On the server side, Linux is well-known as a stable and reliable platform, providing database and trading services for companies like Amazon, the well-known online bookshop, US Post Office, the German army and such. Especially Internet providers and Internet service providers have grown fond of Linux as firewall, proxy- and web server. Clusters of Linux machines are used in the creation of movies such as "Titanic", "Shrek" and others.

6 of 13 It is also worth to note that modern Linux not only runs on workstations, mid- and high-end servers, but also on "gadgets" like PDA's, mobiles, a shipload of embedded applications and even on experimental wristwatches. This makes Linux the only operating system in the world covering such a wide range of hardware. Quickstart Commands Command ls cd directory Passwd file filename cat textfile Pwd exit or logout man command info command Meaning Displays a list of files in the current working directory, like the dir command in DOS change directories change the password for the current user display file type of file with name filename throws content of textfile on the screen display present working directory leave this session read man pages on command read Info pages on command apropos string search the whatis database for strings Overview of DOS/Linux commands As an extra means of orientation for new users with a Windows background, the table below lists MS-DOS commands with their Linux counterparts. Keep in mind that Linux commands usually have a number of options. Read the Info or man pages on the command to find out more. DOS commands Linux command <command> /? man <command> cd cd chdir pwd cls clear copy cp date date del rm dir ls echo Edit Exit fc Find format mem mkdir more echo vim (or other editor) exit diff grep mke2fs or mformat free mkdir more or even less

7 of 13 DOS commands Linux command move mv Ren mv time date RPM packages RPM, the RedHat Package Manager, is a powerful package manager that you can use to install, update and remove packages. It allows you to search for packages and keeps track of the files that come with each package. A system is built-in so that you can verify the authenticity of packages downloaded from the Internet. Advanced users can build their own packages with RPM. An RPM package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages. Many other distributions support RPM packages, among the popular ones Mandrake and SuSE Linux. Apart from the advice for your distribution, you will want to read man rpm. Most packages are simply installed with the upgrade option, -U, whether the package is already installed or not. The RPM package contains a complete version of the program, which overwrites existing versions or installs as a new package. The typical usage is as follows: rpm -qa grep vim (queries to check vim is installed or not) rpm -Uvh totem-0.99.5-1.fr.i386.rpm (updates totem package) rpm -ivh xmms.i386.rpm (Installs xmms packages) Backup commands Command Meaning bzip2 A block-sorting file compressor. cdrecord Record audio or data Compact Disks from a master. dd Convert and copy a file fdformat Low-level formats a floppy disk. gzip Compress or expand files. mcopy Copy MSDOS files to/from UNIX. mdir Display an MSDOS directory. mformat Add an MSDOS file system to a low-level formatted floppy disk. mkbootdisk Creates a stand-alone boot floppy for the running system. mount Mount a file system (integrate it with the current file system by connecting it to a mount point). tar Tape archiving utility, also used for making archives on disk instead of on tape.

8 of 13 Command umount Unmount file systems. Meaning 2) Utilities: a) netconfig netconfig is used to set IP address to a computer. Example: netconfig service network restart b) ifconfig ifconfig is used to configure and set IP addresses on network. Example: ifconfig c) ping The ping (Packet Internet Groper) program is used to query another system and ensure a connection is active. Examples: ping 192.168.0.1 d) chkconfig chkconfig is used to set the services at boot time and makes them persist across boots by changing the definition of the run levels. Examples: chkconfig -list chkconfig kudzu --list chkconfig kudzu off

9 of 13 3) Configuration Files: Files Details a) /etc/hosts It is a simple list of IP addresses and the hostnames to which they correspond. 127.0.0.1 localhost.localdomain localhost 192.168.0.1 server1.example.com server1 b) /etc/networks It lists names and IP address of your own network and other networks you connect to frequently. This file is used by the route command. c) /etc/inittab init is the parent of all processes. This file contains information on how init should set up the system in every run level, as well as the run level to use as default. d) /var/log/dmesg It contains a snapshot of the kernel messages taken just e) /etc/lilo.conf or /boot/grub/grub.conf after control is passed to init. Boot loader files

10 of 13 4) Telnet Server Configuration: Telnet is used to connect to remote computer using its IP address or name. Port: 23 Files: /etc/xinet.d/telnet Services: xinetd Server Side Client Side 1) Install Package for Telnet Server. 1) telnet 192.168.0.1 2) Open file /etc/xinetd.d/telnet and make 2) Login Name: tut2 appropriate changes. Password: 3) Restart the xinetd service. Miscellaneous Parameters to restrict and allow certain computers: host_allow = IP address or hostname no_access = IP address or hostname

11 of 13 5) Ftp (File Transfer Protocol) Server Configuration: FTP is used to upload and download files from remote computer depending upon the access rights set in the configuration files. Port: 21/tcp (ftp), 20/tcp (ftp-data) Packages: vsftpd, anonftp (where vs stands for very secure ) Files: /etc/vsftpd/vsftpd.conf, /etc/vsftpd.user_list, /etc/vsftpd.ftpusers Services: vsftpd We have two levels user access: a) Anonymous access: Users can log in as user ftp or as user anonymous to get access to an anonymous ftp site. By default gets logged into /var/ftp directory. b) User access: Users with4 accounts on the target system can connect via ftp and log in using their username and password. By default they get logged into their home directory in /home. Server Side Client Side 1) Install Package for Ftp Server. 1) ftp 192.168.0.1 2) Open file /etc/vsftpd/vsftpd.conf 2a) Anonymous and make appropriate changes. Login 3) Create required directory in 2b) User Login Login Name: tut2 Password: /var/ftp with appropriate permission. 4) Restart the vsftpd service. 3) Use ftp commands like get and put to download and upload files. Login Name: anonymous Password:

12 of 13 6) Links and FAQs: 1) How to restore original DOS MBR? If you want to restore the MBR to the original DOS MBR, you can use the following procedure: Step 1: Boot from a DOS floppy. Step 2: Run fdisk /MBR from the DOS prompt. (You can also use the command SYS C:.) Step 3: Reboot. 2) Help! I lost my MBR? Boot using your Linux CD#1, type linux rescue at the boot-prompt and press Enter. After a few simple questions, the Linux kernel will mount an image of your filesystem at /mnt/sysimage. This following sequence of commands will then return you to glory: chroot /mnt/sysimage lilo exit If you use GRUB, use grub-install /dev/hda instead of the lilo command. 3) How to avoid Repartitioning? If it is not possible to repartition the hard-disk and if the last partition in the disk (Whether primary or logical) is FAT 16/32 with plenty of free space, a simple solution as outlined underneath is available: Let s presume that the last partition s number is N. After you have determined the value of N, boot with Linux CD#1 and enter linux rescue at the boot-prompt. When setup drops you into a shell: parted /dev/hda # at the parted prompt print Let s say parted reports the starting and ending values for the last partition as nstart and nend respectively (Both in MB) to Free 2000MB: resize <N> <nstart> <nend 2000> # at the parted prompt quit # at the parted prompt exit (If the last partition is logical, you will have to issue the resize command twice: once for the logical partition and once for the extended partition) 4) Sources for References, tutorials, help, HOWTO Documents. Books: Red-Hat Linux Unleashed UNIX: Concepts and Applications by Sumitabha Das. The UNIX Programming Environment by Brian Kernighan & Rob Pike. Websites: http://www.linuxquestions.org/ http://www.linuxjournal.com/topics.php/ http://www.rhce2b.com/ http://www.redhat.com/ FTP Site: ftp://sunsite.unc.edu/pub/linux/ Linux Journal:

13 of 13 The Linux Journal is a commercial publication dedicated to Linux. It covers the entire gamut of Linux topics, ranging from material suitable for newcomers to the operating system to very complex programming. The Linux Journal has a home page, accessible through: http://www.ssc.com/ (Specialized System Consultants Inc.) http://www.linuxjournal.com/ Thank You Vijay Mahawar (7MCA/5128/02) vmahawar@gmail.com Vinay Sharma (7MCA/5129/02) vinaysharma_jpr@hotmail.com