You can do this by sudo nano /etc/default/grub and then adding nomodeset to the line which reads GRUB_CMDLINE_LINUX_DEFAULT
Then close nano saving the modifications (Ctrl+x, y, enter) and then finally sudo update-grub to implement the changes. Then restart. After that you can verify that cat /proc/cmdline contains nomodeset.
