From 6fea980cfd94a85820082d8f8684426cb4364af5 Mon Sep 17 00:00:00 2001 From: techn0m4g3 Date: Mon, 28 Jan 2019 13:48:38 +0100 Subject: [PATCH] testing - ubuntu netplanD --- iso/installer/install.sh | 24 ++++++++++++------------ iso/isolinux/txt.cfg | 2 +- iso/preseed/tpot.seed | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/iso/installer/install.sh b/iso/installer/install.sh index c828c35f..1766ccab 100755 --- a/iso/installer/install.sh +++ b/iso/installer/install.sh @@ -126,7 +126,7 @@ fi # Let's check if all dependencies are met function fuGET_DEPS { -local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl debconf-utils dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips software-properties-common syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant" +local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl debconf-utils dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips software-properties-common syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant" apt-get -y update apt-get -y install software-properties-common add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" @@ -506,15 +506,15 @@ network={ private_key_passwd="$myCONF_PFX_PW" } " -if [ "myCONF_PFX_USE" == "0" ]; - then - cp $myCONF_PFX_FILE /etc/wpa_supplicant/ 2>&1 | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF - echo "$myNETWORK_INTERFACES" 2>&1 | tee -a /etc/network/interfaces | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF - - echo "$myNETWORK_WIRED8021x" 2>&1 | tee /etc/wpa_supplicant/wired8021x.conf | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF - - echo "$myNETWORK_WLAN8021x" 2>&1 | tee /etc/wpa_supplicant/wireless8021x.conf | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF -fi +#if [ "myCONF_PFX_USE" == "0" ]; +# then +# cp $myCONF_PFX_FILE /etc/wpa_supplicant/ 2>&1 | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF +# echo "$myNETWORK_INTERFACES" 2>&1 | tee -a /etc/network/interfaces | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF +# +# echo "$myNETWORK_WIRED8021x" 2>&1 | tee /etc/wpa_supplicant/wired8021x.conf | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF +# +# echo "$myNETWORK_WLAN8021x" 2>&1 | tee /etc/wpa_supplicant/wireless8021x.conf | dialog --title "[ Setting 802.1x networking ]" $myPROGRESSBOXCONF +#fi # Let's provide a wireless example config ... myNETWORK_WLANEXAMPLE=" @@ -545,7 +545,7 @@ myNETWORK_WLANEXAMPLE=" # wpa-key-mgmt WPA-PSK # wpa-psk \"\" " -echo "$myNETWORK_WLANEXAMPLE" 2>&1 | tee -a /etc/network/interfaces | dialog --title "[ Provide WLAN example config ]" $myPROGRESSBOXCONF +#echo "$myNETWORK_WLANEXAMPLE" 2>&1 | tee -a /etc/network/interfaces | dialog --title "[ Provide WLAN example config ]" $myPROGRESSBOXCONF # Let's modify the sources list sed -i '/cdrom/d' /etc/apt/sources.list @@ -560,7 +560,7 @@ hash -r 2>&1 | dialog --title "[ Installing pip ]" $myPROGRESSBOXCONF pip install elasticsearch-curator yq 2>&1 | dialog --title "[ Installing elasticsearch-curator, yq ]" $myPROGRESSBOXCONF wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/bin/ctop 2>&1 | dialog --title "[ Installing ctop ]" $myPROGRESSBOXCONF chmod +x /usr/bin/ctop 2>&1 | dialog --title "[ Installing ctop ]" $myPROGRESSBOXCONF -git clone https://github.com/dtag-dev-sec/tpotce /opt/tpot 2>&1 | dialog --title "[ Cloning T-Pot ]" $myPROGRESSBOXCONF +git clone https://github.com/dtag-dev-sec/tpotce -b debian /opt/tpot 2>&1 | dialog --title "[ Cloning T-Pot ]" $myPROGRESSBOXCONF # Let's create the T-Pot user addgroup --gid 2000 tpot 2>&1 | dialog --title "[ Adding T-Pot user ]" $myPROGRESSBOXCONF diff --git a/iso/isolinux/txt.cfg b/iso/isolinux/txt.cfg index 84302a26..0534c417 100755 --- a/iso/isolinux/txt.cfg +++ b/iso/isolinux/txt.cfg @@ -1,6 +1,6 @@ default install label install - menu label ^T-Pot 18.11 + menu label ^T-Pot 19.03 (testing) menu default kernel linux append vga=788 initrd=initrd.gz console-setup/ask_detect=true -- diff --git a/iso/preseed/tpot.seed b/iso/preseed/tpot.seed index 8c8926b8..bbf5d86c 100755 --- a/iso/preseed/tpot.seed +++ b/iso/preseed/tpot.seed @@ -25,7 +25,7 @@ d-i console-setup/detected note ######################### ### Network Configuration ######################### -d-i netcfg/do_not_use_netplan true +#d-i netcfg/do_not_use_netplan true #d-i netcfg/choose_interface select auto #d-i netcfg/dhcp_timeout string 60 d-i netcfg/get_hostname string t-pot @@ -121,7 +121,7 @@ d-i preseed/late_command string \ in-target apt-get -y install grub-pc; \ in-target grub-install --force $(debconf-get partman-auto/disk); \ in-target update-grub; \ -in-target git clone https://github.com/dtag-dev-sec/tpotce /opt/tpot; \ +in-target git clone https://github.com/dtag-dev-sec/tpotce -b debian /opt/tpot; \ cp /target/opt/tpot/iso/installer/rc.local.install /target/etc/rc.local; \ cp /target/opt/tpot/iso/installer -R /target/root/;