[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] [DoyenCD] (new)

From: alfredo
Subject: [Axiom-developer] [DoyenCD] (new)
Date: Mon, 26 Dec 2005 16:12:00 -0600

\title{Doyen Build Instructions}
\author{Tim Daly, Jose Alfredo Perez,  Wilken Rivera}

This document shows the explicit steps necessary to create a
Doyen LiveCD from Red Hat's Fedora Core 3 distribution. 

The Doyen CD is a scientific platform which can be distributed
at various science conferences. It enables scientific software
to be distributed as literate programs.

The Doyen CD has a local wiki and a set of scientific packages
which can be scripted from the wiki pages. The scientific packages
can be tailor to the specific conference.


\section{Prepare a clean Fedora Core 3 System}


\item Obtain Fedora Core 3 iso images from the Fedora Website. 
\item Disk 1 and Disk 2 should be enough for a basic installation. 
\item Create installation CDs from the iso images downloaded.
\item Boot up you system with the installation disk 1 to begin the Fedora
installation process.


In the first screen, you will be presesented with some bootoptions. Press Enter 
to continue.

\subsection{CD Media test}

For the option to test the media CD before installation, select skip. Once the 
welcome screen comes up, proceed to click next.

\subsection{Language Selection}

In the language selection, select your prefered language and click next.

\subsection{Keyboard Configuration}

In the keyboard configuration, select your keyboard configuration.

\subsubsection{Special Case}

At this point depending if your system is not clean, an upgrade examine window 
will appear. Please select "Install Fedora Core"

\subsection{Installation Type}

In the installation type window, select "Custom".

\subsection{Disk Partioning Setup}

In the Disk Partioning Setup, select Manually partition with Disk Druid.

\subsection{Disk Setup}

Note: For our base distribution, only three partitions should be created.
A boot partition of 100 MB, a swap space generally the double of your amount of 
and a root partition which size depends on the programs to be installed in the 

\subsubsection{Boot Partition}

In the Disk setup, select new. In mount point select /boot. File system type 
ext3. Size 100 MB. 

\subsubsection{Swap Partition}

Create a swap partition. Select new. Select file system type swap, and size 512 

\subsubsection{Root Partition}

Select new. Select mount point /. Select the file system type to be: ext3. 
Select "Fill to maximum allowable size" or the size you would like for the root 
partition. 2GB should be enough. Click Ok. Click Next to finish with the Disk 
Setup menu.

\subsection{Boot Loader Configuration}

Leave the default boot loader configuration.

\subsection{Network Configuration}

Leave the DHCP option for the eth0 by default. For the Hostname, select 
manually and in the text box type doyen.

\subsection{Firewall Configuration}

Select enable firewall and enable Remote Login (SSH) and Web Server(HTTP, 
HTTPS). Also, select disable for SELinux.

\subsection{Additional Language Support}

Select your prefer language.

\subsection{Time Zone Selection}

Select your time zone location.

\subsection{Set Root Password}

Select the desire password for the root account. In our base CD the password by 
default is address@hidden

\subsection{Package Group Selection}


\item Select default selections for X Window System section and the Gnome 

\item In the editors section, select Emacs and Vim-Enhanced.

\item Select Graphical Internet and remove all packages except Firefox.

\item Select and remove all packages in text-based internet.

\item Remove all Office/Productivity packages.

\item In the Sound and video packages remove everything except cdrecord and 
mkisofs packages.

\item Remove all packages in the Graphics section.

\item Leave all the other sections unchanged and click next.


Click next to begin installation. Follow the proper prompts when asked to 
insert other media CDs. When the installation is complete, remove the CD and 
reboot your computer.

\subsection{Finishing System Installation}


At the new Welcome screen, click next.

\subsubsection{License Agreement}

Proceed to accept the license agreement. Click next.

\subsubsection{Date and Time}

Set the proper date and time. Click next.


In Display configuration, click configure and select "Generic CRT Display" with 
1024x768 resolution and color depth of Millions of colors. Click next.

\subsubsection{System User}

For the System User options, provide this information:


\item Username: doyen.
\item Full name: Doyen user.
\item Password: address@hidden
\item Confirm Password: address@hidden


\subsubsection{Sound Card}

You can skip the sound card testing and click next.

\subsubsection{Additional CDs}

Leave this section unchanged and click next.

\subsection{Finish Setup}

Click next to complete the installation.

\subsubsection{Login Screen}

Login as root user.

\subsubsection{Services Configuration}

You need to disable unwanted system services from autoloading.

Click on Applications -->  System Settings --> Server Settings --> Services

Uncheck all except: 

\item acpid
\item anacron 
\item apmd
\item atd
\item autofs
\item crond
\item gpm
\item hadaemon
\item iptables
\item netfs
\item netplugd
\item network
\item pcmcia
\item sshd
\item syslog
\item xinetd

Click save and close the window.

\section{Customizing Live CD}
\subsection{Software Installation}

The package installation for the Doyen distribution are done by using Yum and 
Wget to obtain all the required rpm files from various locations.
The next step configures a file required for yum to search and install 
packages. Do not skip this step.
Open a terminal window.


rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora


\subsection{Update System}

You need to update the current packages installed in your system. Proceed to do 
a yum update. This step may take a while.


yum -y update



To install the Latex software package you need to use yum and install tetex, 
tetex-latex, and tetex-xdvi packages.


yum -y install tetex

yum -y install tetex-latex

yum -y install tetex-xdvi


\subsubsection{Noweb Software Package}

Create a /tmp/pkgs directory which will contain those packages that are not 
available using Yum, but that are going to be obtained using Wget.


mkdir /tmp/pkgs

cd /tmp/pkgs



