Difference between revisions of "Knoppix Installer"


From Knoppix Documentation Wiki
Jump to: navigation, search
Line 32: Line 32:
 
All installs go as follows:
 
All installs go as follows:
  
* 1 show''install''options
+
* 1 show_install_options
 
* 2 do_install
 
* 2 do_install
** 2.1 module''hd''doaction
+
** 2.1 module_hd_doaction
*** 2.1.1 Format ($HD''FSTYPE = xfs, reiser, mkfs.*) if $HD''FORMAT
+
*** 2.1.1 Format ($HD_FSTYPE = xfs, reiser, mkfs.*) if $HD_FORMAT
 
*** 2.1.2 Turn off dir_index of ext2/3
 
*** 2.1.2 Turn off dir_index of ext2/3
*** 2.1.3 mkdir $TARGET''MOUNT''POINT
+
*** 2.1.3 mkdir $TARGET_MOUNT_POINT
 
*** 2.1.4 mount the partition
 
*** 2.1.4 mount the partition
 
*** 2.1.5 mount from $HD_MAP
 
*** 2.1.5 mount from $HD_MAP
*** 2.1.6 module''hd''knoppix_copy
+
*** 2.1.6 module_hd_knoppix_copy
 
**** 2.1.6.1 cd /$DEFAULT_DIR
 
**** 2.1.6.1 cd /$DEFAULT_DIR
**** 2.1.6.2 cp -a $TARGET''MOUNT''POINT
+
**** 2.1.6.2 cp -a $TARGET_MOUNT_POINT
** 2.2 module''swap''doaction
+
** 2.2 module_swap_doaction
*** 2.2.1 if $SWAP''AUTODETECT = no then foreach $SWAP''CHOICES echo $'' none swap defaults 0 0 > $TARGET''MOUNT_POINT /etc/fstab
+
*** 2.2.1 if $SWAP_AUTODETECT = no then foreach $SWAP_CHOICES echo $_ none swap defaults 0 0 > $TARGET_MOUNT_POINT /etc/fstab
 
** 2.3 update_fstab
 
** 2.3 update_fstab
 
*** 2.3.1 write header into etc/fstab
 
*** 2.3.1 write header into etc/fstab
Line 53: Line 53:
 
**** 2.3.5.1 echo line to fstab
 
**** 2.3.5.1 echo line to fstab
 
**** 2.3.5.2 mkdir for mounting
 
**** 2.3.5.2 mkdir for mounting
**** 2.3.5.3 readlink $i | grep -q “$? || cp -a $i $TARGET''MOUNT_POINT/dev/
+
**** 2.3.5.3 readlink $i | grep -q “$? || cp -a $i $TARGET_MOUNT_POINT/dev/
 
*** 2.3.6 Add automounter links (copy them from mnt to mnt)
 
*** 2.3.6 Add automounter links (copy them from mnt to mnt)
 
*** 2.3.7 Knoppix detect other partitions
 
*** 2.3.7 Knoppix detect other partitions
Line 61: Line 61:
 
*** 2.3.10 on vfat use noauto, users, exec, umask=000
 
*** 2.3.10 on vfat use noauto, users, exec, umask=000
 
** 2.4 old_installer
 
** 2.4 old_installer
*** 2.4.1 system''type''knoppix if KNOPPIX then return when finished
+
*** 2.4.1 system_type_knoppix if KNOPPIX then return when finished
**** 2.4.1.1 with USER''NAME to “$? system''copy''home
+
**** 2.4.1.1 with USER_NAME to “$? system_copy_home
 
***** 2.4.1.1.1 if user has a .kde, copy their home dir to target, otherwise use /etc/skel
 
***** 2.4.1.1.1 if user has a .kde, copy their home dir to target, otherwise use /etc/skel
 
***** 2.4.1.1.2 in chroot, chown the home dir to the user
 
***** 2.4.1.1.2 in chroot, chown the home dir to the user
Line 68: Line 68:
 
***** 2.4.1.1.4 remove autostart scripts .kde/Autostart/showindex and sorticons
 
***** 2.4.1.1.4 remove autostart scripts .kde/Autostart/showindex and sorticons
 
***** 2.4.1.1.5 change background in .kde/share/config/kdesktoprc from /cdrom/KNOPPIX/background.jpg to /usr/local/lib/knoppix.jpg
 
***** 2.4.1.1.5 change background in .kde/share/config/kdesktoprc from /cdrom/KNOPPIX/background.jpg to /usr/local/lib/knoppix.jpg
***** 2.4.1.1.6 if $USER''NAME != $DEFAULT''USER
+
***** 2.4.1.1.6 if $USER_NAME != $DEFAULT_USER
 
****** 2.4.1.1.6.1 rm .mozilla/appreg and pluginreg.dat
 
