Since 2010 with the AR Drone, Parrot has been making quadcopters running Linux. Up to now, most of the code remains proprietary apart from the parts that need to be published because of their license. On the other hand, Parrot has never made any effort to close access to their platforms and they are therefore very easy to hack. In 2015, in the context of the creation of the DroneCode project by the Linux Foundation and the growing interest for UAVs, APM autopilot has been ported on Parrot Bebop and anyone can run it instead of the proprietary firmware. This Tutorial explains the process of porting APM on a commercial drone and shows how to run it on a Bebop. It will also explain the almost endless possibilities that can come from running open source software on a UAV that embeds all kind of sensors along with enough GPU and CPU power to perform very complex tasks and all of that on Linux