Im Verzeichnis /grub/grub
die Datei menu.lst
editieren:
title Netboot
kernel (hd0,1)/boot/linux root=/dev/ram0 ramdisk_size=65536
initrd (hd0,1)/boot/initrd.gz
Im Verzeichnis /etc/grub.d
die Datei 40_custom
editieren oder neu anlegen:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry “Netboot” {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)
'
linux /boot/linux root=/dev/ram0 ramdisk_size=65536
initrd /boot/initrd.gz
}
die Datei muss ausführbar sein (chmod u+x 40_custom
)
danach als root
update-grub2
aufrufen.
PS: set root='(hd0,msdos2)
'
bedeutet: 1. Disk und 2. Partition.
fdsik /dev/sda
mkfs.ext3 /dev/sda1
mkdir root/debroot
mount /dev/sda1 /root/debroot
evtl.: export http_proxy=“http:\/\/<User>:<Passwort>@<ProxynameOderIP>:<portNummer>”
debootstrap –verbose –arch i386 squeeze /root/debroot http://ftp.de.debian.org/debian/
mount -o bind /proc /root/debroot/proc
LANG=C chroot /root/debroot /bin/bash
fstab anlegen (/etc/fstab)
# file system mount point type options dump pass
/dev/sda1 / ext3 defaults 0 1
/dev/sda2 none swap sw 0 2
proc /proc proc defaults 0 0
apt-cache search linux-image
bearbeiten von /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
apt-get install install linux-image-xxxxxxxxx
mknod sda b 8 0
mknod sda1 b 8 1
mknod sda2 b 8 2
apt-get install grub
grub-install /dev/sda1
update-grub
apt-get autoclean
root passwort setzen
passwd …
Boot Parameter (Kernel 2.6.32):
… linux root=/dev/… language=de country=DE locale=en_US.UTF-8 keymap=de-latin1-nodeadkeys console-keymaps-at/keymap=de-latin1-nodeadkeys netcfg/confirm_static=true interface=eth0 netcfg/disable_dhcp=true netcfg/get_ipaddress=<host-ip> netcfg/get_netmask=<netmask-ip> netcfg/get_gateway=<gateway-ip> netcfg/get_nameservers=<nameserver-ip> hostname=<hostname> domain=<domain> mirror/country=Germany mirror/http/hostname=ftp.de.debian.org mirror/http/proxy=http:\/\/<user>:<pass>@<IP_Address>:<port>/ mirror/http/directory=/debian url=<ip-web-swever>/preseed.cfg
- Webserver mit apache2 aufsetzen
- in /var/www die Datei preseed.cfg ablegen
preseed.cfg:
d-i localechooser/supported-locales en_US.UTF-8, de_DE.UTF-8
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Berlin
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ltim1ap
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
boot-root :: \
5000 10000 1000000000 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / } \
. \
1000 512 1100 linux-swap \
$primary{ } \
method{ swap } format{ } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/local0/source boolean false
d-i apt-setup/local1/source boolean false
d-i apt-setup/local2/source boolean false
d-i passwd/root-password password sun
d-i passwd/root-password-again password sun
d-i passwd/user-fullname string ms
d-i passwd/username string ms
d-i passwd/user-password password sun
d-i passwd/user-password-again password sun
tasksel tasksel/first multiselect none
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/include string mc localepurge
d-i localepurge/nopurge multiselect de, de_DE, de_DE@euro, de_DE.UTF-8, en, en_US, en_US.ISO-8895-15, en_US.UTF-8
# d-i preseed/late_command string in-target wget -P /tmp/ http://19.40.136.106/skript.sh; in-target chmod +x /tmp/skript.sh; in-target /tmp/skript.sh
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i debian-installer/add-kernel-opts string vga=0x305
d-i finish-install/reboot_in_progress note
#########################################################
d-i localechooser/supported-locales en_US.UTF-8, de_DE.UTF-8 d-i clock-setup/utc boolean true d-i time/zone string Europe/Berlin d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string ltim1ap d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular # Disk Partitionen auf sda mit 666 Cyl. ca. 5,5 GB # sda1 Cyl. 1 - Cyl. 134 # sda2 Cyl. 134 - Cyl. 200 # sda3 Cyl. 200 - Cyl. 666 d-i partman-auto/expert_recipe string \ boot-root :: \ 500 2200 2200 ext3 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ / } \ . \ 545 512 800 linux-swap \ $primary{ } \ method{ swap } format{ } \ . \ 500 10000 1000000000 ext3 \ $primary{ } \ method{ keep } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /home } \ . d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i apt-setup/non-free boolean true d-i apt-setup/contrib boolean true # d-i apt-setup/local0/source boolean false # d-i apt-setup/local1/source boolean false # d-i apt-setup/local2/source boolean false d-i passwd/root-password password sun d-i passwd/root-password-again password sun d-i passwd/user-fullname string ms d-i passwd/username string ms d-i passwd/user-password password sun d-i passwd/user-password-again password sun tasksel tasksel/first multiselect none popularity-contest popularity-contest/participate boolean false d-i pkgsel/include string localepurge mc lynx vim zip unzip bzip2 arj ncompress bc dc less dnsutils ntpdate sudo xorg xdm fluxbox openssh-server root-tail iceweasel mozplugger iceweasel-l10n-de d-i localepurge/nopurge multiselect de, de_DE, de_DE@euro, de_DE.UTF-8, en, en_US, en_US.ISO-8895-15, en_US.UTF-8 d-i preseed/late_command string in-target wget -r -l 1 -nd -P /tmp/ http://19.40.136.106/move/; in-target chmod +x /tmp/skript.sh; in-target /tmp/skript.sh d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i debian-installer/add-kernel-opts string vga=0x305 d-i finish-install/reboot_in_progress note
sun-java6-jre sun-java6-plugin sun-java6-fonts feh wodim gforth debian-multimedia-keyring sources.list deb http://www.debian-multimedia.org squeeze main non-free acroread-l10n-de mozilla-acroread http_proxy="http://<username>:<password>@<IP or hostname>:<port>" export http_proxy apt-get install flashplugin-nonfree rdesktop libxp6 libmotif4 dpkg -i icaclient_11.100_i386.patched.deb nmon