#===============================================#
# How to Install/Uninstall Make One Linux Suite #
#===============================================#

* Caution
  - Developer tested this installation process with CentOS 4.3 and
    Fedora Core 5.
  - If you use Fedora Core 5, you need not to install squashfs and execute 3
    and 5 process about rpm source installation because squashfs is already
    installed in FC5.


* Installation (rpm binary)
  1.Unpack Make One Linux Suite package.
      $ tar -zxf mol-suite-x.x.x-rpm-i686.tar.gz
  2.Change directory to the directory contained kernel module packages and
    Install them. If you cannot find this directory, you should install by
    the following "Installation (rpm source)".
      $ su
      Password:
      # pushd mol-suite-x.x.x/program/<distro name>/`uname -r`/
      # rpm -ivh *.rpm
      # popd
  3.Install the packages which depends on your distribution.
      # pushd mol-suite-x.x.x/program/<distro name>/
      # rpm -ivh *.rpm
      # popd
  4.Install the others.
      # pushd mol-suite-x.x.x/program/
      # rpm -ivh *.rpm
      # popd
      # exit


* Installation (rpm source)
  1.Unpack Make One Linux Suite package.
      $ tar -zxf mol-suite-x.x.x-rpm-src.tar.gz
  2.Make rpm build directory. If you already make this directory, you don't
    have to do.
      $ echo "%_topdir ~/rpm" >> ~/.rpmmacros
      $ mkdir -p ~/rpm
      $ pushd ~/rpm
      $ mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS}
      $ cd RPMS
      $ mkdir -p {i686,noarch}
      $ popd
  3.The next process is alternative.
  A)If you want to use official kernel for your distribution, you should
    install source package about it.
      $ rpm -ivh kernel-x.x.x-x.src.rpm
  B)If you want to use your own build kernel, you should make symlink.
      $ su
      Password:
      # ln -s linux-x.x.x /usr/src/linux
      # exit
  4.Reboot your system.
  5.Build and install mkkmodule package (this package is necessary for squashfs
    package build).
      $ pushd mol-suite-x.x.x/program/
      $ rpmbuild --rebuild mkkmodule-x.x.x-extra.src.rpm
      $ su
      Password:
      # rpm -ivh ~/rpm/RPMS/noarch/mkkmodule-x.x.x-extra.noarch.rpm
      # exit
      $ popd
  6.Build the packages which depends on your distribution.
      $ pushd mol-suite-x.x.x/program/<distro name>/
      $ rpmbuild --rebuild --target=i686 *.src.rpm
      $ popd
  7.Build the others
      $ pushd mol-suite-x.x.x/program/
      $ rpmbuild --rebuild --target=i686 *.src.rpm
      $ popd
  8.Install built packages.
      $ pushd ~/rpm/RPMS/
      $ su
      Password:
      # rpm -ivh i686/*.rpm
      # rpm -ivh noarch/*.rpm
      # exit
      $ popd


* Installation (tar source)
  1.Unpack Make One Linux Suite package.
      $ tar -zxf mol-suite-x.x.x-tar-src.tar.gz
  2.Install linux kernel with squashfs and unionfs modules.
  3.Reboot your system.
  4.Build and install busybox-mol, hwsetup-mol, ddcxinfo-mol, and mol packages.
    install mol last because busybox-mol, hwsetup-mol, and ddcxinfo-mol are
    required for it.
      $ tar -zxf mol-suite-x.x.x/program/*.tar.gz
      $ pushd (unpacked directory)/
      $ make oldconfig   # only busybox-mol
      $ make dep         # only busybox-mol
      $ make
      $ su
      Password:
      # make install
      # exit
      $ popd


* Uninstallation
  1.Run molmake with --clean option by root.
      $ su
      Password:
      # molmake --clean
  2.Uninstall all packages.
    in the case that you installed Make One Linux Suite with rpm packages.
      # rpm -e <package name>
    in the case that you installed Make One Linux Suite with tar balls.
      # cd <unpacked directory>
      # make uninstall

