Можем ли мы установить WinUSB в Kali Linux?

9532
Deepak Kumar

Я хочу создать загрузочную флешку для Windows 7. Я пытаюсь сделать это на Kali Linux. Программа по умолчанию "unetbootin" в кали не поддерживает Windows. Другой, который я нашел, был "WinUSB", однако я не могу установить его в Kali Linux. Любая точка зрения на это приветствуется ... ???

0
Это помогает? http://www.unixmen.com/winusb-create-bootable-windows-usb-linux/ MC10 9 лет назад 1
@ MC10 - "sudo add-apt-repository ppa: colingille / freshlight" в терминале kali linux говорит "sudo: add-apt-repository: команда не найдена" Deepak Kumar 9 лет назад 0
Вы могли бы попробовать использовать ultraiso, с какой проблемой вы столкнулись при установке или записи операционной системы? BlueBerry - Vignesh4303 9 лет назад 0
@DeepakKumar ppa: colingille / freshlight недавно был обновлен для поддержки всех поддерживаемых в настоящее время версий Ubuntu, поэтому вы не должны больше получать сообщение об ошибке: `sudo: add-apt-repository: команда не найдена`. Ниже приведена актуальная информация о том, как установить Win / USB в Kali Linux, в моем ответе ниже. karel 9 лет назад 0

1 ответ на вопрос

2
jamall

This is not the best way to go about getting any old program running in Kali, but it works in this case and is quicker and easier than compiling from source, which I couldn't get to work.

To get the PPA repository working in Kali we need to get add-apt-repository working:

apt-get install python-software-properties apt-get install apt-file apt-file update 

This can take a minute or more. Then try searching for add-apt-repository:

apt-file search add-apt-repository 

Which should output something like this:

python-software-properties: /usr/bin/add-apt-repository python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz 

If it doesn't, like in my first attempt, we need to clean out some old packages

apt-get remove python-software-properties apt-get autoremove 

Then start from the beginning again and you should get the correct search output. Next we supply the code for add-apt-repository:

cd /usr/sbin nano add-apt-repository 

Then copy the following into nano, save and exit:

#!/bin/bash if [ $# -eq 1 ] NM=`uname -a && date` NAME=`echo $NM | md5sum | cut -f1 -d" "` then ppa_name=`echo "$1" | cut -d":" -f2 -s` if [ -z "$ppa_name" ] then echo "PPA name not found" echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" else echo "$ppa_name" echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list apt-get update >> /dev/null 2> /tmp/$_apt_add_key.txt key=`cat /tmp/$_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3` apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key rm -rf /tmp/$_apt_add_key.txt fi else echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" fi 

Quickly fix ownership and permissions:

chmod o+x /usr/sbin/add-apt-repository chown root:root /usr/sbin/add-apt-repository 

Then add the PPA repository and install WinUSB:

add-apt-repository ppa:colingille/freshlight apt-get update apt-get install winusb 

It's probably a good idea to remove the PPA repository from your sources once you've installed WinUSB to avoid installing other incompatible packages:

nano /etc/apt/sources.list 

And delete the last line before closing and saving. The WinUSB GUI is now in the System Tools sub-menu and the command line tools should also work. Best of luck!