After pasting the text, use Ctrl+O to write to the file, Enter to save and Ctrl+X to exit Nano. The installation is almost complete, but if you are on a virtual machine, you will have to turn it off ...