Can I connect any android device with ubuntu?

view story

http://stackoverflow.com – I came to know that we can use adb commands to detect android devices. But posts I read were specifically for HTC phones. So I want to know that can I connect any of my android device with ubuntu 12.x ? Or I will need to change some settings of that device? There are some local devices as well as sony xperia, about which I am thinking to buy but I want to make sure that by adb commands can I connect and use all devices equally on ubuntu or it varies from device to device? (HowTos)