What Is The Linux Operating System

June 29, 2008 General Articles | Comments (0) admin @ 2:37 am

A brief Introduction to the history of Linux and some important command prompts to get you started.

Linux, a UNIX clone, is an operating system that embodies the concept of complete transparency. One of the most important aspects of Linux is that it has been developed and supported by its users, making it relatively easy to get your hands on one of the many free Linux distributions. But although Linux is growing in popularity, there are still people who consider this operating system a toy or pet; something to play with, but not to be taken seriously. Until recently, Linux was reserved for self avowed hackers and enthusiasts. This was mainly because Linux was not very user-friendly. Now, with an intuitive graphical user interface or GUI, Linux is as user friendly as Windows. You do not need to be a rocket scientist to use Linux with the GUI. In fact, a Linux Desktop looks much like a Windows Desktop (with a few added features). Linux has at least a dozen different highly configurable graphical interfaces, which runs on top of a Xfree86.

In 1969, AT&T Bell Laboratories introduced the UNIX operating system. This was based on the C Language. Many know C as a language used in programming. Today, a wide variety of languages including C++, Java, Perl, and C Sharp are also available. Originally, UNIX was released for free to universities. UNIX is the basis for several clones, including Linux and DSB. Richard Stallman founded the GNU Project in 1984. This project was created for free distribution. This was in stark contrast to the Microsoft-style licenses that restricted distribution and modification. Richard’s ultimate goal was to create a complete UNIX-like operating system using a server set called HURD. It was not until 1989 that the GNU project released their free license. This license was to be known as the General Public Licence (GPL). Linux would eventually be released under this license.

Tim Berner-Lee, who was working as a researcher at CERN, developed hypertext Markup Language in 1990. And thus, the World Wide Web was created. One year later in 1991, an undergraduate computer Science major at the University of Helsinki, Finland, began developing a new operating system. His name: Linus Torvalds. The system would later become known as Linux. Linux kernel 0.02 was the first public release. Kernel 0.11 followed shortly and 0.95 was released soon after in 1992. Kernel 0.95 came very close to being a fully featured kernel. Two years layer, kernel 1.0 was publicly released.

KDE is a well-known graphical interface found with most Linux Systems today. The KDE project was founded in 1996. Linux was now accessible to the general computer user. Before KDE, it was very difficult to use Linux unless you were an expert. By 1997 saw the release of Linux Kernel 2.0 the GIMP version 1.0. GIMP is a graphics program that can certainly rival Adobe Photoshop. In the following two years Linux grew so rapidly Eric S. Raymond revealed in the so-called Halloween Documents that the new open source movement seriously threatened Microsoft. It is hard to believe, but GNOME 1.0 and KDE version 1.1 were only released in 1999 and Red Hat Software had only filed their preliminary papers for an initial public offering.

Today, Linux is used by both business and home-users alike. It can run on various Intel, Apple, palmtop PDA and AMD based hardware from the 386 up. Most Linux Distributions (free /not) come crammed with loads of free software. Some of the more common software that come with most Linux Packages include Graphical User Interfaces like GNOME and KDE, graphical editing facilities such as the popular GIMP (Graphics Image Manipulation Program), Development tools (Compilers and debuggers), office products and games.

Now that we have been thoroughly versed on the history of Linux, I would like to take you into the Linux System. This is no way an epic journey into Linux. That would take far too long, we will just be scraping the surface of a very complex operating system.

First and foremost, it is important to get to know a few terms that will crop up whenever Linux is discussed.

The two most popular graphical interfaces are KDE and GNOME. As I mentioned earlier, the first graphical interface introduced by Linux was KDE (Common Desktop Environment). This is the industry standard for Linux. GNOME is the latest user interface.

When exploring your Linux System through the shell (a window similar to the DOS Prompt), there are some directories and commands you will need to know. One thing you will notice about the command prompt and terms used by Linux; they are very literal. As an example consider the mount and umount commands. Mount is used literally the command to mount the disk be it the CD-ROM, Floppy or hard drive. And Umount; dismounts. So it is not difficult to decipher some of the commands.

To begin with, type “ls”. This command is the same as the “dir” command in DOS. If you type “ls –al”, you get a line for line listing of the directory with permissions, type and size. You will see the boot directory listed here (if you are in c:/) This is where your operating system will boot. The /etc directory contains all the config files. Do not mess around here. To enter the /etc directory, you would type /etc/.

