1. Login to your server via terminal
2. To install the speedtest on Ubuntu you need to enter the below commands on the terminal.
$ sudo apt update
$ apt install speedtest-cli
3. To check whether the speed test is properly installed or not. Enter the below command
$ speedtest-cli
4. your speedtest is successfully installed.