Nov 21, 2009

Linux Info/howto - Info about working with linux part1

free web hosting
Open Discussion > MODERATED AREA > Tutorials

Linux Info/howto - Info about working with linux part1

pbrugge
Linux on your desktop?!

What kind of hardware do i need to run Linux?
Linux will basically run on almost all hardware you can think of. from a usb-memorystick up to a big mainframe. For modern distro's a PentiumIII/Celeron or Athlon computer with 128mb ram (256mb recommended) are good enough to use.

I thought Linux was free but there also packages for sale?
Thats correct you can get Linux for free from the internet but there is also a option to buy it at a store. When you buy (for instance) suse linux at a store you will be provided with a handbook and support from suse itself. When you get it for free on the internet you will need to use irc-channels, the site from your distro, google or irc to get your info.

Some sites (like http://www.osdisc.com/ ) also give you the option to buy linux for a small price so you don't have to download it (note the distro's bought from osdisk.com don't come with a handbook)

Where can i download linux?
A good place to start your search is http://distrowatch.com/ which has links to almost all distro's out there and also give some info about them. You could also go directly to the website of the distro of your choice.

Can i install linux and windows on the same computer?
Sure you can that's no problem at all smile.gif
You can use a partition program like Partition Magic to make some room on your harddisk (if you partition your harddisk don't forget to defragment it first). I recommend at least 5GB of space to use for your linux installation specially when you want to use a graphical interface. Most of the time when installing linux you will have the option to let the installer use the free space on your harddisk pick this option and the free space you created will be used for linux. During the installation you can also setup a boot loader (most modern distro's do the setup automatically) just make sure all other OS-es are recognized. After the installation you can use the boot loader grub (or lilo) to choose between linux or windows.

Whats the bootloader?
A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system.

On linux there are two main bootloaders namely Grub (GRand Unified Bootloader) http://www.gnu.org/software/grub/
and LiLo (the Linux boot Loader). http://www.acm.uiuc.edu/workshops/linux_install/lilo.html

For info about howto setup grub or lilo I point you to the websites given since its allot of work to write a complete howto on that to. But perhaps in a later stadium I will do that to wink.gif


What linux program do i use for *this* windows program?
for most windows programs there is a good alternative on linux I will hand you a few options here: (W= Windows L=Linux)

W: Winamp -> L: Xmms, Amarok
W: ICQ -> L: Licq, Gaim, Kopete
W: MSN -> L: Kopete, Gaim, Amsn
W: IE -> L: Opera. Mozilla, Firefox, Konqueror
W: Photoshop -> L: Gimp
W: Office -> L: OpenOffice, Koffice
W: outlook -> L: Evolution, Kmial, Thunderbird
W: Mediaplayer/dvd-player -> L: Mplayer, Xine, Totem-movieplayer etc


Can I access my windows partitions in Linux?
Yes you can without any problems, but you will need to mount them to be viewable and writable to you. But first some small (but important) information about partitions.

In linux you can view which partitions are available to you by typing 'cat /proc/partitions' into a terminal (in windows known as command prompt/dos box). This will provide you with info about the partitions that are on your harddisk(s). When given that command on my box for instance I get the following output:

CODE

pbrugge@mybox:~$ cat /proc/partitions
major minor  #blocks  name

  3     0   20010312 hda
  3     1   12058168 hda1
  3     2          1 hda2
  3     5    7952080 hda5
  3    64   58633344 hdb
  3    65   10241406 hdb1
  3    66   20482875 hdb2
  3    67     498015 hdb3
  3    68          1 hdb4
  3    69   17679501 hdb5
  3    70    9727326 hdb6


hda is the first IDE-channels harddisk (master), hdb is the second harddisk (slave). Hdc is the first on the second IDE-channel etc..

As you can see in my output there are numbers behind it (hda1) this are the partitions on the harddisk. A drive can have up to 4 primary partitions (hdx1-4) and unlimited logical ones which go on a extended partition (hdx5 – hdx?) So hda1 means the first primary partition on the first IDE disk.

Note: A extended partition acts the same as a primary partition so setting up a extended partition means you loose one primary.
Note2: Logical partitions always start @ hdx5 and up

Oke back to mounting now smile.gif

in linux a partition gets mounted in a directory so before mounting a disk make sure you have setup a mount point where it can be mounted. Most common is to set a mount point in the '/mnt' directory. make sure its easy to remember. For instance for your windows 'c' partition you could set: '/mnt/c' this is done as root in a terminal with the command 'mkdir /mnt/c'
most pre-build kernels have support for almost all common file types.

which are:
- ext2/ext3/reiserfs/xfs for linux
- vfat en ntfs for windows
- iso9660 for cdrom

These are important to mount a partition in linux. to mount a ntfs partition that is on your C in windows the command to give is 'mount -t ntfs -o ro /dev/hda1 /mnt/c'.

Another way to mount a drive is by use of the file '/etc/fstab' you still need to make mount points but if you set the mount options in the '/etc/fstab' file you can mount a drive whit the much shorter command 'mount /mnt/c'.

An example of the '/etc/fstab' file

CODE

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>         <options>                    <dump>  <pass>
proc            /proc           proc           defaults                       0       0
/dev/hdb5       /               ext3           defaults,errors=remount-ro     0       1
/dev/hdb6       /home           ext3           defaults                       0       2
/dev/hdb3       none            swap           sw                             0       0
/dev/hdd        /media/cdrom0   udf,iso9660    ro,user,noauto                 0       0
/dev/hdc        /media/cdrom1   udf,iso9660    ro,user,noauto                 0       0
/dev/fd0        /media/floppy0  auto           rw,user,noauto                 0       0
/dev/hda1       /mnt/c          ntfs           rw,user,noauto umask=0000      0       0


the last line is the line we where talking about before so i will keep using it as reverence point for this section. i will explain what it all means here:

'/dev/hda1' is the partition we would like to mount on the mount point' /mnt/c' since it is a ntfs partition we need to set the ' type' to ' ntfs' we want 'read-write' access and the possibility for all users 'user'+' umask=0000' The noauto option means it wont be auto mounted at boot so you need to give the mount command to mount it. If you like to auto mount the partition during the boot just set 'auto' instead of 'noauto'.

Installing software.
Depending on what type of distro you are using there are a few options to install software on it. But notice that linux is not windows so .exe will not work on it. Linux works a little different.

Most linux distro's use a package manager to install or remove software. The best known are RPM and DPKG. Rpm or .rpm is the Redhat Package Manager and comes with Fedora, Redhat, Mandriva and Suse for instance. Dpkg or .deb is the package manager for debian based distro's like ubuntu, debian and xandros. There are also .tar files on the internet sometimes they are special pkgtool which is a installer tool on Slackware but most of the time they are just a kind of zip file with the source of the program.
Its recommended to use the package installer coming with your distro to install software since that way the decencies of a package get installed to and its easier to remove a package after installation.
.deb files almost always use Apt as there package installer. i guess most debian/ubuntu users will know the command 'apt-get install package name' or when downloaded a .deb package from the net 'dpkg -i package.deb'
.rpm is a little different there are more package installers for that like Yast (suse), Yum, red Carpet, urmpi etc. it dependence on your distro what installer you will have. Just read the info on the site of the distro you choose for info about it.
Oke and how about installing software from source with a tar file?
Well like I told before it is better to use the package manager but if you really want to install from source the best way to do it is make a directory in your root called 'opt' the reason for this is that you can remove the software when needed without problems.
After making that directory you untar (unpack) the source file (see 'man tar' for info) and instead of the default ./configure command you set a prefix to the opt directory which means the complete command will look like this:
'./configure –prefix=/opt/nameoffile'

After that a 'make' and 'make install' will do the rest.

Can i run windows programs in linux?
That question is a little hard to answer since its yes and no.
You can't run windows programs directly in linux since linux does not support .exe files but there are some ways to make programs that have been written for windows work in linux.

First there is the free Wine a program that is a completely free alternative implementation of the Windows API that can use windows dll's to run programs. There are lots of programs that will work with it on linux but not all and some are hard to configure. But the site has good documentation and links to help sites to make your program work. Even allot of windows games can work with Wine. take a look at the site for more info about Wine.

Then there is VMware (payed) a program that emulates a complete system in your OS on which you can install a complete windows environment but to do so you need to install the complete OS in Vmware which takes lots of room and since it emulates a complete computer it uses lots of resources (running 2 systems @ ones) and is not really fast. But on the other site most windows only programs will run without any problems.

Also win4lin is a payed program which is faster as Vmware but also needs a copy of Windows to run.

Other players on the market (both payed) are: Cedega and Cross over Office both inspired by Wine but with some improvements and non-free libraries.

And how about games?
There are windows games that have a native installer for linux for example Doom 1-3, Unreal tournament and lots of other shooters also the game Never Winter Night runs smooth. But if a game has no native installer than you can try to make it run with Cedega or Wine.
there are also pure linux games that can be lots of fun take a look at The linux gametome and see for yourself what fun and good games there are for free smile.gif

How about the Gui?
In Linux you can pick lots of different window managers and desktop environments for your desktop some look and feel like windows others are completely different in both look and feel. But because of the freedom you have you can make your system look the way you want.

Two well known desktop environments are gnome and kde but there you can also use window-managers like icewm, fluxbox, afterstep and lots of others. Just pick the one you like and start playing with it smile.gif

I use Gnome myself:

user posted image


Oke nice info but why don't you tell me howto install linux??
That's because every distro has a different installation process and its almost impossible to write them all down. Just follow the guidelines on the site of the distro of your choice. But trust me installing Linux is easier than most people think.
Goodluck and have fun smile.gif

Pbrugge wink.gif

 

 

 


Comment/Reply (w/o sign-up)

mama_soap
Very cool tutorial... I'm in the process of organizing a workshop on free and open source software in college, and I'm sure this will be very helpful. As you can imagine, Linux is a rather important example of Free and Open Source Software, so a lot of the talks are based on linux, and this information comes in handy.

By the way, to the list of substitutes for application programs in windows, I'd add the following:

Photoshop -> GIMP
Dreamweaver -> Quanta Plus, NVu
Visual Basic -> HBasic (though not as good.)
Nero -> K3B

And it's worth noting that there are lots of things that run on Linux that you wouldn't find on Windows, although most s/w now-a-days have different versions for different operating systems smile.gif

I'll post a screenshot of my desktop sometime soon...

Thanks again for the great tutorial. Cheers!

Comment/Reply (w/o sign-up)

pbrugge
Well thx gladly done and I hope others will find this info helpfull to smile.gif

Comment/Reply (w/o sign-up)

Inspiron
Good good.. That's what people really wants to know how to get around with Linux after using Windows for years.

Perhaps having screenshots on the steps to install a program in Linux will be better because that's somewhat a basic that a Linux newbie should know to get things started.

Comment/Reply (w/o sign-up)

pbrugge
QUOTE(Inspiron @ Jan 30 2006, 03:25 PM)
Good good.. That's what people really wants to know how to get around with Linux after using Windows for years.

Perhaps having screenshots on the steps to install a program in Linux will be better because that's somewhat a basic that a Linux newbie should know to get things started.
*



Thats why this is part1 I knew there would come tips and so for improvement when part2 is done I maybe can ask a mod to merge it with this one, but on the otherhand it also can be a total new topic.

The problem with a howto about installing stuff in linux is because there are various ways to do that.

For example if I recall correctly you use gentoo?

So installing stuff on your distro is most of the time just 'emerge package' in a terminal some times with a prefix (in gentoo thats done with) 'USE="arguments" emerge package' but on apt-based distro's and rpm based ones it work totaly diferent.

Trust me I really intent to write such a howto but first I need to figure out how to do that logical and in a way its understandeble for all readers.

.tar and .sh files are installed the same way on most distro's but like I told in the TS its recommended to use the package manager of your distro instead.

But stay tunned another howto with that info is on its way, I just aint sure when its done smile.gif

 

 

 


Comment/Reply (w/o sign-up)

lacking_imagination
One distro I would like to point out is DamnSmallLinux. (Damnsmalllinux.org)
Its a fairly newb friendly linux distro that fits onto a business card cd (<50mb).
They have an icon on the desktop called MyDSL and its a list of all the apps that have been officially released. When you're connected to the internet, you just click the button and it downloads and installs happy.gif.
Also, when you bring up the directory that has the .dsl packages(if you saved them to a usb drive/cd/hard drive) in emelfm.bin (file manager), you select it, then click a button that says "MyDSL" and it automatically installs. Its really user friendly for linux, but you'll need to download some extra packages (all the libraries to run some of the files) before you dive headfirst. Their forums are _really_ helpful too.

Comment/Reply (w/o sign-up)

apollo
Yeah, that`s cool. Funny and little bit strange look:) When will Part2 come?

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : linux, info, howto, info, working, linux, part1

  1. Php - Forms, Date And Include
    Working with POST and GET and also the Date() function (0)
  2. [linux] How To Manually Install Flock System Wide
    (1)
    Since i am currently in the process of making my own Ubuntu-based distro and will be including Flock
    as one of the browsers to choose from, i figured i'd make a tutorial out of how to install Flock
    manually, since there appears to be no package for it in Ubuntu's repository and many other
    popular distros, and it is said that only Ultima Linux has Flock available. For those that
    don't know what Flock is, rather than going into deep detail here, i'll just provide a link
    to the browser's site: http://www.flock.com/ And yes, to start, you're going....
  3. Linux On Ps3
    (0)
    I'm still new to this as well. In this tutorial I'll teach you how to add Linux Ubuntu to
    your PS3. You can still use default PS3 operating system as well Linux, So don't worry about
    that it is very easy to switch back and forth. You will need to download Ubuntu 7.10 Gusty Gibbon.
    CODE http://cdimage.ubuntu.com/ports/releases/gutsy/release/ubuntu-7.10-desktop-powerpc+ps3.iso
    You will need- -USB Keyboard -USB Mouse -DVD Burner/1 DVD disc Download the file its around
    600mb, Once downloaded you need to burn I used poweriso to burn mine. Now splittin....
  4. [asp Tutorial]basic Info & Download/installation Tutorial For Asp.net 2.0
    Tutorial Type:Beginner-Advance (1)
    Basic Info & Download/Installation Tutorial for ASP.NET 2.0 Introduction Well I
    received a book about programming in ASP 2.0 and was ask to review it after I went through this
    book. In my success I was able to download and install the software needed in order to get it
    running on my computer. So those would like to like to learn to program in ASP or refresh your mind.
    Then this tutorial I am providing will give you some basic information on ASP and install the
    software needed to get ASP running. Unless you already have a windows base hosting provider,....
  5. Create Professional Affiliate Links Like The Big Dogs
    and save $97 like they charge for the same info! (4)
    Do you hate those long, ugly affiliate links such as
    hxxp://www.merchant.com/buythis.cgi?affiliate=name&product=prodname&tracking=3 ? Do you hate it when
    someone takes your affiliate link and cut you out, thereby "stealing" the money you could have made?
    Ever wonder how the so-called "internet guru's" do it? Ever wish you had the $97 they want so
    you, too, can learn how? You've probably seen such URL's as
    hxxp://BigSelfProclaimedGuru.com/Recommends/CrapProduct in an email you've recieved and wanted
    to duplicate it for your own affilate programs. Well, ....
  6. Installing Linux On An Ipod
    Ipod Linux Simple Tutorial. (43)
    Installing Linux on an iPod! (Doom, Videos on Nanos, Photos, even 4th Gen or Minis!)
    Recently I've been toying around with my friends iPod Nano, and my 5th Gen Video so, I decided
    to share the wealth. Pre-Tutorial Glossary iPod Linux - The iPod Linux OS we will install.
    Podzilla - Another name for iPod Linux The Apple OS - The orginal menu system on your iPod iPod
    Linux is a firmware installation that will run ALONG with Apples OS. So, you may be thinking, whats
    so great about this iPod Linux? Heres whats so great. Play videos on Nanos, Photos, e....
  7. How To Sync A Sony Clie In Linux
    any distro with KDE (0)
    Ok, so everyone knows that sony realy outdid themselves with the clie, but one problem: You
    can't sync it outside windows. Or can you? Look, Up in the sky, It's a bird, it's a
    plane, No, it's Psychiccyberfreak! Come to save the day!!! /laugh.gif' border='0'
    style='vertical-align:middle' alt='laugh.gif' /> Ok, so here we go. First, you need to get a sync
    program. I use Jpilot, I reccomend it. If your distro has a cross between KDE and GNOME, use
    anything... Ok, now it should work, Most cases only network sync will work, that's ok. Some
    distros hav....
  8. Podcasting For The Absolute Newb
    simple, works on windows, mac and linux (5)
    Ok, so I found out about podcasting on iTunes, and I fell in love with it. It was probably the
    coolest thing ever to happen. Now it's a big thing, and anyone can do it. This will cover just
    the basics of using MP3 file, tagging them, and uploading them in a directory on a web server with
    dircaster installed. If you want to get advanced I reccomend getting a book on it. This is only the
    basics, because I am running a windows computer at the time, and you can only have enhanced
    podcasting in mac at the time of me writing this... Let's get started. First things fir....
  9. How To Install Winxp And Linux To The Same Compute
    a double boot (12)
    when I install a double boot linux/winxp, I always want to keep the Windows boot menu to choose the
    operating symtem. This is what I usually do: -Install Winxp -Install linux (if you dont have space
    to create a new partition for linux, you have to use partition magic to reduce the size of the WinXP
    partition and leave some space to create the partition for linux. You can create the partition
    during the linux setup. - During the linux setup, choose to install the boot manager (lilo or grub)
    in the boot sector of the partition where you are installing linux (not in the MB....
  10. Secure The Email Addresses On Your Website!
    Wonderful script and useful! And working (10)
    Just follow the instructions below: /* Secure Email Function by Juan Karlo Aquino de
    Guzman Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc E-mail:
    http://www.karlo.ph.tc/send.php Usage: showEmail("support@microsoft.com",0); OR
    showEmail("support@microsoft.com",1); Types: 0 = ordinary random 1 = more secure random To
    include to a script: include_once("email_secure.php"); */ And here is the code :
    CODE /*     Secure Email Function by Juan Karlo Aquino de Guzman     Website:
    http://www.karlo.ph.tc and http://....
  11. How To Make Bootable Cd-roms?
    In Linux (1)
    QUOTE You must have an 1.44 MB bootable floppy-disk. Create an exact image of this floppy-disk
    by issuing the command dd if=/dev/fd0 of=boot.img bs=18k Place this floppy image into the
    directory holding the collection of your files (or into a subdirectory of it, just as you like).
    Tell mkisofs about this file with the option '-b' and also use '-c'. For details
    read the file README.eltorito in the mkisofs-distribution. An interesting application for a custom
    bootable CD is as a virus safe DOS- or Windows-system. It saves you the money for the har....
  12. Test Your Php Pages W/o Upload/internet
    complete *working* guide on how to test your php pages (66)
    In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
    uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
    provided does not work, so I decided to make my own tutorial with working links. The program that I
    will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
    server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
    current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....
  13. <div> Tag Info
    some useful info on using the <div> tag (6)
    from my understanding of how the tag works its always a good idea to use tables to get an idea
    where you want to you text to be position at. Also it is possibl to use negetive numbers to help
    position your table but that is use most of the time with the ABSOLUTE POSITION -div style=left,
    right, center: basically this tells you where you info will be positioned on your website -width:
    this tells how wide you can make your table so to speak where text wrapping begins -height: this
    tells you how long the vertical postion will be and how far down you can go on your we....
  14. Installling Linux On Windows By Only Using 2gb
    :) (5)
    Ok here it goes, First of all you need an ISO or a Linux Disc if you have one, if you don't have
    a disc you can download a ISO by searching in google Linux ISO and go to the first one i think then
    go to www.microsoft.com once you have downloaded the ISO (Might have 4/3/2/1 Discs) then download
    the 45 Day free trial or the full version if you can of Virtual PC 2005 Beta /smile.gif'
    border='0' style='vertical-align:middle' alt='smile.gif' /> Now once you have installed Virtual PC
    2005 Beta create a new Virtual PC by going to the button Labelled New, in one stage i....
  15. Suse Linux
    (3)
    I made a small quick guide for SUSE Linux: Click Here! xboxrulz....

    1. Looking for linux, info, howto, info, working, linux, part1

Searching Video's for linux, info, howto, info, working, linux, part1
See Also,
advertisement


Linux Info/howto - Info about working with linux part1

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com