Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cdboot@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit 3c4552a43c
18 changed files with 512 additions and 0 deletions

70
etc/init.d/checkfs Executable file
View File

@ -0,0 +1,70 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $Source$
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version
#2 of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#InitScript zum Start des Daemons:
#Start/Stop Script checkfs
#FileSystem Checks initiieren
#Basierend auf einer Vorlage von linuxfromscratch.org
#speziell angepasst fuer den boot von der installations CDROM
#Letzte Änderung von: $Author$
#Datum der letzten Änderung: $Date$
#Version der Datei: $Revision$
#
# Begin /etc/init.d/checkfs
source /etc/init.d/functions
echo -n "Mounting tmpfs"
mount -t tmpfs none /var
evaluate_retval
echo -n "Restoring Var FileSystem"
cd /var
tar -zxpf /boot/var.tgz
evaluate_retval
echo -n "Checking for System Configuration on /dev/floppy/0"
tar -zxf /dev/floppy/0
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
if [ "$DEVICE" == "none" ]; then
echo -n "Mounting $MOUNTPOINT"
mount $MOUNTPOINT
evaluate_retval
fi
done
if [ -f /sbin/vgscan ]; then
echo -n "Scanning Volumes"
/sbin/vgscan >/dev/null 2>&1
evaluate_retval
for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do
echo -n "Activating Volume $i"
vgchange -a y $i
evaluate_retval
done
fi
# End /etc/init.d/checkfs

28
etc/init.d/hostname Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
source /etc/init.d/functions
case $1 in
start)
echo -n "Setting cdrom hostname in /etc/hosts"
if ip addr list dev eth0|grep -q inet; then
IP=`ifconfig eth0|grep inet|awk '{print $2}'|cut -d ":" -f 2`
echo "$IP ViitorLinux_install" >>/etc/hosts
else
sed -e "s/127\.0\.0\.1.*$/127.0.0.1 localhost ViitorLinux_install/" /etc/hosts >/tmp/hosts
mv /tmp/hosts /var/etc/hosts
fi
evaluate_retval
;;
stop)
exit
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 start|stop"
;;
esac

76
etc/init.d/mountfs Normal file
View File

@ -0,0 +1,76 @@
#!/bin/bash
#Generierung einer Bootable Monsum Linux CD
#Mountfs muß einige besonderheiten beachten, da CD nicht beschreibbar ist
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.9 2005/10/05 10:00:02 kueller
#cdboot liefert nun ein eigenes checkfs mit, welches die mounts, sowie
#die erstellung von fstab usw. (var.tar) vornimmt.
#
#Revision 1.8 2005/01/17 14:32:16 kueller
#/udev wird nun mit beschreibbarem filesystem versehen, damit der udevd
#richtig arbeiten kann.
#
#Revision 1.7 2003/10/23 10:36:01 kueller
#Volumemanagement wird in checkfs initialisiert - entfernt.
#tmpfs, devfs usw. werden ebenfalls bereits in checkfs gemounted.
#
#Revision 1.6 2002/10/06 12:14:11 kueller
#Unnötiges bereinigt: remount,rw von / nicht möglich -> CDROM
#mountfs liest nun wenn vorhanden konfigurationsdaten von Diskette ein
#
#Revision 1.5 2002/01/21 16:56:48 kueller
#Änderungen der mountfs aus Monsum_sysvinit auch hier eingespielt.
#Dadurch wird das VolumeManagement richtig initialisiert
#
#Revision 1.4 2002/01/21 14:34:22 kueller
#Vorhandene Volumes werden nun richtig initialisiert
#
#Revision 1.3 2002/01/21 13:54:58 kueller
#Versuchsballon hat nicht funktioniert - änderungen zurückgenommen
#
#Revision 1.2 2002/01/21 12:18:35 kueller
#Versuchsballon: tmpfs wird nach /etc/lvmtab.d und /etc/lvmconf gemountet.
#Maybe so funzt dann der Volume Manager auch von CD aus
#
#Revision 1.1.1.1 2001/09/22 23:07:03 kueller
#Neustart wg. Datenverlust
#
#Revision 1.2 2001/08/25 13:39:02 kueller
#
#RamDisk wird in zukunft nicht mehr benötigt - das ganze lässt sich eleganter
#über das tmpfs lösen
#
#Revision 1.1.1.1 2001/08/10 18:24:53 kueller
#Daten um Bootfähige CD Zu erzeugen
#
#
# Begin /etc/init.d/mountfs
source /etc/init.d/functions
chmod 1777 /var/tmp
#echo -n "Mounting other file systems..."
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
if [ ! "$FILESYSTEM" == "nfs" ] \
&& [ ! "$FILESYSTEM" == "swap" ] \
&& [ ! "$MOUNTPOINT" == "/" ] \
&& [ ! "$DEVICE" == "none" ]; then
echo -n "Mounting $MOUNTPOINT"
mount $MOUNTPOINT
evaluate_retval
fi
done
# End /etc/init.d/mountfs

View File

