<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>Learn Unix Administration Blog</title>
   <link rel="alternate" type="text/html" href="http://www.LearnUnixAdmin.com/" />
   <link rel="self" type="application/atom+xml" href="http://www.LearnUnixAdmin.com/atom.xml" />
   <id>tag:www.LearnUnixAdmin.com,2010://10</id>
   <updated>2006-12-24T23:58:38Z</updated>
   <subtitle>Built from the book &quot;Teach Yourself Unix System Administration in 24 Hours&quot;, this site offers you hundreds of pages of Unix and Linux administration tutorials and much more.</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.31-en</generator>


<entry>
   <title>1.2: Basic Red Hat Linux Installation</title>
   <link rel="alternate" type="text/html" href="http://www.LearnUnixAdmin.com/basic_red_hat_linux_installati.html" />
   <id>tag:www.LearnUnixAdmin.com,2006://10.7018</id>
   
   <published>2006-11-23T22:49:05Z</published>
   <updated>2006-12-24T23:58:38Z</updated>
   
   <summary>Let&apos;s assume that you want to install Red Hat Linux, as they have one of the best installation packages (called anaconda) out of all the Linuxes I&apos;ve used. 1. The first step is to make sure you have a reliable...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Installing Unix and Linux" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="en" xml:base="http://www.LearnUnixAdmin.com/">
      <![CDATA[Let's assume that you want to install Red Hat Linux, as they have one of the best installation packages (called anaconda) out of all the Linuxes I've used.

1.  The first step is to make sure you have a reliable backup of any information that you already have on your computer. Most likely, you'll want to just overwrite your entire disk with the new operating system, which will mean that all your existing files will be stomped, mutilated, and otherwise burned beyond recognition.

Once you're sure you want to proceed, slip the first installation CD-ROM into the CD-ROM drive of your computer and boot up.

It's not visually exciting, but the first thing you'll see is as shown in Figure 1.1, the boot-up screen options. I always choose the default by pressing Enter on the keyboard.

<center><img src="/figures/learning-unix-admin-1-01.png" alt="Figure 1-1: Red Hat Linux installation boot options" /><div style="font-size:80%">Figure 1.1: Red Hat Linux installation boot options.</div></center>]]>
      <![CDATA[2. Linux flashes into graphics mode, enabling your mouse, and the next screen you see lets you choose what language to use for the installation process. You'll probably choose English, in which case you can just click on the Next button on the bottom right.

The next step, as illustrated in Figure 1.2, is to pick your keyboard configuration. Most likely, you can again select the default values and proceed to the next step.


<p>Figure 1.2: Keyboard configuration.</p>

The mouse configuration is the third preinstallation step (these steps are just configuring anaconda, the installation application), and I've always had good results with the default 3 Button Mouse (PS/2).

3. Now we're ready for the actually installation process to begin. The first selection -- and perhaps the most important selection -- is to decide what kind of installation you'd like. The choices are Workstation, Server, Laptop and Custom.

I recommend a workstation installation if you have sufficient disk space (about 2GB), because it's easier to install software and then not use it than to want to use it and find it wasn't installed. The server installation skips all the X Window System software packages, though you can add it back by going to the package groupings area.

4. The first major task during the installation process is to decide how you want to slice up your available disk space so that Linux can properly utilize it. In almost all cases, your best bet is to have the system figure out how much space you have and then partition it automatically. You can choose this with Have The Installer Automatically Partition For You.

You'll probably see a dialog box similar to Figure 1.4. Don't panic. Remember, you've already done a complete backup, and we're planning on replacing the current OS on the computer with Linux.

<p>Figure 1.4: You need to confirm that you want to create new partitions.</p>

Next, choose Remove All Partitions On This System, unless you already had a previous Linux installed and want to use that existing partition space. Make sure that if you have multiple drives, it has picked the correct drive for the install we're about to start!

The system automatically creates a reasonable partition strategy. For my system, with a 15GB disk available, it split it into /dev/hda1 (to mount as /boot) with 47MB of disk space, /dev/hda3 (to mount as swap space) with 188MB of space, and the remaining 15.1GB as /dev/hda2 (mounting as /).

Rather than accept this, I am going to split /dev/hda2 into two partitions, one that's 4.1GB and one that's 11GB. The latter will prove useful later on this web site, when we explore disk formatting and the mount command. To accomplish this task, I select the partition in question and click Edit. This produces the dialog box shown in Figure 1.5. Notice that I've already specified a fixed size of 4100MB here.

<p>Figure 1.5: Repartitioning to grab some space.</p>

Once accepted (click OK), you'll now have a free space listed at 11029MB. Click on that, click Edit, and you can specify a mount point if you'd like. Or, leave it as free space and you can perhaps install Windows within and create a dual-boot configuration (see "Multiple Boot Configurations" in Hour 11).

5. Now you need to pick a boot loader, if any. I prefer grub, but you might like lilo. I will say that there's really no reason not to pick one of these, just so you have flexibility in your configuration later on. Otherwise, leave all these options alone. If you'd like, you can specify a grub password, which will mean that every time the system is rebooted, the password will be required to proceed with the boot process. Be thoughtful about this option: If you specify this and then have your system in a collocation rack, who will enter the password if it reboots?

The next step is to configure your network interface, as shown in Figure 1.6. If you have DHCP, you're in luck. Click that box and you're done! Otherwise, you'll want to fill out as much of the information specified as possible.

<p>Figure 1.6: Configuring your network connection.</p>

Almost done with the configuration questions. The last network configuration step is to pick a firewall configuration for security. Though the default is to customize your settings, I tend to select Use Default Firewall Rules and leave a security level of Medium.

6. If you want to make your system usable in multiple languages, you can specify them in the Additional Language Support screen that comes next. Even if you only want English (USA), spend a moment to scroll through this list and see just how many different choices there are. Quite impressive!

<blockquote>There are lots of languages listed, but it's worth highlighting that it's up to the individual application to support the language, so don't be surprised if you install Italian, just to find some richiami del sistema in inglese.</blockquote>

Your time zone should be specified next, and you can click on cities on the world map, select a regional map from the pull-down menu, or scroll until you find a city in your own time zone to select from the list. Living in the Mountain Time zone, I select Denver, Colorado from the list.

The next screen is the Account Configuration screen. You don't need to create a number of accounts at this juncture, but if you know multiple people will be using the system, this is a very convenient place to add them. In Figure 1.7 you can see that I've created four user accounts, and also set the root password.

As a reminder: you must set a root password here, and it must be something that's simultaneously complex enough that it would be difficult for crackers to guess and simple enough that you'll remember it. Don't forget what you specify here, it'll be critical to the long-term health of your Unix system down the road.

<p>Figure 1.7: Account Configuration screen.</p>

7. Finally, we are at the point where we need to select which packages we'd like to install. There are default packages already selected because of our workstation installation specification earlier, but additional material can be added too.

As Figure 1.8 shows, I recommend installing KDE in addition to Gnome and the Software Development Tools. Whether you want to include games is up to you. :)

Notice in particular on the lower right corner the indicator of how big all the combined packages will be (here it's 1,559MB, just about 1.6GB).

<p>Figure 1.8: Selecting additional packages to install.</p>

It's just about time to go and get a cup of tea and read the paper while anaconda slowly installs each of the hundreds of packages you've now selected.</p>
<p>8. The only task left is to configure the screen for X Windows (which might seem a little weird, since we've already been working in a graphical environment with a mouse, but that's another story). Fortunately, I've found that anaconda does a very good job of analyzing hardware configurations, and just about always picks the best setup to match your physical system.</p>
<blockquote>
<p>At this point in the installation process, you can still back out, shut down your computer, eject the CD-ROM, and have your system just as it was prior to booting into the Red Hat world. Once we proceed beyond this, however, all the prior contents of the disk will be destroyed. Please, please ensure you have a good backup before going further!</p></blockquote>
<p>Enough paranoia, let's install this baby!  The next screen shows you the progress of the installation process, as anaconda formats the file systems, transfers an install image (the ISO images we discussed earlier in this hour) to the disk, and then begins the actual transfer. Pay particular attention to the Total and Remaining package counts — they'll give you a very good idea of how much time you have left on the install.<br />
Expect this step to take at least an hour, and possibly quite a bit longer, depending on how fast your system, CD-ROM and disk are. Figure 1.9 shows how the installation looks just a little ways into the process (about 10 minutes).</p>
<p>Figure 1.9: Installing packages, slowly, but surely!</p>
<p>Once this process is done, you'll get a peppy Finished! screen and you can reboot and run your new Red Hat Linux installation on your computer. Congratulations!<br />
The question of what to do after you've installed your system is, of course, the topic of the rest of this web site. But one thing you might try is just logging in as a regular user, selecting either Gnome or KDE as your desktop environment, then launching a Web browser and surfing the Web. See how it is similar in some ways, and quite different in other ways, to Windows or Macintosh systems.</p>
<p>&nbsp;</p>
<p>Tags: <a href="http://technorati.com/tag/Installing+Unix" rel="tag">Installing Unix</a></p>]]>
   </content>