****** 2.4.1.1.6.1 rm .mozilla/appreg and pluginreg.dat
 
****** 2.4.1.1.6.2 rename .mozilla/$DEFAULT_USER .mozilla/default
 
****** 2.4.1.1.6.2 rename .mozilla/$DEFAULT_USER .mozilla/default
****** 2.4.1.1.6.3 rewrite files which mention /home/$DEFAULT''USER to have /home/$USER''NAME
+
****** 2.4.1.1.6.3 rewrite files which mention /home/$DEFAULT_USER to have /home/$USER_NAME
**** 2.4.1.2 system''add''hd_config
+
**** 2.4.1.2 system_add_hd_config
***** 2.4.1.2.1 [ ! -r /etc/init.d/knoppix-hd-config -a -x tools/knoppix-hd-config ] && cp -f tools/knoppix-hd-config $TARGET''MNT''POINT/etc/init.d/
+
***** 2.4.1.2.1 [ ! -r /etc/init.d/knoppix-hd-config -a -x tools/knoppix-hd-config ] && cp -f tools/knoppix-hd-config $TARGET_MNT_POINT/etc/init.d/
***** 2.4.1.2.2 mkdir -p $DEFAULT''CONFIG''DIR/etc/network/
+
***** 2.4.1.2.2 mkdir -p $DEFAULT_CONFIG_DIR/etc/network/
***** 2.4.1.2.3 save''config $DEFAULT''CONFIG_DIR/install-configuration
+
***** 2.4.1.2.3 save_config $DEFAULT_CONFIG_DIR/install-configuration
***** 2.4.1.2.4 cp -af /$DEFAULT''DIR/etc/network/interfaces $DEFAULT''CONFIG_DIR/etc/network/
+
***** 2.4.1.2.4 cp -af /$DEFAULT_DIR/etc/network/interfaces $DEFAULT_CONFIG_DIR/etc/network/
***** 2.4.1.2.5 cp -af /$DEFAULT''DIR/etc/pcmcia $DEFAULT''CONFIG_DIR/etc/
+
***** 2.4.1.2.5 cp -af /$DEFAULT_DIR/etc/pcmcia $DEFAULT_CONFIG_DIR/etc/
***** 2.4.1.2.6 cp -af /$DEFAULT''DIR/etc/cups $DEFAULT''CONFIG_DIR/etc/
+
***** 2.4.1.2.6 cp -af /$DEFAULT_DIR/etc/cups $DEFAULT_CONFIG_DIR/etc/
 
***** 2.4.1.2.7 chroot_it update-rc.d knoppix-hd-config start 01 S . >/dev/null
 
***** 2.4.1.2.7 chroot_it update-rc.d knoppix-hd-config start 01 S . >/dev/null
**** 2.4.1.3 system''copy''etc
+
**** 2.4.1.3 system_copy_etc
 
***** 2.4.1.3.1 copy changed files in /etc
 
***** 2.4.1.3.1 copy changed files in /etc
 
***** 2.4.1.3.2 copy across XF86Config
 
***** 2.4.1.3.2 copy across XF86Config
 
***** 2.4.1.3.3 change insmod to modprove in knoppix-autoconfig
 
***** 2.4.1.3.3 change insmod to modprove in knoppix-autoconfig
***** 2.4.1.3.4 s/^CMDLINE=/[ -z "\$CMDLINE" ] && CMDLINE=/g $TARGET''MNT''POINT/etc/init.d/knoppix-autoconfig
+
***** 2.4.1.3.4 s/^CMDLINE=/[ -z "\$CMDLINE" ] && CMDLINE=/g $TARGET_MNT_POINT/etc/init.d/knoppix-autoconfig
***** 2.4.1.3.5 s/modutils/modutils-knoppix/g $TARGET''MNT''POINT/etc/init.d/knoppix-autoconfig
+
***** 2.4.1.3.5 s/modutils/modutils-knoppix/g $TARGET_MNT_POINT/etc/init.d/knoppix-autoconfig
***** 2.4.1.3.6 s/if grep -q /if egrep -q/g $TARGET''MNT''POINT/etc/init.d/knoppix-autoconfig
+
***** 2.4.1.3.6 s/if grep -q /if egrep -q/g $TARGET_MNT_POINT/etc/init.d/knoppix-autoconfig
***** 2.4.1.3.7 [ ! -r /etc/init.d/modutils-knoppix -a -x tools/modutils-knoppix ] && cp -f tools/modutils-knoppix $TARGET''MNT''POINT/etc/init.d/
+
***** 2.4.1.3.7 [ ! -r /etc/init.d/modutils-knoppix -a -x tools/modutils-knoppix ] && cp -f tools/modutils-knoppix $TARGET_MNT_POINT/etc/init.d/
**** 2.4.1.4 system''add''services
+
**** 2.4.1.4 system_add_services
 
