Here's how the Windows Subsystem for Linux setup on Windows 10 worked for me.
[My first non-intro post]Install WSL. Some guides state running bash.exe for the first time automatically installs the rest of the Linux distro. Instead bash now gives a shortcut to the distros in the Microsoft Store (Microsoft store login not required). Or try: Windows Subsystem for Linux Installation Guide for Windows 10. I chose Ubuntu:
Run the installed distro (Ubunto) and perform the usual updates:
sudo apt update && sudo apt upgrade
Install make and the usual Proxmark dependancies (optional, include x11-apps if you like the idea of classic xeyes or xclock on a Windows desktop!):
sudo apt install make p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget libncurses5-dev gcc-arm-none-eabi libpcsclite-dev libsndfile1-dev
Optional, add this to /etc/wsl.conf (create it) to make Windows file permissions sticky if you plan to access files outside of WSL (eg at /mnt/c):
#Enable extra metadata options by default [automount] enabled = true options = "metadata,umask=22,fmask=111"
Install Xming in Windows and tell WSL where to display windows (as per @iceman's post above):
echo "export DISPLAY=:0.0" >> ~/.bashrc
Pull your favourite Proxmark3 repo, or unzip your favourite release and compile as usual:
cd ~/proxmark3 make clean && make all
Find the com port for Proxmark3 in Windows Device Manager and set the port permission in WSL (where n = Windows com port number). Unfortunately this is not persistent (even with the above wsl.conf settings):
sudo chmod 666 /dev/ttySn
Run Xming if you want Proxmark3 graphs (note Xlaunch is not required, the default settings are fine).
Run Proxmark3:
cd ~/proxmark3/client ./proxmark3 /dev/ttySn
I'm very happy with this setup. ProxSpace works well but, together with the Proxmark software, takes 16.8GB of my desktop hard drive. I'm now using a cheap Linx Windows tablet with only 64GB SSD, the Ubuntu folder on this only uses 2.18GB.
Update March 2019: added libpcsclite-dev dependency required by latest official firmware.
Update January 2020: added libsndfile1-dev dependency required by latest RRG/Iceman firmware.
Well done!
]]>Install WSL. Some guides state running bash.exe for the first time automatically installs the rest of the Linux distro. Instead bash now gives a shortcut to the distros in the Microsoft Store (Microsoft store login not required). Or try: Windows Subsystem for Linux Installation Guide for Windows 10. I chose Ubuntu:
Run the installed distro (Ubunto) and perform the usual updates:
sudo apt update && sudo apt upgrade
Install make and the usual Proxmark dependancies (optional, include x11-apps if you like the idea of classic xeyes or xclock on a Windows desktop!):
sudo apt install make p7zip git build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config wget libncurses5-dev gcc-arm-none-eabi libpcsclite-dev libsndfile1-dev
Optional, add this to /etc/wsl.conf (create it) to make Windows file permissions sticky if you plan to access files outside of WSL (eg at /mnt/c):
#Enable extra metadata options by default
[automount]
enabled = true
options = "metadata,umask=22,fmask=111"
Install Xming in Windows and tell WSL where to display windows (as per @iceman's post above):
echo "export DISPLAY=:0.0" >> ~/.bashrc
Pull your favourite Proxmark3 repo, or unzip your favourite release and compile as usual:
cd ~/proxmark3
make clean && make all
Find the com port for Proxmark3 in Windows Device Manager and set the port permission in WSL (where n = Windows com port number). Unfortunately this is not persistent (even with the above wsl.conf settings):
sudo chmod 666 /dev/ttySn
Run Xming if you want Proxmark3 graphs (note Xlaunch is not required, the default settings are fine).
Run Proxmark3:
cd ~/proxmark3/client
./proxmark3 /dev/ttySn
I'm very happy with this setup. ProxSpace works well but, together with the Proxmark software, takes 16.8GB of my desktop hard drive. I'm now using a cheap Linx Windows tablet with only 64GB SSD, the Ubuntu folder on this only uses 2.18GB.
Update March 2019: added libpcsclite-dev dependency required by latest official firmware.
Update January 2020: added libsndfile1-dev dependency required by latest RRG/Iceman firmware.
]]>
Of course, binaries will not work for everyone (they need to have the LSM layer)... but when developing around Proxmark, it will help a lots
]]>But a X-system would be fine. Which ones can I choose between?!? I can't see any reference in the list for your xming server
sudo apt list | grep x
Xming - X server for windows
https://sourceforge.net/projects/xming/
Adding the display environment variable to the your bash-profile, no need to call it every time.
echo "export DISPLAY=:0.0" >> ~/.bashrc
edit: developer mode isn't needed anymore
]]>Ad I noticed that you need to be registered for "windows insider preview builds" aswell in order to get the serialport working.
]]>And after running
sudo chmod 666 /dev/ttyS4
(for my COM4 port)
I was able to run proxmark, and even use flasher for bootrom / fullimage \o/
In bonus, if you have a Xming server running, and...
export DISPLAY=:0
...you have a nice full version, with the graph window!
]]>
Sidenote,
since this is an opensource commnunity and people do this on their free time, the expectation of support from me seems very strange.
I don't get paid to answer all mails from ppl who are having trouble or ask questions. Usually I tell them to post on the forum, since thats the purpose of the forum.
personally I would stay clear of any mix.
If you are window stay window
If you are ubuntu stay ubuntu
If you are mint stay mint
If you are kali stay kali
ooops forget the third dim people ... If you are Mac stay Mac
you mix the environment, when come to issue, you hardly get any support from OP and could be very alone