Mac DMG -> ISO (in ubuntu)

Install dmg2img

sudo apt-get install dmg2img

convert (converts the DMG)

dmg2img image.dmg

Alterntively:

dmg2img image.dmg ~/Desktop/image.iso

rename the file

mv image.img image.iso