Everyone get on the random machine name train
This commit is contained in:
@@ -7,6 +7,9 @@ fi
|
||||
|
||||
basedir=`pwd`/bananapi-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -66,7 +69,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M bpi -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -163,7 +166,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod +x kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M bpi -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -177,7 +180,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod +x kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M bpi -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/bananapro-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -59,7 +62,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M bpro -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -138,7 +141,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M bpro -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -152,7 +155,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M bpro -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
9
bbb.sh
9
bbb.sh
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/beaglebone-black-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -50,7 +53,7 @@ fi
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M bbb -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
if [ $0 == 'nightly' ]; then
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -178,7 +181,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M bbb -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -192,7 +195,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M bbb -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/nyan-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -59,7 +62,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M nyan -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -136,7 +139,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M nyan -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -150,7 +153,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M nyan -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/exynos-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -59,7 +62,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M exynos -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -136,7 +139,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M exynos -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -150,7 +153,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M exynos -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/veyron-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M veyron -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -134,7 +137,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M veyron -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -148,7 +151,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M veyron -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
cat << EOF > kali-$architecture/etc/resolv.conf
|
||||
nameserver 8.8.8.8
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/cubieboard2-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M cubieboard2 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -133,7 +136,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M cubieboard2 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -147,7 +150,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M cubieboard2 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/cubietruck-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M cubietruck -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -133,7 +136,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M cubietruck -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -147,7 +150,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M cubietruck -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -14,6 +14,9 @@ fi
|
||||
|
||||
basedir=`pwd`/cubox-i-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -59,7 +62,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M cubox-i -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -151,7 +154,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M cubox-i -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -165,7 +168,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M cubox-i -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
9
cubox.sh
9
cubox.sh
@@ -14,6 +14,9 @@ fi
|
||||
|
||||
basedir=`pwd`/cubox-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -59,7 +62,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M cubox -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -133,7 +136,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M cubox -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -147,7 +150,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M cubox -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -14,6 +14,9 @@ echo "This script is now deprecated. The kernel is too old to run systemd"
|
||||
|
||||
basedir=`pwd`/efikamx-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -62,7 +65,7 @@ debootstrap --foreign --arch $architecture moto kali-$architecture http://$mirro
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M efikamx -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -138,7 +141,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M efikamx -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -154,7 +157,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M efikamx -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/kalitap-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -48,7 +51,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M kalitap -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -136,7 +139,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M kalitap -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -150,7 +153,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M kalitap -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
9
luna.sh
9
luna.sh
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/luna-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -46,7 +49,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M luna -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -122,7 +125,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M luna -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -136,7 +139,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M luna -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/mini-x-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M mini-x -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -133,7 +136,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M mini-x -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -147,7 +150,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M mini-x -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/nanopi2-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M nanopi2 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -149,7 +152,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M nanopi2 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -163,7 +166,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M nanopi2 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/nanopi3-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M nanopi3 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -183,7 +186,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M nanopi3 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -197,7 +200,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M nanopi3 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroidc-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidc -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -144,7 +147,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M odroidc -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -158,7 +161,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M odroidc -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
11
odroid-c2.sh
11
odroid-c2.sh
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroidc2-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=aarch64-linux-gnu-
|
||||
@@ -67,7 +70,7 @@ debootstrap --foreign --keyring=/usr/share/keyrings/kali-archive-keyring.gpg --a
|
||||
cp /usr/bin/qemu-aarch64-static kali-$architecture/usr/bin/
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidc2 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -183,7 +186,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
|
||||
LANG=C systemd-nspawn -M odroidc2 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -197,7 +200,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
|
||||
LANG=C systemd-nspawn -M odroidc2 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
@@ -637,7 +640,7 @@ rm -f /create-initrd
|
||||
rm -f /usr/bin/qemu-*
|
||||
EOF
|
||||
chmod 755 ${basedir}/root/create-initrd
|
||||
LANG=C systemd-nspawn -M odroidc2 -D ${basedir}/root /create-initrd
|
||||
LANG=C systemd-nspawn -M $machine -D ${basedir}/root /create-initrd
|
||||
sync
|
||||
umount ${basedir}/root/boot
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroid-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidu2 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -136,7 +139,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M odroidu2 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -150,7 +153,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M odroidu2 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroid-w-devkit-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M devkit -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -138,7 +141,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M devkit -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -152,7 +155,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M devkit -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroid-w-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidw -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -137,7 +140,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M odroidw -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -151,7 +154,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M odroidw -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroidxu-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# This is used for cross compiling the exynos5-hwcomposer.
|
||||
# If this isn't built/installed, there will be no framebuffer console.
|
||||
hosttuple=arm-linux-gnueabihf
|
||||
@@ -64,7 +67,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidxu -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -163,7 +166,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M odroidxu -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -177,7 +180,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M odroidxu -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/odroidxu3-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M odroidxu3 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -159,7 +162,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M odroidxu3 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -173,7 +176,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M odroidxu3 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/rpi-tft-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -58,7 +61,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M rpitft -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -177,7 +180,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M rpitft -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -191,7 +194,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M rpitft -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
13
rpi.sh
13
rpi.sh
@@ -15,12 +15,15 @@ fi
|
||||
|
||||
basedir=`pwd`/rpi-$1
|
||||
workfile=$1
|
||||
kaliname=kali
|
||||
hostname=kali
|
||||
|
||||
if [ $2 ]; then
|
||||
kalname=$2
|
||||
hostname=$2
|
||||
fi
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -67,7 +70,7 @@ fi
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
if LANG=C systemd-nspawn -M rpi -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
if LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
then
|
||||
echo "[*] Secondary Boostrap Success"
|
||||
else
|
||||
@@ -80,7 +83,7 @@ deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
|
||||
# Set hostname
|
||||
echo "${kaliname}" > kali-$architecture/etc/hostname
|
||||
echo "$hostname" > kali-$architecture/etc/hostname
|
||||
# So X doesn't complain, we add kali to hosts
|
||||
cat << EOF > kali-$architecture/etc/hosts
|
||||
127.0.0.1 ${kaliname} localhost
|
||||
@@ -200,7 +203,7 @@ export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
|
||||
if LANG=C systemd-nspawn -M rpi -D kali-$architecture /third-stage
|
||||
if LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
then
|
||||
echo "[*] Boostrap Success"
|
||||
else
|
||||
|
||||
@@ -17,6 +17,9 @@ fi
|
||||
basedir=`pwd`/rpi0w-nexmon-p4wnp1-$1
|
||||
TOPDIR=`pwd`
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M 0wp4np1 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -241,7 +244,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M 0wp4np1 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -255,7 +258,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M 0wp4np1 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
9
rpi2.sh
9
rpi2.sh
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/rpi2-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Package installations for various sections.
|
||||
# This will build a minimal XFCE Kali system with the top 10 tools.
|
||||
# This is the section to edit if you would like to add more packages.
|
||||
@@ -56,7 +59,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M rpi2 -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -180,7 +183,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M rpi2 -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -194,7 +197,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M rpi2 -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/trimslice-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -60,7 +63,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M trimslice -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -198,7 +201,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M trimslice -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -212,7 +215,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M trimslice -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -12,6 +12,9 @@ fi
|
||||
|
||||
basedir=`pwd`/usbarmory-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -57,7 +60,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M usbarmory -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
|
||||
# Create sources.list
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
@@ -146,7 +149,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M usbarmory -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -162,7 +165,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M usbarmory -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
@@ -15,6 +15,9 @@ fi
|
||||
|
||||
basedir=`pwd`/utilite-$1
|
||||
|
||||
# Generate a random machine name to be used.
|
||||
machine=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
|
||||
|
||||
# Make sure that the cross compiler can be found in the path before we do
|
||||
# anything else, that way the builds don't fail half way through.
|
||||
export CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
@@ -61,7 +64,7 @@ debootstrap --foreign --arch $architecture kali-rolling kali-$architecture http:
|
||||
|
||||
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
|
||||
|
||||
LANG=C systemd-nspawn -M utilite -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /debootstrap/debootstrap --second-stage
|
||||
cat << EOF > kali-$architecture/etc/apt/sources.list
|
||||
deb http://$mirror/kali kali-rolling main contrib non-free
|
||||
EOF
|
||||
@@ -138,7 +141,7 @@ rm -f /third-stage
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/third-stage
|
||||
LANG=C systemd-nspawn -M utilite -D kali-$architecture /third-stage
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /third-stage
|
||||
|
||||
cat << EOF > kali-$architecture/cleanup
|
||||
#!/bin/bash
|
||||
@@ -152,7 +155,7 @@ rm -f /usr/bin/qemu*
|
||||
EOF
|
||||
|
||||
chmod 755 kali-$architecture/cleanup
|
||||
LANG=C systemd-nspawn -M utilite -D kali-$architecture /cleanup
|
||||
LANG=C systemd-nspawn -M $machine -D kali-$architecture /cleanup
|
||||
|
||||
#umount kali-$architecture/proc/sys/fs/binfmt_misc
|
||||
#umount kali-$architecture/dev/pts
|
||||
|
||||
Reference in New Issue
Block a user