***** 2.4.1.4.1 if isdnactivecards or acpi init scripts are there copy them across
 
***** 2.4.1.4.1 if isdnactivecards or acpi init scripts are there copy them across
*** 2.4.2 system''type''beginner
+
*** 2.4.2 system_type_beginner
 
**** 2.4.2.1 update_passwd
 
**** 2.4.2.1 update_passwd
 
***** 2.4.2.1.1 make a copy in temp of passwd, shadow and group
 
***** 2.4.2.1.1 make a copy in temp of passwd, shadow and group
***** 2.4.2.1.2 update the etc/passwd $DEFAULT''USER->$USER''NAME, /home/$DEFAULT''USER -> /home/$USER''NAME and $DEFAULT''NAME -> $NAME''NAME
+
***** 2.4.2.1.2 update the etc/passwd $DEFAULT_USER->$USER_NAME, /home/$DEFAULT_USER -> /home/$USER_NAME and $DEFAULT_NAME -> $NAME_NAME
***** 2.4.2.1.3 update $DEFAULT''USER -> $USER''NAME in etc/shadow and etc/group
+
***** 2.4.2.1.3 update $DEFAULT_USER -> $USER_NAME in etc/shadow and etc/group
**** 2.4.2.2 system''copy''home
+
**** 2.4.2.2 system_copy_home
 
***** 2.4.2.2.1 See 2.4.1.1.X
 
***** 2.4.2.2.1 See 2.4.1.1.X
**** 2.4.2.3 system''add''hd_config
+
**** 2.4.2.3 system_add_hd_config
 
***** 2.4.2.3.1 See 2.4.1.2
 
***** 2.4.2.3.1 See 2.4.1.2
**** 2.4.2.4 system''copy''etc
+
**** 2.4.2.4 system_copy_etc
 
***** 2.4.2.4.1 See 2.4.1.3
 
***** 2.4.2.4.1 See 2.4.1.3
**** 2.4.2.5 system''install''templates
+
**** 2.4.2.5 system_install_templates
 
***** 2.4.2.5.1 if $SEARCHPATH/templates
 
***** 2.4.2.5.1 if $SEARCHPATH/templates
****** 2.4.2.5.1.1 cp -af from $TEMPLATE''PATH to $TARGET''MNT_POINT /etc/profileetc/inittab
+
****** 2.4.2.5.1.1 cp -af from $TEMPLATE_PATH to $TARGET_MNT_POINT /etc/profileetc/inittab
 
****** 2.4.2.5.1.2 remove knoppix entry from sudoers, copy it from template, chown root.root and chmod 440 it
 
****** 2.4.2.5.1.2 remove knoppix entry from sudoers, copy it from template, chown root.root and chmod 440 it
 
***** 2.4.2.5.2 copy etc/hosts.allow
 
***** 2.4.2.5.2 copy etc/hosts.allow
 
***** 2.4.2.5.3 disable all inetd services
 
***** 2.4.2.5.3 disable all inetd services
**** 2.4.2.6 system''install''keymap
+
**** 2.4.2.6 system_install_keymap
 
***** 2.4.2.6.1 . /etc/sysconfig/keyoard if it exists
 
***** 2.4.2.6.1 . /etc/sysconfig/keyoard if it exists
  
**** 2.4.2.7 system''update''files
+
**** 2.4.2.7 system_update_files
 
***** 2.4.2.7.1 update etc/motd
 
***** 2.4.2.7.1 update etc/motd
 
***** 2.4.2.7.2 write /etc/hosts
 
***** 2.4.2.7.2 write /etc/hosts
Line 118: Line 118:
 
****** 2.4.2.7.2.4 remove /etc/mtab and recreate normally
 
****** 2.4.2.7.2.4 remove /etc/mtab and recreate normally
 
****** 2.4.2.7.2.5 change mirror for LANG=us to ftp.us.debian.org in sources.list
 
****** 2.4.2.7.2.5 change mirror for LANG=us to ftp.us.debian.org in sources.list
**** 2.4.2.8 system''install''i18n
+
**** 2.4.2.8 system_install_i18n
 
***** 2.4.2.8.1 if /etc/sysconfig/i18n exists
 
***** 2.4.2.8.1 if /etc/sysconfig/i18n exists
 
***** 2.4.2.8.2 run it with .
 
***** 2.4.2.8.2 run it with .
Line 125: Line 125:
 
***** 2.4.2.8.5 write etc/kde3/system.kdeglobals, Charset, Country, Language
 
***** 2.4.2.8.5 write etc/kde3/system.kdeglobals, Charset, Country, Language
 
