Your SlideShare is downloading. ×
0
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

linux

854

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
854
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
43
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. LINUX
  • 2. CONTENTS
    • Introduction
    • Install and configure linux
    • Uninstall linux
    • Commands
  • 3. INTRODUCTION
    • Linux is an operating system which enable computer hardware to run various applications
    • Linux distros are the variant of linux operating system which is ready for use by the users.
    • Every distros have unique advantages such as desktop appearance, software managenent specific applications, updates and technical support.
  • 4. INSTALL AND CONFIGURE
  • 5. DOWNLOAD THE RIGHT DISTRO
    • For a great balance of power and ease-of-use, Ubuntu Linux is recommended.
    • Ubuntu is a LiveCD version of Debian, which uses the more streamlined Gnome window manager.
  • 6.
    • To get the latest version of Ubuntu, go to www.ubuntulinux.org/download and select a mirror near you.
    • You’ll want either the 64-bit version—if you have an Athlon 64 or Pentium 4 that supports AMD64 extensions—or the Intel x86 version, for all other PC CPUs.
    VERSIONS
  • 7.
    • Now, you should prep your rig for the actual install. Ubuntu can be installed on a spare hard drive. A 20GB drive will provide more than enough space.
    • Ensure that your mobo is set to boot from the optical drive and dropping the Ubuntu disc into the drive, then restarting your computer.
    • When the PC boots, you’ll be presented with the screen shown on the right. To start the install, just type “install” and press Enter.
    Entering the installation...
  • 8.
    • Now the Ubuntu installer ask information about your system—the language you want to use, the type of keyboard , and the kind of hardware.
    • Once the installer collects info about your hardware, and configures the network adapter, you’ll need to assign a hostname.
    • Your hostname can range from your actual name to a character.
    • Once you’ve selected a hostname, you’ll proceed to disk partitioning.
    Language preference
  • 9.  
  • 10.
    • The Ubuntu installer will install the grub boot manager, automatically configure it to work with any other OSes you have installed, and restart your computer.
    • When you restart, you’ll need to choose your time zone, and then you’ll create a user account.
    • Enter your full name, your desired username, and a secure password.
    Time zone preference
  • 11.  
  • 12.
    • Instead of having the all-powerful root, Ubuntu gives the account you create during the install permission to use “sudo,” which provides your account with temporary root-like privileges.
    • If you’re following online instructions that require root privs, you can run the commands on your Ubuntu install by prefacing the command with sudo.
    • For example, if you need to edit your fstab file, you’d type sudo nano /etc/fstab instead of nano /etc/fstab.
  • 13. PARTITION UR DISK
    • Every partition on every hard drive in a Linux machine is given a unique name.
    • The formula for names works like this: Parallel ATA hard drive names start with “hd”, SCSI, SATA, USB, and FireWire drive names start with “sd”.
    • The next character in each drive’s name is a letter, which tells you which physical drive a partition is on. For example, the first SATA drive in a system will be “sda”, the second will be “sdb”.
  • 14.
    • After the letter will be a number. This number indicates the partition on a particular drive, so “sdb1” is the first partition on the second SATA drive in the system. (To get an Ubuntu system working, you shouldn’t need to know any of this, but a little knowledge never hurts.)
    • If you’re going to wipe an old drive and use it for your Linux drive, you can do that by using the “Erase entire disk” option and selecting the appropriate size disk.
  • 15.
    • Once you’ve created your account, the installer will configure apt-get , the package management application that Ubuntu shares with Debian.
    • Ubuntu developers maintain several huge repositories of software that is preconfigured to run perfectly on Ubuntu.
    apt-get
  • 16.
    • Your last task is to select the resolutions your desktop will run at. When choosing your resolution, make absolutely certain you don’t select any options your monitor can’t display.
    • If you goof, you won’t be able to boot into the GUI, and you’ll have to either manually tweak the text file that configures your display or reinstall from scratch. You probably don’t want to do either.
    Resolutions
  • 17.
    • You can select as many resolutions as you wish, but Ubuntu will default to the highest resolution when you boot the first time. Once you select your setting, the machine will reboot again, and the install will be done!
    • Everything you need to use your computer on the web, for email, or for basic office tasks is available to you out of the box.
  • 18.
    • Generally you would get Linux software in the tarball format (.tgz)
    • This file has to be uncompressed into any directory using tar command. In case you download a new tarball by the name game.tgz, then you would have to type the following command
    • $ tar xfvz game.tgz
  • 19. $ ./configure
    • This would create a directory within the current directory and unzip all the files within that new directory.
    • Once this is complete the installation instructions ask you to execute the 3 (now famous) commands : configure, make & make install.
    • Each software comes with a few files which are solely for the purpose of installation sake. One of them is the configure script. The user has to run the following command at the prompt
    • $ ./configure
  • 20.
    • The command makes the shell run the script named ' configure ' which exists in the current directory.
    • The configure script basically consists of many lines which are used to check some details about the machine on which the software is going to be installed.
    • This script checks for lots of dependencies on your system. For the particular software to work properly, it may be requiring a lot of things to be existing on your machine already.
    • When you run the configure script you would see a lot of output on the screen , each being some sort of question and a respective yes/no as the reply.
  • 21.
    • If any of the major requirements are missing on your system, the configure script would exit and you cannot proceed with the installation, until you get those required things.
    • The main job of the configure script is to create a ' Makefile ' .
    • This is a very important file for the installation process.
    • Depending on the results of the tests (checks) that the configure script performed it would write down the various steps that need to be taken (while compiling the software) in the file named Makefile.
  • 22. $make
    • If you get no errors and the configure script runs successfully (if there is any error the last few lines of the output would glaringly be stating the error) then you can proceed with the next command which is $ make
    • ' make ' is actually a utility which exists on almost all Unix systems.
    • For make utility to work it requires a file named Makefile in the same directory in which you run make. As we have seen the configure script's main job was to create a file named Makefile to be used with make utility.
  • 23.
    • make would use the directions present in the Makefile and proceed with the installation. The Makefile indicates the sequence, that Linux must follow to build various components / sub-programs of your software. The sequence depends on the way the software is designed as well as many other factors.
    • The Makefile actually has a lot of labels (sort of names for different sections). Hence depending on what needs to be done the control would be passed to the different sections within the Makefile Or it is possible that at the end of one of the section there is a command to go to some next section.
  • 24.
    • Basically the make utility compiles all your program code and creates the executables.
    • For particular section of the program to complete might require some other part of the code already ready, this is what the Makefile does.
    • It sets the sequence for the events so that your program does not complain about missing dependencies.
    • One of the labels present in the Makefile happens to be named ' install ' .
  • 25. $make install
    • If make ran successfully then you are almost done with the installation. Only the last step remains which is $ make install
    • As indicated before make uses the file named Makefile in the same directory. When you run make without any parameters, the instruction in the Makefile begin executing from the start and as per the rules defined within the Makefile.
  • 26.
    • But when you run make with install as the parameter, the make utility searches for a label named install within the Makefile, and executes only that section of the Makefile.
    • The install section happens to be only a part where the executables and other required files created during the last step (i.e. Make) are copied into the required final directories on your machine.
    • E.g. the executable that the user runs may be copied to the /usr/local/bin so that all users are able to run the software. Similarly all the other files are also copied to the standard directories in Linux.
    • Remember that when you ran make, all the executables were created in the temporary directory where you had unzipped your original tarball. So when you run make install, these executables are copied to the final directories.
  • 27. UNINSTALL LINUX
  • 28.
    • Uninstalling an operating system usually means leaving your machine unbootable
    • Operating systems will not work without their boot files or if they are never called by the bootloader.
    • Therefore, to remove the presence of an operating system, it is enough to dereference is from the bootloader menu.
    • Alternatively, you can also delete its files or replace them with another operating system
  • 29. LINUX COMMANDS
  • 30.
    • cd command
    • To change directories
    • Type cd followed by the name of a directory to access that directory.
    • Keep in mind that you are always in a directory and allowed access to any directories hierarchically above or below.
    • You may also benefit from reviewing my directory commands page.
    • Ex: cd games
    • If the directory games is not located hierarchically below the current directory, then the complete path must be written out.
    • Ex: cd /usr/games
    • To move up one directory, use the shortcut command.
    • Ex: cd ..
  • 31. Clear command
    • clear the command prompt
    • Type clear to clean up your command prompt window.
    • This is especially helpful when you are typing lots of commands and need a clean window to help you focus. Ex:clear
    • This is also useful when you are getting ready to type a rather long command and do not wish to become confused by other details on the screen.
  • 32. df command
    • check disk space
    • Typing df provides a very quick check of your file system disk space.
    • Type df -h to get a more easily readable version of the output. Notice that this command will include all applicable storage such as your hard disk/s (hda, hdb etc.) and your server SWAP file (shm).
    • To list disk space including filesystem
    • type: df -h -T
  • 33. finger command
    • to see who's on the system
    • Typing finger allows you to see who else is on the system or get detailed information about a person who has access to the system.
    • Type finger followed by the name of a user's account to get information about that user. Or, type finger and press enter to see who's on the system and what they are doing.
    • Ex: finger johndoe
  • 34. ls command
    • list files and directories
    • If you’re in the directory named games and you type ls, a list will appear that contains files in the games directory and sub-directories in the games directory.
    • Examples: ls Mail
    • ls /usr/bin
  • 35. ..continued
    • ls -alt list all files (including .rc files) and all directories located in the current directory. The listing will include detailed, often useful information.
    • Examples: ls -alt /usr/bin
    • If the screen flies by and you miss seeing a number of files, try using the |more at the end like:
    • ls -alt |more
  • 36. ...continued
    • * In Bash (Linux shell) often the abbreviated command L is available.
    • To get a verbose listing of files and directories you could therefore simply type: l
  • 37. man command
    • pull up information about a Linux command .
    • Ex: man ls
    • Type man -k followed by a word to list all of the commands and descriptions that contain the word you specified.
    • Ex: man -k finger
  • 38. more command
    • read the contents of a file
    • Why do we exmphasize using this on a "text" file? Because most other types of files will look like garbage!
    • Ex: more testfile.txt
  • 39. nano
    • start a text editor
    • Type nano followed by the filename you wish to edit.
    • However, it is very important that you also learn about other text editors available on Linux and UNIX systems.
  • 40. passwd
    • change your current password
    • Type passwd and press enter. You'll see the message Changing password for yourname.
    • At the Old password: prompt, type in your old password .
    • Then, at the Enter new password: prompt, type in your new password .
    • The system double checks your new password. Beside the Verify: prompt, type the new password and press again.
  • 41. pwd
    • list the name of your current directory
    • Type pwd and hit enter. You'll see the full name of the directory you are currently in.
    • This is your directory path and is very handy. This is especially handy when you forget which directory you’ve changed to and are trying to run other commands.
  • 42. Logout command
    • quit using the system .
    • Type logout at the prompt to disconnect from your Linux machine or to logout a particular user session from the system.
    • Although rudimentary, leaving your critical account logged on may be a security concern. use logout when you are finished using your root account!
    • Ex: logout
  • 43. mv command
    • mv - move (rename) files
    • SYNOPSIS
    • mv [OPTION]... [-T] SOURCE DEST
    • mv [OPTION]... SOURCE... DIRECTORY
    • mv [OPTION]... -t DIRECTORY SOURCE...
    • EXAMPLE
    • mv examples.tar move.tar
    • DESCRIPTION
    • Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
  • 44. ....continued
    • Here are options available with Linux mv command:
    • -b - like --backup but does not accept an argument
    • -f, --force - do not prompt before overwriting
    • -i, --interactive - prompt before overwrite
    • --strip-trailing-slashes - remove any trailing slashes from each SOURCE
    • argument
    • -S, --suffix=SUFFIX - override the usual backup suffix
    • -t, --target-directory=DIRECTORY- move all SOURCE arguments into DIRECTORY
  • 45. ....continued
    • -T, --no-target-directory - treat DEST as a normal file
    • -u, --update - move only when the SOURCE file is newer than the destination file or when the destination file is missing
    • -v, --verbose explain what is being done

×