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
d69d776f
Commit
d69d776f
authored
Feb 25, 2021
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for douai
parent
826c0673
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
dnsmasq_douai.sh
dnsmasq_douai.sh
+12
-17
preseed_douai.cfg
preseed_douai.cfg
+2
-2
No files found.
dnsmasq_douai.sh
View file @
d69d776f
...
...
@@ -7,13 +7,13 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
.
$SCRIPT_DIR
/download_boot_systems.sh
download_debian_10_if_needed
#
download_sysrescuecd_if_needed
download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME
=
VLAN10
0
MY_IP_ADDR
=
19
5.90.118.194
DHCP_RANGE
=
19
5.90.118.194,static,255.255.255.224
ROUTER_ADDR
=
19
5.90.118.193
MY_IF_NAME
=
eth
0
MY_IP_ADDR
=
19
2.168.46.2
DHCP_RANGE
=
19
2.168.46.100,static,255.255.255.0
ROUTER_ADDR
=
19
2.168.46.2
DNS_SERVER
=
1.1.1.1
common
=
console
=
ttyS1,57600
...
...
@@ -35,7 +35,7 @@ mac='
00:22:4d:dd:64:d8
00:22:4d:dd:64:fe
'
i
=
0
i
=
1
hostname_prefix
=
douai-capri-
(
...
...
@@ -84,26 +84,21 @@ iface lo inet loopback
allow-hotplug eno1
#iface eno1 inet dhcp
iface eno1 inet static
address 19
5.90.118
.
$((
50
+
$i
))
/24
address 19
2.168.46
.
$((
50
+
$i
))
/24
allow-hotplug en
s9
f1
iface en
s9
f1 inet static
allow-hotplug en
p193s0
f1
iface en
p193s0
f1 inet static
address 195.90.118.
$((
194
+
$i
))
/27
gateway 195.90.118.193
dns-nameservers 1.1.1.1 8.8.8.8
#allow-hotplug ens9f0
##iface ens9f0 inet dhcp
#iface ens9f0 inet static
# address 113.24.192.26/30
# gateway 113.24.192.25
#allow-hotplug enp193s0f0
#iface enp193s0f0 inet dhcp
EOF
i
=
`
expr
$i
+ 1
`
done
exec
dnsmasq
-d
--port
=
0
--log-dhcp
\
--interface
=
$MY_IF_NAME
\
--bind-interfaces
\
...
...
preseed_douai.cfg
View file @
d69d776f
...
...
@@ -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 19
5.90.118.194
; \
mkdir -m 0700 .ssh; cd .ssh; tftp -g -r authorized_keys 19
2.168.46.2
; \
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 19
5.90.118.194
; \
cd network; tftp -g -r `hostname`/interfaces 19
2.168.46.2
; \
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