Lapinski was born in Austria-held Galicia and got involved in the Polish struggle for independence. He participated in the Hungarian Revolution of 1848 and then he was fighting in Crimean War as a colonel in the Polish cavalry division of the Turkish army under command of Władysław Stanisław Zamoyski.