When you type cd /home you will be taken back to the home directory. CD is the same as in DOS; change directory. You would treat it the same as in DOS. /Lost + Found is an interesting directory. Anything that Linux does not know what to do with lands up here. The /mnt directory contains all the mounted devices. /lib is your library, all c and c++ libraries sit here. DO NOT FIDDLE with this directory, you land up with a mess on your hands. All programs that have output can be found in either the /opt , /bin , or /usr/bin directory and process information is found in the /proc directory. /temp, holds your temporary files. This is one of the greatest features of Linux, as the temp directory is very controlled. You will find the event log at /var.

Remember to log on as “root” if you want to make any changes to your system. This includes directory permissions. Linux has a very simple, but efficient permissions system that, as root, you can easily modify.

Let us look at an example of permissions set on a directory or folder:

d rwx r-x r-x

This can be read to mean the following

D = what you are dealing with. In this case, it is a directory

The second set of permissions applies to the owner of that directory (rwx). Here the owner has Read, Write and execute permissions. The next set (r-x) applies to the group. In this case the group has only Read and Execute permissions. The final set of permissions (r-x) belongs to any other users. To help you understand how to change permissions, we will make a directory.

Type:

Mk dir test

The word test, is the name of the directory. You may give it any name you wish)

Permissions are set with an octal weight. The weights are as follows:-

READ = 4

WRITE = 2

EXECUTE = 1

That is a total weight of 7. To allow all permissions on the new directory, you would type:-

Chmod 777 test

Explanation:

CHMOD = change mode

777 = Full permission

test = directory name

You would now see the directory listed like this:- d rwx rwx rwx.

Typing 757 (instead of 777) would allow read, write and execute, read and execute, read, write and execute (rwx r-x rwx). You can modify permissions by changing these numbers. Remember that each number pertains to it’s particular user group (owner, group or other). The numbers are divided into these three groups.

Owner Group Others

7 7 7

Rwx Rwx Rwx

4 + 2 +1 4 + 2 +1 4 + 2 +1

To change permission, you would subtract the relevant octal weight.

i.e

Rwx R-x Rwx

4 + 2 +1 4 +1 4 + 2 +1

7 5 7

Therefore, the command would read chmod 757test

Now we will change the ownership of this directory:

Chown me test

Explanation:

Chown = change owner

Me = new owner’s name (this you would have to decide on)

Test = directory name

To change a group the command line would read “chgrp”, inserting the new group’s name.

Linux is full of possibilities and it is open for you to explore. If you are running the SuSE version of linux, take time to look at YAST (Yet Another Setup Tool). I am not joking; it is really called that. You can add users, install programs and change configurations. Only root has access to YAST and SAX. Sax is used to set up your display and mouse. These things should have been done on installation, but if you need to make changes or run into problems, this is where you should begin looking.

Have a great time exploring Linux: you will soon find yourself hooked.

Written by Sandra D Shirlow.

Linux Training - Linux Installation Help - Linux Live CDs & Linux Installation CDs - Pros and Cons

June 26, 2008 Linux Certifications | Comments (0) admin @ 11:51 pm

You get real, practical Linux training when you get Linux running on a computer system, and you work with it to get experience.

Once you get the Linux OS (operating system) running, you can learn how to use Linux desktops, run Linux software programs, and most importantly, go to the Linux command line to run Linux commands - the real power behind Linux system administration. Two popular methods of getting to work with the Linux OS are:

1. Install Linux from CD or DVD onto the hard disk in a system

2. Boot and run Linux from Linux live CDs or DVDs (without installing Linux)

Here are some of the pros and cons of installing Linux on a system and running Linux from a live CD or DVD.

Linux Live CDs - Pros

1. The Linux OS boots and runs in just a few minutes entirely from a single Linux live CD (or DVD).

2. A lengthy Linux installation is not required. You don’t need to provide a lot of settings to the Linux installation routine and then wait while the Linux OS and Linux software programs are copied onto the hard disk.

Also, if you install Linux on Windows, you need to back up your system before you do and you may damage your Windows setup during the Linux installation - or if you remove Linux later!

3. You only need to get 1 Linux live CD or DVD, as opposed to possibly needing several when you install Linux. Therefore, if you download Linux to burn a Linux ISO file to CD / DVD, you only need to wait while 1 Linux CD / DVD is downloaded.

