add unable to start wireguard interface in ubuntu 18.04 with new kernel 4.15.0-106
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
"datePublished": "2020-04-08 16:20:33 \x2b0800 CST",
|
||||
"dateModified" : "2020-04-08 16:20:33 \x2b0800 CST",
|
||||
"url" : "https:\/\/h.cowbay.org\/post\/ubuntu-1804-preseeds\/",
|
||||
"wordCount" : "702",
|
||||
"wordCount" : "738",
|
||||
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-3.jpg"",
|
||||
"keywords" : [ ""pxe"",""preseeds"","Blog" ]
|
||||
}
|
||||
@@ -45,9 +45,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1586334318" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1592788642" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1586334318" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1592788642" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -400,175 +400,153 @@ exit 0
|
||||
|
||||
<p>ubuntu 18.04 preseeds files</p>
|
||||
|
||||
<p>````</p>
|
||||
|
||||
<h1 id="title-ubuntu-18-04-preseed-cfg">Title: Ubuntu 18.04 preseed.cfg</h1>
|
||||
|
||||
<p>#</p>
|
||||
|
||||
<h1 id="file-templates-os-ubuntu-1804-amd64-preseed-cfg">File: templates/os-ubuntu-1804-amd64-preseed.cfg</h1>
|
||||
|
||||
<h1 id="modified-by-eric-2019-07">modified by Eric , <sup>2019</sup>⁄<sub>07</sub></h1>
|
||||
|
||||
<h3 id="localization">Localization</h3>
|
||||
|
||||
<h1 id="keyboard-selection">Keyboard selection.</h1>
|
||||
|
||||
<h1 id="disable-automatic-interactive-keymap-detection">Disable automatic (interactive) keymap detection.</h1>
|
||||
|
||||
<p>#d-i console-setup/ask_detect boolean false
|
||||
d-i keyboard-configuration/xkb-keymap select us</p>
|
||||
|
||||
<p>d-i console-setup/ask_detect boolean false
|
||||
<pre><code># Title: Ubuntu 18.04 preseed.cfg
|
||||
#
|
||||
# File: templates/os-ubuntu-1804-amd64-preseed.cfg
|
||||
# modified by Eric , 2019/07
|
||||
### Localization
|
||||
|
||||
# Keyboard selection.
|
||||
# Disable automatic (interactive) keymap detection.
|
||||
#d-i console-setup/ask_detect boolean false
|
||||
d-i keyboard-configuration/xkb-keymap select us
|
||||
|
||||
d-i console-setup/ask_detect boolean false
|
||||
d-i console-setup/layoutcode string us
|
||||
d-i keyboard-configuration/ask_detect boolean false
|
||||
d-i keyboard-configuration/layoutcode string us</p>
|
||||
|
||||
<h1 id="the-values-can-also-be-preseeded-individually-for-greater-flexibility">The values can also be preseeded individually for greater flexibility.</h1>
|
||||
|
||||
<p>d-i localechooser/preferred-locale string en_US.UTF-8
|
||||
d-i keyboard-configuration/layoutcode string us
|
||||
|
||||
# The values can also be preseeded individually for greater flexibility.
|
||||
d-i localechooser/preferred-locale string en_US.UTF-8
|
||||
d-i localechooser/supported-locales en_US.UTF-8
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string US
|
||||
d-i debian-installer/locale string en_US.UTF-8<br />
|
||||
d-i localechooser/continentlist string Asia</p>
|
||||
d-i debian-installer/locale string en_US.UTF-8
|
||||
d-i localechooser/continentlist string Asia
|
||||
|
||||
<h3 id="network">Network</h3>
|
||||
### Network
|
||||
d-i netcfg/choose_interface select auto
|
||||
|
||||
<p>d-i netcfg/choose_interface select auto</p>
|
||||
|
||||
<h3 id="mirror-settings">Mirror settings</h3>
|
||||
|
||||
<h1 id="if-you-select-ftp-the-mirror-country-string-does-not-need-to-be-set">If you select ftp, the mirror/country string does not need to be set.</h1>
|
||||
|
||||
<p>d-i mirror/country string manual
|
||||
### Mirror settings
|
||||
# If you select ftp, the mirror/country string does not need to be set.
|
||||
d-i mirror/country string manual
|
||||
d-i mirror/http/proxy string {{ proxy_env }}
|
||||
d-i mirror/http/hostname string {{ pxe_preseed_mirror }}
|
||||
d-i mirror/http/directory string /ubuntu
|
||||
d-i mirror/http/mirror select {{ pxe_preseed_mirror }}</p>
|
||||
d-i mirror/http/mirror select {{ pxe_preseed_mirror }}
|
||||
|
||||
<h3 id="hostname">Hostname</h3>
|
||||
|
||||
<p>#d-i netcfg/get_hostname string unassigned-hostname
|
||||
### Hostname
|
||||
#d-i netcfg/get_hostname string unassigned-hostname
|
||||
#d-i netcfg/get_domain string unassigned-domain
|
||||
d-i netcfg/get_hostname string ubuntu
|
||||
d-i netcfg/get_domain string abc.com</p>
|
||||
d-i netcfg/get_domain string abc.com
|
||||
|
||||
<h3 id="account">account</h3>
|
||||
|
||||
<p>d-i passwd/root-login boolean false
|
||||
### account
|
||||
d-i passwd/root-login boolean false
|
||||
d-i passwd/user-fullname string Adminstrator
|
||||
d-i passwd/username string administrator
|
||||
d-i passwd/user-password-crypted password $6$random_salt$VaSwPia0/6XHIicZLTaDceuRo/f9A6V4WazuZF/lhgQOhRJcKPO5yZ/ZxtBWrAhlDZOQ7GI3s4bPr9485Shry.
|
||||
d-i user-setup/allow-password-weak boolean true
|
||||
d-i user-setup/encrypt-home boolean false
|
||||
d-i passwd/user-default-groups string audio cdrom video sudo adm</p>
|
||||
d-i passwd/user-default-groups string audio cdrom video sudo adm
|
||||
|
||||
<h3 id="clock-timezone">Clock & Timezone</h3>
|
||||
|
||||
<p>d-i clock-setup/utc boolean true
|
||||
|
||||
### Clock & Timezone
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string {{ pxe_preseed_timezone }}
|
||||
d-i clock-setup/ntp boolean true</p>
|
||||
d-i clock-setup/ntp boolean true
|
||||
|
||||
<p>#d-i tzconfig/gmt boolean true
|
||||
#d-i tzconfig/gmt boolean true
|
||||
d-i tzconfig/choose_country_zone/Asia select Taipei
|
||||
d-i tzconfig/choose_country_zone_single boolean true</p>
|
||||
d-i tzconfig/choose_country_zone_single boolean true
|
||||
|
||||
<h1 id="disable-that-annoying-wep-key-dialog">Disable that annoying WEP key dialog.</h1>
|
||||
# Disable that annoying WEP key dialog.
|
||||
d-i netcfg/wireless_wep string ubuntu
|
||||
|
||||
<p>d-i netcfg/wireless_wep string ubuntu</p>
|
||||
|
||||
<h3 id="partitioning">Partitioning</h3>
|
||||
|
||||
<p>d-i partman-auto/method string regular
|
||||
### Partitioning
|
||||
d-i partman-auto/method string regular
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-md/device_remove_md boolean true
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
d-i partman-auto/choose_recipe select default-disk-layout</p>
|
||||
d-i partman-auto/choose_recipe select default-disk-layout
|
||||
|
||||
# Or provide a recipe of your own...
|
||||
d-i partman-auto/expert_recipe string \
|
||||
default-disk-layout :: \
|
||||
10240 20480 -1 ext4 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext4 } \
|
||||
label{ root } \
|
||||
mountpoint{ / } \
|
||||
. \
|
||||
1024 2048 200% linux-swap \
|
||||
method{ swap } format{ } \
|
||||
. \
|
||||
|
||||
<h1 id="or-provide-a-recipe-of-your-own">Or provide a recipe of your own…</h1>
|
||||
|
||||
<p>d-i partman-auto/expert_recipe string <br />
|
||||
default-disk-layout :: <br />
|
||||
10240 20480 -1 ext4 <br />
|
||||
$primary{ } $bootable{ } <br />
|
||||
method{ format } format{ } <br />
|
||||
use_filesystem{ } filesystem{ ext4 } <br />
|
||||
label{ root } <br />
|
||||
mountpoint{ / } <br />
|
||||
. <br />
|
||||
1024 2048 200% linux-swap <br />
|
||||
method{ swap } format{ } <br />
|
||||
. </p>
|
||||
|
||||
<p>d-i partman/default_filesystem string ext4
|
||||
d-i partman/default_filesystem string ext4
|
||||
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 partman/mount_style select uuid</p>
|
||||
d-i partman/mount_style select uuid
|
||||
|
||||
<h3 id="base-system-installation">Base system installation</h3>
|
||||
### Base system installation
|
||||
d-i base-installer/kernel/image string linux-generic
|
||||
|
||||
<p>d-i base-installer/kernel/image string linux-generic</p>
|
||||
|
||||
<h3 id="apt-setup">Apt setup</h3>
|
||||
|
||||
<p>d-i apt-setup/restricted boolean true
|
||||
### Apt setup
|
||||
d-i apt-setup/restricted boolean true
|
||||
d-i apt-setup/universe boolean true
|
||||
d-i apt-setup/backports boolean true
|
||||
d-i apt-setup/services-select multiselect security
|
||||
d-i apt-setup/security_host string security.ubuntu.com
|
||||
d-i apt-setup/security_path string /ubuntu</p>
|
||||
d-i apt-setup/security_path string /ubuntu
|
||||
|
||||
<h1 id="package-selection-tasksel-list-tasks">Package selection (tasksel –list-tasks)</h1>
|
||||
|
||||
<p>#tasksel tasksel/first multiselect server, openssh-server
|
||||
tasksel tasksel/first multiselect standard, openssh-server, ubuntu-desktop</p>
|
||||
# Package selection (tasksel --list-tasks)
|
||||
#tasksel tasksel/first multiselect server, openssh-server
|
||||
tasksel tasksel/first multiselect standard, openssh-server, ubuntu-desktop
|
||||
|
||||
<h1 id="individual-packages-python-minimal-for-ansible">Individual packages (python-minimal for Ansible)</h1>
|
||||
# Individual packages (python-minimal for Ansible)
|
||||
d-i pkgsel/include string ssh net-tools python2.7 axel curl vim unzip zip apt-file lynx elinks sysstat ntp htop screen apt-transport-https wget curl git rsync postfix mailutils
|
||||
|
||||
<p>d-i pkgsel/include string ssh net-tools python2.7 axel curl vim unzip zip apt-file lynx elinks sysstat ntp htop screen apt-transport-https wget curl git rsync postfix mailutils</p>
|
||||
|
||||
<h1 id="update-policy">Update policy</h1>
|
||||
|
||||
<p>d-i pkgsel/upgrade select safe-upgrade
|
||||
# Update policy
|
||||
d-i pkgsel/upgrade select safe-upgrade
|
||||
d-i pkgsel/update-policy select unattended-upgrades
|
||||
popularity-contest popularity-contest/participate boolean false
|
||||
d-i pkgsel/updatedb boolean true</p>
|
||||
d-i pkgsel/updatedb boolean true
|
||||
|
||||
<h2 id="postfix-preseeding">postfix preseeding</h2>
|
||||
|
||||
<p>postfix postfix/main_mailer_type select Internet Site
|
||||
## postfix preseeding
|
||||
postfix postfix/main_mailer_type select Internet Site
|
||||
postfix postfix/mailname string pxe.abc.com
|
||||
postfix postfix/protocols select ipv4</p>
|
||||
postfix postfix/protocols select ipv4
|
||||
|
||||
<h1 id="reporting">Reporting</h1>
|
||||
# Reporting
|
||||
popularity-contest popularity-contest/participate boolean false
|
||||
|
||||
<p>popularity-contest popularity-contest/participate boolean false</p>
|
||||
|
||||
<h1 id="bootloader">Bootloader</h1>
|
||||
|
||||
<p>d-i grub-installer/only_debian boolean true
|
||||
# Bootloader
|
||||
d-i grub-installer/only_debian boolean true
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
d-i finish-install/keep-consoles boolean true
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i cdrom-detect/eject boolean true</p>
|
||||
d-i cdrom-detect/eject boolean true
|
||||
|
||||
<h4 id="advanced-options">Advanced options</h4>
|
||||
|
||||
<p>d-i preseed/late_command string <br />
|
||||
in-target wget –no-proxy <a href="http://192.168.1.7/rc-local.service">http://192.168.1.7/rc-local.service</a> -O /etc/systemd/system/rc-local.service ;<br />
|
||||
in-target wget –no-proxy <a href="http://192.168.1.7/rc.local.pxe">http://192.168.1.7/rc.local.pxe</a> -O /etc/rc.local.pxe ;<br />
|
||||
in-target wget –no-proxy <a href="http://192.168.1.7/rc.local.bak">http://192.168.1.7/rc.local.bak</a> -O /etc/rc.local.bak ;<br />
|
||||
in-target chmod +x /etc/rc.local.pxe ;<br />
|
||||
in-target chmod +x /etc/rc.local.bak ;<br />
|
||||
in-target cp /etc/rc.local.pxe /etc/rc.local ;<br />
|
||||
in-target systemctl enable rc-local ;<br />
|
||||
in-target ln -s /usr/bin/python3.6 /usr/bin/python</p>
|
||||
#### Advanced options
|
||||
d-i preseed/late_command string \
|
||||
in-target wget --no-proxy http://192.168.1.7/rc-local.service -O /etc/systemd/system/rc-local.service ;\
|
||||
in-target wget --no-proxy http://192.168.1.7/rc.local.pxe -O /etc/rc.local.pxe ;\
|
||||
in-target wget --no-proxy http://192.168.1.7/rc.local.bak -O /etc/rc.local.bak ;\
|
||||
in-target chmod +x /etc/rc.local.pxe ;\
|
||||
in-target chmod +x /etc/rc.local.bak ;\
|
||||
in-target cp /etc/rc.local.pxe /etc/rc.local ;\
|
||||
in-target systemctl enable rc-local ;\
|
||||
in-target ln -s /usr/bin/python3.6 /usr/bin/python
|
||||
|
||||
<p>```</p>
|
||||
</code></pre>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -857,7 +835,7 @@ title="pinterest icon"></i>
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1586334318"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1592788642"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user