você pode instalá-lo normalmente!
inicialize com o seu plug-in do usb e escolha-o.
se você quiser instalá-lo enquanto executa seu sistema operacional atual, instale o KVM e use os cmds do folowing:
cdRom=/path/to/kali.iso
HDA=/dev/sd[x] # e.g /dev/sda (a hd not part like /dev/sda1) use lsblk
kvm -cdrom "$cdRom" -hda "$HDA" -m 1024 -boot d
você pode usar este script !
#!/bin/bash
((!EUID)) || exec sudo "$0"
#NOTE : don't use $HOME var in your paths , because the script will restart as root
# which means if you have var=$HOME/file.iso , when script re-exec itself
# your var will be "/root/file.iso" not "/home/user/file.iso"
xCdImageDirectory=/home/younes/Documents/library/application/x-cd-image
xRawDiskImageDirectory=/home/younes/Documents/library/application/x-raw-disk-image
defaultHardDrive=$xRawDiskImageDirectory/'basename $0'.img #creat a default raw-img if like testing os's
function bootXCdImage() {
kvm -cdrom "$1" -hda "$2" -m 1024 -boot d
}
function bootXRawDiskImage() {
kvm -hda "$1" -m 1024
}
echo -n "bootType : 1=>isoImage , 2=>rawImage, ??: "
read bootType
case $bootType in
1 )
echo "pick an XCdImage!"
ls $xCdImageDirectory/ | nl
read n
((${#n})) && {
xCdImage=$(ls $xCdImageDirectory/* | sed -n "$n p")
echo "selected image : $xCdImage"
} || {
echo "nothing done"
exit
}
echo "pick a hard drive to use ! sdX or sdXY or empty for default image.img"
lsblk | grep --color=auto 'sd[a-z]'
read hardDrive
[[ -n $hardDrive ]] && {
hardDrive=/dev/$hardDrive
} || {
[[ -f $defaultHardDrive ]] && {
hardDrive=$defaultHardDrive
} || {
echo "$defaultHardDrive does not exist !"
exit
}
}
echo "selected harddrive: $hardDrive"
bootXCdImage "$xCdImage" "$hardDrive"
;;
2 )
echo "pick an XRawDiskImage!"
ls $xRawDiskImageDirectory/ | nl
read n
((${#n})) && {
xRawDiskImage=$(ls $xRawDiskImageDirectory/* | sed -n "$n p")
[[ -f $xRawDiskImage ]] || {
echo "$xRawDiskImage does not exist !"
exit
}
bootXRawDiskImage "$xRawDiskImage"
} || {
echo "nothing done"
exit
}
;;
* )
echo "nothing done!"
;;
esac
exit