A disgruntled former nursing student was sentenced Friday to life in prison for killing seven people at a Northern California vocational college five years ago.

Alameda County Superior Court Judge Jeffrey Horner gave One Goh, 48, seven life sentences without the possibility of parole. He then tacked on 271 years to life for the shooting deaths at a nursing school in Oakland in April 2012.

In May, Goh pleaded no contest to killing the seven and injuring three others during the rampage at Oikos University.

Goh had been eligible for the death penalty before his plea deal.

Goh walked onto the campus with a .45-caliber handgun. He took a receptionist to a classroom where he fatally shot her and six students and wounded three others.

He then stole a car belonging to one of his victims and drove to a nearby grocery store and surrendered to employees, who called police.

Criminal proceedings were halted when Goh was found mentally unfit to stand trial in early 2013 and sent to a state-run psychiatric hospital for criminals and suspects where he received treatment for paranoid schizophrenia. In April, doctors determined he was sane enough to stand trial, reinstating the criminal proceedings.

Investigators say Goh plotted to kill an administrator who refused to refund Goh's tuition after he quit the Christian college. Unbeknownst to Goh, that administrator had resigned shortly after he dropped out.

Doctors testified that Goh falsely believed administrators and teachers were conspiring against him.

His lawyer, David Klaus, said Friday his client is remorseful.

"Mr. Goh hopes his life sentence will bring some degree of closure to all those who were effected," Klaus said.