Lab L-1 Install Linux Server in your Network

 

Do this

It’ll look like this

  1. Create a New Virtual Machine.
  2. Name it FEDORA
  3. Set memory at 1000MB
  4. Select legacy network adapter and connect it to External Net
  5. Make the VHD 10GB and save it with your other VMs.
  6. Be sure to capture the DVD drive, or you can capture the ISO.
  7. Get a Fedora 10 DVD from me.
  8. Pop the DVD into the drive. If you do not have a DVD drive, capture the ISO.
  1. Start your new server. It will boot into Fedora Live.
  2. It will boot into Fedora and automatically log in using some sort of Linux voodoo.
  3. Wow look! It’s already installed! No, not really. This is a LIVE disk. That means you can test the OS before you actually install it, or use it for recovery of data on other computers. Very handy. Not all LIVE disks can also install the OS, but this version of Fedora can. Sweet!
  4. You can poke around in Fedora and “try before you buy’ but let’s just install it into our virtual machine.

starting

 

  1. Double click “Install to Hard Drive” (this makes it somewhat idiot proof).
  2. Click next
  3. Select English for your language, or if you do speak another language, knock yourself out!
  4. You can install to SCSI drives or even SANs (Storage Area Networks) but we’re going to just install to a Basic disk.
  5. It will examine your storage devices…(whistle a bit).
  6. Oh Em Gee! Danger Will Robinson! There is an error on your ADA drive! Panic! Clutch your throat in fear! Or just tell it to reinitialize because the drive isn’t formatted. We just created it.

reinitializing

installtohed

  1. Name your computer, but leave “localhost” there (see my example).
  2. Select Los Angeles as the time zone.
  3. Set the root password to p@ssw0rd. It will warn you that it is weak. Tell it that IT is weak and this is just a lab, and set it.
  4. use all space

 

  1. Write changes to disk. It is going to format your drive and do all sorts of fun things.

write changes to disk

scrappy

 

time zone

  1. It’ll say Activating New Partitions then Formatting / file system…etc.
  2. It’s going to copy the entire Live disk to your hard drive. Nifty!
  3. It’ll take awhile…sit back, relax, or go answer the questions in your other labs.
  4. Post installation
  5. When it’s done, close and go under the system menu and shut down.
  6. Select restart.
  7. While it is restarting, uncapture the D: drive or ISO so you don’t restart in the live version. I had to turn off the virtual machine to eject.

copying image

 

 

  1. Restart. Click forward. Accept the EULA. Nice and short…never saw a EULA that short!
  2. Create a user (you). This will NOT be an administrator.
  3. You won’t create a network login. Nothing advanced.
  4. Go ahead and let it get the date and time from the network. Now it might not work at first because you may not yet have network connectivity, but it will once you get that.
  5. NTP=Network Time Protocol and it allows your computer to get time from a server that will automatically update time and date.
  6. Don’t send your hardware profile. No really, do not send.
  7. It will look like the screen freaks out and then restart. This is normal. It scared me the first time too.
  8. Log in as the user you created.
  9. The first thing that will happen when you log in is you will get a security alert. Totally normal. Linux updates a LOT! We’re not on the interwebs yet, so not to worry.

create user

  1. Let’s set the proxy server. You can set it using configuration files in terminal (more on that later), or Fedora  makes it easy.
  2. SystemàPreferencesàSystem Proxy
  3. You CAN use different proxies for different protocols, but we’re going to use the same one for all protocols.
  4. Type in our proxy.
  5. Now let’s go into Firefox and make sure it can get online.
  6. If you get the error, Proxy refused connections (or something like that), do the following.
    1. Double check your proxy settings. This SHOULD apply out to all programs.
    2. Go into Firefox and manually set the proxy in there. Try again.
    3. Bust out the SUPER USER account!

                                                              i.      Go into applicationsàsystemàterminal

                                                            ii.      At the prompt type su -

                                                          iii.      At the next prompt type the password p@ssw0rd

                                                           iv.      You are NOW in super user, or administrative mode.

                                                             v.      Type ifconfig and check that you’re getting an IP address. If you are, type chkconfig

                                                           vi.      A big list will show up. Look for IRQbalance (these are all services). If it says “on” we want to turn it “off” so type chkconfig irqbalance off.

                                                         vii.      Try again

                                                       viii.       

proxy2

  1. You may have to go into the network interface to set up DNS servers. I had to to make it work, although you should be able to get it from the DHCP servers.
  2. Right click on the icon and select Edit Network Connections.
  3. You will see a familiar looking box pop up.
  4. Click eth0 and select edit.

 

edit interface

network icon

  1. Click IPv4 settings
  2. Click and drag to Automatic (DHCP) addresses only (A).
  3. Go down to DNS servers and type in the IP address of our servers, separated by a comma (B).
  4. Click apply (c).
  5. Go into Firefox and try again.
  6. If the icon for the network card shows a red x, restart the VM. For some reason I find that fixes things.

change settings

 

  1. Check for updates from under the system menu. Install any updates.
  2. I just downloaded this version on 3/29/2011 so likely there are no updates, but we should check anyhow.
  3. Go under preferencesàsoftware update preferences and set it to update daily and install security patches automatically.

system update

  1. Let’s set up your web server.
  2. Open up your Network properties. Web servers require a STATIC IP address. SystemàAdministrationàNetwork Connections (it won’t look the same as the one to the right, it’s an old picture).
  3. A window will pop up asking for your administration password. Remember the root password you set? Use that.
  4. In the Network Configuration box you’re going to select your network card. Double click on Active eth0 (stands for Ethernet card 0).
  5. Select Statically set IP addresses.
  6. Remember the addresses you assigned in an earlier lab? Assign based on that addressing scheme based on YOUR network.

eth0

  1. Play around with it for a little while. Don’t make any major changes, just change the desktop maybe download a few fun things.
  2. Have me check off that you’ve installed Fedora and it is running on your machine. We’ll put it into your network later on.

 

 

Questions to look up from your browser in Linux:

 

  1. Who created LINUX and why?

 

 

  1. What is the name of the mascot?

 

 

  1. Who currently “owns” Fedora?

 

 

  1. List three websites you can go to for more information about linux.