</entry>

<entry>
   <title>Unix Installation Options</title>
   <link rel="alternate" type="text/html" href="http://www.LearnUnixAdmin.com/unix_installation_options.html" />
   <id>tag:www.LearnUnixAdmin.com,2006://10.7017</id>
   
   <published>2006-11-23T22:39:48Z</published>
   <updated>2006-11-27T18:22:10Z</updated>
   
   <summary>The first issue of concern is whether your system meets the hardware requirements for a Unix installation. Although Linux (and Red Hat in particular) runs across a wide range of different hardware platforms, there are nonetheless certain requirements to have...</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Installing Unix and Linux" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="en" xml:base="http://www.LearnUnixAdmin.com/">
      <![CDATA[<p>The first issue of concern is whether your system meets the hardware requirements for a Unix installation. Although Linux (and Red Hat in particular) runs across a wide range of different hardware platforms, there are nonetheless certain requirements to have it run reasonably well:</p>
<ul>
<li>A minimum of 350MB of available disk space, and if you want to have the X Window System running, a Web server, developer software, and other standard Unix goodies, you'll find that the realistic minimum disk space requirement is 1.8–2GB.</li>
<li>At least 64MB of RAM, though Unix is definitely an operating system where more RAM is always better. I always try for a minimum of 128MB, and if you have 256MB or more, you'll find greatly increased performance.</li>
<li>A CPU. Should it be a specific minimum speed, like a 500Mhz Pentium III? Surprisingly, people have successfully run Linux on quite old and slow systems. Does it run well enough that you would enjoy using it? Well, you can answer that question for yourself. Generally, any computer sold since January 1, 2000 has plenty of horsepower to run a Linux distro (jargon for distribution) with good results.</li>
<li>A CD-ROM drive (hopefully that is self-evident).</li>
<li>A network card, ideally, so you can connect to the Internet. Be warned, it can be tricky to configure a modem and PPP (the Point to Point Protocol), though not at all impossible.</li>
<li>A graphical display, display card, keyboard and mouse.</li></ul>]]>
      <![CDATA[<p>It's worth noting that, armed with this web site, you don't have to buy anything else to get a copy of Red Hat Linux and install it on your system. Start by going to the Red Hat download area and look for the latest version of their system. As of this writing, it's 7.2, so the download link is [ref]http://www.redhat.com/download/rhlinux72.html[href]. On the other hand, by the time you read this, they'll likely be shipping 8.0, so your best bet is to start on the Red Hat home page to ensure you get the latest release.<br />
There are good directions online about how to proceed. In general, you'll download ISOs (installation disk images) that are 650MB a pop, then are burned to a CD-ROM and used for the installation process. You'll need a minimum of two CD-ROMs for a good install, so that's a download of 2x650MB, and if you're on a 56K modem, you'll do much better to go to the computer store and buy the official Red Hat distribution box, with CD-ROMs, installation documents, and more, for about $60.<br />
There are also people who download the ISO files, burn CD-ROMs, then sell them online (and yes, it's legal). A quick search on eBay reveals "RH Linux 7.2 Brand New 4 CD-ROM Set Enigma" for a starting bid of only $8.95. Add $2 for shipping, and you can have a complete four-CD-ROM installation set—an exciting new operating system for your computer—for less than the price of a small pizza with anchovies and pineapple!<br />
Other Linux distributors (often called distros by the geek cognoscenti) offer very low-cost CD-ROM distributions too, if you are nervous about online auction venues. For example, the highly-rated Mandrake Linux offers a three-CD-ROM Download Edition for $15, including shipping.<br />
Other Unixes are priced differently, as you might suspect. Solaris Intel, from Sun Microsystems, can be downloaded for free from their Web site (<a href="http://www.sun.com/solaris/">www.sun.com/solaris/</a>), or for $45 they have a very nice distribution package that includes 12 CD-ROMs and some (very sparse) documentation. However, there are some conflicting rumors about the long-term health of Solaris on Intel, so don't' be surprised if at some point in the future Sun instead points you to a Linux distro.<br />
Apple distributes Mac OS X on two CD-ROMS in a box with documentation and more. It's rather more expensive than the other distros discussed so far at $129 (store.apple.com), but if you have a recent Macintosh, you probably already have Mac OS X installed.<br />
There are many other Unixes available, many of which are available as free downloads from online archive sites. You can start at <a href="http://www.download.com">www.download.com</a>, for example. Select Linux, then Distributions and you'll have 36 matches from which to choose, including Phat Linux, Slackware Linux, Caldera OpenLinux, and the nifty Yellow Dog Linux for Mac systems.</p>
<p>&nbsp;</p>
<p>Tags: <a href="http://technorati.com/tag/Installing+Unix" rel="tag">Installing Unix</a>, <a href="http://technorati.com/tag/Unix" rel="tag">Unix</a></p>
]]>
   </content>
</entry>

<entry>
   <title>Installing Unix</title>
   <link rel="alternate" type="text/html" href="http://www.LearnUnixAdmin.com/installing_unix_2.html" />
   <id>tag:www.LearnUnixAdmin.com,2006://10.7016</id>
   
   <published>2006-11-23T22:34:30Z</published>
   <updated>2006-12-15T18:11:28Z</updated>
   
   <summary>If you&apos;re reading this book, I bet that you already have a Unix operating system installed on a system you run. Whether it&apos;s a shared server that you&apos;re renting space on for your Web site, a file server in your office, or even a PC that you&apos;ve used as a Unix test platform, this first section will possibly be the least interesting one in this book.
However, it&apos;s also possible that you&apos;ve read through some Unix books (perhaps even my own Teach Yourself Unix in 24 Sections), and are eager to learn more about the internals of Unix and how you can ensure that yours is stable.</summary>
   <author>
      <name></name>
      
   </author>
   
      <category term="Installing Unix and Linux" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="3682" label="Installing Unix" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3680" label="Unix" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.LearnUnixAdmin.com/">
      <![CDATA[<p>If you're reading this book, I bet that you already have a Unix operating system installed on a system you run. Whether it's a shared server that you're renting space on for your Web site, a file server in your office, or even a PC that you've used as a Unix test platform, this first section will possibly be the least interesting one in this book.<br />]]>
      <![CDATA[However, it's also possible that you've read through some Unix books (perhaps even my own Teach Yourself Unix in 24 Sections), and are eager to learn more about the internals of Unix and how you can ensure that yours is stable.<br />
This first section, therefore, is going to go through a typical Red Hat Linux installation on a PC, with all the default configuration options specified. Then we'll look at some of the great online Unix and Linux help sites. If you have a different flavor of Unix you're interested in, your installation will doubtless be different (I have experimented with SuSE, Mandrake, Red Hat, Solaris, AIX, HP-UX, Mac OS X, FreeBSD and NetBSD, to name a few). The basic concepts, however, will prove similar in almost all cases. And as a reminder, this is the only section in this book where we'll only look at a single operating system. All subsequent material will explore Red Hat Linux, Solaris, and Mac OS X as the three reference flavors of Unix. In this section, you will learn:<br />
Unix Installation Options<br />
Basic Red Hat Linux installation<br />
Installation Help Online</p>]]>
   </content>
</entry>

</feed>
