Commit c7cbba69 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

version for installation through RJ45

parent 1f23690a
...@@ -7,16 +7,26 @@ SCRIPT_DIR=$(realpath `dirname "$0"`) ...@@ -7,16 +7,26 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR/download_boot_systems.sh $SCRIPT_DIR/download_boot_systems.sh
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE #UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=eth0 MY_IF_NAME=eno1
MY_IP_ADDR=192.168.46.1 MY_IP_ADDR=192.168.46.51
DHCP_RANGE=192.168.46.100,static,255.255.255.0 DHCP_RANGE=192.168.46.100,static,255.255.255.0
ROUTER_ADDR=192.168.46.1 ROUTER_ADDR=192.168.46.51
DNS_SERVER=1.2.4.8 DNS_SERVER=1.2.4.8
common=console=ttyS1,57600 common=console=ttyS1,57600
mac=' mac='
00:22:4d:d9:45:b2 00:22:4d:d9:45:b2
00:22:4d:d9:45:d2
00:22:4d:d9:46:f0
00:22:4d:d9:46:ca
00:22:4d:d9:49:2e
00:22:4d:d9:47:ba
00:22:4d:d9:45:3a
00:22:4d:d9:48:84
00:22:4d:d9:47:e6
00:22:4d:d9:47:c0
00:22:4d:d9:47:f2
' '
i=1 i=1
hostname_prefix=xinzhou-unicom-tiogapass- hostname_prefix=xinzhou-unicom-tiogapass-
...@@ -71,7 +81,7 @@ iface eno1 inet static ...@@ -71,7 +81,7 @@ iface eno1 inet static
allow-hotplug ens9f1 allow-hotplug ens9f1
iface ens9f1 inet static iface ens9f1 inet static
address 124.163.255.$(( 97 + $i ))/29 address 124.163.255.$(( 98 + $i ))/27
gateway 124.163.255.97 gateway 124.163.255.97
dns-nameservers 1.2.4.8 223.5.5.5 223.6.6.6 dns-nameservers 1.2.4.8 223.5.5.5 223.6.6.6
...@@ -98,6 +108,28 @@ exec dnsmasq -d --port=0 --log-dhcp \ ...@@ -98,6 +108,28 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-boot=debian-installer/amd64/grubx64.efi \ --dhcp-boot=debian-installer/amd64/grubx64.efi \
--enable-tftp --tftp-root=$(realpath `dirname "$0"`) \ --enable-tftp --tftp-root=$(realpath `dirname "$0"`) \
--conf-file=/dev/null \ --conf-file=/dev/null \
--dhcp-host=00:22:4d:d9:45:b2,192.168.46.51,1h --dhcp-host=00:22:4d:d9:45:b2,192.168.46.51,1h \
--dhcp-host=00:22:4d:d9:45:d2,192.168.46.52,1h \
--dhcp-host=00:22:4d:d9:46:f0,192.168.46.53,1h \
--dhcp-host=00:22:4d:d9:46:ca,192.168.46.54,1h \
--dhcp-host=00:22:4d:d9:49:2e,192.168.46.55,1h \
--dhcp-host=00:22:4d:d9:47:ba,192.168.46.56,1h \
--dhcp-host=00:22:4d:d9:45:3a,192.168.46.57,1h \
--dhcp-host=00:22:4d:d9:48:84,192.168.46.58,1h \
--dhcp-host=00:22:4d:d9:47:e6,192.168.46.59,1h \
--dhcp-host=00:22:4d:d9:47:c0,192.168.46.60,1h \
--dhcp-host=00:22:4d:d9:47:f2,192.168.46.61,1h \
--dhcp-host=00:22:4d:d9:45:b3,192.168.46.101,1h \
--dhcp-host=00:22:4d:d9:45:d3,192.168.46.102,1h \
--dhcp-host=00:22:4d:d9:46:f1,192.168.46.103,1h \
--dhcp-host=00:22:4d:d9:46:cb,192.168.46.104,1h \
--dhcp-host=00:22:4d:d9:49:2f,192.168.46.105,1h \
--dhcp-host=00:22:4d:d9:47:bb,192.168.46.106,1h \
--dhcp-host=00:22:4d:d9:45:3b,192.168.46.107,1h \
--dhcp-host=00:22:4d:d9:48:85,192.168.46.108,1h \
--dhcp-host=00:22:4d:d9:47:e7,192.168.46.109,1h \
--dhcp-host=00:22:4d:d9:47:c1,192.168.46.110,1h \
--dhcp-host=00:22:4d:d9:47:f3,192.168.46.111,1h \
...@@ -11,7 +11,7 @@ d-i grub-installer/force-efi-extra-removable string true ...@@ -11,7 +11,7 @@ d-i grub-installer/force-efi-extra-removable string true
d-i mirror/country string manual d-i mirror/country string manual
d-i mirror/http/hostname string ftp.cn.debian.org d-i mirror/http/hostname string ftp.cn.debian.org
d-i mirror/http/directory string /debian d-i mirror/http/directory string /debian
#d-i mirror/http/proxy string http://10.0.45.51:3142 d-i mirror/http/proxy string http://124.163.255.99:3142
d-i partman/early_command string set -e; x=`grep -l 468862128 /sys/block/*/size`; x=${x%/*}; x=/dev/${x##*/}; debconf-set partman-auto/disk $x; debconf-set grub-installer/bootdev $x d-i partman/early_command string set -e; x=`grep -l 468862128 /sys/block/*/size`; x=${x%/*}; x=/dev/${x##*/}; debconf-set partman-auto/disk $x; debconf-set grub-installer/bootdev $x
d-i partman-auto/expert_recipe string : 36 1 36 free method{ efi } format{ } . 1 1 -1 xfs method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } options/noatime{ } . d-i partman-auto/expert_recipe string : 36 1 36 free method{ efi } format{ } . 1 1 -1 xfs method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } options/noatime{ } .
d-i partman-auto/method string regular d-i partman-auto/method string regular
...@@ -33,10 +33,10 @@ d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session ...@@ -33,10 +33,10 @@ d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session
# - enable page up/down to search the history # - enable page up/down to search the history
d-i preseed/late_command string set -e; \ d-i preseed/late_command string set -e; \
cd /target/root; sed -i /^mesg/q .profile; \ cd /target/root; sed -i /^mesg/q .profile; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 192.168.46.1; \ mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 124.163.255.99; \
cd ../../etc; rm -f grub.d/30_otheros; echo LANG=C.UTF-8 >default/locale; \ cd ../../etc; rm -f grub.d/30_otheros; echo LANG=C.UTF-8 >default/locale; \
sed -i '/history-search-/s/# //' inputrc; \ sed -i '/history-search-/s/# //' inputrc; \
cd network; tftp -g -r `hostname`/interfaces 192.168.46.1; \ cd network; tftp -g -r `hostname`/interfaces 124.163.255.99; \
in-target sh -ec 'passwd -ld root; sed -i /^GRUB_CMDLINE_LINUX_DEFAULT=/s/quiet// /etc/default/grub; update-grub' in-target sh -ec 'passwd -ld root; sed -i /^GRUB_CMDLINE_LINUX_DEFAULT=/s/quiet// /etc/default/grub; update-grub'
d-i time/zone string UTC d-i time/zone string UTC
tasksel tasksel/first string tasksel tasksel/first string
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment