You will need to ask the landlord and get their go-ahead if you're interested in installing solar panels while renting.