***** 2.4.2.8.6 fix language in etc/kde3/kdm/kdmrc
 
***** 2.4.2.8.6 fix language in etc/kde3/kdm/kdmrc
**** 2.4.2.9 system''setup''kdm
+
**** 2.4.2.9 system_setup_kdm
 
***** 2.4.2.9.1 force kde first time configuration in /etc/skel and for user if user just came from /etc/skel
 
***** 2.4.2.9.1 force kde first time configuration in /etc/skel and for user if user just came from /etc/skel
 
***** 2.4.2.9.2 Add kde3 to .wmrc
 
***** 2.4.2.9.2 Add kde3 to .wmrc
 
***** 2.4.2.9.3 set kdm to start in runlevel 5
 
***** 2.4.2.9.3 set kdm to start in runlevel 5
**** 2.4.2.10 system''add''hd_autoconfig
+
**** 2.4.2.10 system_add_hd_autoconfig
***** 2.4.2.10.1 echo SYSTEM''TYPE=$SYSTEM''TYPE and SYSTEM''HW''PROFILE=yes to etc/default/knoppix
+
***** 2.4.2.10.1 echo SYSTEM_TYPE=$SYSTEM_TYPE and SYSTEM_HW_PROFILE=yes to etc/default/knoppix
***** 2.4.2.10.2  [ ! -r /etc/init.d/knoppix-hd-autoconfig -a -x tools/knoppix-hd-autoconfig ] && cp -f tools/knoppix-hd-autoconfig $TARGET''MNT''POINT/etc/init.d/
+
***** 2.4.2.10.2  [ ! -r /etc/init.d/knoppix-hd-autoconfig -a -x tools/knoppix-hd-autoconfig ] && cp -f tools/knoppix-hd-autoconfig $TARGET_MNT_POINT/etc/init.d/
 
***** 2.4.2.10.3  chroot_it update-rc.d -f knoppix-autoconfig remove . 2>/dev/null >/dev/null
 
***** 2.4.2.10.3  chroot_it update-rc.d -f knoppix-autoconfig remove . 2>/dev/null >/dev/null
 
***** 2.4.2.10.4  chroot_it update-rc.d knoppix-hd-autoconfig start 00 S . >/dev/null
 
***** 2.4.2.10.4  chroot_it update-rc.d knoppix-hd-autoconfig start 00 S . >/dev/null
**** 2.4.2.11 system''add''services
+
**** 2.4.2.11 system_add_services
 
***** 2.4.2.11.1 See 2.4.1.4
 
***** 2.4.2.11.1 See 2.4.1.4
**** 2.4.2.12 system''fix''menus
+
**** 2.4.2.12 system_fix_menus
 
***** 2.4.2.12.1 suknoppixmenus usr/share/applnk/Knoppix kdesu
 
***** 2.4.2.12.1 suknoppixmenus usr/share/applnk/Knoppix kdesu
 
****** 2.4.2.12.1.1 set qtparted to use kdesu
 
****** 2.4.2.12.1.1 set qtparted to use kdesu
 
****** 2.4.2.12.1.2 set Partition_Image to use su -c
 
****** 2.4.2.12.1.2 set Partition_Image to use su -c
**** 2.4.2.13 system''create''modules
+
**** 2.4.2.13 system_create_modules
 
***** 2.4.2.13.1 create /dev/mouse symlink
 
***** 2.4.2.13.1 create /dev/mouse symlink
 
***** 2.4.2.13.2 create /etc/modules from currently loaded modules
 
***** 2.4.2.13.2 create /etc/modules from currently loaded modules
Line 149: Line 149:
 
**** 2.4.4.1 rm etc/rc[023456S].d/[SK]??{xsession,knoppix-autoconfig,knoppix-hd-config,knoppix-reboot,knoppix-halt}
 
**** 2.4.4.1 rm etc/rc[023456S].d/[SK]??{xsession,knoppix-autoconfig,knoppix-hd-config,knoppix-reboot,knoppix-halt}
 
**** 2.4.4.2 updaterc.d for $SERVICES_START
 
**** 2.4.4.2 updaterc.d for $SERVICES_START
**** 2.4.4.3 if $TEMPLATE''PATH cp etc/rc[S06] from $TEMPLATE''PATH to $TARGET''MNT''POINT
+
**** 2.4.4.3 if $TEMPLATE_PATH cp etc/rc[S06] from $TEMPLATE_PATH to $TARGET_MNT_POINT
 
**** 2.4.4.4 add rmnologin to all runlevels (???)
 
**** 2.4.4.4 add rmnologin to all runlevels (???)
 
**** 2.4.4.5 Set hotplug to start in levels 1 to 5
 
**** 2.4.4.5 Set hotplug to start in levels 1 to 5

Revision as of 16:47, 26 December 2004