It’s for the server, not the desktop client on your Ubuntu desktop?
In case of the server, you can normally set the location of the data folder during installation. And if you want to do it afterwards, there is a howto: HowTo: Change / Move data directory after installation