Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RapidSpace Autoinstall OS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
RapidSpace Autoinstall OS
Commits
c7cbba69
Commit
c7cbba69
authored
Jul 17, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version for installation through RJ45
parent
1f23690a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
8 deletions
+40
-8
dnsmasq_xinzhou_unicom.sh
dnsmasq_xinzhou_unicom.sh
+37
-5
preseed_xinzhou_unicom.cfg
preseed_xinzhou_unicom.cfg
+3
-3
No files found.
dnsmasq_xinzhou_unicom.sh
View file @
c7cbba69
...
...
@@ -7,16 +7,26 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
$SCRIPT_DIR
/download_boot_systems.sh
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME
=
e
th0
MY_IP_ADDR
=
192.168.46.1
MY_IF_NAME
=
e
no1
MY_IP_ADDR
=
192.168.46.
5
1
DHCP_RANGE
=
192.168.46.100,static,255.255.255.0
ROUTER_ADDR
=
192.168.46.1
ROUTER_ADDR
=
192.168.46.
5
1
DNS_SERVER
=
1.2.4.8
common
=
console
=
ttyS1,57600
mac
=
'
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
hostname_prefix
=
xinzhou-unicom-tiogapass-
...
...
@@ -71,7 +81,7 @@ iface eno1 inet static
allow-hotplug ens9f1
iface ens9f1 inet static
address 124.163.255.
$((
9
7
+
$i
))
/29
address 124.163.255.
$((
9
8
+
$i
))
/27
gateway 124.163.255.97
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 \
--dhcp-boot
=
debian-installer/amd64/grubx64.efi
\
--enable-tftp
--tftp-root
=
$(
realpath
`
dirname
"
$0
"
`
)
\
--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
\
preseed_xinzhou_unicom.cfg
View file @
c7cbba69
...
...
@@ -11,7 +11,7 @@ d-i grub-installer/force-efi-extra-removable string true
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.cn.debian.org
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-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
...
...
@@ -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
d-i preseed/late_command string set -e; \
cd /target/root; sed -i /^mesg/q .profile; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 1
92.168.46.1
; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 1
24.163.255.99
; \
cd ../../etc; rm -f grub.d/30_otheros; echo LANG=C.UTF-8 >default/locale; \
sed -i '/history-search-/s/# //' inputrc; \
cd network; tftp -g -r `hostname`/interfaces 1
92.168.46.1
; \
cd network; tftp -g -r `hostname`/interfaces 1
24.163.255.99
; \
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
tasksel tasksel/first string
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment