He enrolled at the College of Advanced Technology in 1868 but discontinued his studies in 1871 to work on the preparations of the new Kalundborg Railway.
[1] When his father together with a business partner in 1879 purchased Gamst & Lunds Eftf., an iron foundry and machine factory on Vester Boldgade, Hauberg gave up his ambitions to become a civil engineer to join the firm which continued as Hellerung & auberg.
On 11 November 1887, Hauberg acquired a concession on establishing a tram line between Sankt Annæ Plads in the city centre and Tagensvej.
He was a board member of H. E. Gosch & Co., Vølund and Frederiksberg Sporvejs- og Elektricitets A/S, Det danske Mælkekompagni, Det danske Elektricitetskompagni, Sejlskibsselskabet Hippalos, A/S De Ibsenske Grunde i Gentofte.
and Kontrolkommissionen for Frederiksholms Teglog Kalkværker (chairman) as well as a member of the bank council of Københavnss Låne- og Diskontobank.
Following her early death just 24 years old, he was second time married to Ellen Sophie Kastrup (29 January 1853 - 12 April 1942(, a daughter of merchant Theodor Peter Christian Kastrup (1820–80) and Flora Marie Schoustrup (1827–81), on 14 April 1883 in the Church of Our Lady in Copenhagen.