I have a Mac mini early 2007. I installed Ubuntu 14.04 LTS i386 without using the bootcamp and just erasing all partitions(I mean there is no OS X on disk but only Ubuntu.). I have had no problems. Everything is working perfectly but there is no sound. On the tray bar there is sound indicator and seems like sound is working but somehow I couldn't get sound from my speakers. At the System settings when I click Sound-->Test Sound, there is no sound. I searched on Google and found some articles. I tried them out but still no sound.
I tried typing this in a terminal:-
sudo nano /etc/modules
and added these lines to that file:-
snd_aoa_i2sbus
snd_aoa_fabric_layout
snd_aoa_codec_tas
snd_aoa_codec_onyx
but no fix yet. Also I tried alsamixer but it wont open stating:-
No such file or directory
I tried the solutions here but still no fix. Now What can I do to fix my sound ?