@ -0,0 +1 @@
../hostname

View File

@ -0,0 +1 @@
../hostname

81
etc/init.d/xdm Executable file
View File

@ -0,0 +1,81 @@
#!/bin/sh
# Begin /etc/init.d/network
# Start des XWindows Login Managers
# Eine Datei unter /etc/X11/xdm mit namen <LoginManager>.xdm
# die den Pfad zum loginmanager enthält steuert dieses Script
# Ist eine entsprechende Datei vorhanden, so wird der entsprechende
# windowmanager gestartet. Es darf nur eine Datei mit der Endung
# xdm vorhanden sein!
#(c) Rainmaker MultiMedia OHG
#
#$Author: kueller $
#$Date: 2004-12-04 17:05:43 +0100 (Sa, 04 Dez 2004) $
#$Revision: 3422 $
#
#$Log$
#Revision 1.4 2004/12/04 16:05:43 kueller
#.ICE-unix wird mit rootrechten und rwxrwxrwt Rechten angelegt. Damit funktionier
#kde auch wieder korrekt.
#
#Revision 1.3 2003/04/19 08:09:13 kueller
#Restart Option hinzugefügt
#
#Revision 1.2 2002/10/12 12:52:58 kueller
#Vorhandensein von /etc/X11/xdm/*.xdm wird vor start des Windowmanagers
#ueberprüft - dies verhindert fehlermeldungen!
#
#Revision 1.1.1.1 2001/09/23 13:25:09 kueller
#Neustart wg. Datenverlust
#
#Revision 1.2 2001/08/25 13:21:25 kueller
#
#xdm wird jetzt mit loadproc und killproc gestartet/beendet. Das gewähleistet
#eine sicherere funktion, und vermeidet unsinnige Fehlermeldungen
#
#Revision 1.1.1.1 2001/08/14 18:55:19 kueller
#X11 Add Ons
#
#
source /etc/init.d/functions
case "$1" in
start)
if [ ! -d /tmp/.ICE-unix ]; then
mkdir /tmp/.ICE-unix
chown root:root /tmp/.ICE-unix
chmod 1777 /tmp/.ICE-unix
fi
if ls /etc/X11/xdm/*.xdm >/dev/null 2>&1; then
XDM=`cat /etc/X11/xdm/*.xdm`
if [ -f $XDM ]; then
echo -n "Starte Login Manager $XDM"
loadproc $XDM
fi
else
source /etc/profile
source /root/.bash_profile
export HOME=/root
startx &
fi
;;
stop)
if ls /etc/X11/xdm/*.xdm >/dev/null 2>&1; then
XDM=`cat /etc/X11/xdm/*.xdm`
if [ -f $XDM ]; then
echo -n "Shutting down Login Manager $XDM"
killproc $XDM
fi
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0: {start|stop|restart}"
exit 1
;;
esac
#end /etc/inet.d/network

11
etc/init/checkfs.conf Normal file
View File

@ -0,0 +1,11 @@
description "Check Filesystems"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on stopped initlvm
console output
script
tar -C / -zxf /dev/floppy/0
end script

27
etc/init/checkvar.conf Normal file
View File

@ -0,0 +1,27 @@
description "Check if / ist nfs"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits varmake startudev
start on startup
console output
script
echo "Starting checkvar script"
source /etc/init/functions
mount -t proc none /proc
status_message "/proc mounted"
if mount|grep /dev/root|grep nfs &>/dev/null; then
/sbin/initctl emit varmake
status_message "emitting varmake"
else
umount /proc
mount -t tmpfs none /var
tar -C /var -zxpf /boot/var.tgz
mkdir -p /var/lock
mount -t tmpfs none /var/lock
/sbin/initctl emit startudev
status_message "emitting startudev"
fi
end script

18
etc/init/hostname.conf Normal file
View File

@ -0,0 +1,18 @@
description "Setup System Hostname"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [012345] and ( started udev ))
console none
script
if ip addr list dev eth0|grep -q inet; then
IP=`ifconfig eth0|grep inet|awk '{print $2}'|cut -d ":" -f 2`
echo "$IP ViitorLinux_install" >>/etc/hosts
else
sed -e "s/127\.0\.0\.1.*$/127.0.0.1 localhost ViitorLinux_install/" /etc/hosts >/tmp/hosts
mv /tmp/hosts /var/etc/hosts
fi
hostname ViitorInstall
end script

27
etc/init/mountfs.conf Normal file
View File

@ -0,0 +1,27 @@
description "Mounting all Filesystem not depending on Network"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on stopped checkfs
console output
script
source /etc/init/functions
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
if [ ! "$FILESYSTEM" == "nfs" ] \
&& [ ! "$FILESYSTEM" == "swap" ] \
&& [ ! "$MOUNTPOINT" == "/" ] \
&& [ ! "$DEVICE" == "none" ]; then
if [ -d $MOUNTPOINT ]; then
mount $MOUNTPOINT
status_message "$MOUNTPOINT mounted"
else
echo "Mountpoint $MOUNTPOINT not existing!"
fi
fi
done
end script

29
etc/init/xdm.conf Normal file
View File

@ -0,0 +1,29 @@
description "Startup autofs System for local configuration files"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [45] and (started rpc))
stop on runlevel [01236]
console output
post-start script
if [ ! -d /tmp/.ICE-unix ]; then
mkdir /tmp/.ICE-unix
chown root:root /tmp/.ICE-unix
chmod 1777 /tmp/.ICE-unix
fi
end script
script
if ls /etc/X11/xdm/*.xdm >/dev/null 2>&1; then
XDM=`cat /etc/X11/xdm/*.xdm`
dbus-launch --exit-with-session $XDM --nodaemon
else
source /etc/profile
source /root/.bash_profile
export HOME=/root
startx
fi
end script

25
etc/issue Normal file
View File

@ -0,0 +1,25 @@
|| || |||| |||| |||||||| ||| ||||||\\\\
|| || || || || // \\\\ || ||
|| || || || || // \\\\ || ||
|| || || || || || || ||||||//
\\\\ // || || || \\\\ // || \\\\
\\\\ // || || || \\\\ // || \\\\
\\\\// |||| |||| || ||| || \\\\
Willkommen zur CompuExtreme Viitor Server Distribution. Diese Distribution
richtet sich an Unix/Linux Administratoren. Ensprechendes Know How wird
vorrausgesetzt.
Zur Installation müssen erst die Festplatten eingerichtet werden (fdisk).
Als Filesysteme können ext2fs, Reiserfs oder xfs zum Einsatz kommen.
Die Eingerichteten Partitionen wie im späternen System z.B.
unter /mnt mounten. Hiernach unter /Viitor/install das Script
make_base_install aufrufen. Hier wird als default der Installationsumfang
aus BaseSystem.cfg verwendet, sowie als Installation Pfad "/mnt" verwendet.
Dies kann mit den Optionen -c und -m verändert werden.
Im weiteren Verlauf auf die Ausgaben und Abfragen des Scriptes Achten!
Viel Spass wünscht
Harald Küller
Login with "root", Password "Viitor"

View File

BIN
isolinux/isolinux.bin Normal file

Binary file not shown.

14
isolinux/isolinux.cfg Normal file
View File

@ -0,0 +1,14 @@
SERIAL 0 9600
TIMEOUT 100
DEFAULT Install
DISPLAY ViitorBoot.msg
LABEL Live
APPEND root=/dev/sr0
KERNEL linux
PROMPT 1
LABEL Install
APPEND initrd=initrd.gz console=ttyS0,9600 console=tty0 noapic
KERNEL linux
LABEL NoSer
APPEND initrd=initrd.gz
KERNEL linux.noser

67
var/etc/X11/xorg.conf Normal file
View File

@ -0,0 +1,67 @@
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Fri Jan 11 15:05:59 PST 2008
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
Load "freetype"
# Load "xtt"
Load "extmod"
Load "glx"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "0"
Option "Buttons" "9"
Option "ButtonMapping" "1 2 3 6 7"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "logicdp"
Option "XkbLayout" "de"
EndSection
Section "Monitor"
### Comment all HorizSync and VertRefresh values to use DDC:
Identifier "Monitor0"
HorizSync 31.5 - 82.0
VertRefresh 60.0 - 75.0
EndSection
Section "Device"
Identifier "Card0"
Driver "vesa"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSectionSub "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "1280x1024"
EndSubSection
EndSection

32
var/root/.bash_profile Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
#Standard bash-initialisierung für root-account
#(c) Rainmaker MultiMedia OHG
#
#$Author: kueller $
#$Date: 2006-08-30 18:34:38 +0000 (Wed, 30 Aug 2006) $
#$Revision: 3645 $
#
#$Log$
#Revision 1.2 2006/08/30 18:34:38 kueller
#CFLAGS und CXXFLAGS sollten nciht automatisch gesetzt sein.
#
#Revision 1.1.1.1 2001/09/20 21:35:23 kueller
#NeuStart wegen Datenverlust (gelöscht durch MonsumMake)
#
#Revision 1.2 2001/09/08 20:31:11 kueller
#PATH wird jetzt um den Root Path erweitert - dies geschieht nicht
#mehr für alle User, sondern nur noch für root (Programme in sbin Verzeichnissen)
#
#Revision 1.1 2001/09/06 17:56:20 dhofmann
#
#.bash_profile hinzugefügt. CFLAGS und CXXFLAGS auf pentium optimiert (-O3)
#
#
PATH=$PATH:/sbin:/usr/sbin:/usr/X11R7/sbin
export CFLAGS CXXFLAGS PATH
TTY=`tty`
if [ "$TTY" == "/dev/tty1" ]; then
unset DISPLAY
cd /Viitor/install
./Viitor_Setup
fi

5
var/root/.icewm/startup Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
links -g -mode 800x400 /usr/share/doc/ViitorDoc/Viitor/Doc/index.html &
cd /Viitor/install
xterm -e ./Viitor_Setup