Under the terms of his plea deal, Linn will cut his 40-year jail sentence in half.
Linn also said he had been drinking heavily prior to driving his truck to the mosque, consuming as many as 45 beers in seven hours.
"I know they don't believe in Jesus Christ as the Savior," he added, to which the judge responded, "there are others who don't believe in Jesus Christ." Linn then retorted: "They're not going around killing us."
"When you went through that door, you did not attack extremists or terrorists," Judge Zouhary said in his concluding remarks. "Instead, you attacked the place where families come to pray... Ironically, it's your own violence that was sinful and evil."
Sentencing has been scheduled for April 16, 2013.