Here is a tutorial which will tell you how to get started with programming STM32 microcontrollers on Linux with ST-LINK/V2 programmer. It will help you to develop, compile and upload to STM32 your first application - just driving an LED. This is not a very useful application, but then you can use it as a template for further more interesting projects. The tutorial describes STM32F1 board which may be quite old, but it still can be used for simple DIY projects.