If your USB host (any OS, not only linux) can detect other USB devices, it should detect your gadget. That's easy to check with any other USB device. Best to use the same working cable then - they trick me surprisingly often.
But your RPi must be configured correctly to become a USB device.