Problems with Ubuntu install on Macbook

Hello I have a macbook I am trying to install Ubuntu to and their are two issues. One after smooth install I try to boot to ubuntu. Get an Ubuntu purple boot image and it freezes with this.It does not go into the desktop. The other issue is the built in keyboard and mouse don’t work.Any ideas on a solution?