Ubuntu
NDISwrapper
NDISwrapper is a free software driver wrapper that enables the use of Microsoft Windows drivers for wireless network devices.
Download the windows driver wich contains the .inf file
Install with ndiswrapper -i drivername.inf
check the device id with lsusb or lspci -n
Now execute with ndiswrapper -a deviceid driver
ndiswrapper -a 0bda:8197 net8187b
check the installed drivers
ndiswrapper -l
Write the configuration for modprobe
ndiswrapper -m
And use the module
modprobe ndiswrapper