4. Linux live CDs / DVDs are very inexpensive. If you don’t want to download Linux as a live CD / DVD, you can order one and have it mailed to any location on the planet for a very small amount of money. Just run your browser and do a search for “list of linux cds” or “list of linux dvds”.

Linux Tips: If you are going to buy a Linux live version and you have a DVD drive, get a Linux live DVD rather than a CD. A DVD holds about six times as much as a CD. Therefore, you’ll get lots (and lots) more Linux software programs on a DVD!

5. A Linux live CD can easily be removed and taken anywhere. Portable Linux!

6. You can save your work (data files) - if you get the right Linux live CD or DVD.

Linux Tips: Before getting a Linux live CD / DVD, do some research to make sure you can save your work. Some Linux live distros let you save your data and some don’t. For example, the Ubuntu Linux live CD allows you to save your work to a USB flash drive.

Linux Live CDs - Cons

1. Although booting from a Linux live CD / DVD is faster than doing a complete Linux installation, you still need to wait while your system boots from the live CD / DVD, every time your system starts. If you usually keep your system turned on, this isn’t an issue.

2. You may not be able to save your work. Some Linux live CD / DVD distros allow you to save your work and some don’t.

3. You need to boot from the Linux live CD / DVD every time your system starts. This may not be very convenient if you need to put other CDs or DVDs in the drive while running Linux “live”. Any time you need to put something in your drive, you have to remove the live CD / DVD. This also increases the likelihood that your live CD or DVD will become damaged.

Linux Tips: Keep a copy of your current Linux live CD handy in case your working copy becomes damaged.

Either way, installing Linux or using Linux live CDs (or Linux live DVDs), is an excellent way to get Linux training so you can learn how to use Linux.

Written by Clyde Boom.

Linux Training - Linux Installation Help - Linux Installation CDs vs. Linux DVDs

June 25, 2008 Linux Certifications | Comments (0) admin @ 2:03 am

You need to learn how to use Linux. And the best way to get Linux training is to work with it and get real, practical Linux experience. There are lots of different ways to get Linux, and lots of different versions of Linux to choose from!

You can get a version of Linux, also known as a Linux distribution (or distro for short), on CD or DVD. You can also download a Linux ISO file and burn it to CD or DVD yourself. Linux Tips: If you decide to download Linux as a Linux ISO file, keep in mind that these files are very large. Linux CD ISO files are about 700 MB and Linux DVD ISO files are about 4 GB (almost six times the size of a CD!). Therefore, only download Linux if you have high-speed Internet access.

Linux Tips: You can do an Internet search for “list of linux cds” or “list of linux dvds” and buy the Linux OS and have it delivered to you by mail very cheaply.

Some Linux distros are available as “installation” versions and some are available as “live” versions - and some are available as both!

An installation version of Linux may be on just a one CD / DVD or it may require more than one. However, a Linux live CD or a Linux live DVD version consists of just a single CD or DVD.

Linux Installation Versions

You boot a computer system with a Linux installation CD / DVD to run the Linux installation routine and install Linux on a system. This could be a system that doesn’t have an operating system on it - or it could be one that does have an operating system on it, such as the Windows operating system.

If you install Linux on Windows, you create a “dual boot” (Linux and Windows) system. Then after the Linux installation, you can either boot the system into Windows or boot it into Linux, but not both at the same time.

When you install Linux from CD or DVD onto a computer system, you run the Linux installation routine and do several steps to put the Linux OS and Linux software programs on the hard disk in a system permanently, although you can remove Linux later if you need to.

After you install Linux, you boot to Linux from the hard disk in the system. At this point, the Linux desktop appears and you can do a few simple steps to open a terminal emulation window. This allows you to go to the Linux command line so you can run Linux commands - the best way to learn how to use Linux.

Linux Live Versions

Linux live CDs or DVDs are used to run Linux “live”, for as long as the power is turned on.

To run a Linux live version, you set your system up to boot from the live CD or DVD. Then you start your system with the Linux live CD / DVD in your drive. No installation is required!

After you boot with a Linux live CD / DVD, the entire Linux OS (operating system) boots and runs automatically. At this point, you see a Linux desktop on the screen and you can run Linux software programs.

At the Linux desktop, you can also do the steps to open a terminal emulation window. This allows you to work at the Linux command line as the root user and run Linux commands. And learning to run Linux commands is the best way to learn how to use Linux and do Linux system administration.

Written by Clyde Boom.