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
Xiaowu Zhang
RapidSpace Autoinstall OS
Commits
058b0401
Commit
058b0401
authored
Mar 18, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for Xinzhou, use SFP interface
parent
f2671ba7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
authorized_keys
authorized_keys
+2
-1
dnsmasq
dnsmasq
+6
-5
gen_xinzhou.sh
gen_xinzhou.sh
+4
-3
preseed.cfg
preseed.cfg
+3
-3
No files found.
authorized_keys
View file @
058b0401
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5MAMmMmojqNRoOnGc7xGoJWWAzYo2f2zO2K4elsZhHfG6l2SQJTmna0DuUi8qEtBbA9+TN1HAOeEXQKMsQyydG8dAE9vT41Lj5y8kXQDDquQxcpTIrqjmSqxjG42Olk+sT+XvcdyqA//29OHhhrKdhIf9LAOsIPHDYW06hRMf7kXIgt3MNi8ayPpA9coTHIscvV8MzwbF2q8Owrkj5UpPmSd/cjmFTcijT3rXmN0E1d3lrCvIuqxFBsFB47o0q53rFZMc5HoHQjJbg6dB4E0GNT0Ujl9ZaIDEzQbe1/T5BVWXrwDfYXbj8UlqtXeFQlo2dB+au2tHw56s4boqDxIl thomas.gambier@nexedi.com
ssh-rsa AAAAB3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ggTjPRx1SrqRNNotHbbMEb5rCBTZc0s0klwKVzr77g3AOgAYRz9QM/l995Npm987AgbFuj rafael@localhost
dnsmasq
View file @
058b0401
#!/bin/sh
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME
=
eno1
MY_IP_ADDR
=
192.168.46.2
DHCP_RANGE
=
192.168.46.100,192.168.46.200,255.255.255.0
ROUTER_ADDR
=
192.168.46.2
MY_IF_NAME
=
ens9f1
MY_IP_ADDR
=
10.0.45.51
DHCP_RANGE
=
10.0.45.100,10.0.45.200,255.255.255.0
ROUTER_ADDR
=
10.0.45.51
DNS_SERVER
=
1.2.4.8
LOCAL_SCRIPT
=
gen_xinzhou.sh
# apt install -y dnsmasq-base
...
...
@@ -32,6 +33,6 @@ exec dnsmasq -d --port=0 --log-dhcp \
--listen-address
=
$MY_IP_ADDR
\
--dhcp-range
=
$DHCP_RANGE
\
--dhcp-option
=
option:router,
$ROUTER_ADDR
\
--dhcp-option
=
option:dns-server,
80.80.80.80,80.80.81.81
\
--dhcp-option
=
option:dns-server,
$DNS_SERVER
\
--dhcp-boot
=
debian-installer/amd64/grubx64.efi
\
--enable-tftp
--tftp-root
=
$(
realpath
`
dirname
"
$0
"
`
)
gen_xinzhou.sh
View file @
058b0401
...
...
@@ -4,7 +4,8 @@ set -e
common
=
console
=
ttyS1,57600
mac
=
'
00:22:4d:d9:48:74
b8:59:9f:07:7d:f3
b8:59:9f:07:7f:c3
'
i
=
2
hostname_prefix
=
xinzhou-tiogapass-
...
...
@@ -59,8 +60,8 @@ iface eno1 inet static
allow-hotplug ens9f1
iface ens9f1 inet static
address 1
72.16.0
.
$((
50
+
$i
))
/24
gateway 1
72.16.0.
1
address 1
0.0.45
.
$((
50
+
$i
))
/24
gateway 1
0.0.45.5
1
#allow-hotplug ens9f0
##iface ens9f0 inet dhcp
...
...
preseed.cfg
View file @
058b0401
...
...
@@ -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
d-i mirror/http/proxy string
http://10.0.45.51: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.2
; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 1
0.0.45.51
; \
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.2
; \
cd network; tftp -g -r `hostname`/interfaces 1
0.0.45.51
; \
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