Lunar Linux Install
v0.6
written Kenny Mann
with the help of the Lunar Dev team




  1. Introduction
    Lunar Linux is a source-based distribution designed to be a System Administrator's dream. The installation and upkeep are simple and the breadth and depth of optimizations have clearly marked Lunar as one of the fastest Linuxes available today!
    This document is here to get you going and perhaps later on to give you some tips on running daemons the Lunar way and other valuable tools.

  2. Getting started
    1. First you must download the ISO of Lunar and decompress it. http://www.lunar-linux.org will have the latest one (either testing or stable). Bzip2 will be needed to decompress it. Bzip2 can be found on my website, on Google, or on your machine.
    2. Either burn the ISO to a CD or use a loopback device (for CD-ROM less systems). If you don't have a CD-ROM http://moongroup.com/pipermail/lunar/2002-July/001952.html will explain how to boot via loopback device.
    3. Boot from the ISO.

  3. Boot Screen
    1. For installation purposes, hit enter. If you want to use memtest86, then press F5 and hit enter on the screen after that. If you need special options, then use “Safe Mode”. Use this option if normal mode doesn't work for you.
      boot-thm.jpg - Boot Screen
    2. It next asks if you want different video modes. Hitting space will give you default, hitting enter will allot you to have more lines per screen.
    3. Next screen should be your initrd screen; it should say this at the top left of your monitor. If you are using the CD as a rescue disc then select “Choose root device” and feed it your root device. An example of that would be: /dev/discs/disc0/part1 and then tell it your partition type. If you are going to do an install, choose to continue booting. Some things my fail when it tried to load some stuff up, don't worry.
      initrd-thm.jpg - initrd Screen fail-thm.jpg - Fail Screen


  4. Installation
    install1-thm.jpg - First install screen

    1. OPTIONAL: Native Support
      If you desire another language , keymap, console fonts, and/or text editor (you will be using this to edit your boot loader's configuration) select “Native Language Support”. Lunar is entirely in English; however it is possible to change the languages of other programs.

    2. OPTIONAL: Select “Partition Drive”. Use this if you want a fresh install.
      1. This screen asks for which disc you want to install Lunar to. Feed it which disk you want to install Lunar.
        Disc0 = Primary/Master, Disc1=Primary/Slave, Disc2=Secondary/Master, Disc3=Secondary/Slave for IDE devices.
      2. The next screen will allow you to choose between 3 different partitioning programs. If you are new to Linux, it may be easier for you to use cfdisk. You will need a SWAP. You must choose whether you want a SWAP partition or SWAP file. The advantage to a SWAP file is that it can be easily adjusted in size. A SWAP partition can be used with other distro's or installs. A good rule of thumb is 2X physical memory for SWAP is good enough.

    3. Select "Mount Partitions".
      install2-thm.jpg - Second install screen
      1. You must mount your root partition first. Feed it the disk to where you want Lunar installed.
      2. Next select which partition for the install.
      3. Feed it which FS type you want to use. There are debates as to which FS's are better. Each tends to have advantages and disadvantages. A journaling FS is a very popular option. Journaling results in massively reduced time spent recovering a filesystem after a crash, and is therefore in high demand in environments where high availability is important, not only to improve recovery times on single machines but also to allow a crashed machine's filesystem to be recovered on another machine when we have a cluster of nodes with a shared disk .
      4. OPTIONAL: SWAP file. If you are using a SWAP partition, then skip this step.
        1. Select “Make Swapfile”.
        2. Select the location of where you want your SWAP file to be located.
        3. Feed in the size you want your SWAP to be. Again, a good rule of thumb is 2X physical memory for SWAP is good enough.
        4. Tell it to you want to make the SWAP file.
      5. Select “Transfer Lunar”. It will ask you if you are done mounting filesystems, select yet. This copy process may take a while.

    4. Configuration of Lunar and your kernel.
      config-thm.jpg - Configuration Screen

      1. Select “Select Timezone”.
        1. Enter your appropriate time zone.
        2. Choose whether your hardware (BIOS) clock is in GMT or local. Normally it's in local.

      2. Select “Architecture Optimize”.
        1. Preferred compiler. Unless you had previous problems with GCC3, use GCC3.
        2. Follow default settings for C compiler.
        3. Follow default settings for C++ compiler.
        4. Select your platform, most likely you are using an x86.
        5. Now select which basic optimization you want. Select your preference. It is suggested to use Small, Faster, or Fastest.
        6. Now choose which type of processor you have. If you are unsure choose I386. If your processor is listed, choose it instead.
        7. Don't select any speed optimizations. We will do a lunar rebuild later on which will have these.
        8. Don't enable extra features either, until you understand how the system works.
        9. Unless you know for a fact you have floating point math options, select None.
        10. Use defaults for linker options, sometimes Combreloc can cause problems. Many packages (emacs for example) will break if that option is selected.
        11. Don't enable addon program support unless you need it.
        12. If you have one processor or are unsure, just hit enter here. If you are sure that you have more than one processor, then enter the number of processors. If you have only one, do not enter 1, just leave it blank.

      3. Select “Configure Linux Kernel”.
        1. Be sure and read the first two screens. They provide valuable information.
        2. Select the kernel module you want. If you want to do a custom kernel, use the default “linux”.
        3. If you want to use lilo, select Y here, if you want to use grub, say n here.
        4. If you want to configure your bootloader, say y here, else say n.
        5. If this is an upgrade and you have Xfree86, then you can select xconfig. If this is a fresh install, then use menuconfig. Config is text based and can be annoying to use and can be time consuming.
        6. If you want to have a custom kernel, select y here, else select n. If your kernel does not compile and you see errors related to SCSI devices, then you must do the custom kernel option and turn off SCSI. SCSI emulation is needed for using a CD-R. If you want, you can use defaults here and recompile your kernel later. Re-compiling your kernel and Lunar box will be explained later on.
        7. Configuring your bootloader. Once your kernel is done compiling, you are then brought into the text editor you specified during native language selection (or by default, nano).
          1. Unless you have really old hardware you can uncomment lba32.
          2. If you want your machine to boot straight into Lunar, then you can set delay and timeout to zero.
          3. If you want a lilo password you can set it to something different by changing the value of password. If you do not want a password, remove the line and remove the “restricted” line at the end of the file.
          4. You will need to set the last word in the boot= to disc. (You did read the screens about the kernel without zooming past them, didn't you?).
            IE: /dev/discs/disc0/disc

      4. Network configuration and re-configuration (if needed).
        reconfig-thm.jpg - Optional Reconfigure screen
        1. Select “Hostname Setting”. Choose a name for your domain.
        2. OPTIONAL: Select “Configure Networking” if you connect to the Internet through DHCP or PPPOE.
          1. Go to “Add”.
          2. Feed in your Ethernet device. If you have multiple cards, then select the one that will be on the Internet.
          3. Type in the module name, if any, that you need to connect to the net. If you compiled your NIC card into your kernel, just hit enter.
          4. Feed in any parameters for the module for your NIC card.
          5. Select if it is a wireless device or not.
          6. Select if you need DHCP or not. If unsure, call your ISP and ask.
          7. Select your client. One may work for you while the other will just crash.
          8. Feed in any options to pass to your client.
          9. Select if you want your net connection activated on boot. If you are on a laptop that isn't connected all the time or have a PCMCIA NIC card, then you should select no.
        3. Select "Done".
          1. OPTIONAL: Rebooting. You will need to take the CD out. You won't be able to take the CD out while still during the installation. If you decide not to reboot, the only existent account is “root” with no password.

  5. Post install suggestions
    1. Change your root password. By default you have no password. Just hit the enter/return key. You can change your password with the 'passwd' command.
    2. Change the password for user "toor". toor's account is a static bash shell. You may also choose to delete user "toor".
    3. Do a 'lunar update' after a fresh install. OR 'lin moonbase && lunar rebuild' will update and rebuild all in one swoop.
    4. Run 'lunar' to make adjustments to the compiler optimizations (if needed).
    5. Do a 'lunar rebuild' after running the initial 'lunar update' to rebuild everything with your custom optimizations. If you enable dangerous optimizations, it is possible to break your software if you have chosen incorrect optimizations.
    6. If you are new to Linux (or would like some extra information) Lunar has a special section for documentation. It is suggested you read this. It contains a wide amount of categories. "Linux-HOWTOs" & "Linux-miniHOWTOs" are a good read. You can find these in the docs section if the moonbase.
  6. Done!

Copyright (c) 2002 Kenny Mann with help from the Lunar Development team

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no invariant sections, no front cover text, and no back cover text. A copy of the license can be found at http://www.gnu.org/licenses/fdl.html
Please send any errors or suggestions to voldureATswbell*DOT*net (minus the *'s)