rpm -ivh Icon2-9.3.2-7.i386.rpm

rpm -ivh noweb-2.10a-1.i386.rpm


\subsubsection{Installing Zope, Python-Imaging, and ZWiki}

In this section you will install and configure the ZWiki server. First,  
download the Zope 2.8 rpm package from the server and the zwiki 






Next, proceed to install the Zope and Python-imaging rpm packages.


rpm -ivh python-imaging-1.1.4-7.i386.rpm
rpm -ivh zope-2.8.0-2.fc3.i386.rpm


Add Zwiki to Zope server.


tar -xzf ZWiki-0.43.0.tgz -C /usr/lib/zope/lib/python/Products/


Configure root user for Zwiki access.


/usr/bin/zopectl adduser root address@hidden


Test and deploy Zwiki server.


/etc/init.d/zope start



Download the Axiom software package from axiom.developer server.



tar -xzf axiom-Feb2005-Fedora3.bin.tgz -C /etc/


In order to use Axiom, you  must include Axiom in the user path. Open the Vi 
editor and edit the .bash\_profile file in the root directory and the doyen 
user home directory with the next set of changes. You can also copy the 
.bash\_profile provided in the appendix of this document into the /root and 
/home/doyen directories.


vi .bash_profile
export AXIOM=/etc/axiom/mnt/fedora3
append AXIOM to PATH:


Activate the changes to the current session.


source ~/.bashrc
source ~/.bash_profile



Download the LatexWiki package from webpage. LatexWiki is a patch 
to the ZWiki package that allows rendering of in-line Latex.


cd /tmp/pkgs



Unpack the LatexWiki distribution into the Zope installation's Products 


tar -xvf LocalFS-1.3-andreas.tar.gz -C /usr/lib/zope/lib/python/Products/


Download and install darcs



rpm -ivh darcs-1.0.3-2.fc3.i386.rpm



darcs get


\subsubsection{Xorg file configuration}

Use Vi to properly configure the video support.


vi /etc/X11/xorg.conf


For multiple video card support change the driver name for the video card 
indentifier. Set driver value to "vesa".

\subsubsection{Generic mouse configuration}

Create the moused file that is in the appendix or copy the one generated for 
you by this document and place in the /etc/init.d directory:
Add the script to the run levels 3, 4, and 5.


ln -s /etc/init.d/moused /etc/rc3.d/S01moused

ln -s /etc/init.d/moused /etc/rc4.d/S01moused

ln -s /etc/init.d/moused /etc/rc5.d/S01moused

ln -s /etc/init.d/moused /etc/rc6.d/K01moused

ln -s /etc/init.d/moused /etc/rc0.d/K01moused


\subsubsection{Build Live CD scritps}

Download the scripts necessary to build the CD from the Linux-Live webpage.


cd /tmp/pkgs



Get the precompiled kernel with SquashFS and UnionFS module support.



tar -xzf linux-kernel- -C /

tar -xzf linux-live-5.0.16.tar.gz -C /tmp


Edit the config file and make these changes: Change KERNEL name to 
KERNEL="". Save and close the config file.


cd /tmp/linux-live-5.0.16/

vi config


Create module dependecies for newly installed kernel.


depmod -b /


\subsubsection{Clean Up and ISO creation and burnning}

Finally, proceed to delete temporary files created by the package installation 
process to reduce the size of the CD to be created. Then, run the 
script that will create the ISO image.


rm -rf /tmp/pkgs
rm -rf /var/cache/yum/base/pakcages/*
rm -rf /var/cache/yum/updates-released/packages/*


Run the script, which will create the distribution iso.




If you have a CD recorder unit, you can create the Doyen CD by running:



# Linux
KERNEL=`uname -r`
config () {
        # Is this a printconf system?
        if [ -f /lib/modules/\$KERNEL/kernel/drivers/input/mouse/\$MODULE ]
               \# run printconf-backend to set up the configuration.
                /sbin/modprobe psmouse
start () {
        echo -n $"Starting $prog: "
stop () {
        \# stop daemon
        echo -n $"Stopping $prog: "
        rmmod psmouse
case $1 in
        echo $"Usage: $prog {start|stop|restart|condrestart|reload|status}"
        exit 1



# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#       Option  "Xleds"         "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#       Option  "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#       Option  "XkbModel"      "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#       Option  "XkbModel"      "microsoft"
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#       Option  "XkbLayout"     "de"
# or:
#       Option  "XkbLayout"     "de"
#       Option  "XkbVariant"    "nodeadkeys"
# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "yes"

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "ViewSonic E70"
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 120.0
        Option      "dpms"

Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
        VendorName  "Videocard vendor"
        BoardName   "ATI Radeon 9200SE"

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" 

Section "DRI"
        Group        0
        Mode         0666



# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
# User specific environment and startup programs
export AXIOM=/etc/axiom/mnt/fedora3
export PATH




all: extract do latex
        @echo done

extract: steps.pamphlet
        ${notangle} -Rstep steps.pamphlet >
        ${notangle} -Rmoused steps.pamphlet >moused
        ${notangle} -Rxorg steps.pamphlet >xorg.conf
        ${notangle} -Rbashprofile steps.pamphlet >.bash_profile
        ${noweave} -delay steps.pamphlet >steps.tex
do: steps.pamphlet
        @echo executing

latex: steps.tex
        @echo making steps.dvi from steps.tex
        latex steps.tex
        latex steps.tex
        pdflatex steps.tex

remake: steps.pamphlet
        @echo extracting makefile
        ${notangle} -t8 steps.pamphlet >Makefile


forwarded from

reply via email to

[Prev in Thread] Current Thread [Next in Thread]