It then ends up showing this:
Password:
dd: /path/to/ubuntu.img: No such file or directory
Yet, I named my file ubuntu.img It is already a dmg
The full name of the dmg on my desktop is "ubuntu.img.dmg"
It then ends up showing this:
Password:
dd: /path/to/ubuntu.img: No such file or directory
Yet, I named my file ubuntu.img It is already a dmg
The full name of the dmg on my desktop is "ubuntu.img.dmg"
You make (minimum) three mistakes:
This part from your command /path/to must be changed with ...full path name for that file. You said that the file is on your desktop. If so, then you should change /path/to with ~/Desktop.
You said the full name of the dmg is ubuntu.img.dmg. So, then you should use this name, not ubuntu.img.
I think that this part is wrong, also: of=/dev/rdisk1 bs=1m. See man dd to understand why.
As a suggestion: before to copy a command and past it in terminal, you should think a little what exactly does that command. Sometimes can be dangerous!