From main train/ bus station take bus 5/11 til you reach the stop of Piazza Bonaria. From Cagliari airport you can take the bus til main station.