To install WordPress on Ubuntu, open the terminal and copy the WordPress installation file to the Lampp htdocs directory. Extract the WordPress file using the tar command and change permissions of the WordPress folder to allow access. Access WordPress by visiting localhost in a browser which will open Lampp, then click phpMyAdmin.