mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
keyboard detection, unmount active
This commit is contained in:
parent
b237339178
commit
c0b8cd59db
5 changed files with 27 additions and 19 deletions
|
@ -4,15 +4,15 @@
|
||||||
# and consoleblank permanently #
|
# and consoleblank permanently #
|
||||||
# Ubuntu server 14.04.1, x64 #
|
# Ubuntu server 14.04.1, x64 #
|
||||||
# #
|
# #
|
||||||
# v0.11 by mo, DTAG, 2015-01-28 #
|
# v0.12 by mo, DTAG, 2015-02-15 #
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# Let's replace "quiet splash" options and update grub
|
# Let's replace "quiet splash" options and update grub
|
||||||
sed -i 's#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"#GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"#' /etc/default/grub
|
sed -i 's#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"#GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"#' /etc/default/grub
|
||||||
sed -i 's#\#GRUB_GFXMODE=640x480#GRUB_GFXMODE=800x600#' /etc/default/grub
|
sed -i 's#\#GRUB_GFXMODE=640x480#GRUB_GFXMODE=800x600#' /etc/default/grub
|
||||||
update-grub
|
update-grub
|
||||||
sed -i 's#FONTFACE="VGA"#FONTFACE="Terminus"#' /etc/default/console-setup
|
sed -i 's#FONTFACE=".*#FONTFACE="Terminus"#' /etc/default/console-setup
|
||||||
sed -i 's#FONTSIZE="16"#FONTSIZE="12x6"#' /etc/default/console-setup
|
sed -i 's#FONTSIZE=".*#FONTSIZE="12x6"#' /etc/default/console-setup
|
||||||
|
|
||||||
# Let's move the install script to rc.local and reboot
|
# Let's move the install script to rc.local and reboot
|
||||||
mv /root/tpotce/install2.sh /etc/rc.local && sleep 2 && reboot
|
mv /root/tpotce/install2.sh /etc/rc.local && sleep 2 && reboot
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
#default install
|
||||||
|
#label install
|
||||||
|
# menu label ^Install T-Pot Community Edition
|
||||||
|
# kernel /install/vmlinuz
|
||||||
|
# append file=/cdrom/tpotce/tpotce.seed initrd=/install/initrd.gz ks=cdrom:/tpotce/ks.cfg debian-installer/locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=de --
|
||||||
default install
|
default install
|
||||||
label install
|
label install
|
||||||
menu label ^Install T-Pot Community Edition
|
menu label ^Install T-Pot Community Edition
|
||||||
kernel /install/vmlinuz
|
kernel /install/vmlinuz
|
||||||
append file=/cdrom/tpotce/tpotce.seed initrd=/install/initrd.gz ks=cdrom:/tpotce/ks.cfg debian-installer/locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=de --
|
append file=/cdrom/tpotce/tpotce.seed initrd=/install/initrd.gz ks=cdrom:/tpotce/ks.cfg console-setup/ask_detect=true --
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
#platform=AMD64 or Intel EM64T
|
#platform=AMD64 or Intel EM64T
|
||||||
|
|
||||||
#System language
|
#System language
|
||||||
lang en_US
|
lang en
|
||||||
#Language modules to install
|
#Language modules to install
|
||||||
langsupport en_US
|
#langsupport en_US
|
||||||
#System keyboard
|
#System keyboard
|
||||||
keyboard de
|
#keyboard de
|
||||||
#System mouse
|
#System mouse
|
||||||
mouse
|
mouse
|
||||||
#System timezone
|
#System timezone
|
||||||
timezone Europe/Berlin
|
#timezone Europe/Berlin
|
||||||
#Root password
|
#Root password
|
||||||
rootpw --disabled
|
rootpw --disabled
|
||||||
#Initial user
|
#Initial user
|
||||||
|
|
|
@ -25,8 +25,8 @@ fuECHO () {
|
||||||
|
|
||||||
# Let's install all the packages we need
|
# Let's install all the packages we need
|
||||||
fuECHO "### Installing packages."
|
fuECHO "### Installing packages."
|
||||||
apt-get update -y
|
#apt-get update -y
|
||||||
apt-get install genisoimage syslinux -y
|
#apt-get install genisoimage syslinux -y
|
||||||
|
|
||||||
# Let's get Ubuntu 14.04.1 as .iso
|
# Let's get Ubuntu 14.04.1 as .iso
|
||||||
fuECHO "### Downloading Ubuntu 14.04.1."
|
fuECHO "### Downloading Ubuntu 14.04.1."
|
||||||
|
@ -68,6 +68,6 @@ rm -rf $myTMP $myTPOTCEDIR
|
||||||
# Done.
|
# Done.
|
||||||
fuECHO "### Done."
|
fuECHO "### Done."
|
||||||
fuECHO "### Install to usb stick"
|
fuECHO "### Install to usb stick"
|
||||||
fuECHO "###### Show devices: df"
|
fuECHO "###### Show devices: df or fdisk -l"
|
||||||
fuECHO "###### Write to device: dd bs=1M if="$myTPOTCEISO" of=/dev/sdb"
|
fuECHO "###### Write to device: dd bs=1M if="$myTPOTCEISO" of=<path to device>"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
# T-Pot CE preseed file by mo
|
# T-Pot CE preseed file by mo
|
||||||
# Setting locale
|
# Setting locale
|
||||||
d-i debian-installer/language string en
|
#d-i debian-installer/language string en
|
||||||
d-i debian-installer/country string DE
|
#d-i debian-installer/country string DE
|
||||||
d-i debian-installer/locale string en_US.UTF-8
|
#d-i debian-installer/locale string en_US.UTF-8
|
||||||
|
|
||||||
# Keyboard selection
|
# Keyboard selection
|
||||||
d-i console-setup/ask_detect boolean false
|
#d-i console-setup/ask_detect boolean false
|
||||||
d-i keyboard-configuration/layoutcode string de
|
#d-i keyboard-configuration/layoutcode string de
|
||||||
|
|
||||||
|
#Unmount active partitions
|
||||||
|
d-i preseed/early_command string umount /media
|
||||||
|
|
||||||
# Network Configuration
|
# Network Configuration
|
||||||
d-i netcfg/choose_interface select auto
|
d-i netcfg/choose_interface select auto
|
||||||
|
@ -20,8 +23,8 @@ d-i mirror/http/directory string /ubuntu
|
||||||
d-i mirror/http/proxy string
|
d-i mirror/http/proxy string
|
||||||
|
|
||||||
# Time
|
# Time
|
||||||
d-i clock-setup/utc boolean true
|
#d-i clock-setup/utc boolean true
|
||||||
d-i time/zone string Europe/Berlin
|
#d-i time/zone string Europe/Berlin
|
||||||
d-i clock-setup/ntp boolean true
|
d-i clock-setup/ntp boolean true
|
||||||
|
|
||||||
# Package Groups
|
# Package Groups
|
||||||
|
|
Loading…
Reference in a new issue