isolated_multi-boot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
isolated_multi-boot [2018/05/23 18:32] – admin | isolated_multi-boot [2018/05/23 19:29] – admin | ||
---|---|---|---|
Line 311: | Line 311: | ||
</ | </ | ||
+ | |||
+ | ====Kali==== | ||
+ | |||
+ | * Add a new 32GiB partition:< | ||
+ | parted /dev/sdX | ||
+ | unit s | ||
+ | mkpart Kali 143980395s 211088235s | ||
+ | align-check optimal 4 | ||
+ | quit | ||
+ | |||
+ | partprobe / | ||
+ | * Setup encryption:< | ||
+ | cryptsetup luksFormat /dev/sdX4 | ||
+ | |||
+ | cryptsetup open /dev/sdX4 cryptroot</ | ||
+ | * Create an ext4 filesystem:< | ||
+ | * Mount the filesystem:< | ||
+ | mkdir / | ||
+ | mount / | ||
+ | mkdir -p / | ||
+ | * Install debootstrap:< | ||
+ | * Install Kali:< | ||
+ | # Path is needed when installing from Fedora... | ||
+ | curl " | ||
+ | |||
+ | PATH=" | ||
+ | .. | ||
+ | .. | ||
+ | I: Base system installed successfully.</ | ||
+ | * Enter the chroot:< | ||
+ | mount -t sysfs none / | ||
+ | mount -o bind /dev / | ||
+ | mount -o bind /dev/pts / | ||
+ | cp -L / | ||
+ | |||
+ | modprobe efivarfs | ||
+ | mount -t efivarfs efivarfs / | ||
+ | |||
+ | XTERM=xterm-color LANG=C.UTF-8 PATH=" | ||
+ | * Edit the fstab:< | ||
+ | lsblk -f /dev/sdX4 # run outside chroot, UUID of the cryptroot. | ||
+ | |||
+ | vi /etc/fstab | ||
+ | UUID=cbd33fa1-9d89-4308-a24f-b3128671874a / | ||
+ | * Configure Kali:< | ||
+ | apt install locales | ||
+ | dpkg-reconfigure locales tzdata | ||
+ | |||
+ | # Install kernel, efibootmgr, grub | ||
+ | apt install linux-image-amd64 efibootmgr grub-efi-amd64 cryptsetup initramfs-tools | ||
+ | # don't install the grub bootloader yet... | ||
+ | |||
+ | vi / | ||
+ | cryptroot UUID=< | ||
+ | |||
+ | Modify " | ||
+ | |||
+ | update-initramfs -ut | ||
+ | |||
+ | vi / | ||
+ | GRUB_ENABLE_CRYPTODISK=y | ||
+ | |||
+ | grub-mkconfig -o / | ||
+ | |||
+ | set hostname in / | ||
+ | |||
+ | passwd root | ||
+ | useradd... | ||
+ | |||
+ | tasksel install desktop | ||
+ | tasksel install laptop | ||
+ | |||
+ | exit | ||
+ | umount -R / | ||
+ | </ | ||
+ | * Add Kali to grub **Note:** change the UUID's to the blkid found earlier:< | ||
+ | mount /dev/sdX4 /mnt | ||
+ | vi / | ||
+ | |||
+ | menuentry ' | ||
+ | insmod gzio | ||
+ | insmod part_gpt | ||
+ | insmod cryptodisk | ||
+ | insmod luks | ||
+ | insmod gcry_rijndael | ||
+ | insmod gcry_sha256 | ||
+ | insmod ext2 | ||
+ | cryptomount -u 333324c1f7744493a20ab5a45bc5e06f | ||
+ | set root=' | ||
+ | configfile / | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
{{tag> | {{tag> |
isolated_multi-boot.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1