Source File section
File deleted: Versuche/SecNFS/sec_rpc-1.54.tar.gz.url (Size: 115, Created: May 11 17:28 )
File deleted: Old-Packages/clamav-0.70.tar.gz (Size: 2347104, Created: May 10 18:32 )
File created: Versuche/SecNFS/sec_rpc-1.54.tar.gz.url (Size: 115, Created: May 11 2004 )
File created: Old-Packages/clamav-0.70.tar.gz (Size: 2347104, Created: May 10 2004 )
Usermanager Section
File created: mylinux-usermanager-0.98/compile-scripts/x
#!/bin/bash
########################################################################
# File: compile-scripts/MAIN #
# myLinux Server: Copyright (c) 2003 Michael Oberg #
# Version: 0.97 #
# Author: Michael Oberg <michael.oberg@mylinuxproject.de> #
# #
# This program is free software; you can redistribute it and/or modify #
# it 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 Public License along #
# with this package; if not, write to the Free Software Foundation, #
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
########################################################################
# Warning: You have to make sure that setup/mylinux.conf is correct.
MYLINUXMGR=`dirname $0`
if echo $MYLINUXMGR | grep '^[^/]' > /dev/null
then
# MYLINUXMGR is not an absolute path, but relative to pwd;
# change it into an absolute path
MYLINUXMGR=`pwd`/`dirname $0`
fi
MYLINUXPACKAGE=`echo $MYLINUXMGR | sed 's|/compile-scripts||'`
MYLINUXPACKAGENAME=`echo $MYLINUXPACKAGE | sed 's|.*/\([^/]*\)|\1|'`
if [ x$LFS = x ]
then
cat << EOF
Variable LFS has to be set.
Directory structure should be:
$LFS/LFS-Packages # has to contain the packages of LFS
$LFS/BLFS-Packages # has to contain the packages of BLFS
$LFS/MyLinux-Packages # has to contain the packages of MyLinux
$LFS/ # this will be the new root directory
EOF
exit 1
fi
if [ ! -d $LFS/LFS-Packages -o ! -d $LFS/BLFS-Packages -o ! -d $LFS/MyLinux-Packages ]
then
cat << EOF
Directory structure should be:
$LFS/LFS-Packages # has to contain the packages of LFS
$LFS/BLFS-Packages # has to contain the packages of BLFS
$LFS/MyLinux-Packages # has to contain the packages of MyLinux
$LFS/ # this will be the new root directory
EOF
exit 1
fi
if [ ! -e $MYLINUXMGR/UNPACK-LFS -o ! -e $MYLINUXMGR/UNPACK-BLFS -o ! -e $MYLINUXMGR/UNPACK-MyLinux -o ! -e $MYLINUXMGR/COMPILE-STATIC -o ! -e $MYLINUXMGR/COMPILE-RUNTIME1 -o ! -e $MYLINUXMGR/COMPILE-RUNTIME2 -o ! -e $MYLINUXMGR/COMPILE-RUNTIME3 -o ! -e $MYLINUXMGR/COMPILE-BLFS -o ! -e $MYLINUXMGR/COMPILE-MYLINUX ]
then
echo "Package stored in $MYLINUXMGR is not complete."
[ -e $MYLINUXMGR/UNPACK-LFS ] || echo "$MYLINUXMGR/UNPACK-LFS doesn't exist"
[ -e $MYLINUXMGR/UNPACK-BLFS ] || echo "$MYLINUXMGR/UNPACK-BLFS doesn't exist"
[ -e $MYLINUXMGR/UNPACK-MyLinux ] || echo "$MYLINUXMGR/UNPACK-MyLinux doesn't exist"
[ -e $MYLINUXMGR/COMPILE-STATIC ] || echo "$MYLINUXMGR/COMPILE-STATIC doesn't exist"
[ -e $MYLINUXMGR/COMPILE-RUNTIME1 ] || echo "$MYLINUXMGR/COMPILE-RUNTIME1 doesn't exist"
[ -e $MYLINUXMGR/COMPILE-RUNTIME2 ] || echo "$MYLINUXMGR/COMPILE-RUNTIME2 doesn't exist"
[ -e $MYLINUXMGR/COMPILE-RUNTIME3 ] || echo "$MYLINUXMGR/COMPILE-RUNTIME3 doesn't exist"
[ -e $MYLINUXMGR/COMPILE-BLFS ] || echo "$MYLINUXMGR/COMPILE-BLFS doesn't exist"
[ -e $MYLINUXMGR/COMPILE-MYLINUX ] || echo "$MYLINUXMGR/COMPILE-MYLINUX doesn't exist"
exit 1
fi
echo "Compile MyLinux"
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c /MyLinux-Sources/COMPILE-MYLINUX || exit 1
echo "Updating apropos man page index"
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c makewhatis
echo "Create an example /etc/exports file"
cat << EOF > $LFS/etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other
# computers.
# It is used by rpc.nfsd and rpc.mountd.
#/ 192.168.0.2(no_root_squash,rw) 192.168.0.1(rw)
EOF
echo "Configure PDF printer for CUPS"
cp -dp $MYLINUXPACKAGE/publicfiles/pdf $LFS/usr/lib/cups/backend/
cp -dp $MYLINUXPACKAGE/MyLinux-Patches/destiller.ppd $LFS/usr/share/cups/model/
echo "Copying Apple printer drivers for NT/2000"
mkdir $LFS/var/lib/samba/printers/W32X86
cp -dp $MYLINUXPACKAGE/laserwriter/* $LFS/var/lib/samba/printers/W32X86/
echo "Update paths in /etc/login.defs"
cat $LFS/etc/login.defs | sed \
-e 's|PATH=/sbin:/bin:/usr/sbin:/usr/bin$|&:/usr/local/sbin:/usr/local/bin|' \
-e 's|PATH=/bin:/usr/bin$|&:/usr/local/bin|' \
> $LFS/etc/login.defs-new
mv $LFS/etc/login.defs-new $LFS/etc/login.defs
echo "Install myLinux usermanager"
cp -Rdp $MYLINUXPACKAGE $LFS/MyLinux-Sources
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c /MyLinux-Sources/$MYLINUXPACKAGENAME/install.pl || exit 1
echo "Starting full setup"
CONFIG=/MyLinux-Sources/mylinux.conf
if [ ! -d $LFS/root/usermanager/setup ]
then
echo "$LFS/root/usermanager/setup doesn't exist!"
exit 1
fi
if [ ! -f $LFS/$CONFIG ]
then
echo "$LFS/$CONFIG doesn't exist!"
exit 1
fi
# copying config file into destination system
cp $LFS/$CONFIG $LFS/root/usermanager/setup/mylinux.conf
chmod 700 $LFS/root/usermanager/setup/mylinux.conf
# create the setup control script
$MYLINUXMGR/../setup/createcontrolscript.sh $LFS
# delete existing mysql password file - after compiling no password is set
rm $LFS/root/usermanager/data/mysqlpasswd
touch $LFS/root/usermanager/data/mysqlpasswd
# executing control script
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/root/usermanager/bin \
/root/install.sh
# deleting control script
rm -f $LFS/root/install.sh
echo "Copying Windows scripts into software directory"
cp -dp $MYLINUXPACKAGE/winsoftware/* $LFS/var/lib/samba/software/Windows/
cat << EOF
If you want to start your new myLinux System directly,
you have to run lilo first. This was not done automatically
during setup, because it would destroy your existing boot
loader configuration.
However it is possible to create a bootable CD without
setting up lilo, but then the runonce-scripts are copied to
the CD too.
If you don't want the runonce-scripts on the CD, you have
to start the LDAP, BIND and mySQL daemons (which is done
automatically on boot time) and then log in as root.
Without booting (which means you have to use chroot) you
can start the login procedure by "cd /root; sh ./.profile".
EOF